{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/che/issues/9936","repository_url":"https://api.github.com/repos/eclipse/che","labels_url":"https://api.github.com/repos/eclipse/che/issues/9936/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/che/issues/9936/comments","events_url":"https://api.github.com/repos/eclipse/che/issues/9936/events","html_url":"https://github.com/eclipse/che/issues/9936","id":329412179,"node_id":"MDU6SXNzdWUzMjk0MTIxNzk=","number":9936,"title":"Che workspace does not start in kubernetes","user":{"login":"bsukramlitt","id":26164793,"node_id":"MDQ6VXNlcjI2MTY0Nzkz","avatar_url":"https://avatars0.githubusercontent.com/u/26164793?v=4","gravatar_id":"","url":"https://api.github.com/users/bsukramlitt","html_url":"https://github.com/bsukramlitt","followers_url":"https://api.github.com/users/bsukramlitt/followers","following_url":"https://api.github.com/users/bsukramlitt/following{/other_user}","gists_url":"https://api.github.com/users/bsukramlitt/gists{/gist_id}","starred_url":"https://api.github.com/users/bsukramlitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsukramlitt/subscriptions","organizations_url":"https://api.github.com/users/bsukramlitt/orgs","repos_url":"https://api.github.com/users/bsukramlitt/repos","events_url":"https://api.github.com/users/bsukramlitt/events{/privacy}","received_events_url":"https://api.github.com/users/bsukramlitt/received_events","type":"User","site_admin":false},"labels":[{"id":192367931,"node_id":"MDU6TGFiZWwxOTIzNjc5MzE=","url":"https://api.github.com/repos/eclipse/che/labels/kind/question","name":"kind/question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-06-05T11:22:29Z","updated_at":"2018-06-06T07:11:29Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n\r\nHello, \r\nI run into an issue with che. If I deploy che the master just boots normal.\r\n\r\n**The Setup** \r\n\r\nChe 6.6.0\r\nAzure AKS 1.9.6\r\n\r\nThe master can be accessed at https://webide.ourdomain.com which works. \r\nI extracted the relvant endpoints from our config\r\n\r\n```\r\n  CHE_API: https://webide.ourdomain.com/api\r\n  CHE_DEBUG_SERVER: \"true\"\r\n  CHE_DOMAIN: webide.ourdomain.com\r\n  CHE_HOST: webide.ourdomain.com\r\n  CHE_INFRA_KUBERNETES_BOOTSTRAPPER_BINARY__URL: https://webide.ourdomain.com/agent-binaries/linux_amd64/bootstrapper/bootstrapper\r\n```\r\n\r\n**The Problem**\r\n\r\nThe workspaces cant be started correctly. \r\n* The ws container is created\r\n* The ws ingress and service is created\r\n* No issues show up anywhere\r\n\r\nAnyways it fails.\r\n\r\n**What happens while ws boot**\r\nWhat happens is that the workspaces gets correctly started ->\r\n* I checked the logs in the workspace container , both show now issues and just boot\r\n    * bootstrapper  -> no issues in logs\r\n    * ws-agent -> no issues in logs\r\n     \r\n\r\nFirefox never establishes a working websocket because che api reponse with:\r\n`Server 'exec-agent/http' in machine 'dev-machine' not available.`\r\n\r\n\r\n**LOGS**\r\n\r\n**WS Master Logs**\r\n```\r\n2018-06-05 14:28:28,017[aceSharedPool-1]  [WARN ] [.i.k.KubernetesInternalRuntime 179]  - Failed to start Kubernetes runtime of workspace workspace14tkhghvpkq77i6u. Cause: Server 'exec-agent/http' in machine 'dev-machine' not available.\r\n2018-06-05 14:28:29,115[aceSharedPool-1]  [INFO ] [o.e.c.a.w.s.WorkspaceRuntimes 375]   - Workspace 'test:wksp-9p1u' with id 'workspace14tkhghvpkq77i6u' start fai\r\n```\r\n\r\n**Access Logs : Workspace**\r\nThe ingress get created. I can call the url e.g.  https://webide.ourdomain.com/servero00uno55-dev-machine/server-4401/api from curl within the che master or outside with my browser both times I get 401 unauthorized which I guess is correct as i have no token attached to the requests. \r\n```\r\nOn the other hand I can see the following on the accesslog in the workspace container:\r\n`10.244.3.6 - - [05/Jun/2018:13:48:43 +0000] \"GET /server25ozgqg1-dev-machine/server-4401 HTTP/1.1\" 401 1106           │che-workspaces   workspace14tkhghvpkq77i6u.dockerimage   0/1       Pending   0         0s\r\n10.244.3.6 - - [05/Jun/2018:13:48:47 +0000] \"GET /server25ozgqg1-dev-machine/server-4401/api HTTP/1.1\" 401 1106       │che-workspaces   workspace14tkhghvpkq77i6u.dockerimage   0/1       ContainerCreating   0         0s\r\n10.244.3.6 - - [05/Jun/2018:13:49:40 +0000] \"GET /server25ozgqg1-dev-machine/server-4401/api HTTP/1.1\" 401 1106\r\n```\r\n\r\n`\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eclipse/che/issues/comments/394964707","html_url":"https://github.com/eclipse/che/issues/9936#issuecomment-394964707","issue_url":"https://api.github.com/repos/eclipse/che/issues/9936","id":394964707,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDk2NDcwNw==","user":{"login":"sleshchenko","id":5887312,"node_id":"MDQ6VXNlcjU4ODczMTI=","avatar_url":"https://avatars0.githubusercontent.com/u/5887312?v=4","gravatar_id":"","url":"https://api.github.com/users/sleshchenko","html_url":"https://github.com/sleshchenko","followers_url":"https://api.github.com/users/sleshchenko/followers","following_url":"https://api.github.com/users/sleshchenko/following{/other_user}","gists_url":"https://api.github.com/users/sleshchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/sleshchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sleshchenko/subscriptions","organizations_url":"https://api.github.com/users/sleshchenko/orgs","repos_url":"https://api.github.com/users/sleshchenko/repos","events_url":"https://api.github.com/users/sleshchenko/events{/privacy}","received_events_url":"https://api.github.com/users/sleshchenko/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T07:11:29Z","updated_at":"2018-06-06T07:11:29Z","author_association":"CONTRIBUTOR","body":"Server host should be initialized here https://github.com/eclipse/che/blob/a48d4b42c88e79c23bb148ef3719a2c1e8be219c/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/server/KubernetesServerResolver.java#L100-L104"}}
{"actor":{"display_login":"sleshchenko"}}