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

Tika server restart by supervisor fails. #20

Open
phgross opened this issue Oct 9, 2014 · 1 comment
Open

Tika server restart by supervisor fails. #20

phgross opened this issue Oct 9, 2014 · 1 comment
Assignees
Labels

Comments

@phgross
Copy link
Member

phgross commented Oct 9, 2014

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
Copy link
Contributor

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)

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

No branches or pull requests

2 participants