Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with agent connectivity after a few days #154

Open
realjohimself opened this issue Aug 27, 2020 · 1 comment
Open

Issues with agent connectivity after a few days #154

realjohimself opened this issue Aug 27, 2020 · 1 comment

Comments

@realjohimself
Copy link

Hi all

I am running Portainer Agent on a Raspberry Pi 3B+ and the agent runs fine for a day or so, connected to another Raspberry Pi running full on Portainer. After a few hours I lose connectivity to the agents and, looking at the logs, the agent container won't start on the agents. the log is filled with:
2020/08/27 12:37:51 [INFO] [main] [message: Agent running on Docker platform]
2020/08/27 12:37:52 [ERROR] [main,docker] [message: Unable to retrieve local agent IP address] [error: Error: No such container: ae155be1dd72]

Deleting the volume and recreating the container makes it connect back as expected.
I am running Watchtower on the hosts to keep the containers up to date, the agents all drop off at roughly the same time so it may be an update on the agent.

I created the container with the following command:
docker create -p 9001:9001 --name portainer_agent --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes:/var/lib/docker/volumes portainer/agent

Can anyone advise please?

@svengo
Copy link

svengo commented Jul 14, 2021

Maybe the same issue as in #166?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants