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. I have “resolved” this by using Docker on a VM with ubuntu (for some reason I have no trouble there).
Snap 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
'''
Docker Logs
'''
2016/07/08 09:11:00 2016/07/08 09:11:00 method Decode reply type not a pointer: interface {}
2016/07/08 09:11:00 2016/07/08 09:11:00 method Decrypt has wrong number of ins: 2
2016/07/08 09:11:00 2016/07/08 09:11:00 method DecryptKey has wrong number of ins: 2
2016/07/08 09:11:00 2016/07/08 09:11:00 method Encode has wrong number of ins: 2
2016/07/08 09:11:00 2016/07/08 09:11:00 method Encrypt has wrong number of ins: 2
2016/07/08 09:11:00 2016/07/08 09:11:00 method EncryptKey has wrong number of ins: 1
2016/07/08 09:11:00 2016/07/08 09:11:00 method KillChan has wrong number of ins: 1
2016/07/08 09:11:00 2016/07/08 09:11:00 method ListenAddress has wrong number of ins: 1
2016/07/08 09:11:00 2016/07/08 09:11:00 method ListenPort has wrong number of ins: 1
2016/07/08 09:11:00 2016/07/08 09:11:00 method Logger has wrong number of ins: 1
2016/07/08 09:11:00 2016/07/08 09:11:00 method ResetHeartbeat has wrong number of ins: 1
2016/07/08 09:11:00 2016/07/08 09:11:00 method SetEncrypter has wrong number of ins: 2
2016/07/08 09:11:00 2016/07/08 09:11:00 method SetListenAddress has wrong number of ins: 2
2016/07/08 09:11:00 2016/07/08 09:11:00 method Token has wrong number of ins: 1
'''