{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/harbor/issues/79","repository_url":"https://api.github.com/repos/vmware/harbor","labels_url":"https://api.github.com/repos/vmware/harbor/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/vmware/harbor/issues/79/comments","events_url":"https://api.github.com/repos/vmware/harbor/issues/79/events","html_url":"https://github.com/vmware/harbor/issues/79","id":145369774,"number":79,"title":"UI failed to connect to db, retry after 2 seconds... / Bad Gateway","user":{"login":"AlexZeitler","id":287480,"avatar_url":"https://avatars.githubusercontent.com/u/287480?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexZeitler","html_url":"https://github.com/AlexZeitler","followers_url":"https://api.github.com/users/AlexZeitler/followers","following_url":"https://api.github.com/users/AlexZeitler/following{/other_user}","gists_url":"https://api.github.com/users/AlexZeitler/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexZeitler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexZeitler/subscriptions","organizations_url":"https://api.github.com/users/AlexZeitler/orgs","repos_url":"https://api.github.com/users/AlexZeitler/repos","events_url":"https://api.github.com/users/AlexZeitler/events{/privacy}","received_events_url":"https://api.github.com/users/AlexZeitler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"wknet123","id":5027302,"avatar_url":"https://avatars.githubusercontent.com/u/5027302?v=3","gravatar_id":"","url":"https://api.github.com/users/wknet123","html_url":"https://github.com/wknet123","followers_url":"https://api.github.com/users/wknet123/followers","following_url":"https://api.github.com/users/wknet123/following{/other_user}","gists_url":"https://api.github.com/users/wknet123/gists{/gist_id}","starred_url":"https://api.github.com/users/wknet123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wknet123/subscriptions","organizations_url":"https://api.github.com/users/wknet123/orgs","repos_url":"https://api.github.com/users/wknet123/repos","events_url":"https://api.github.com/users/wknet123/events{/privacy}","received_events_url":"https://api.github.com/users/wknet123/received_events","type":"User","site_admin":false},"milestone":null,"comments":23,"created_at":"2016-04-02T12:48:49Z","updated_at":"2016-04-07T15:42:11Z","closed_at":null,"body":"I pulled 864b814 (to test #49 and #59), then `cd Deploy`, changed `hostname = localhost` in `harbor.cfg`.\r\nThen I ran `docker-compose up -d` \r\n\r\nWenn I open `http://localhost` I get a nginx `502 Bad Gateway` error.\r\n\r\nThe last few lines of `/var/log/harbor/<date>/docker_ui.log` look like this:\r\n\r\n`12:41:10 failed to connect to db, retry after 2 seconds...`\r\n\r\nAfter a few seconds, `deploy_ui` container is stopping completely."},"comment":{"url":"https://api.github.com/repos/vmware/harbor/issues/comments/206960997","html_url":"https://github.com/vmware/harbor/issues/79#issuecomment-206960997","issue_url":"https://api.github.com/repos/vmware/harbor/issues/79","id":206960997,"user":{"login":"AlexZeitler","id":287480,"avatar_url":"https://avatars.githubusercontent.com/u/287480?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexZeitler","html_url":"https://github.com/AlexZeitler","followers_url":"https://api.github.com/users/AlexZeitler/followers","following_url":"https://api.github.com/users/AlexZeitler/following{/other_user}","gists_url":"https://api.github.com/users/AlexZeitler/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexZeitler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexZeitler/subscriptions","organizations_url":"https://api.github.com/users/AlexZeitler/orgs","repos_url":"https://api.github.com/users/AlexZeitler/repos","events_url":"https://api.github.com/users/AlexZeitler/events{/privacy}","received_events_url":"https://api.github.com/users/AlexZeitler/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T15:42:11Z","updated_at":"2016-04-07T15:42:11Z","body":"`netstat -lpn |grep :80` and `netstat -lpn |grep :3306` with containers stopped didn't return anything.\r\n\r\nStarting the containers, `netstat -lpn |grep :80` returned:\r\n```\r\ntcp6       0      0 :::80                   :::*                    LISTEN      24649/docker-proxy\r\n```"}}