Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse CHE with Traefik and Single Port #16110

Closed
mstavares opened this issue Feb 24, 2020 · 7 comments
Closed

Eclipse CHE with Traefik and Single Port #16110

mstavares opened this issue Feb 24, 2020 · 7 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach

Comments

@mstavares
Copy link

Hi,

I already have read a lot about this, and I would like to know if this is still not possible on 6.14 version of CHE.
One of the tickets that I have found was this one #13367

I would like to have Eclipse CHE behind of traefik, but in order to do that I need to have single port support and the problem regarding rewriting the URL is messing me.

Thank you.

@mstavares mstavares added the kind/question Questions that haven't been identified as being feature requests or bugs. label Feb 24, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Feb 24, 2020
@ibuziuk
Copy link
Member

ibuziuk commented Feb 24, 2020

@mstavares hello, FYI che 6 version is out-of-support.
@l0rd @benoitf could you please take a look at this question, I'm not sure if we support Che 7 behind traefik

@ibuziuk ibuziuk added team/devex status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Feb 24, 2020
@mstavares
Copy link
Author

Hi,

Right now I already have access to the eclipse che dashboard. However, I'm not able to start a workspace, keeps blocking on starting status.

020-02-24 22:18:30,664[main]             [INFO ] [o.a.c.s.VersionLoggerListener 89]    - Server version:        Apache Tomcat/8.5.23
2020-02-24 22:18:30,667[main]             [INFO ] [o.a.c.s.VersionLoggerListener 91]    - Server built:          Sep 28 2017 10:30:11 UTC
2020-02-24 22:18:30,667[main]             [INFO ] [o.a.c.s.VersionLoggerListener 93]    - Server number:         8.5.23.0
2020-02-24 22:18:30,668[main]             [INFO ] [o.a.c.s.VersionLoggerListener 95]    - OS Name:               Linux
2020-02-24 22:18:30,668[main]             [INFO ] [o.a.c.s.VersionLoggerListener 97]    - OS Version:            4.15.0-29-generic
2020-02-24 22:18:30,669[main]             [INFO ] [o.a.c.s.VersionLoggerListener 99]    - Architecture:          amd64
2020-02-24 22:18:30,669[main]             [INFO ] [o.a.c.s.VersionLoggerListener 101]   - Java Home:             /usr/lib/jvm/java-1.8-openjdk/jre
2020-02-24 22:18:30,669[main]             [INFO ] [o.a.c.s.VersionLoggerListener 103]   - JVM Version:           1.8.0_131-b11
2020-02-24 22:18:30,670[main]             [INFO ] [o.a.c.s.VersionLoggerListener 105]   - JVM Vendor:            Oracle Corporation
2020-02-24 22:18:30,670[main]             [INFO ] [o.a.c.s.VersionLoggerListener 107]   - CATALINA_BASE:         /home/user/eclipse-che/tomcat
2020-02-24 22:18:30,670[main]             [INFO ] [o.a.c.s.VersionLoggerListener 109]   - CATALINA_HOME:         /home/user/eclipse-che/tomcat
2020-02-24 22:18:30,671[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.util.logging.config.file=/home/user/eclipse-che//tomcat/conf/logging.properties
2020-02-24 22:18:30,671[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
2020-02-24 22:18:30,672[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.docker.network=bridge
2020-02-24 22:18:30,672[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dport.http=8443
2020-02-24 22:18:30,673[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.home=/home/user/eclipse-che/
2020-02-24 22:18:30,674[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.logs.dir=/logs/
2020-02-24 22:18:30,674[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.logs.level=INFO
2020-02-24 22:18:30,674[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djuli-logback.configurationFile=file:/home/user/eclipse-che//tomcat/conf/tomcat-logger.xml
2020-02-24 22:18:30,675[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
2020-02-24 22:18:30,675[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
2020-02-24 22:18:30,675[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcom.sun.management.jmxremote
2020-02-24 22:18:30,676[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcom.sun.management.jmxremote.ssl=false
2020-02-24 22:18:30,676[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
2020-02-24 22:18:30,676[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dche.local.conf.dir=/home/user/eclipse-che//tomcat/conf/
2020-02-24 22:18:30,677[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcatalina.base=/home/user/eclipse-che//tomcat
2020-02-24 22:18:30,677[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Dcatalina.home=/home/user/eclipse-che//tomcat
2020-02-24 22:18:30,678[main]             [INFO ] [o.a.c.s.VersionLoggerListener 115]   - Command line argument: -Djava.io.tmpdir=/home/user/eclipse-che//tomcat/temp
2020-02-24 22:18:30,783[main]             [INFO ] [o.a.c.http11.Http11NioProtocol 573]  - Initializing ProtocolHandler ["http-nio-8443"]
2020-02-24 22:18:30,798[main]             [INFO ] [o.a.t.util.net.NioSelectorPool 67]   - Using a shared selector for servlet write/read
2020-02-24 22:18:30,801[main]             [INFO ] [o.a.catalina.startup.Catalina 632]   - Initialization processed in 425 ms
2020-02-24 22:18:30,881[main]             [INFO ] [c.m.JmxRemoteLifecycleListener 336]  - The JMX Remote Listener has configured the registry on port [32001] and the server on port [32101] for the [Platform] server
2020-02-24 22:18:30,882[main]             [INFO ] [o.a.c.core.StandardService 416]      - Starting service [Catalina]
2020-02-24 22:18:30,882[main]             [INFO ] [o.a.c.core.StandardEngine 259]       - Starting Servlet Engine: Apache Tomcat/8.5.23
2020-02-24 22:18:31,429[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 959]        - Deploying web application archive [/home/user/eclipse-che/tomcat/webapps/workspace-loader.war]
2020-02-24 22:18:31,588[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 1023]       - Deployment of web application archive [/home/user/eclipse-che/tomcat/webapps/workspace-loader.war] has finished in [155] ms
2020-02-24 22:18:31,595[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 959]        - Deploying web application archive [/home/user/eclipse-che/tomcat/webapps/api.war]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/user/eclipse-che/tomcat/webapps/api/WEB-INF/lib/slf4j-simple-1.7.24.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/user/eclipse-che/tomcat/webapps/api/WEB-INF/lib/logback-classic-1.2.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
[localhost-startStop-1] INFO org.eclipse.che.core.db.JNDIDataSourceFactory - This=org.eclipse.che.core.db.h2.H2SQLJndiDataSourceFactory@4920738 obj=ResourceRef[className=javax.sql.DataSource,factoryClassLocation=null,factoryClassName=org.apache.naming.factory.ResourceFactory,{type=scope,content=Shareable},{type=auth,content=Container},{type=singleton,content=true},{type=factory,content=org.eclipse.che.api.CommonJndiDataSourceFactory}] name=che Context=org.apache.naming.NamingContext@554cc549 environment={}
[localhost-startStop-1] INFO org.flywaydb.core.internal.dbsupport.DbSupportFactory - Database: jdbc:h2:che (H2 1.4)
[localhost-startStop-1] INFO org.flywaydb.core.internal.util.VersionPrinter - Flyway 4.2.0 by Boxfuse
[localhost-startStop-1] INFO org.flywaydb.core.internal.dbsupport.DbSupportFactory - Database: jdbc:h2:che (H2 1.4)
[localhost-startStop-1] INFO org.eclipse.che.core.db.schema.impl.flyway.CustomSqlMigrationResolver - Searching for sql scripts in locations [classpath:che-schema]
[localhost-startStop-1] INFO org.flywaydb.core.internal.command.DbValidate - Successfully validated 36 migrations (execution time 00:00.070s)
[localhost-startStop-1] INFO org.flywaydb.core.internal.command.DbMigrate - Current version of schema "PUBLIC": 6.12.0.1
[localhost-startStop-1] INFO org.flywaydb.core.internal.command.DbMigrate - Schema "PUBLIC" is up to date. No migration necessary.
[localhost-startStop-1] INFO org.eclipse.che.workspace.infrastructure.docker.local.projects.LocalProjectsMigrator - Starting migration of workspace project files
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ws-agent:1.0.0' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.java:1.0.1' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.yaml:1.0.0' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ssh:1.0.0' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ws-agent:1.0.1' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.clangd:1.0.0' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.python:1.0.4' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ws-agent:1.0.2' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.php:5.4.0' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.json:1.0.1' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.git-credentials:1.0.0' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.exec:1.0.0' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.golang:0.1.7' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.unison:1.0.0' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.camel:1.0.0' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.exec:1.0.1' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.php:2.0.1' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.terminal:1.0.0' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.terminal:1.0.1' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.php:5.3.7' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.python:1.0.3' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ws-agent:1.0.3' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.csharp:1.0.1' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.installer.server.impl.LocalInstallerRegistry - Latest version of installer 'org.eclipse.che.ls.js-ts:1.0.1' is already in the registry.
[localhost-startStop-1] INFO org.eclipse.che.api.workspace.server.WorkspaceRuntimes - Configured factories for environments: '[compose, dockerimage, dockerfile]'
[localhost-startStop-1] INFO org.eclipse.che.api.workspace.server.WorkspaceRuntimes - Registered infrastructure 'docker'
[localhost-startStop-1] WARN org.eclipse.che.api.workspace.server.WorkspaceRuntimes - Not recoverable infrastructure: 'docker'
[localhost-startStop-1] WARN org.eclipse.che.api.workspace.activity.WorkspaceActivityManager - Value of property "che.limits.workspace.idle.timeout" is below recommended minimum (5 minutes). This may cause problems with workspace components startup and/or premature workspace shutdown.
[localhost-startStop-1] INFO org.eclipse.che.infrastructure.docker.client.DockerRegistryChecker - Probing registry 'http://172.17.0.1:5000'
[localhost-startStop-1] INFO org.eclipse.che.infrastructure.docker.client.DockerRegistryChecker - Probe of registry 'http://172.17.0.1:5000' succeed with HTTP response code '200'
2020-02-24 22:18:39,554[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 1023]       - Deployment of web application archive [/home/user/eclipse-che/tomcat/webapps/api.war] has finished in [7,959] ms
2020-02-24 22:18:39,556[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 959]        - Deploying web application archive [/home/user/eclipse-che/tomcat/webapps/ROOT.war]
[Annotated-scheduler-0] INFO org.eclipse.che.workspace.infrastructure.docker.monit.DockerAbandonedResourcesCleaner - List containers registered in the api: []
2020-02-24 22:18:41,102[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 1023]       - Deployment of web application archive [/home/user/eclipse-che/tomcat/webapps/ROOT.war] has finished in [1,546] ms
2020-02-24 22:18:41,103[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 959]        - Deploying web application archive [/home/user/eclipse-che/tomcat/webapps/dashboard.war]
2020-02-24 22:18:42,476[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 1023]       - Deployment of web application archive [/home/user/eclipse-che/tomcat/webapps/dashboard.war] has finished in [1,372] ms
2020-02-24 22:18:42,481[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 959]        - Deploying web application archive [/home/user/eclipse-che/tomcat/webapps/swagger.war]
2020-02-24 22:18:42,675[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 1023]       - Deployment of web application archive [/home/user/eclipse-che/tomcat/webapps/swagger.war] has finished in [193] ms
2020-02-24 22:18:42,675[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 959]        - Deploying web application archive [/home/user/eclipse-che/tomcat/webapps/docs.war]
2020-02-24 22:18:43,974[ost-startStop-1]  [INFO ] [o.a.c.startup.HostConfig 1023]       - Deployment of web application archive [/home/user/eclipse-che/tomcat/webapps/docs.war] has finished in [1,299] ms
2020-02-24 22:18:44,063[main]             [INFO ] [o.a.c.http11.Http11NioProtocol 632]  - Starting ProtocolHandler ["http-nio-8443"]
2020-02-24 22:18:44,241[main]             [INFO ] [o.a.catalina.startup.Catalina 683]   - Server startup in 13439 ms
[http-nio-8443-exec-5] INFO org.eclipse.che.api.workspace.server.WorkspaceRuntimes - Starting workspace 'che/wksp-7ctj' with id 'workspaceoc0cvnapzlkaaw0n' by user 'che'

@mstavares
Copy link
Author

mstavares commented Feb 25, 2020

I have tried just single port configuration and I got this :(

Firefox can’t establish a connection to the server at ws://exec-agent-ws-dev-machine-workspace4q390x43dhkb4mv2."my-ip-address".nip.io:8081/connect?token=.

Is my call missing the token parameter?

@mstavares
Copy link
Author

Hi,

Any news about this?

Thank you

1 similar comment
@mstavares
Copy link
Author

Hi,

Any news about this?

Thank you

@l0rd
Copy link
Contributor

l0rd commented Mar 29, 2020

@mstavares please try on latest Che (v7.10.0)

@che-bot
Copy link
Contributor

che-bot commented Oct 1, 2020

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 1, 2020
@che-bot che-bot closed this as completed Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. status/analyzing An issue has been proposed and it is currently being analyzed for effort and implementation approach
Projects
None yet
Development

No branches or pull requests

4 participants