{"action":"created","issue":{"url":"https://api.github.com/repos/portainer/portainer/issues/325","repository_url":"https://api.github.com/repos/portainer/portainer","labels_url":"https://api.github.com/repos/portainer/portainer/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/portainer/portainer/issues/325/comments","events_url":"https://api.github.com/repos/portainer/portainer/issues/325/events","html_url":"https://github.com/portainer/portainer/issues/325","id":187325558,"number":325,"title":"http: proxy error: malformed HTTP response","user":{"login":"mabombo","id":2077175,"avatar_url":"https://avatars.githubusercontent.com/u/2077175?v=3","gravatar_id":"","url":"https://api.github.com/users/mabombo","html_url":"https://github.com/mabombo","followers_url":"https://api.github.com/users/mabombo/followers","following_url":"https://api.github.com/users/mabombo/following{/other_user}","gists_url":"https://api.github.com/users/mabombo/gists{/gist_id}","starred_url":"https://api.github.com/users/mabombo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mabombo/subscriptions","organizations_url":"https://api.github.com/users/mabombo/orgs","repos_url":"https://api.github.com/users/mabombo/repos","events_url":"https://api.github.com/users/mabombo/events{/privacy}","received_events_url":"https://api.github.com/users/mabombo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-04T12:51:06Z","updated_at":"2016-11-06T07:13:44Z","closed_at":null,"body":"<!--\r\n\r\nThanks for opening an issue on Portainer !\r\n\r\nDo you need help or have a question? Come chat with us on gitter: https://gitter.im/portainer/Lobby.\r\n\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nAlso, be sure to check our FAQ and documentation first: https://portainer.readthedocs.io\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below.\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\nI'm starting portainer as container using docker 1.12.3 on centos 7 with docker swarm-mode enabled\r\n```shell\r\ndocker run -d -p 9000:9000 -v /var/lib/docker/swarm/certificates:/certs --add-host swarm-manager:x.x.x.x portainer/portainer:latest -H tcp://swarm-manager:2377 --swarm --tlscacert /certs/swarm-root-ca.crt --tlscert /certs/swarm-node.crt --tlskey /certs/swarm-node.key --tlsverify\r\n```\r\n\r\nAfter load the homepage of portainer, on log container i see. No docker info or swarm info on portainer\r\n\r\n```\r\n2016/11/04 12:43:15 http: proxy error: malformed HTTP response \"\\x00\\x00\\x00\\x04\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x04\\b\\x00\\x00\\x00\\x00\\x00\\x00\\x0e\\xff\\xf1\"\r\n2016/11/04 12:43:15 http: proxy error: malformed HTTP response \"\\x00\\x00\\x00\\x04\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x04\\b\\x00\\x00\\x00\\x00\\x00\\x00\\x0e\\xff\\xf1\"\r\n2016/11/04 12:43:15 http: proxy error: malformed HTTP response \"\\x00\\x00\\x00\\x04\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x04\\b\\x00\\x00\\x00\\x00\\x00\\x00\\x0e\\xff\\xf1\"\r\n2016/11/04 12:43:15 http: proxy error: malformed HTTP response \"\\x00\\x00\\x00\\x04\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x04\\b\\x00\\x00\\x00\\x00\\x00\\x00\\x0e\\xff\\xf1\"\r\n```\r\n\r\nI have the same issue if i start portainer without tls config\r\n```\r\ndocker run -d -p 9000:9000 --add-host swarm-manager:x.x.x.x portainer/portainer:latest -H tcp://swarm-manager:2377 --swarm\r\n```\r\n\r\nI don't know if is an issue or a bad config\r\n<!--\r\nBriefly describe the problem you are having in a few paragraphs.\r\n-->\r\n\r\n**Steps to reproduce the issue:**\r\n\r\n1. Run Portainer Container with tls config or without\r\n2.Access to 9000 with browser\r\n3.docker logs container-id\r\n\r\nAny other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?\r\n\r\n**Technical details:**\r\n\r\n* Portainer version:1.9.3\r\n* Target Docker version (the host/cluster you manage):docker 1.12.3 swarm-mode\r\n* Target Swarm version (if applicable):swarm-mode\r\n* Platform (windows/linux):centos 7 Linux\r\n* Browser: Safari\r\n"},"comment":{"url":"https://api.github.com/repos/portainer/portainer/issues/comments/258664669","html_url":"https://github.com/portainer/portainer/issues/325#issuecomment-258664669","issue_url":"https://api.github.com/repos/portainer/portainer/issues/325","id":258664669,"user":{"login":"deviantony","id":5485061,"avatar_url":"https://avatars.githubusercontent.com/u/5485061?v=3","gravatar_id":"","url":"https://api.github.com/users/deviantony","html_url":"https://github.com/deviantony","followers_url":"https://api.github.com/users/deviantony/followers","following_url":"https://api.github.com/users/deviantony/following{/other_user}","gists_url":"https://api.github.com/users/deviantony/gists{/gist_id}","starred_url":"https://api.github.com/users/deviantony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deviantony/subscriptions","organizations_url":"https://api.github.com/users/deviantony/orgs","repos_url":"https://api.github.com/users/deviantony/repos","events_url":"https://api.github.com/users/deviantony/events{/privacy}","received_events_url":"https://api.github.com/users/deviantony/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T07:13:44Z","updated_at":"2016-11-06T07:13:44Z","body":"@mabombo The port 2377 is reserved for Docker Swarm cluster internal communication. Could you try on port 2375?\r\n\r\n```shell\r\ndocker run -d -p 9000:9000 -v /var/lib/docker/swarm/certificates:/certs --add-host swarm-manager:x.x.x.x portainer/portainer:latest -H tcp://swarm-manager:2375 --swarm --tlscacert /certs/swarm-root-ca.crt --tlscert /certs/swarm-node.crt --tlskey /certs/swarm-node.key --tlsverify\r\n\r\n```\r\n"}}
{"actor":{"display_login":"deviantony"}}