Hey there,
i am working on a small server solution for our restaurants. We have a cash desk solution called Gastronovi (http://www.gastronovi.com). We used RaspPi3 till now and with the switch to the new RP4 i thought i gave DietPi a try.
I installed DPi headless. (SSH worked fine. Thanks!) Than installed java and the printserver application:
apt-get install default-jre
mkdir /opt/gn_server/
cd /opt/gn_server/
wget https://office.gastronovi.de/gn_server.jar
nano /etc/systemd/system/gn_server.service
[Unit]
Description=GN Server
[Service]
User=nobody
ExecStart=/usr/bin/java -jar /opt/gn_server/gn_server.jar
TimeoutStopSec=10
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
systemctl start gn_server
systemctl enable gn_server
reboot
Now the server is accessable via the same network via the (example) IP adress 10.10.10.99:6767.
There is an update button where I can request to check for an update. Unfortunatly I always get the following result:
Update failed: Update has failed. Please try again!! (java.io.FileNotFoundException: /opt/gn_server/gn_server.jar_update (Permission denied))
I mean obviously it is something with permissions… But I have no idea how to solve this.
Any solution? Would appriciate help.
Thanks!