otter Docker 卡在 start manager

jq6vz3qz  于 2022-10-25  发布在  Docker
关注(0)|答案(2)|浏览(168)

使用 Docker Quickstart 后,docker logs 如下:

DOCKER_DEPLOY_TYPE=VM
==> INIT /alidata/init/02init-sshd.sh
==> EXIT CODE: 0                                                                                                                                              ==> INIT /alidata/init/fix-hosts.py
==> EXIT CODE: 0
==> INIT DEFAULT
Generating SSH1 RSA host key:                              [  OK  ]
Starting sshd:                                             [  OK  ]
Starting crond:                                            [  OK  ]
==> INIT DONE
==> RUN /home/admin/app.sh
==> START ...
start mysql ...                                                                                                                                               Starting mysqld:                                           [  OK  ]
mysql start successful
start zookeeper ...
zookeeper start successful
start manager ...

此时容器已经退出。 docker run 时有如下 WARNING

WARNING: Published ports are discarded when using host network mode

本机为干净 Linux,没有安装 mysql 等包。这个是因为什么原因呢?应该如何来调试?

谢谢!

rjjhvcjd

rjjhvcjd1#

容器内的 /tmp/start.log

otter-all                                                                                                                                                     cd to /home/admin/manager/bin for workaround relative path                                                                                                    LOG CONFIGURATION : /home/admin/manager/bin/../conf/logback.xml                                                                                               otter conf : /home/admin/manager/bin/../conf/otter.properties                                                                                                 CLASSPATH :/home/admin/manager/bin/..:/home/admin/manager/bin/../conf:/home/admin/manager/bin/../lib/zookeeper-3.4.5.jar:/home/admin/manager/bin/../lib/zkclient-0.10.jar:/home/admin/manager/bin/../lib/velocity-1.7.jar:/home/admin/manager/bin/../lib/spring-webmvc-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-web-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-tx-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-test-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-orm-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-jdbc-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-expression-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-core-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-context-support-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-context-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-beans-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-asm-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/spring-aop-3.1.2.RELEASE.jar:/home/admin/manager/bin/../lib/slf4j-api-1.7.12.jar:/home/admin/manager/bin/../lib/shared.push-4.2.18-SNAPSHOT.jar:/home/admin/manager/bin/../lib/shared.communication-4.2.18-SNAPSHOT.jar:/home/admin/manager/bin/../lib/shared.common-4.2.18-SNAPSHOT.jar:/home/admin/manager/bin/../lib/shared.arbitrate-4.2.18-SNAPSHOT.jar:/home/admin/manager/bin/../lib/protobuf-java-2.6.1.jar:/home/admin/manager/bin/../lib/oro-2.0.8.jar:/home/admin/manager/bin/../lib/ojdbc6.jar:/home/admin/manager/bin/../lib/ojdbc6-11.1.0.7.0.jar:/home/admin/manager/bin/../lib/netty-all-4.1.6.Final.jar:/home/admin/manager/bin/../lib/netty-3.2.2.Final.jar:/home/admin/manager/bin/../lib/mysql-connector-java-5.1.47.jar:/home/admin/manager/bin/../lib/manager.web-4.2.18-SNAPSHOT.jar:/home/admin/manager/bin/../lib/manager.deployer-4.2.18-SNAPSHOT.jar:/home/admin/manager/bin/../lib/manager.biz-4.2.18-SNAPSHOT.jar:/home/admin/manager/bin/../lib/mail-1.4.7.jar:/home/admin/manager/bin/../lib/logback-core-1.1.3.jar:/home/admin/manager/bin/../lib/logback-classic-1.1.3.jar:/home/admin/manager/bin/../lib/jsr305-3.0.2.jar:/home/admin/manager/bin/../lib/jetty-xml-8.1.7.v20120910.jar:/home/admin/manager/bin/../lib/jetty
-webapp-8.1.7.v20120910.jar:/home/admin/manager/bin/../lib/jetty-util-8.1.7.v20120910.jar:/home/admin/manager/bin/../lib/jetty-servlet-8.1.7.v20120910.jar:/home/admin/manager/bin/../lib/jetty-server-8.1.7.v20120910.jar:/home/admin/manager/bin/../lib/jetty-security-8.1.7.v20120910.jar:/home/admin/manager/bin/../lib/jetty-io-8.1.7.v20120910.jar:/home/admin/manager/bin/../lib/jetty-http-8.1.7.v20120910.jar:/home/admin/manager/bin/../lib/jetty-continuation-8.1.7.v20120910.jar:/home/admin/manager/bin/../lib/jcl-over-slf4j-1.7.12.jar:/home/admin/manager/bin/../lib/javax.servlet-3.0.0.v201112011016.jar:/home/admin/manager/bin/../lib/javassist-3.15.0-GA.jar:/home/admin/manager/bin/../lib/ibatis-sqlmap-2.3.4.726.jar:/home/admin/manager/bin/../lib/httpcore-4.4.3.jar:/home/admin/manager/bin/../lib/httpclient-4.5.1.jar:/home/admin/manager/bin/../lib/h2-1.4.196.jar:/home/admin/manager/bin/../lib/guava-18.0.jar:/home/admin/manager/bin/../lib/fastsql-2.0.0_preview_644.jar:/home/admin/manager/bin/../lib/fastjson-1.2.58.jar:/home/admin/manager/bin/../lib/ecs-1.4.2.jar:/home/admin/manager/bin/../lib/dwr-2.0.10.jar:/home/admin/manager/bin/../lib/dubbo-2.5.3.jar:/home/admin/manager/bin/../lib/druid-1.1.9.jar:/home/admin/manager/bin/../lib/dom4j-1.6.1.jar:/home/admin/manager/bin/../lib/disruptor-3.4.2.jar:/home/admin/manager/bin/../lib/ddlutils-1.0.jar:/home/admin/manager/bin/../lib/commons-pool-1.5.4.jar:/home/admin/manager/bin/../lib/commons-logging-1.1.1.jar:/home/admin/manager/bin/../lib/commons-lang-2.6.jar:/home/admin/manager/bin/../lib/commons-jexl-2.1.1.jar:/home/admin/manager/bin/../lib/commons-io-2.4.jar:/home/admin/manager/bin/../lib/commons-fileupload-1.2.2.jar:/home/admin/manager/bin/../lib/commons-dbcp-1.4.jar:/home/admin/manager/bin/../lib/commons-compress-1.9.jar:/home/admin/manager/bin/../lib/commons-collections-3.2.2.jar:/home/admin/manager/bin/../lib/commons-codec-1.9.jar:/home/admin/manager/bin/../lib/commons-beanutils-1.8.3.jar:/home/admin/manager/bin/../lib/citrus-webx-all-3.2.0.jar:/home/admin/manager/bin/../lib/cglib-nodep-2.2.jar:/home/admin/manager/bin/../lib/canal.store-1.1.2.jar:/home/admin/manager/bin/../lib/canal.sink-1.1.2.jar:/home/admin/manager/bin/../lib/canal.protocol-1.1.2.jar:/home/admin/manager/bin/../lib/canal.parse.driver-1.1.2.jar:/home/admin/manager/bin/../lib/canal.parse.dbsync-1.1.2.jar:/home/admin/manager/bin/../lib/canal.parse-1.1.2.jar:/home/admin/manager/bin/../lib/canal.meta-1.1.2.jar:/home/admin/manager/bin/../lib/canal.instance.manager-1.1.2.jar:/home/admin/manager/bin/../lib/canal.instance.core-1.1.2.jar:/home/admin/manager/bin/../lib/canal.filter-1.1.2.jar:/home/admin/manager/bin/../lib/canal.common-1.1.2.jar:/home/admin/manager/bin/../lib/aviator-2.2.1.jar:/home/admin/manager/bin/../lib/aopalliance-1.0.jar:/home/admin/manager/bin/../lib/annotations-9.0.4.jar:/home/admin/manager/bin/../lib/activation-1.1.jar:
cd to /home/admin/manager/bin for continue

好像看不出什么问题。

4nkexdtk

4nkexdtk2#

我也碰到了 很大可能因为你之前docker没关导致 直接rm的因为有个pid文件导致start失败 可以手动删除对应的pid文件

相关问题