Skip to content
This repository was archived by the owner on Jun 14, 2025. It is now read-only.
This repository was archived by the owner on Jun 14, 2025. It is now read-only.

slack-docker crashes/stops after first container stops or state changes. #4

@pcross616

Description

@pcross616

So i am running this as a global container in coreos. I have been for a while, but recently something changed and now I am getting this error.

Here is my systemd service file for slack-docker

Description=Docker Monitoring Service

[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill slack-docker
ExecStartPre=-/usr/bin/docker rm slack-docker
ExecStartPre=/usr/bin/docker pull int128/slack-docker
ExecStart=/usr/bin/bash -c \
"/usr/bin/docker run --rm --name slack-docker -e webhook=https://hooks.slack.com/services/...  \
 -v /var/run/docker.sock:/var/run/docker.sock \
int128/slack-docker"

[X-Fleet]
Global=true

When i issue a container stop then say a start this error starts to show up. I do see the slack-docker catch the stop event and it is published to slack.. but after that just this error with different container Ids.

Unhandled rejection Error: HTTP code is 404 which indicates error: no such container - no such id: 8aeb404dcb0c823079b4ca17b893c3c6d225f44bcdbdd145a22f3ba46c70a107 Feb 02 03:43:58 ip-172-20-1-56.us-west-2.compute.internal bash[14812]: at /usr/src/app/node_modules/docker-modem/lib/modem.js:229:17 Feb 02 03:43:58 ip-172-20-1-56.us-west-2.compute.internal bash[14812]: at getCause (/usr/src/app/node_modules/docker-modem/lib/modem.js:257:7) Feb 02 03:43:58 ip-172-20-1-56.us-west-2.compute.internal bash[14812]: at Modem.buildPayload (/usr/src/app/node_modules/docker-modem/lib/modem.js:228:5) Feb 02 03:43:58 ip-172-20-1-56.us-west-2.compute.internal bash[14812]: at IncomingMessage.<anonymous> (/usr/src/app/node_modules/docker-modem/lib/modem.js:204:14) Feb 02 03:43:58 ip-172-20-1-56.us-west-2.compute.internal bash[14812]: at emitNone (events.js:72:20) Feb 02 03:43:58 ip-172-20-1-56.us-west-2.compute.internal bash[14812]: at IncomingMessage.emit (events.js:166:7) Feb 02 03:43:58 ip-172-20-1-56.us-west-2.compute.internal bash[14812]: at endReadableNT (_stream_readable.js:905:12) Feb 02 03:43:58 ip-172-20-1-56.us-west-2.compute.internal bash[14812]: at nextTickCallbackWith2Args (node.js:478:9) Feb 02 03:43:58 ip-172-20-1-56.us-west-2.compute.internal bash[14812]: at process._tickCallback (node.js:392:17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions