-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Running eXist-db as a service #5454
Comments
eXist-db 6.x.x, 5.x.x, or 4.x.x require Java 8 |
Thanks @adamretter. So are you saying java 21 is too high? The problem with this is that simply starting eXist-db from the command line works and I can access it, add TEI-Publisher etc, with Java 21. So I still think the problem, as the error message implies, is with the permissions. |
@GilShalit we use eXist 6.x using Java 21 without problems. We do no use any quotes for the environment though. That is the service file we use:
|
@GilShalit yes 21 is too high. You will find even if it starts, that certain operations cause exceptions when you run them. You also have a permissions issue. You need to make sure the files are owned, and the scripts, are executable, by the user named in your systemd unit file. |
@GilShalit the service definition file you posted looks wrong. Unless this was a copypaste error, the JAVA_OPTS line is missing a closing quote and the redirect operator Check validity of the service file with After editing the service file, reload systemd to ensure the changed service file is picked up: Another possible issue: make sure all files in Yet another possibility: If the parent directory of your exist installation |
@GilShalit since you are running on Ubuntu 22.04 you may also want to be aware of this issue: #5345 |
I am trying to run eXist-db as a Service with Ubuntu 22.04 and java 21 (the current versions).
eXist-db runs fine when started with
sudo /home/ubuntu/eXist-db/bin/startup.sh
. I followed the instructions on the site with service file:The service runs on startup but eXist-db is not run. looking at the status I see:
The startup script is not run from the service file because of a problem with permissions yet the eXist-db home directory belongs (recursively) to existdb:existdb and so does the existdb.service file, so I don't see what the problem can be with permissions.
the user existdb:existdb was created with
sudo useradd --system --shell /sbin/nologin --comment "eXist-db Service Account" existdb
This setup works fine with Ubuntu 20 and java 11, so I wonder if something subtle has changed.
The text was updated successfully, but these errors were encountered: