Backup Failure with OutOfMemory Exception on Linux Roon Server (ref#P4Q056)

Hi! What’s not quite right with Roon?

· None of the above quite fits

None of the above quite fits

· None of these quite match

Tell us what's going on

· Backup fails with:
Warn: [broker/backups] unexpected error doing backup on FileBrowser.Entry: / : /Backup/RoonOneShot20260501/RoonBackups: Sooloos.SynchronizationContextThreadException: In Broker:Media
---> Sooloos.SynchronizationContextThreadException: In Broker:Transport
---> Sooloos.SynchronizationContextThreadException: In Broker:Misc
---> System.OutOfMemoryException: Array dimensions exceeded supported range.

The problem seems similar to the one signaled by Geoff_Coupe in https://community.roonlabs.com/t/backup-failure-due-to-potential-database-corruption-on-rock-nuc-system-ref-m8jtni/318778

My context:
- Roon Server is on a Linux machine (Manjaro up to date, 32GB RAM)
- the destination of backups is a second internal SSD (ext4), different from the one holding the database
- I make nightly backups at 4:00 AM
- all previous backups succeeded (until the 30 April included), with roonserver already in v2.65
- and before that all previous backups succeeded in v2.64
- the first failed backup is the programmed one of 1st May at 4:00 AM
- I tried a standalone manual backup this morning : same failure
- another try of manual backup after reboot of the machine : same failure
- the failure is not immediate, but after ~45 sec (it looks like the verification phase is OK)
- you can see the traces of that last attempt at 05/01 10:00:30

Another info which may have impact:
- Before the failed backup (at 30th April 7PM), I made a restore of the 27th April 4:00 AM backup, which was the last one with v2.64
- this is related to a different support case: https://community.roonlabs.com/t/date-added-metadata-changed-for-half-of-albums-in-roon-2-65-ref-rgblx3/319062/10
- but I previously (27th April evening) made a restore of this same backup, and the following backups succeeded, so ... ?

Tell us about your home network

· roon server machine wired to the box/modem (fast optical fiber to Internet). Remotes (Android, desktop) through Wifi. No VPN.

Hey @Pascal_Girard,

Thanks for the detailed traces and for laying out the backup history so clearly. The stack you shared, along with the fact that the failure starts after about 45 seconds rather than immediately, gives us a useful place to start.

Please upload the full RoonServer/Logs folder to this link:
https://workdrive.zohoexternal.com/collection/nocvrfc5b2ddab55140af8640f1d7ce13291e/external
, and let us know once it’s uploaded. We’ll take a closer look from there.

Hi @noris ,
I just uploaded the Logs folder of RoonServer, as Logs.zip.

If you have other questions I’ll try my best to answer.

Hi @noris ,

The nightly automatic backup is still failing.

Today I installed Roon v2.66 and tried a manual backup (at 05/05 20:02:40) with the same error:

05/05 20:03:01 Warn: [broker/backups] unexpected error doing backup on FileBrowser.Entry: Backup, Samsung SSD 870 QVO 2TB : /RoonOneShot20260501/RoonBackups: Sooloos.SynchronizationContextThreadException: In Broker:Media
—> Sooloos.SynchronizationContextThreadException: In Broker:Transport
—> Sooloos.SynchronizationContextThreadException: In Broker:Misc
—> System.OutOfMemoryException: Array dimensions exceeded supported range.
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at Sooloos.Broker.BackupCompute.<>c__DisplayClass12_1.b__1(String file, Boolean needs_copy)
at Sooloos.Broker.BackupCompute.<>c__DisplayClass12_1.b__4()
at Sooloos.SynchronizationContextThread.<>c__DisplayClass48_0.b__0()
— End of inner exception stack trace —
at Sooloos.SynchronizationContextThread.SendSafe(Action handler)
at Sooloos.Broker.BackupCompute.<>c__DisplayClass12_1.b__3()
at Sooloos.SynchronizationContextThread.<>c__DisplayClass48_0.b__0()
— End of inner exception stack trace —
at Sooloos.SynchronizationContextThread.SendSafe(Action handler)
at Sooloos.Broker.BackupCompute.<>c__DisplayClass12_1.b__2()
at Sooloos.SynchronizationContextThread.<>c__DisplayClass48_0.b__0()
— End of inner exception stack trace —
at Sooloos.SynchronizationContextThread.SendSafe(Action handler)
at Sooloos.Broker.BackupCompute.<>c__DisplayClass12_0.b__0()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
— End of stack trace from previous location —
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
— End of stack trace from previous location —
at Sooloos.Broker.BackupCompute.ComputeBackupFiles(List1 filesinmanifest, List1 filestoupload, HashSet1 latesthashes, Canceler canceler) at Sooloos.Broker.BackupDestination1.StartBackup(Entry location, Nullable`1 numberofbackupskept, Boolean auto)
05/05 20:03:01 Debug: [broker/backups] on done, auto: False

If it may help, I can send you a copy of my database folder (done that for the other support case).

Hello @Pascal_Girard,

Thank you for the update and for testing this again on version 2.66. The new stack trace is very helpful.

Since the issue is still persisting, we would gladly take you up on your offer to send a copy of your database. Having the actual database will allow our development team to reproduce the exact OutOfMemoryException locally and see what is failing during the computation phase.

Are you able to access your database and zip up the entire database folder for us?

If you can zip up that folder and send us a copy here, we can get a much better sense of what’s going wrong.

Please let us know once the upload is complete, and we’ll take a closer look and walk you through the next steps!

Hi @vadim

The URL above lands to a page with a limit of 100 MB for an uploaded file, and the zip of my database is about 3 GB, so it fails.

When I previously uploaded my database for the support case Date Added Metadata Changed for Half of Albums in Roon 2.65 (ref#RGBLX3) [Ticket In] , the limit was 50 GB with a different URL).

Also, the URL in this thread where I uploaded my Logs (May 1st) has a 50 GB limit.

What URL should I use ?

Hello @Pascal_Girard

Please feel free to use the following link:
https://workdrive.zohoexternal.com/collection/nocvrfc5b2ddab55140af8640f1d7ce13291e/external

Hi @vadim,

The upload has succeeded, you have a copy of my Database folder (from /var/roon/RoonServer).

The nightly automatic backup at 04:00 AM continues to fail consistently, with the same error.

Hope you’ll be able to reproduce it on your side.

Regards

Hello @Pascal_Girard

We’ve discussed this with our senior QA and development teams. The team is investigating some possibilities here and, as soon as that investigation is complete, we’ll be sure to follow up ASAP.

You have our apologies for the trouble here, and we’ve greatly appreciated your patience as we continue investigating this tricky issue. We’ll be in touch as soon as we can.