Open jwadolowski opened 7 years ago
[root@default-centos-73-chef-12 ~]# /usr/bin/java -Dlogback.configurationFile=/opt/knotx/publish/logback.xml -Dvertx.cacheDirBase=/opt/knotx/publish/.vertx -Xms256m -Xmx1024m -XX:ReservedCodeCacheSize=64m -XX:+UseBiasedLocking -XX:BiasedLockingStartupDelay=0 -Dio.knotx.KnotxServer.options.config.httpPort=8093 -cp /opt/knotx/publish/app/* io.knotx.launcher.LogbackLauncher -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=18093 -Dcom.sun.management.jmxremote.rmi.port=18093 -Djava.rmi.server.hostname=10.0.2.15 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Xloggc:/var/log/knotx/gc-publish.log -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGC -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=5M -conf /opt/knotx/publish/config-publish.json > /dev/null 2>&1
[root@default-centos-73-chef-12 ~]# echo $?
0
systemd thinks that service started properly, but it just failed shortly after that, as above command returns 0
.
Just raised related knot.x issue: https://github.com/Cognifide/knotx/issues/314
By accident I configured my knot.x instance to use config from wrong directory.
chef-client
finished successfully, however knot.x instance was not running.Please find all the details below.
Current state
knot.x log: https://gist.github.com/jwadolowski/3848090e722a9644f41c49e64a94073d
Directory structure
knotx.conf
file (/opt/knotx/author/config-author.json
does not exist)Service status
Expected state
Service shouldn't start if config file is missing (that may be knot.x bug)