Not able to import new project from github by organization application OAuth and get empty log
I've repackaged eclipse che with mvn clean install under che/assembly from https://github.com/eclipse/che and no error occurred. Then I uncompressed the tarball che\assembly\assembly-main\target\eclipse-che-4.2.2.zip and started it by command che -p:80 run.
My workspace can be started normally. But when I tried to import project from github, it failed. I'.m using organization application OAuth instead of personal application OAuth. And I'm the owner of this organization.
Afterwards, I tried to get some information about this failure from downloading log file by click Problems?download the logs. but it turned out a blank file.
By the way, I'm doing this in chrome observer mode.
I'm on windows 7 64 bits.
Import from GIT REPOSITORY also can't finish. OAuth also has been changed to personal instead of organization.
You are trying to import a project into a running workspace. Have you attempted to do that with a stopped workspace? Or create a new one and import?
Meanwhile, I'll check what's wrong with importing into a running ws.
I've tried create a project from git repository , which will try to create a new workspace on demand, it turned out a failure on step 4, which was Creating project. However, this time I've got a non-empty log file, which contained following content:
[DOCKER] Step 1 : FROM codenvy/ubuntu_jdk8
[DOCKER] ---> 37a7da3b7edc
[DOCKER] Successfully built 37a7da3b7edc
[STDOUT] Listening for transport dt_socket at address: 4403
[STDOUT] 2016-05-14 08:55:42,927[main] [INFO ] [o.a.c.s.VersionLoggerListener 89] - Server version: Apache Tomcat/8.0.32
[STDOUT] 2016-05-14 08:55:42,935[main] [INFO ] [o.a.c.s.VersionLoggerListener 91] - Server built: Feb 2 2016 19:34:53 UTC
[STDOUT] 2016-05-14 08:55:42,935[main] [INFO ] [o.a.c.s.VersionLoggerListener 93] - Server number: 8.0.32.0
[STDOUT] 2016-05-14 08:55:42,936[main] [INFO ] [o.a.c.s.VersionLoggerListener 95] - OS Name: Linux
[STDOUT] 2016-05-14 08:55:42,936[main] [INFO ] [o.a.c.s.VersionLoggerListener 97] - OS Version: 4.4.8-boot2docker
[STDOUT] 2016-05-14 08:55:42,936[main] [INFO ] [o.a.c.s.VersionLoggerListener 99] - Architecture: amd64
[STDOUT] 2016-05-14 08:55:42,937[main] [INFO ] [o.a.c.s.VersionLoggerListener 101] - Java Home: /opt/jdk1.8.0_45/jre
[STDOUT] 2016-05-14 08:55:42,937[main] [INFO ] [o.a.c.s.VersionLoggerListener 103] - JVM Version: 1.8.0_45-b14
[STDOUT] 2016-05-14 08:55:42,938[main] [INFO ] [o.a.c.s.VersionLoggerListener 105] - JVM Vendor: Oracle Corporation
[STDOUT] 2016-05-14 08:55:42,938[main] [INFO ] [o.a.c.s.VersionLoggerListener 107] - CATALINA_BASE: /home/user/che/ws-agent
[STDOUT] 2016-05-14 08:55:42,939[main] [INFO ] [o.a.c.s.VersionLoggerListener 109] - CATALINA_HOME: /home/user/che/ws-agent
[STDOUT] 2016-05-14 08:55:42,939[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djava.util.logging.config.file=/home/user/che/ws-agent/conf/logging.properties
[STDOUT] 2016-05-14 08:55:42,939[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[STDOUT] 2016-05-14 08:55:42,941[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Xms256m
[STDOUT] 2016-05-14 08:55:42,941[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Xmx1024m
[STDOUT] 2016-05-14 08:55:42,942[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djava.security.egd=file:/dev/./urandom
[STDOUT] 2016-05-14 08:55:42,942[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dche.logs.dir=/home/user/che/ws-agent/logs
[STDOUT] 2016-05-14 08:55:42,942[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -agentlib:jdwp=transport=dt_socket,address=4403,server=y,suspend=n
[STDOUT] 2016-05-14 08:55:42,943[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dcom.sun.management.jmxremote
[STDOUT] 2016-05-14 08:55:42,943[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dcom.sun.management.jmxremote.ssl=false
[STDOUT] 2016-05-14 08:55:42,944[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
[STDOUT] 2016-05-14 08:55:42,944[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dche.local.conf.dir=/mnt/che/conf
[STDOUT] 2016-05-14 08:55:42,944[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djava.endorsed.dirs=/home/user/che/ws-agent/endorsed
[STDOUT] 2016-05-14 08:55:42,944[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dcatalina.base=/home/user/che/ws-agent
[STDOUT] 2016-05-14 08:55:42,945[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dcatalina.home=/home/user/che/ws-agent
[STDOUT] 2016-05-14 08:55:42,945[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djava.io.tmpdir=/home/user/che/ws-agent/temp
[STDOUT] 2016-05-14 08:55:43,060[main] [INFO ] [o.a.c.http11.Http11NioProtocol 425] - Initializing ProtocolHandler ["http-nio-4401"]
[STDOUT] 2016-05-14 08:55:43,070[main] [INFO ] [o.a.t.util.net.NioSelectorPool 72] - Using a shared selector for servlet write/read
[STDOUT] 2016-05-14 08:55:43,073[main] [INFO ] [o.a.catalina.startup.Catalina 591] - Initialization processed in 483 ms
[STDOUT] 2016-05-14 08:55:43,129[main] [INFO ] [c.m.JmxRemoteLifecycleListener 332] - The JMX Remote Listener has configured the registry on port 32002 and the server on port 32102 for the Platform server
[STDOUT] 2016-05-14 08:55:43,133[main] [INFO ] [o.a.c.core.StandardService 435] - Starting service Catalina
[STDOUT] 2016-05-14 08:55:43,133[main] [INFO ] [o.a.c.core.StandardEngine 259] - Starting Servlet Engine: Apache Tomcat/8.0.32
[STDOUT] 2016-05-14 08:55:43,221[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 910] - Deploying web application archive /home/user/che/ws-agent/webapps/ide.war
[STDOUT] Sat May 14 08:55:49 UTC 2016 - [localhost-startStop-1] Product-specified preferences called before plugin is started
[STDOUT] 2016-05-14 08:55:50,308[rrest.WSClient1] [INFO ] [.c.a.c.n.WSocketEventBusClient 223] - Open connection to ws://che-host:80/ide/api/eventbus/?token=dummy_token.
[STDOUT] 2016-05-14 08:55:50,485[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 974] - Deployment of web application archive /home/user/che/ws-agent/webapps/ide.war has finished in 7,262 ms
[STDOUT] 2016-05-14 08:55:50,486[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 1030] - Deploying web application directory /home/user/che/ws-agent/webapps/ROOT
[STDOUT] 2016-05-14 08:55:50,561[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 1142] - Deployment of web application directory /home/user/che/ws-agent/webapps/ROOT has finished in 74 ms
[STDOUT] 2016-05-14 08:55:50,570[main] [INFO ] [o.a.c.http11.Http11NioProtocol 470] - Starting ProtocolHandler ["http-nio-4401"]
[STDOUT] 2016-05-14 08:55:50,574[main] [INFO ] [o.a.catalina.startup.Catalina 642] - Server startup in 7500 ms
[STDOUT] 2016-05-14 08:55:50,847[nio-4401-exec-1] [WARN ] [i.ContainerResponse$BodyWriter 90] - Client has aborted connection. Response writing omitted.
What did that mean?
I cannot reproduce this. Can you give me the exact steps to follow?
Let me do some more tests. I could not create a new project yet. I'm using che 4.2.2, which was compiled myself with source from github. Output of command git branch -a was as following:
$ git branch -a
* 4.2.2
remotes/backup/master
remotes/origin/4.0.x
remotes/origin/4.1.x
remotes/origin/4.2.x
remotes/origin/CHE-1056
remotes/origin/CHE-1078
remotes/origin/CHE-1095
remotes/origin/CHE-1112
remotes/origin/CHE-1144
remotes/origin/CHE-1230
remotes/origin/CHE-167
remotes/origin/CHE-243
remotes/origin/CHE-243-2
remotes/origin/CHE-277
remotes/origin/CHE-320
remotes/origin/CHE-336
remotes/origin/CHE-909
remotes/origin/CHE-920
remotes/origin/CODENVY-278
remotes/origin/CODENVY-323
remotes/origin/CODENVY-350
remotes/origin/CODENVY-377
remotes/origin/CODENVY-419
remotes/origin/CODENVY-441
remotes/origin/CODENVY-479
remotes/origin/CODENVY-502
remotes/origin/CODENVY-93
remotes/origin/CODENVY-93-2
remotes/origin/HEAD -> origin/master
remotes/origin/TylerJewell-patch-1
remotes/origin/clientApiMAchineImprove
remotes/origin/codenvy-424
remotes/origin/fixWrongMerge
remotes/origin/fix_fields_naming
remotes/origin/master
remotes/origin/minimal
remotes/origin/multibinderHack
remotes/origin/openshift
remotes/origin/projectManager
remotes/origin/projectsSyncer
remotes/origin/providedAttributes
remotes/origin/proxy-settings-in-vagrantfile
remotes/origin/remove_ga_label
remotes/origin/revert-1085-CHE-243
remotes/origin/revert-767-CHE-708
remotes/origin/websocket-url-fix
remotes/origin/workspace-name-validation
I checked out this branch by command git checkout 4.2.2 -b 4.2.2.
Out put of command git remote -v was as following:
$ git remote -v
origin https://github.com/eclipse/che.git (fetch)
origin https://github.com/eclipse/che.git (push)
My package was built by mvn clean install within directory che/assembly.
I've tried drop virtual machine che and reload codenvy/ubuntu_jdk8, which was fine for creating new project with workspace, but it turned out a failure.
And I'm going to try this and post the results:
- remove github authorization settings;
- repackage my
che; - rollback any changes in
che.properties;
Please provide specific details. It's not clear for me what the error is.
Just tried 4.2.2 - no issues with project creation on my side. Give it a shot in an incognito tab.
@eivantsov Thanks a lot! I'm still not sure what's going wrong. And I'm still can not create new project. I'll do more tests 8 hours later.
@eivantsov I'll close this issue temporarily for poor time to do more tests right now. I'll test it later as soon as I can. It's most probably individual cases.
Am facing exactly same issue. 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.**
@gma-git-admin Are there any errors in the browser console? Can you record a short screencast video with a problem?