Hi there,
I am running an older version of Antman (0.5.0). Recently antman stopped working and keeps crashing. Anthill seems to be working fine:
service anthilld status
* status: started
However, antman appears to start up, but then crashes a few minutes later:
service antman restart
* Stopping antman ...
* start-stop-daemon: no matching processes found [ ok ]
* Starting antman ... [ ok ]
# service antman status
* status: started(wait a minute)
# service antman status
* status: crashed
The log file doesn't seem to be capturing the output correctly, so I investigated the service script: /usr/local/bin/antmand and I can see that it runs the java program:
java -jar -Xms512M -Xmx512M antman.jar
So, to debug this, I ran it from the command-line to see if I could find out the source of the error, now I'm actually getting somewhere in terms of debugging, at least:
# java -jar -Xms512M -Xmx512M /usr/local/antsleOS/antman/target/antman.jar
tool java
Exception in thread "main" java.lang.RuntimeException: could not start [#'antman.core/http-server] due to
at mount.core$up$fn__230.invoke(core.cljc:80)
at mount.core$up.invokeStatic(core.cljc:80)
at mount.core$up.invoke(core.cljc:78)
at mount.core$bring.invokeStatic(core.cljc:247)
at mount.core$bring.invoke(core.cljc:239)
at mount.core$start.invokeStatic(core.cljc:289)
at mount.core$start.doInvoke(core.cljc:281)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at mount.core$start_with_args.invokeStatic(core.cljc:389)
at mount.core$start_with_args.doInvoke(core.cljc:385)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at antman.core$start_app.invokeStatic(core.clj:77)
at antman.core$start_app.invoke(core.clj:72)
at antman.core$_main.invokeStatic(core.clj:86)
at antman.core$_main.doInvoke(core.clj:85)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at clojure.lang.AFn.applyToHelper(AFn.java:152)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at antman.core.main(Unknown Source)
Caused by: java.lang.RuntimeException: EOF while reading
at clojure.lang.Util.runtimeException(Util.java:221)
at clojure.lang.LispReader.readDelimitedList(LispReader.java:1204)
at clojure.lang.LispReader$MapReader.invoke(LispReader.java:1158)
at clojure.lang.LispReader.read(LispReader.java:263)
at clojure.lang.LispReader.readDelimitedList(LispReader.java:1200)
at clojure.lang.LispReader$MapReader.invoke(LispReader.java:1158)
at clojure.lang.LispReader.read(LispReader.java:263)
at clojure.lang.LispReader.readDelimitedList(LispReader.java:1200)
at clojure.lang.LispReader$MapReader.invoke(LispReader.java:1158)
at clojure.lang.LispReader.read(LispReader.java:263)
at clojure.lang.LispReader.read(LispReader.java:196)
at clojure.lang.LispReader.read(LispReader.java:185)
at clojure.lang.RT.readString(RT.java:1835)
at clojure.lang.RT.readString(RT.java:1830)
at clojure.core$read_string.invokeStatic(core.clj:3687)
at clojure.core$read_string.invoke(core.clj:3677)
at antman.util.db$db_get.invokeStatic(db.clj:15)
at antman.util.db$db_get.invoke(db.clj:13)
at antman.config$fn__460$fn__461.invoke(config.clj:18)
at clojure.lang.Delay.deref(Delay.java:37)
at clojure.core$deref.invokeStatic(core.clj:2228)
at clojure.core$deref.invoke(core.clj:2214)
at antman.middleware$wrap_base.invokeStatic(middleware.clj:102)
at antman.middleware$wrap_base.invoke(middleware.clj:101)
at antman.handler$app.invokeStatic(handler.clj:71)
at antman.handler$app.invoke(handler.clj:70)
at antman.core$fn__31039.invokeStatic(core.clj:27)
at antman.core$fn__31039.invoke(core.clj:22)
at mount.core$record_BANG_.invokeStatic(core.cljc:74)
at mount.core$record_BANG_.invoke(core.cljc:73)
at mount.core$up$fn__230.invoke(core.cljc:81)
... 18 more
But I'm still stumped. It looks like something to do with the webserver (http), but nginx seems to be OK:
# service nginx status
* status: started
Any suggestions gratefully appreciated.