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

Problems encountered after docker deployment #3283

Open
1 task
cow11023 opened this issue Jun 9, 2022 · 6 comments
Open
1 task

Problems encountered after docker deployment #3283

cow11023 opened this issue Jun 9, 2022 · 6 comments

Comments

@cow11023
Copy link

cow11023 commented Jun 9, 2022

  • After downloading the source code, there is no problem with the display in the docker log after executing docker compose up -d in the docker directory, but it is always inaccessible. What is the situation?
    image
    image
@cow11023
Copy link
Author

cow11023 commented Jun 9, 2022

There is another problem. There are no tables in the database. Do you only need to import an SQL file

@jmiranda
Copy link
Member

jmiranda commented Jun 9, 2022

Hey @cow11023 the database tables will be created once the application is deployed properly.

The log you've show is not one that provides enough information to debug. Usually the most informative log is going to be catalina.out under the TOMCAT_HOME/logs directory.

Could you attach the catalina.out file from the docker instance running tomcat (i.e. docker_tomcat_1)?

@cow11023
Copy link
Author

There is a catalina 2022-06-10. log:

Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name: Apache Tomcat/7.0.109
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Apr 22 2021 18:43:38 UTC
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 7.0.109.0
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 5.4.185-1.el7.elrepo.x86_64
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /usr/local/openjdk-8/jre
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_292-b10
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /usr/local/tomcat
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /usr/local/tomcat
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xms1024m
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Xmx2024m
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -XX:MaxPermSize=256m
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.security.egd=file:/dev/./urandom
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dignore.endorsed.dirs=
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/usr/local/tomcat
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/usr/local/tomcat
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
Jun 10, 2022 2:27:22 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Loaded Apache Tomcat Native library [1.2.28] using APR version [1.6.5].
Jun 10, 2022 2:27:22 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Jun 10, 2022 2:27:22 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized [OpenSSL 1.1.1d 10 Sep 2019]
Jun 10, 2022 2:27:22 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1062 ms
Jun 10, 2022 2:27:22 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Jun 10, 2022 2:27:22 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.109
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/usr/local/tomcat/webapps/openboxes.war]
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/usr/local/tomcat/webapps/openboxes.war] has finished in [291] ms
Jun 10, 2022 2:27:22 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
Jun 10, 2022 2:27:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 356 ms

@cow11023
Copy link
Author

docker-compose. There is an openboxes War, I didn't see this package. Would you like to download one at random?

@jmiranda
Copy link
Member

@cow11023 I assume there should be logs files under /usr/local/tomcat/logs. There should be either a single catalina.out file or if docker Tomcat breaks them out by output stream there will be two files (one for stdout and one for stderr). I'll need both of those. If you can't attach the files to the ticket, then send them to [email protected].

If there are no files there, I guess you'd tail the log for the container. But I assume that's what you've already been doing.
https://github.com/openboxes/openboxes-docker#working-with-the-running-containers

@jmiranda
Copy link
Member

@cow11023 Sorry, I missed this before

INFO: Java Home: /usr/local/openjdk-8/jre

The current version of OpenBoxes is based on an older version of Grails that doesn't support Java 8+. We are working on a migration to a version that supports Java 8, but it won't be ready for a few more months. Therefore, you need to use Java 7 for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants