{"action":"opened","issue":{"url":"https://api.github.com/repos/portainer/portainer/issues/2422","repository_url":"https://api.github.com/repos/portainer/portainer","labels_url":"https://api.github.com/repos/portainer/portainer/issues/2422/labels{/name}","comments_url":"https://api.github.com/repos/portainer/portainer/issues/2422/comments","events_url":"https://api.github.com/repos/portainer/portainer/issues/2422/events","html_url":"https://github.com/portainer/portainer/issues/2422","id":375851164,"node_id":"MDU6SXNzdWUzNzU4NTExNjQ=","number":2422,"title":"Portainer can not connect to swarm via agent after host restart","user":{"login":"Duvel","id":1958057,"node_id":"MDQ6VXNlcjE5NTgwNTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1958057?v=4","gravatar_id":"","url":"https://api.github.com/users/Duvel","html_url":"https://github.com/Duvel","followers_url":"https://api.github.com/users/Duvel/followers","following_url":"https://api.github.com/users/Duvel/following{/other_user}","gists_url":"https://api.github.com/users/Duvel/gists{/gist_id}","starred_url":"https://api.github.com/users/Duvel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Duvel/subscriptions","organizations_url":"https://api.github.com/users/Duvel/orgs","repos_url":"https://api.github.com/users/Duvel/repos","events_url":"https://api.github.com/users/Duvel/events{/privacy}","received_events_url":"https://api.github.com/users/Duvel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-31T08:35:00Z","updated_at":"2018-10-31T08:35:00Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Bug description**\r\n\r\nAfter a restart of the host portainer says that the swarm it is managing is down. The swarm is still up and portainer is running in the swarm. The agents are running as well.\r\n\r\nAfter removing the portainer container, so that the swarm spins a new one, solves the issue.\r\n\r\n**Expected behavior**\r\n\r\nThat portainer can connect to the cluster.\r\n\r\n**Steps to reproduce the issue:**\r\n\r\nSteps to reproduce the behavior:\r\n1. Automatically restart the server\r\n2. Login into portainer\r\n3. Observe that the swarm is down\r\n\r\n**Technical details:**\r\n\r\n* Portainer version: 1.19.2 and agent 1.1.1\r\n* Docker version (managed by Portainer): 18.03.1-ce\r\n* Platform (windows/linux): ubuntu 16.04\r\n* Command used to start Portainer (`docker run -p 9000:9000 portainer/portainer`): [\"-H\", \"unix:///var/run/docker.sock\"]\r\n* Browser: Safari\r\n\r\n**Additional context**\r\nThe log isn't mentioning much, didn't check the browser if there was an error message there.\r\n\r\nThe log is mentioning a failing cron task:\r\n\r\n```\r\n2018/10/31 08:15:00 cron error: endpoint snapshot error (endpoint=prod01, URL=tcp://tasks.portainer_agent:9001) (err=Error response from daemon: )\r\n```"}}
{"actor":{"display_login":"Duvel"}}