{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/che/issues/3418","repository_url":"https://api.github.com/repos/eclipse/che","labels_url":"https://api.github.com/repos/eclipse/che/issues/3418/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/che/issues/3418/comments","events_url":"https://api.github.com/repos/eclipse/che/issues/3418/events","html_url":"https://github.com/eclipse/che/issues/3418","id":196257499,"number":3418,"title":"404 error opening my workspace.","user":{"login":"monaka","id":101795,"avatar_url":"https://avatars.githubusercontent.com/u/101795?v=3","gravatar_id":"","url":"https://api.github.com/users/monaka","html_url":"https://github.com/monaka","followers_url":"https://api.github.com/users/monaka/followers","following_url":"https://api.github.com/users/monaka/following{/other_user}","gists_url":"https://api.github.com/users/monaka/gists{/gist_id}","starred_url":"https://api.github.com/users/monaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monaka/subscriptions","organizations_url":"https://api.github.com/users/monaka/orgs","repos_url":"https://api.github.com/users/monaka/repos","events_url":"https://api.github.com/users/monaka/events{/privacy}","received_events_url":"https://api.github.com/users/monaka/received_events","type":"User","site_admin":false},"labels":[{"id":192367931,"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":7,"created_at":"2016-12-18T04:29:05Z","updated_at":"2016-12-19T00:27:11Z","closed_at":null,"body":"[Short description of problem here]\r\n\r\n**Reproduction Steps:**\r\n\r\n1. Install che CLI as `/opt/bin/che`\r\n2. Run `che start`\r\n3. Open IDE\r\n4. Create a workspace\r\n5. Open the workspace\r\n\r\n**Expected behavior:**\r\n\r\nthe dev-machine should be spawn.\r\n\r\n**Observed behavior:**\r\n\r\n404 error is reported like this.\r\n\r\n![screenshot 2016-12-18 at 10 45 43](https://cloud.githubusercontent.com/assets/101795/21291502/470bc8b2-c525-11e6-9a75-d290ddbb46dc.png)\r\n\r\n**Che version:**    5.0.0-M8\r\n**OS and version:** CoreOS 1185.5.0 (MoreOS)\r\n**Docker version:** \r\n```\r\nClient:\r\n Version:      1.11.2\r\n API version:  1.23\r\n Go version:   go1.6.3\r\n Git commit:   bac3bae\r\n Built:        \r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.11.2\r\n API version:  1.23\r\n Go version:   go1.6.3\r\n Git commit:   bac3bae\r\n Built:        \r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n**Che install:**    Docker container\r\n\r\n**Additional information:**\r\n\r\nDebug log by docker.service is:\r\n \r\n```\r\nDec 18 04:18:33 CoreOS-Che dockerd[16910]: time=\"2016-12-18T04:18:33.624473012Z\" level=debug msg=\"form data: {\\\"AttachStderr\\\":false,\\\"AttachStdin\\\":false,\\\"AttachStdout\\\":false,\\\"Cmd\\\":[],\\\"CpuShares\\\":0,\\\"Entrypoint\\\":[],\\\"Env\\\":[\\\"CHE_LOCAL_CONF_DIR=/mnt/che/conf\\\",\\\"USER_TOKEN=dummy_token\\\",\\\"JAVA_OPTS=-Xms256m -Xmx2048m -Djava.security.egd=file:/dev/./urandom\\\",\\\"CHE_WORKSPACE_ID=workspacehheo0x88x10cqsaj\\\",\\\"CHE_PROJECTS_ROOT=/projects\\\",\\\"CHE_API=http://che-host:8080/wsmaster/api\\\"],\\\"ExposedPorts\\\":{\\\"22/tcp\\\":{},\\\"4401/tcp\\\":{},\\\"4403/tcp\\\":{},\\\"4411/tcp\\\":{}},\\\"HostConfig\\\":{\\\"Binds\\\":[\\\"/data/workspaces/wksp-lyhl:/projects:Z\\\",\\\"/home/user/che/lib/linux_amd64/terminal:/mnt/che/terminal:ro,Z\\\",\\\"/home/user/che/lib/ws-agent.tar.gz:/mnt/che/ws-agent.tar.gz:ro,Z\\\"],\\\"CpuShares\\\":0,\\\"ExtraHosts\\\":[\\\"che-host:172.17.0.3\\\"],\\\"Links\\\":[],\\\"Memory\\\":2.147483648e+09,\\\"MemorySwap\\\":-1,\\\"MemorySwappiness\\\":-1,\\\"NetworkMode\\\":\\\"workspacehheo0x88x10cqsaj_ae273w180w2jv0vq\\\",\\\"PidsLimit\\\":-1,\\\"PortBindings\\\":{},\\\"Privileged\\\":false,\\\"PublishAllPorts\\\":true,\\\"ReadonlyRootfs\\\":false,\\\"VolumesFrom\\\":[]},\\\"Hostname\\\":\\\"\\\",\\\"Image\\\":\\\"eclipse-che/workspacehheo0x88x10cqsaj_machineyioofy4wl6xv3s9k_che_dev-machine\\\",\\\"Labels\\\":{\\\"che:server:22/tcp:ref\\\":\\\"ssh\\\",\\\"che:server:4401/tcp:path\\\":\\\"/api\\\",\\\"che:server:4401/tcp:protocol\\\":\\\"http\\\",\\\"che:server:4401/tcp:ref\\\":\\\"wsagent\\\",\\\"che:server:4411/tcp:protocol\\\":\\\"http\\\",\\\"che:server:4411/tcp:ref\\\":\\\"terminal\\\"},\\\"NetworkDisabled\\\":false,\\\"NetworkingConfig\\\":{\\\"EndpointsConfig\\\":{\\\"workspacehheo0x88x10cqsaj_ae273w180w2jv0vq\\\":{\\\"Aliases\\\":[\\\"dev-machine\\\"],\\\"Links\\\":[]}}},\\\"OpenStdin\\\":false,\\\"StdinOnce\\\":false,\\\"Tty\\\":false,\\\"User\\\":\\\"\\\",\\\"Volumes\\\":{},\\\"WorkingDir\\\":\\\"\\\"}\"\r\nDec 18 04:18:33 CoreOS-Che dockerd[16910]: time=\"2016-12-18T04:18:33.632070540Z\" level=error msg=\"Handler for POST /v1.20/containers/create returned error: no such file or directory\"\r\n```\r\n\r\n* Problem started happening recently, didn't happen in an older version of Che: Unknown\r\n* Problem can be reliably reproduced, doesn't happen randomly: Yes (at least on my server)\r\n"},"comment":{"url":"https://api.github.com/repos/eclipse/che/issues/comments/267858503","html_url":"https://github.com/eclipse/che/issues/3418#issuecomment-267858503","issue_url":"https://api.github.com/repos/eclipse/che/issues/3418","id":267858503,"user":{"login":"monaka","id":101795,"avatar_url":"https://avatars.githubusercontent.com/u/101795?v=3","gravatar_id":"","url":"https://api.github.com/users/monaka","html_url":"https://github.com/monaka","followers_url":"https://api.github.com/users/monaka/followers","following_url":"https://api.github.com/users/monaka/following{/other_user}","gists_url":"https://api.github.com/users/monaka/gists{/gist_id}","starred_url":"https://api.github.com/users/monaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monaka/subscriptions","organizations_url":"https://api.github.com/users/monaka/orgs","repos_url":"https://api.github.com/users/monaka/repos","events_url":"https://api.github.com/users/monaka/events{/privacy}","received_events_url":"https://api.github.com/users/monaka/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T00:27:11Z","updated_at":"2016-12-19T00:27:11Z","body":"By running script by hand, docker.sh gets the mount point correctly.\r\nSo I suspect it is caused by the default che.properties. Is it possible?\r\n\r\n```\r\nbash-4.3# get_che_server_container_id() {\r\n>   # Returning `hostname` doesn't work when running Che on OpenShift/Kubernetes.\r\n>   # In these cases `hostname` correspond to the pod ID that is different from\r\n>   # the container ID\r\n>   hostname\r\n> }\r\nbash-4.3# get_che_data_from_host() {\r\n>   DEFAULT_DATA_HOST_PATH=/home/user/che\r\n>   CHE_SERVER_CONTAINER_ID=$(get_che_server_container_id)\r\n>   # If `docker inspect` fails $DEFAULT_DATA_HOST_PATH is returned\r\n>   echo $(docker inspect --format='{{(index .Volumes \"/data\")}}' $CHE_SERVER_CONTAINER_ID 2>/dev/null || echo $DEFAULT_DATA_HOST_PATH)\r\n> }\r\nbash-4.3# get_che_data_from_host\r\n/home/user/che\r\n```\r\n"}}
{"actor":{"display_login":"monaka"}}