{"action":"created","issue":{"url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/381","repository_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy","labels_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/381/comments","events_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/381/events","html_url":"https://github.com/vfarcic/docker-flow-proxy/issues/381","id":275992499,"number":381,"title":"Running multiple Jenkins instances, i.e. multiple port mapping","user":{"login":"jonbrohauge","id":9496731,"avatar_url":"https://avatars0.githubusercontent.com/u/9496731?v=4","gravatar_id":"","url":"https://api.github.com/users/jonbrohauge","html_url":"https://github.com/jonbrohauge","followers_url":"https://api.github.com/users/jonbrohauge/followers","following_url":"https://api.github.com/users/jonbrohauge/following{/other_user}","gists_url":"https://api.github.com/users/jonbrohauge/gists{/gist_id}","starred_url":"https://api.github.com/users/jonbrohauge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonbrohauge/subscriptions","organizations_url":"https://api.github.com/users/jonbrohauge/orgs","repos_url":"https://api.github.com/users/jonbrohauge/repos","events_url":"https://api.github.com/users/jonbrohauge/events{/privacy}","received_events_url":"https://api.github.com/users/jonbrohauge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-22T09:11:08Z","updated_at":"2017-11-22T12:58:59Z","closed_at":null,"author_association":"NONE","body":"**Description**\r\nWe are trying to run multiple instances of Jenkins while using docker-flow-proxy.\r\nQuick setup overview:\r\n - Docker Swarm having three managers and multiple workers\r\n - Jenkins instances running on workers\r\n - Jenkins agents run on separate AWS ECS cluster\r\n\r\nWe are trying to configure docker-flow-proxy in our Jenkins service definition, having both ports (8080, 50000) accessible.\r\n\r\n\r\n**Describe the results you received:**\r\nIf creating a Jenkins service with this command:\r\n```\r\ndocker service create --name=sample-ci --network=proxy --constraint 'node.role==worker' --label com.df.notify=true --label com.df.distribute=true --label com.df.serviceDomain=sample.ci.mycompany.local --label com.df.port.1=8080 --label com.df.servicePath.1=/ --label com.df.srcPort.2=50000 --label com.df.port.2=50000 --label com.df.servicePath.2=/ --env \"GIT_SEED=sample-applications\" --detach=true private-docker-repository:5000/mycompany/jenkins-ci:5.0.0-SNAPSHOT\r\n```\r\n\r\nThe output of the jenkins-agent:\r\n`INFO: Connecting to sample.ci.mycompany.local:50000\r\nNot use http_proxy environment variable which is invalid: no protocol:\r\nNov 22, 2017 9:48:31 AM hudson.remoting.jnlp.Main$CuiListener error\r\nSEVERE: The server rejected the connection: None of the protocols were accepted\r\njava.lang.Exception: The server rejected the connection: None of the protocols were accepted\r\n        at hudson.remoting.Engine.onConnectionRejected(Engine.java:380)\r\n        at hudson.remoting.Engine.run(Engine.java:352)\r\n`\r\n\r\n**Describe the results you expected:**\r\nMy artifact get built, i.e. a satisfactory result.\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\nFollowing your Jenkins service yaml from your presentation (vfarcic.github.io/jenkins-swarm/), we can get one instance running, however we need to have more than one instance running on the same swarm. When only having deployed one (1) Jenkins instance without the `--label com.df.XXX.2=` AND not having `BIND_PORTS=50000` on the _docker-flow-proxy_ configuration, thus exposing port 50000 directly, it works.\r\n\r\nAny advice on how to get this working will be greatly appreciated."},"comment":{"url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/comments/346343012","html_url":"https://github.com/vfarcic/docker-flow-proxy/issues/381#issuecomment-346343012","issue_url":"https://api.github.com/repos/vfarcic/docker-flow-proxy/issues/381","id":346343012,"user":{"login":"vfarcic","id":5716227,"avatar_url":"https://avatars2.githubusercontent.com/u/5716227?v=4","gravatar_id":"","url":"https://api.github.com/users/vfarcic","html_url":"https://github.com/vfarcic","followers_url":"https://api.github.com/users/vfarcic/followers","following_url":"https://api.github.com/users/vfarcic/following{/other_user}","gists_url":"https://api.github.com/users/vfarcic/gists{/gist_id}","starred_url":"https://api.github.com/users/vfarcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vfarcic/subscriptions","organizations_url":"https://api.github.com/users/vfarcic/orgs","repos_url":"https://api.github.com/users/vfarcic/repos","events_url":"https://api.github.com/users/vfarcic/events{/privacy}","received_events_url":"https://api.github.com/users/vfarcic/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T12:58:59Z","updated_at":"2017-11-22T12:58:59Z","author_association":"OWNER","body":"That should work :). Can you post your stack and commands so that I try to reproduce the issue?"}}
{"actor":{"display_login":"vfarcic"}}