che icon indicating copy to clipboard operation
che copied to clipboard

Not able to import projects from my Github account though can see the projects listed.

Open gma-git-admin opened this issue 10 years ago • 42 comments

err.txt

Am facing this issue for a while on Che 4.7.0 on EC2 ubuntu 14.04 running on remote. I am trying to import projects from GitHub while selecting Node stack. It works fine till starting the workspace and gets stuck while creating project. When within the workspace if I select Workspace->Import Project it shows a blank dialog box with the import button. So I don't find any ways to import projects from my github account. Please help. The error log files are mostly blank and at times they have this line at the end: Client has aborted connection. Response writing omitted.

Reproduction Steps:

  1. Select Create New Workspace from Dashboard page
  2. Select Source as Import from existing location' on New Workspace page
  3. Select Github from the available options. All the available projects are listed there
  4. Select a specific project
  5. Select Create new workspace from stack from Select Workspace option 6, Click the Create button

It should clone the github repo and create a new project in the workspace

The program gets stuck at the Create Project step and the log is mostly blank while at times have the following line in the end [o.e.c.impl.ContainerResponse 93] - Client has aborted connection. Response writing omitted.

Che version: 4.7.0
OS and version: EC2 Ubuntu 14.04 Trusty
Docker version: 1.12.1
Che install: Docker container

Additional information:

  • Problem started happening recently, didn't happen in an older version of Che: Not Sure
  • Problem can be reliably reproduced, doesn't happen randomly: Yes

gma-git-admin avatar Sep 06 '16 21:09 gma-git-admin

@gma-git-admin can you share a screenshot please? Empty import menu is smth very unusual.

ghost avatar Sep 07 '16 04:09 ghost

@gma-git-admin, are you also getting a "timeout" message?

thyeun avatar Sep 07 '16 14:09 thyeun

@eivantsov please find the screenshot as requested

che-import

Also I observed that am not able to create a sample project either. After a while it gets stuck and I get a Retry button. When I get into the workspace I do find the project however with a red cross mark and I can't delete the project either. While in the dashboard view there is no project listed for the given workspace. I guess there is problem while working with projects. Am not sure what's wrong here.

gma-git-admin avatar Sep 07 '16 16:09 gma-git-admin

@thyeun Am not sure about that though it seems similar to that. Most of the time there are blank logs and sometimes we get the ones that is already uploaded.

gma-git-admin avatar Sep 07 '16 17:09 gma-git-admin

@gma-git-admin it look like you are not using the newer che launcher. So, which che launcher syntax are you using?

thyeun avatar Sep 07 '16 18:09 thyeun

@thyeun Am using the following command to launch Che

sudo docker run --rm -t -v /var/run/docker.sock:/var/run/docker.sock -e CHE_HOST_IP=<My_EC2_Public_IP> -e CHE_PORT=8080 -e CHE_CONF_FOLDER=/etc/che eclipse/che start

This is taken from https://eclipse-che.readme.io/docs/usage-docker

gma-git-admin avatar Sep 07 '16 21:09 gma-git-admin

@gma-git-admin - that syntax looks good. Your issue is very unusual. Could you try a couple things for me, please. The eclipse/che image is a pointer to another one that is more actively maintained, codenvy/che-launcher. So please, can you do some things for me.

# First, delete all of your docker images on your existing system, especially any related to codenvy/che-server and eclipse/che.  Use `docker rm -f <imgid>`

docker run --rm -t -v /var/run/docker.sock:/var/run/docker.sock -e CHE_HOST_IP=<ip> -e CHE_VERSION=4.7.0 codenvy/che-launcher:nightly start

If you want a simpler interface, we have a CLI that you can install - it simplifies a lot of this stuff. You can just configure some of these vars and then run che start, che stop. https://eclipse-che.readme.io/docs/che-getting-started

Let us know if the issue still happens.

TylerJewell avatar Sep 07 '16 23:09 TylerJewell

Thanks @TylerJewell for the detailed help. I followed your instruction but the result was almost same.

So after installing Che, I tried following:

  1. Create project from dashboard using NodeJS sample. It got stuck. The corresponding screenshot and log is attached.
  2. Open the workspace, create project from workspace menu. An error dialog box appears with blank no message even though a project appears in the project explorer window. The screenshot is attached.
  3. Import project from workspace menu. The blank Import Project dialog box appears as earlier. Please note that the OAuth details for Github was not provided yet. The screenshort is attached.

The log output of the first step though provides some indication.

[STDOUT] 2016-09-08 03:58:18,992[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 910]        - Deploying web application archive /home/user/che/ws-agent/webapps/wsagent.war
[STDOUT] 2016-09-08 03:58:24,343[ost-startStop-1]  [ERROR] 
[e.c.p.m.s.c.c.ClasspathManager 87]   - Maven server not started looks like you don't have Maven in your path

And a simple google search took me to https://github.com/eclipse/che/issues/1482. But I couldn't follow the instruction there.

A docker version command produces the following output:

Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:22:43 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:22:43 2016
 OS/Arch:      linux/amd64

che_create_project che_create_project_dashboard che_import_project

gma-git-admin avatar Sep 08 '16 04:09 gma-git-admin

@gma-git-admin Have you tried to do that in an incognito mode?

Also, can you try to create a new workspace, create project in it and see if there are any errors in the browser dev console? Can you send us screenshots of these steps with browser dev console opened?

ddementieva avatar Sep 08 '16 08:09 ddementieva

@ddementtieva Let me try in the incognito mode. But I want to get hang of this issue. Are all this problems just because of that? The issue of maven server not starting as seen in the attached log has anything to do with this? Or is my docker causing this as I find in issue #1482. Am quite clueless about all this and some guidance and explanation would be of great help. Thanks.

gma-git-admin avatar Sep 08 '16 14:09 gma-git-admin

We have never seen this issue before. So we do not know the root cause. All of our ideas are experiments to try and get some clues.

TylerJewell avatar Sep 08 '16 14:09 TylerJewell

@gma-git-admin can you clear your browser data (cache images and file, browsing history, and download history). Because one of your screenshoot are same with my issue before.

thyeun avatar Sep 08 '16 15:09 thyeun

@thyeun I did exactly what you suggested with the same result.

I guess the problem is the conflict between external and internal IP address usage with Docker in the EC2 environment. And as it appeared from the log file that there is problem in communication between the Che Server and the workspace agent.

I ran the following command:

sudo che info --networking and following is the output:

WARNING: No swap limit support
INFO:
INFO: ---------------------------------------
INFO: --------   CONNECTIVITY TEST   --------
INFO: ---------------------------------------
INFO: Browser             => Workspace Agent (Hostname)   : Connection succeeded
INFO: Browser             => Workspace Agent (External IP): Connection succeeded
Unable to find image 'codenvy/che-server:latest' locally
latest: Pulling from codenvy/che-server
Digest: sha256:ca680e83a16b816fcb4d4cf9ccd0c356898856298d4d4dba129c47585ed71c32
Status: Downloaded newer image for codenvy/che-server:latest
curl: (6) Couldn't resolve host ' '
/usr/local/bin/che: line 887: -I: command not found
INFO: Che Server          => Workspace Agent (External IP): Connection failed
INFO: Che Server          => Workspace Agent (Internal IP): Connection succeeded

Now it's clear that Che Server to Workspace Agent on External IP connection is failing. I generally run Che on the external IP so that it's accessible remotely. Hope this gives you guys some clue.

gma-git-admin avatar Sep 08 '16 17:09 gma-git-admin

@gma-git-admin - there was a bug in the Che CLI that would cause that problem. Can you get the latest from master (just download it again) and rerun it. Another user had this issue and we saw that this test was reporting certain things incorrectly.

TylerJewell avatar Sep 08 '16 17:09 TylerJewell

@TylerJewell so do you mean to run the following command again after clearing the existing docker che images?

docker run --rm -t -v /var/run/docker.sock:/var/run/docker.sock -e CHE_HOST_IP=<ip> -e CHE_VERSION=4.7.0 codenvy/che-launcher:nightly start

If so, then I did just that before reporting my last update.

gma-git-admin avatar Sep 08 '16 17:09 gma-git-admin

Yes - ok, thanks. Also please grab the latest CLI from master - just redownload it and then rerun "che info --networking"

TylerJewell avatar Sep 08 '16 17:09 TylerJewell

@TylerJewell So, I did all that with no change in fortune. Also, I did a few things on my end:

  1. In che.properties file modified the che_host with the public ip address of the ec2 instance machine.docker.che_api.endpoint=http://<EC2_Public_IP>:${SERVER_PORT}/wsmaster/api

This resolved the network issue as highlighted in my earlier comment

  1. Installed Java version 1.8.0_101 and this resolved the Maven server not getting started as found in the logs

But it still didn't solve my problem of not getting the projects created. I can't create it from dashboard, neither from within the workspace and nor can import one from GitHub.

I tried all the options suggested so far; getting the nightly build for che, getting the latest che cli, and accessing the IDE from incognito Chrome window after clearing out all history cache etc. It's still the same output with similar screenshots that is shared with earlier comments.

Please note that am using AWS EC2 Ubuntu environment for this installation.

gma-git-admin avatar Sep 08 '16 20:09 gma-git-admin

Please look at @ddementieva note - she is wanting some screen shots of chrome developer console to see if there are any debugging stack traces in there.

TylerJewell avatar Sep 08 '16 20:09 TylerJewell

@TylerJewell and @ddementieva:

I tried to create new project in existing workspace with the following result:

The dashboard view

create_project_dashboard_err_view

The dev consolve view

che_create_project_console_log

And the log file which is considerably different than earlier ones

create_project_log.txt

Hope this helps. Thanks.

gma-git-admin avatar Sep 08 '16 21:09 gma-git-admin

@ashumilova - any ideas? It looks like the agent has not been successfully started. @gma-git-admin - are you sure that there are no error outputs in the section titled "Starting workspace agent..."?

TylerJewell avatar Sep 08 '16 22:09 TylerJewell