4teamwork / ftw.tika

This product integrates Apache Tika for full text indexing with Plone.
4 stars 1 forks source link

Tika server restart by supervisor fails. #20

Open phgross opened 10 years ago

phgross commented 10 years ago
Exception in thread "main" java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:587)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:444)
        at java.net.ServerSocket.bind(ServerSocket.java:337)
        at java.net.ServerSocket.<init>(ServerSocket.java:203)
        at java.net.ServerSocket.<init>(ServerSocket.java:115)
        at org.apache.tika.cli.TikaCLI$TikaServer.<init>(TikaCLI.java:787)
        at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:398)
        at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:112)
lukasgraf commented 10 years ago

This issue is most likely because the JVM uses "unusual" exit codes (for errors) to say the least, and those would need to be configured in the supervisor config as "unexpected" exit codes.

(See the autorestart and exitcodes parameters in the supervisor docs)