Hi, running Roon Server on Ubuntu 24.04.3 LTS. Roon installed without any hitches, but then failed nightly.
The reason for this seems to be a locking issue with the files in the “/tmp” directory. Initially
I “fixed” this by running Roon as root. However, the Roon Server kept failing every night.
Using the magic of AI I think I have found the issue. The Roon service is failing because of a “Read-only file system” error when trying to create logs in /root/.RoonGoer/Logs. The systemd hardening options ProtectSystem=full and ProtectHome=true are preventing write access.
By modifying the roonserver.service file we can remove these hardening options:
% sudo tee /etc/systemd/system/roonserver.service
[Unit]
Description=Roon Server
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/RoonServer
ExecStart=/opt/RoonServer/start.sh
Restart=always
RestartSec=10
# Remove restrictive hardening for now
# NoNewPrivileges=true
# ProtectSystem=full
# ProtectHome=true
[Install]
WantedBy=multi-user.target
Hope this was helpful.
/Hans
mjw
(Here I am with a brain the size of a planet and they ask me to pick up a piece of paper. Call that job satisfaction? I don't.)
2
How did you install Roon? It certainly doesn’t look like you followed the recommended method. For instance, Roon should be installed using sudo, which will set the correct permissions, and place the logs in /var/roon, e.g., /var/roon/RoonGoer/Logs.
A truly risky approach to system administration, as this often combines correct and incorrect instructions.
To install Roon on Ubuntu, simply follow these steps.
mjw
(Here I am with a brain the size of a planet and they ask me to pick up a piece of paper. Call that job satisfaction? I don't.)
4
I assume you mean the Easy Installer as shown in my post? If so, your Systemd file would not look like what you have posted, and neither would the script set ROON_DATAROOT to /root.
Unfortunately, you appear to have a broken installation, and the fixes you have posted are unique to your setup.
If the information posted is unique to me and deemed uninteresting to others, feel free to delete my original post and thread.
mjw
(Here I am with a brain the size of a planet and they ask me to pick up a piece of paper. Call that job satisfaction? I don't.)
7
Yeah, it’ll just sit there waiting for eternity.
I think you’re missing the intent here. Whilst I appreciate you have taken time to report the steps you’ve taken to fix your Roon Server instance, this is unfortunately unhelpful. However, there is opportunity here for you to correctly install Roon Server.
The lesson for other readers, which is why the thread remains, is that generative AI is not an accurate source of information, and should be avoided when precise instructions are needed.