【问题标题】:Can't run Ecplise Che under ubuntuubuntu下无法运行Eclipse Che
【发布时间】:2016-05-26 15:56:49
【问题描述】:

我想在远程 ubuntu 14.04 服务器上安装 Eclipse Che IDE。这是我所做的:

  1. 打开了从我的笔记本电脑到 ubuntu 服务器的 SSH 会话,以“useradm”身份登录
  2. 关注this URL安装docker
  3. 在 /home/useradm/ 我从here 下载了一个 TAR.GZ 文件
  4. bin/che.sh -i run,得到这个:
Starting Che server in docker container named che.
A Docker container named che does not exist or duplicate conflict was discovered.
Cleaning up any zombie containers named che...
Pulling the Docker image labeled codenvy/che:latest...
latest: Pulling from codenvy/che
72b39c1d4615: Pull complete 
46a2d5ede4a6: Pull complete 
d7caf6e91ad4: Pull complete 
c7ac9f284354: Pull complete 
a3ed95caeb02: Pull complete 
622afa89a87c: Pull complete 
5f4e252666a5: Pull complete 
8302e51d25eb: Pull complete 
Digest: sha256:19a8b73c5349604d746b3ad27dd78d4fbdb32933ab496e1f1b3ed77928cea355
Status: Downloaded newer image for codenvy/che:latest
Launching a new Docker container named che from image codenvy/che:latest...
e504a0ba54f87b4dd4a5b417ce540c3f43084818fb677b40f4c5e8f90669f002
Docker container named che successfully started.
Launching Che in a container named che...
sudo: unable to send audit message: Operation not permitted
bash: line 1:    10 Segmentation fault      (core dumped) sudo rm -rf /home/user/che/lib-copy/* 
  1. 找到解决方案here:启动了这个
sudo usermod -aG docker useradm
logout
  1. 打开了新的 SSH 会话,再次运行 bin/che.sh -i run,得到了这个:
############## HOW TO CONNECT YOUR CHE CLIENT ###############
After Che server has booted, you can connect your clients by:
...
15:04:36,897 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[file] - File property is set to [null]
15:04:36,899 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[file] - Failed to create parent directories for [/home/user/che/tomcat/logs/2016/05/26/catalina-0.log]
...
2016-05-26 15:04:38,608[ost-startStop-1]  [ERROR] [o.a.j.EmbeddedServletOptions 692]    - The scratchDir you specified: /home/user/che/tomcat/work/Catalina/localhost/dashboard is unusable.
...
2016-05-26 15:04:42,025[main]             [INFO ] [o.a.c.http11.Http11NioProtocol 514]  - Stopping ProtocolHandler ["http-nio-8080"]
2016-05-26 15:04:42,026[main]             [INFO ] [o.a.c.http11.Http11NioProtocol 529]  - Destroying ProtocolHandler ["http-nio-8080"]

我的步骤有什么问题? :(

在我的浏览器中,http://172.16.16.11:8080/ 工作正常:

This is the default Tomcat home page. It can be found on the local filesystem at: /var/lib/tomcat7/webapps/ROOT/index.html

我是否必须将 Che 文件从 /home/useradm/ 移动到 /var/lib/tomcat7/webapps/ROOT/?

更新:我跑了bin/che.sh run(没有任何参数),我得到了这个:

[ERROR] [o.a.c.http11.Http11NioProtocol 460]  - Failed to initialize end point associated with ProtocolHandler ["http-nio-8080"]

tomcat使用了8080端口,是否应该停止tomcat服务?

更新:我是对的 :) 我停止了 tomcat:

sudo service tomcat7 stop

我得到了这个:

############## HOW TO CONNECT YOUR CHE CLIENT ###############
After Che server has booted, you can connect your clients by:
1. Open browser to http://localhost:8080, or:
2. Open native chromium app.
#############################################################
...
Server startup in 6151 ms

但是http://172.16.16.11:8080还是显示tomcat主页,不是Che界面!?当它显示“http://localhost:8080”而不是服务器 IP 时是正常消息吗?

UPDATE这是浏览器缓存问题,我停止了Che,重新加载http://172.16.16.11:8080,404,我再次运行Che,现在可以了:)

【问题讨论】:

    标签: ubuntu docker eclipse-che


    【解决方案1】:

    正确的步骤是:

    1. 在任意文件夹中解压文件
    2. 安装 JRE 8:
    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java8-installer
    
    1. 检查 java 版本:java -version,这是我得到的:
    useradm@modlamp01:~/eclipse-che-4.0.1$ java -version
    java version "1.8.0_91"
    Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
    
    1. 设置 JAVA_HOME 变量:
    export JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre
    export PATH=$JAVA_HOME/bin:$PATH` 
    WARNING : you have to point to the folder witch contains le "lib" one, to find your java install folder use this : `readlink -f $(which java)
    
    1. 确保 8080 端口空闲
    2. 运行这个:bin/che.sh run,不带参数,如果出现问题,这个命令会显示错误

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-29
      • 1970-01-01
      • 2013-09-04
      • 2017-12-30
      • 1970-01-01
      • 2016-05-05
      相关资源
      最近更新 更多