Error Codes of the administration tools

Additional to textual output the administration tools will return an error code when exiting in an error condition. On Linux you can query the exit code of the last command with

echo $?

An exit code of "0" means normal exit, everything else is an error indication.

exit codedescription
1General error, no specific information.
2The annis.home property was not set. This means the ANNIS_HOME environment variable was not set when the startup script was called.
3The location where the annis.home/ANNIS_HOME variable points to is not an existing directory.
4Wrong use of command line arguments.
5Could not access the database.
6Could not access a file.
50Copying corpora from old installation failed.
51Deleting a corpus failed because it does not exist.
100Could not start the internal REST-server used for the ANNIS service (e.g. because the port was already taken).
101There was an internal exception when trying to start the internal REST-server used for the ANNIS service.