-
-
Notifications
You must be signed in to change notification settings - Fork 502
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 | Resolve database corruption #2955
Comments
@ezekini Did this happen the first time after some reboot or system crash or do you remember any maintenance task that triggered a restart of all services? Or did indeed the service crash just out of a sudden overnight or something? Can you please paste the full log: |
More something like the service crash just out of a sudden overnight. I don't remember any maintenance, installation or anything new or out of the ordinary.
I will check, but I think I haven't backup up in a while.
|
Damn, indeed a database curruption.
I never really worked with SQLite (MariaDB much more), but AFAIK to enter the SQLite console for the related database file you need to run:
Okay to put things together, IF all table data can be read:
|
I get an error after
If I can't solve that, I guess I will have to uninstall and reinstall. |
@ezekini
Perhaps you face just the same two errors, but AFAIK all other parts are created, so you could simply try it out by going on with the other steps. We could also check which table+key it actually is:
Disk I/O error, process crash or something, but causes vary very much. |
Ok, I managed to restore the database. Thank you for the info. |
Creating a bug report/issue
Required Information
G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=24
G_DIETPI_VERSION_RC=1
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
Additional Information (if applicable)
Steps to reproduce
Expected behaviour
Actual behaviour
root@DietPi-rpi:~# dietpi-services status
[ OK ] DietPi-Services | Root access verified.
DietPi-Services
─────────────────────────────────────────────────────
Mode: status
[ OK ] DietPi-Services | avahi-daemon active (running) since Wed 2019-07-03 19:07:53 -03; 1h 44min ago
[ OK ] DietPi-Services | proftpd active (running) since Wed 2019-07-03 19:07:53 -03; 1h 44min ago
[ OK ] DietPi-Services | nfs-kernel-server active (exited) since Wed 2019-07-03 19:07:53 -03; 1h 44min ago
[ OK ] DietPi-Services | php7.3-fpm active (running) since Wed 2019-07-03 19:07:54 -03; 1h 44min ago
[ OK ] DietPi-Services | lighttpd active (running) since Wed 2019-07-03 19:07:54 -03; 1h 44min ago
[ OK ] DietPi-Services | shairport-sync active (running) since Wed 2019-07-03 19:07:54 -03; 1h 44min ago
[ OK ] DietPi-Services | roonbridge active (running) since Wed 2019-07-03 19:07:54 -03; 1h 44min ago
[ OK ] DietPi-Services | raspotify active (running) since Wed 2019-07-03 19:07:54 -03; 1h 44min ago
[ OK ] DietPi-Services | jackett active (running) since Wed 2019-07-03 19:07:54 -03; 1h 44min ago
[FAILED] DietPi-Services | sonarr failed (Result: exit-code) since Wed 2019-07-03 19:08:24 -03; 1h 44min ago
● sonarr.service - Sonarr (NzbDrone) Daemon (DietPi)
Loaded: loaded (/etc/systemd/system/sonarr.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-07-03 19:08:24 -03; 1h 44min ago
Process: 13357 ExecStart=/usr/bin/mono -O=-aot /opt/NzbDrone/NzbDrone.exe -nobrowser -data=/mnt/dietpi_userdata/sonarr (code=exited, status=1/FAILURE)
Main PID: 13357 (code=exited, status=1/FAILURE)
Jul 03 19:08:22 DietPi-rpi mono[13357]: at NzbDrone.Core.Datastore.DbFactory.RegisterDatabase (NzbDrone.Common.Composition.IContainer container) [0x00006] in <96f52d5e5b95442a89ae3bbf62e59664>:0
Jul 03 19:08:22 DietPi-rpi mono[13357]: at NzbDrone.Host.NzbDroneServiceFactory.Start () [0x00037] in <83751627b1fd4bb1b4a2a3075c439f56>:0
Jul 03 19:08:22 DietPi-rpi mono[13357]: at NzbDrone.Host.Router.Route (NzbDrone.Host.ApplicationModes applicationModes) [0x0007b] in <83751627b1fd4bb1b4a2a3075c439f56>:0
Jul 03 19:08:22 DietPi-rpi mono[13357]: at NzbDrone.Host.Bootstrap.Start (NzbDrone.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x00047] in <83751627b1fd4bb1b4a2a3075c439f56>:0
Jul 03 19:08:22 DietPi-rpi mono[13357]: at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x00075] in <83751627b1fd4bb1b4a2a3075c439f56>:0
Jul 03 19:08:22 DietPi-rpi mono[13357]: at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x0002f] in :0
Jul 03 19:08:23 DietPi-rpi mono[13357]: Press enter to exit...
Jul 03 19:08:24 DietPi-rpi systemd[1]: sonarr.service: Main process exited, code=exited, status=1/FAILURE
Jul 03 19:08:24 DietPi-rpi systemd[1]: sonarr.service: Unit entered failed state.
Jul 03 19:08:24 DietPi-rpi systemd[1]: sonarr.service: Failed with result 'exit-code'.
[ OK ] DietPi-Services | radarr active (running) since Wed 2019-07-03 19:07:54 -03; 1h 44min ago
[ OK ] DietPi-Services | cron active (running) since Wed 2019-07-03 19:07:55 -03; 1h 44min ago
[ OK ] DietPi-Services | dropbear active (running) since Wed 2019-07-03 06:01:43 -03; 14h ago
[ OK ] DietPi-Services | pihole-FTL active (running) since Wed 2019-07-03 06:01:28 -03; 14h ago
[ OK ] DietPi-Services | dietpi-ramdisk active (exited) since Wed 2019-07-03 06:01:12 -03; 14h ago
[ OK ] DietPi-Services | dietpi-ramlog active (exited) since Wed 2019-07-03 06:01:12 -03; 14h ago
[ OK ] DietPi-Services | dietpi-preboot active (exited) since Wed 2019-07-03 06:01:16 -03; 14h ago
[ OK ] DietPi-Services | dietpi-boot active (exited) since Wed 2019-07-03 06:01:43 -03; 14h ago
[ OK ] DietPi-Services | dietpi-postboot active (exited) since Wed 2019-07-03 06:01:43 -03; 14h ago
[ INFO ] DietPi-Services | dietpi-wifi-monitor inactive (dead)
[ OK ] DietPi-Services | dietpi-arr_to_RAM active (exited) since Wed 2019-07-03 06:01:15 -03; 14h ago
Extra details
Tried reinstalling via dietpi-software reinstall XXX but the problem continued
The text was updated successfully, but these errors were encountered: