Skip to content
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

Error on Sonarr v3 to v4 #7321

Closed
tellice opened this issue Dec 25, 2024 · 5 comments · Fixed by #7322
Closed

Error on Sonarr v3 to v4 #7321

tellice opened this issue Dec 25, 2024 · 5 comments · Fixed by #7322
Milestone

Comments

@tellice
Copy link

tellice commented Dec 25, 2024

i have updated to version 9.9.0 of DietPi and migration Sonarr from v3 to v4

When using the internal updater for Sonarr, i get the following error
Cannot install update because startup folder '/opt/sonarr' is not writable by the user 'sonarr'.

I have checked permissions on the folder and all child files and folders, and all have the correct permissions

any ideas?

@tellice
Copy link
Author

tellice commented Dec 25, 2024

I have also uninstalled sonarr and reinstalled it again

@MichaIng
Copy link
Owner

Thanks for reporting. The installer sets:

install_dir='/opt/sonarr'
...
chown -R sonarr:dietpi /mnt/dietpi_userdata/sonarr "$install_dir"

Do you see the last command with correct /opt/sonarr as last argument in your install/reinstall output?

I'll also try to replicate it.

@MichaIng MichaIng added this to the v9.10 milestone Dec 25, 2024
MichaIng added a commit that referenced this issue Dec 25, 2024
- DietPi-Software | Sonarr: Resolved an issue where the internal updater did not work due to permission limits in the systemd unit. Many thanks to @tellice for reporting this issue: #7321
@MichaIng
Copy link
Owner

I found it. We missed to update the path within the systemd unit. Fixed with: c7a3411

To fix it for you now:

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

I'll ship a live path to fix it within dietpi-software.

@MichaIng MichaIng linked a pull request Dec 25, 2024 that will close this issue
@tellice
Copy link
Author

tellice commented Dec 25, 2024

Thats great, i tried the fix but it didnt work. I had to apply the live patch and reintall Sonarr. But it is now all working and updates great.

@MichaIng
Copy link
Owner

Thanks for testing it ASAP. No idea why the commands did not work for you, but more importantly the live patch did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants