-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Failed Loading Environment error after rebooting manager node #8256
Comments
Thank you for logging this request that was initially posted in our Discord channel. I am going to provide further updates here with my testing and forward to Product for review. Thanks! |
Per our Discord conversation, using |
DOCKER SWARM REBOOT TESTING: (1) Manager, (1+) Worker [1] Install Swarm Portainer Server on Manager: [2] Reboot Manager Node
[6] Home >> WORKAROUND: Note: this workaround also works on multiple worker node clusters. You only need to restart docker on one worker node. ADDITIONAL TESTING: (2) Manager, (1) Worker TODO: Thanks! |
Update: Upon further investigation, I have found a better workaround. Run the following on the Manager node (image name may need to be edited):
Thanks! |
same problem, the workaround working... but a really annoying that this issue are exist more than one year... |
This resolved my issue |
Hi, So now I restart portainer in a cronjob at 23:00pm every day to limit this issue ... thanks |
This has been an issue for years now. Has any progress been made? :/ We have written a cron job that looks fore the "unable to redirect request to a manager node: no manager node found" then kicks off a service update, but it is not really a great solution... |
we are on the same boat, this happen in every environment that we have (Portainer BE customer) after we reboot any node in a swarm cluster, not necessairly a manager node. This is quite frustrating and we have it since the beginning of our experience with Portainer. @tamarahenson Any plan to fix this? The workaround is not a real solution because we have different reboot/update policies in our swarm clusters. If that's not on roadmap we will open a support case on the customer portal because we are having many complaints from out end users that are perceiving Portainer as unstable and broken every time they have this errors. I know that the workaround is a quick fix but at that point the user has already experienced the error. |
Happened again today after restarting two worker nodes (Azure VMs). Fixed it with: |
I am experiencing the same problem after restarting my entire Swarm cluster. Portainer and its agents do not start properly, resulting in the following error message:
I'm in portainer v1.19.5 (the LTS version). This is an ongoing issue. Can we have a permanent fix, please? |
Make sure the agent container running on a manager is exactly called |
what if it's deployed through docker swarm? Following this guide: https://docs.portainer.io/start/install-ce/server/swarm/linux, the https://downloads.portainer.io/ce2-21/portainer-agent-stack.yml creates portainer_agent.randomstring names on nodes. |
I am in the same state as @rkj. It is a swarm deployment using the same template. |
I use the same compose file and and also use docker swarms, so I guess the random characters at the end is fine? Then I finally tried restoring the back the old name, and instead I made a duplicate of the service with regular volume mapping, so non-managers get that, and it works. TLDR: Doesnt work ("cannot find a manager on any node"):
Works:
|
Ok, this is pretty silly, the agent is missing 9001 port exposed. Added that and it seems to work now. |
@rkj , Are we having about the same issue? It only breaks after a reboot, and not during initial deployment? |
Maybe it's different. |
Bug description
After rebooting the manager node in a 1 manager, 1 worker docker swarm setup, portainer will boot the service, but attempting to load the primary environment will fail with an error:
This error happens both from the worker and manager node instances of the portainer web interface.
Expected behavior
After a reboot, portainer boots normally and allows loading the environment.
Portainer Logs
Provide the logs of your Portainer container or Service.
Steps to reproduce the issue:
Additional context
Discord thread has additional context if needed.
The text was updated successfully, but these errors were encountered: