{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/che/issues/1438","repository_url":"https://api.github.com/repos/eclipse/che","labels_url":"https://api.github.com/repos/eclipse/che/issues/1438/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/che/issues/1438/comments","events_url":"https://api.github.com/repos/eclipse/che/issues/1438/events","html_url":"https://github.com/eclipse/che/issues/1438","id":158683482,"number":1438,"title":"Che on AWS EC2 to allow remote browser clients through SSH tunnel","user":{"login":"GuSuku","id":7787041,"avatar_url":"https://avatars.githubusercontent.com/u/7787041?v=3","gravatar_id":"","url":"https://api.github.com/users/GuSuku","html_url":"https://github.com/GuSuku","followers_url":"https://api.github.com/users/GuSuku/followers","following_url":"https://api.github.com/users/GuSuku/following{/other_user}","gists_url":"https://api.github.com/users/GuSuku/gists{/gist_id}","starred_url":"https://api.github.com/users/GuSuku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuSuku/subscriptions","organizations_url":"https://api.github.com/users/GuSuku/orgs","repos_url":"https://api.github.com/users/GuSuku/repos","events_url":"https://api.github.com/users/GuSuku/events{/privacy}","received_events_url":"https://api.github.com/users/GuSuku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-06T13:54:12Z","updated_at":"2016-06-06T15:51:33Z","closed_at":null,"body":"I have set up Che on EC2 and can fully work on it through a firefox running locally on that host (using VNC for remote viewing). But I am not able to do the same if I access it on my laptop's browser:\r\n\r\n```\r\nThe security settings for EC2 are as follows:\r\nType\t\t\tProtocol\t\tPort Range\t\tSource\r\nCustom TCP Rule\t\tTCP\t\t\t32768 - 65535\t\t73.XXX.XXX.XX/32\r\nSSH\t\t\tTCP\t\t\t22\t\t\t73.XXX.XXX.XX/32\r\n```\r\n\r\nWhen setting up the SSH tunnel, I forward the following way:\r\n`8080/localhost/8080`\r\n\r\nWhen starting Che on the remote, I issue the following:\r\n`~/Applications/eclipse-che-4.2.0/bin/che.sh run --remote:localhost`\r\n\r\nFrom my laptop browser's localhost:8080, I can view the dashboard and stop running workspaces. I can also start workspaces, even though I see the following log:\r\nhttps://gist.github.com/GuSuku/8e44a3c467a3414ec9be31940cd17f83\r\nTo wit, in spite of the warnings at the end (`Client has aborted connection. Response writing omitted.`), the workspace does get started.\r\n\r\nBut, from my laptop browser client, when opening a running workspace in IDE, I get the following popup:\r\n```\r\nwindow.IDE.eventHandlers.initializationFailed@http://localhost:8080/ide/wksp-65qm?uid=612032:39:27\r\nWdb@_app-0.js:1782:21\r\nieb@_app-0.js:1787:380\r\n_.Un@_app-0.js:4290:317\r\ngS/<@_app-0.js:1316:276 \r\n```\r\nAnd the IDE is stuck at `LOADING: Starting workspace agent`\r\n\r\nI am sure it has got something to do with ports, but not sure which port and what I should do.\r\n\r\n= More info: =\r\n\r\n- When I do `docker ps`, I get the following:\r\n```\r\nCONTAINER ID        IMAGE                                                        COMMAND                  CREATED             STATUS              PORTS                                                                                                                                                                         NAMES\r\n9ab79d815907        eclipse-che/che_workspaceu3p1r5ppkt1xb4ba_ws-machine_w5z4n   \"/bin/sh -c 'sudo /us\"   9 minutes ago       Up 9 minutes        0.0.0.0:32795->22/tcp, 0.0.0.0:32794->4401/tcp, 0.0.0.0:32793->4403/tcp, 0.0.0.0:32792->4411/tcp, 0.0.0.0:32791->8000/tcp, 0.0.0.0:32790->8080/tcp, 0.0.0.0:32789->9876/tcp   che_workspaceu3p1r5ppkt1xb4ba_ws-machine_w5z4n\r\n```\r\n\r\n- For the command - `docker inspect --format='{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)` - I get the following:\r\n`/che_workspaceu3p1r5ppkt1xb4ba_ws-machine_w5z4n - 172.17.0.2`\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eclipse/che/issues/comments/224001506","html_url":"https://github.com/eclipse/che/issues/1438#issuecomment-224001506","issue_url":"https://api.github.com/repos/eclipse/che/issues/1438","id":224001506,"user":{"login":"james10174","id":16562450,"avatar_url":"https://avatars.githubusercontent.com/u/16562450?v=3","gravatar_id":"","url":"https://api.github.com/users/james10174","html_url":"https://github.com/james10174","followers_url":"https://api.github.com/users/james10174/followers","following_url":"https://api.github.com/users/james10174/following{/other_user}","gists_url":"https://api.github.com/users/james10174/gists{/gist_id}","starred_url":"https://api.github.com/users/james10174/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james10174/subscriptions","organizations_url":"https://api.github.com/users/james10174/orgs","repos_url":"https://api.github.com/users/james10174/repos","events_url":"https://api.github.com/users/james10174/events{/privacy}","received_events_url":"https://api.github.com/users/james10174/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T15:51:33Z","updated_at":"2016-06-06T15:51:33Z","body":"@GuSuku Are you ssh port forwarding 32768-65535? Not sure you could forward this range through ssh. I know you are forwarding 8080 but i didn't see the rest. I don't think this is your end goal though.\r\n   So first break the ssh port forwarding just in case it is causing issues. Run bin/che.sh -r:$(curl -s https://4.ifcfg.me/) start. Then in your laptop web browser to navigate to <ipdadress>:8080/dashboard/#/ with ipdadress from above $(curl -s https://4.ifcfg.me/). If you get there try to create a workspace. You may also want to create 1gb of swap since EC2 only has 1GB of ram."}}
{"actor":{"display_login":"james10174"}}