0
Under review

Ubuntu 16

Marco Paglioni 2 years ago updated by Tom 2 years ago 2

Hi all

i'm trying Ubooquity on my Ubuntu 16.04 headless linux box.


i installed default-jre with apt-get , then if i try to run 

java -Dfile.encoding=UTF-8 -jar /home/plex/ubooquity/Ubooquity.jar  -webadmin -headless

I get 


Command line arguments error: java.lang.IllegalArgumentException: The provided execution directory does not exist or is not writable
Launch Ubooquity with the "--help" option to display available commands

Ubooquity has stopped

Anyone knows why?


It has changed since version 2.*

You have to update your/change your systemd service to this or just the line you are using to what i used in the execStart but changed to your situation off course.


[Unit]
Description=Ubooquity
After=network.target

[Service]
User=<user>
WorkingDirectory=</opt/ubooquity>
ExecStart=/usr/bin/java -jar /opt/ubooquity/Ubooquity.jar -libraryport <port> -headless -remoteadmin -adminport <port>


[Install]
WantedBy=multi-user.target

This is my systemd service. The bold part you have to change to adapt to your situation. The webadmin has become "remoteadmin", also remoteadmin and the library it self you must have different ports. Remember to remove <>.

Under review
The provided execution directory does not exist or is not writable


just means that: the directory you are running Ubooquity from (the one you are in when you launch the command, since you didn't specify a explicit working directyory) seems to lack writing permissions for the user you are launching it with..