Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

"Unexpected EOF Error" when using Snap with influxdb container #1054

@nichelle-hall

Description

@nichelle-hall

I am currently running Snap version v0.14.0-beta and Docker version 1.12.0-rc3 (for both client and server). I am also using the most recent update of the influxdb plugin that was merged after resolving issue #61 last week. When I load my plugins and run my Snap task, both snapd and my containers stall (meaning that they are running but not collecting telemetry). This said, I am confident that this issue is related to Snap's communication with the influxdb container because I have no errors when running the influxdb daemon (influxd) with Snap. It is only when I force quit out of snapd using ctrl+c that I get the following error. I have included my task file and docker commands to aid troubleshooting.

Error

ERRO[0125] error with publisher job                      _module=scheduler-job block=run content-type=snap.gob error=unexpected EOF job-type=publisher plugin-config=map[host:{127.0.0.1} password:{admin} port:{8086} user:{admin} database:{snap}] plugin-name=influx plugin-version=-1
WARN[0125] Publish job failed                            _block=submit-publish-job _module=scheduler-workflow parent-node-type=processor publish-name=influx publish-version=-1 task-id=5776df3e-1148-420e-9272-325c9e9e62d7 task-name=Task-5776df3e-1148-420e-9272-325c9e9e62d7
DEBU[0125] Batch submission complete                     _block=work-jobs _module=scheduler-workflow count-process-nodes=0 count-publish-nodes=1 parent-node-type=processor task-id=5776df3e-1148-420e-9272-325c9e9e62d7 task-name=Task-5776df3e-1148-420e-9272-325c9e9e62d7
DEBU[0125] Batch submission complete                     _block=work-jobs _module=scheduler-workflow count-process-nodes=1 count-publish-nodes=0 parent-node-type=collector task-id=5776df3e-1148-420e-9272-325c9e9e62d7 task-name=Task-5776df3e-1148-420e-9272-325c9e9e62d7
WARN[0125] Task failed                                   _block=spin _module=scheduler-task consecutive failure limit=10 consecutive failures=1 error=unexpected EOF task-id=5776df3e-1148-420e-9272-325c9e9e62d7 task-name=Task-5776df3e-1148-420e-9272-325c9e9e62d7

Snap Task

{
    "version": 1,
    "schedule": {
        "type": "simple",
        "interval": "1s"
    },
    "workflow": {
        "collect": {
            "metrics": {
                "/intel/psutil/load/load1": {},
                "/intel/psutil/load/load5": {},
                "/intel/psutil/load/load15": {},
                "/intel/psutil/vm/available": {},
                "/intel/psutil/vm/free": {},
                "/intel/psutil/vm/used": {}
            },
            "config": {
                "/intel/mock": {
                    "password": "secret",
                    "user": "root"
                }
            },
            "process": [
                {
                    "plugin_name": "passthru",
                    "process": null,
                    "publish": [
                        {
                            "plugin_name": "influx",
                            "config": {
                                "host": "127.0.0.1",
                                "port": 8086,
                                "database": "snap",
                                "user": "admin",
                                "password" : "admin"
                            }
                        }
                    ],
                    "config": null
                }
            ],
            "publish": null
        }
    }
}

Docker commands

docker run -d -p 8083:8083 -p 8086:8086 --name="influxdb"  influxdb
docker run -d -p 3000:3000 --link=influxdb  --name grafana grafana/grafana

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions