Sonarr: Cannot Install Update Error

  • DietPi version:
    G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=9
    G_DIETPI_VERSION_RC=0
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
    G_LIVE_PATCH_STATUS[0]=‘applied’
    G_LIVE_PATCH_STATUS[1]=‘applied’
    G_LIVE_PATCH_STATUS[2]=‘not applicable’

  • Distro version: bookworm

  • Kernel version:
    Linux DietPi 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux

  • Architecture: amd64

  • SBC model: Native PC (x86_64)


Software = Sonarr version 4.0.11.2680
Trying to Update to: 4.0.12.2823

Error When Trying to Update:
Cannot install update because startup folder ‘/opt/sonarr’ is not writable by the user ‘sonarr’.

ls -ld /opt/sonarr
drwxr-xr-x 6 sonarr dietpi 36864 Nov 26 17:29 /opt/sonarr


Comments:

I remember there was a required notice from the DietPi team that I had to reinstall sonarr back in November if I wanted to take advantage of version 3. I did so a few months ago and this issue popped up when trying to apply the latest update.

I checked the directory permissions and it appears to be fine. Not sure what else to do…? Haven’t had any issues with radarr.

Appreciate the help and any insight in advance. Let me know if you require any further information. Thanks.

Just to say I have the same error too on V4 of Sonarr:

Can you check ReadWritePaths within /etc/systemd/system/sonarr.service??

-rw-r–r-- 1 root root 714 Dec 24 16:33 /etc/systemd/system/sonarr.service

My question was about the content not file permission :wink:

My mistake. Is this what you need?:

ReadWritePaths=-/usr/lib/sonarr -/mnt -/media -/var/log/sonarr -/tmp

Ok, that’s wrong. We have already submitted a live patch for new installations. But we missed to change existing ones. Live patch 0 | Fix Sonarr v4 permissions for updater by MichaIng · Pull Request #7322 · MichaIng/DietPi · GitHub

Following should do for your installation

sudo sed -i 's|ReadWritePaths=-/usr/lib/sonarr|ReadWritePaths=-/opt/sonarr|' /etc/systemd/system/sonarr.service
sudo systemctl daemon-reload
sudo systemctl restart sonarr
1 Like

That did the trick. Many thanks!

I just pushed a live patch, to fix this for all affected Sonarr v4 instances, installed/migrated before the dietpi-software patch was released/applied: Live patch 3 | Fix Sonarr v4 permissions for updater for installed Sonarr v4 instances by MichaIng · Pull Request #7355 · MichaIng/DietPi · GitHub

1 Like

That worked for me as well.

Thank you for the speedy turn around guys :heart_eyes: