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

Sonarr v4 fail to start after upgrade to dietpi v9.9 #7326

Closed
doopler opened this issue Dec 26, 2024 · 4 comments · Fixed by #7322 or #7355
Closed

Sonarr v4 fail to start after upgrade to dietpi v9.9 #7326

doopler opened this issue Dec 26, 2024 · 4 comments · Fixed by #7322 or #7355
Milestone

Comments

@doopler
Copy link

doopler commented Dec 26, 2024

i did an upgrade of sonarr from v3 to v4 via dietpi-software reinstall 144
and also removed mono.
and now it failed to start
here are my logs:

root@DietPi  /opt/sonarr  systemctl status sonarr.service
● sonarr.service - Sonarr (DietPi)
     Loaded: loaded (/etc/systemd/system/sonarr.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/sonarr.service.d
             └─dietpi-services_edit.conf
     Active: failed (Result: exit-code) since Thu 2024-12-26 13:19:35 IST; 25s ago
    Process: 547750 ExecStart=/opt/sonarr/Sonarr -nobrowser -data=/mnt/dietpi_userdata/sonarr (code=exited, status=226/NAMESPACE)
   Main PID: 547750 (code=exited, status=226/NAMESPACE)
        CPU: 28ms


Dec 26 13:19:32 DietPi systemd[1]: sonarr.service: Scheduled restart job, restart counter is at 3.
Dec 26 13:19:35 DietPi systemd[1]: Stopped Sonarr (DietPi).
Dec 26 13:19:35 DietPi systemd[1]: sonarr.service: Start request repeated too quickly.
Dec 26 13:19:35 DietPi systemd[1]: sonarr.service: Failed with result 'exit-code'.
Dec 26 13:19:35 DietPi systemd[1]: Failed to start Sonarr (DietPi).
sonarr.service: Failed to set up mount namespacing: /run/systemd/unit-root/usr/lib/sonarr: No such file or directory
sonarr.service: Failed at step NAMESPACE spawning /opt/sonarr/Sonarr: No such file or directory

BTW i'm sill on debian 11 if that matters

thanks

@doopler doopler changed the title Sonarr v4 fail to start after upgrade version 9.9 Sonarr v4 fail to start after upgrade to dietpi v9.9 Dec 26, 2024
@doopler
Copy link
Author

doopler commented Dec 26, 2024

as it turns out sonarr was installed in /opt/Sonarr and not in /opt/sonarr/Sonarr
so i changed the path and it worked.
but i lost al the v3 DB and had to re configure from scrach ☹️

@doopler doopler closed this as completed Dec 27, 2024
@MichaIng
Copy link
Owner

dietpi-software installs Sonarr v4 to /opt/sonarr. How did you originally install and migrate it?

On a test migration I also lost the one test series I added. Sonarr docs state that I attempts to migrate as much as possible and also firat startup logs show a database migration. So I also was confused. However one can import everything from the download directory structure, at least.

@doopler
Copy link
Author

doopler commented Dec 30, 2024

yep thats what i eventually ended up doing.

dietpi-software installs Sonarr v4 to /opt/sonarr. How did you originally install and migrate it?

i installed v3 a while ago via dietpi-software as i also did this time (v4).
but it was installed in /opt/sonarr/Sonarr thats why i got this error.

regarding the database i did a manual backup before the upgrade an after i got sonarr to start in was a blank database, so i tried to restore from a backup but it hanged so i had to completely reinstall it and manually add al the shows from scratch.

@MichaIng
Copy link
Owner

/opt/sonarr/Sonarr is however perfectly right, but we forgot to adjust the ReadWritePath= directive in the systemd unit. The bug was solved here, including a live patch: #7326

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