(0x800007FF): database or disk is full

Sonarr version (exact version):
v3.0.10.1567

Mono version (if Sonarr is not running on Windows):
Mono JIT compiler version 6.12.0.182 (tarball Tue Jun 14 22:35:00 UTC 2022)

OS:
Ubuntu 22 (latest patch level)

Debug logs:

Jul 18 23:24:28 asgard mono[1013]: [v3.0.10.1567] code = Full (13), message = System.Data.SQLite.SQLiteException (0x800007FF): database or disk is full
Jul 18 23:24:28 asgard mono[1013]: database or disk is full
Jul 18 23:24:28 asgard mono[1013]:   at System.Data.SQLite.SQLite3.Reset (System.Data.SQLite.SQLiteStatement stmt) [0x00088] in <cf516e4846354910b3d60749c894b1bf>:0
Jul 18 23:24:28 asgard mono[1013]:   at System.Data.SQLite.SQLite3.Step (System.Data.SQLite.SQLiteStatement stmt) [0x0006e] in <cf516e4846354910b3d60749c894b1bf>:0
Jul 18 23:24:28 asgard mono[1013]:   at System.Data.SQLite.SQLiteDataReader.NextResult () [0x00174] in <cf516e4846354910b3d60749c894b1bf>:0
Jul 18 23:24:28 asgard mono[1013]:   at System.Data.SQLite.SQLiteDataReader..ctor (System.Data.SQLite.SQLiteCommand cmd, System.Data.CommandBehavior behave) [0x0008e] in <cf516e4846354910b3d60749c894b1bf>:0
Jul 18 23:24:28 asgard mono[1013]:   at (wrapper remoting-invoke-with-check) System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand,System.Data.CommandBehavior)
Jul 18 23:24:28 asgard mono[1013]:   at System.Data.SQLite.SQLiteCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0000c] in <cf516e4846354910b3d60749c894b1bf>:0
Jul 18 23:24:28 asgard mono[1013]:   at System.Data.SQLite.SQLiteCommand.ExecuteScalar (System.Data.CommandBehavior behavior) [0x00006] in <cf516e4846354910b3d60749c894b1bf>:0
Jul 18 23:24:28 asgard mono[1013]:   at System.Data.SQLite.SQLiteCommand.ExecuteScalar () [0x00006] in <cf516e4846354910b3d60749c894b1bf>:0
Jul 18 23:24:28 asgard mono[1013]:   at Marr.Data.QGen.InsertQueryBuilder`1[T].Execute () [0x00046] in C:\BuildAgent\work\63739567f01dbcc2\src\Marr.Data\QGen\InsertQueryBuilder.cs:140
Jul 18 23:24:28 asgard mono[1013]:   at Marr.Data.DataMapper.Insert[T] (T entity) [0x0005f] in C:\BuildAgent\work\63739567f01dbcc2\src\Marr.Data\DataMapper.cs:728
Jul 18 23:24:28 asgard mono[1013]:   at NzbDrone.Core.Datastore.BasicRepository`1[TModel].Insert (TModel model) [0x00030] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Datastore\BasicRepository.cs:119
Jul 18 23:24:28 asgard mono[1013]:   at NzbDrone.Core.Messaging.Commands.CommandQueueManager.Push[TCommand] (TCommand command, NzbDrone.Core.Messaging.Commands.CommandPriority priority, NzbDrone.Core.Messaging.Commands.CommandTrigger trigger) [0x0015a] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.C>
Jul 18 23:24:28 asgard mono[1013]:   at NzbDrone.Core.Messaging.Commands.CommandQueueManager.Push (System.String commandName, System.Nullable`1[T] lastExecutionTime, NzbDrone.Core.Messaging.Commands.CommandPriority priority, NzbDrone.Core.Messaging.Commands.CommandTrigger trigger) [0x000b7] in C:\BuildAge>
Jul 18 23:24:28 asgard mono[1013]:   at NzbDrone.Core.Jobs.Scheduler.ExecuteCommands () [0x00043] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\Jobs\Scheduler.cs:42
Jul 18 23:24:28 asgard mono[1013]:   at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <de882a77e7c14f8ba5d298093dde82b2>:0
Jul 18 23:24:28 asgard mono[1013]:   at System.Threading.Tasks.Task.Execute () [0x00000] in <de882a77e7c14f8ba5d298093dde82b2>:0
Jul 18 23:24:58 asgard mono[1013]: [Error] TaskExtensions: Task Error

Additional Information:
The log claims that the disk or db is full. I have checked the disk and there is plenty of space available.
I have also restarted the sonarr service and the system, but neither one has resolved the issue. The service is running fine.

What else can I do to fix this? Since it literally stopped working overnight, maybe I can do a re-install or upgrade to a newer version using SSH? Thank you!

df -h
Filesystem                         Size  Used Avail Use% Mounted on
tmpfs                              794M  1.4M  793M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  196G   89G   99G  48% 
tmpfs                              3.9G  328K  3.9G   1% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
/dev/sda2                          974M  253M  654M  28% /boot
192.168.69.4:/volume1/books         18T   15T  2.7T  85% /downloads/books
192.168.69.4:/volume1/music         18T   15T  2.7T  85% /downloads/music
192.168.69.4:/volume2/video         21T   20T  1.6T  93% /downloads/video
192.168.69.4:/volume2/torrents      21T   20T  1.6T  93% /downloads/nastorrents
tmpfs                              794M  8.0K  794M   1% /run/user/1000

Just noticed the error when restarting the service,

sudo service sonarr status
â—Ź sonarr.service - Sonarr Daemon
     Loaded: loaded (/lib/systemd/system/sonarr.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2023-07-21 18:43:32 UTC; 7s ago
   Main PID: 332096 (mono)
      Tasks: 12 (limit: 9387)
     Memory: 69.6M
        CPU: 1.109s
     CGroup: /system.slice/sonarr.service
             └─332096 /usr/bin/mono --debug /usr/lib/sonarr/bin/Sonarr.exe -nobrowser -data=/var/lib/sonarr

Jul 21 18:43:32 asgard systemd[1]: Started Sonarr Daemon.
Jul 21 18:43:34 asgard mono[332096]: [Info] Bootstrap: Starting Sonarr - /usr/lib/sonarr/bin/Sonarr.exe - Version 3.0.10.1567
Jul 21 18:43:34 asgard mono[332096]: [Info] AppFolderInfo: Data directory is being overridden to [/var/lib/sonarr]
Jul 21 18:43:34 asgard mono[332096]: [Fatal] ConsoleApp: EPIC FAIL!
Jul 21 18:43:34 asgard mono[332096]: [v3.0.10.1567] NzbDrone.Common.Exceptions.SonarrStartupException: Sonarr failed to start: /var/lib/sonarr/config.xml is empty. Please delete >
Jul 21 18:43:34 asgard mono[332096]:   at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System>
Jul 21 18:43:34 asgard mono[332096]:   at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00030] in C:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Console\ConsoleApp>
Jul 21 18:43:34 asgard mono[332096]: Press enter to exit...

do what it says and delete that config.xml file, or pull it from a backup (and check its not empty), then you should be fine.

it doesnt like an empty file. if the file exists it has to have a valid config in it.

its not your full sonarr config, its just the “startup” config.

1 Like

Yes, my config file is indeed empty and so I removed it.

Sonarr still didn’t load as before, but it worked with IP and port.

What does the config file store and how did it get deleted?

It seems that the config file holds some basic configuration including the URL path. So, I went over my configuration and applied changes whenever I thought it to be different from before. So far, so good, but I still don’t get how it got deleted in the first place…

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.