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.

Hi @vadim , @noris

I just thought about a possible correlation between this backup problem and another recent support case I had ( Date Added Metadata Changed for Half of Albums in Roon 2.65 (ref#RGBLX3) [Ticket In] )

For this “date added” metadata problem, @benjamin proposed a configuration modification at 11 PM April 30th, and I applied it soon after (around 1-2 AM May 1st). After many synchronization between my server and yours, the date problem was solved.

Then the automatic backup at 4 AM May 1st was the first to fail (and all the following one also, even with Roon v2.66) (see timetable bellow)

This could be an interesting clue to examine.

Date Event Status Roon version
2026/04/26 4 AM automatic backup OK 2.64
2026/04/27 4 AM automatic backup OK 2.64
2026/04/28 4 AM automatic backup OK 2.65
2026/04/29 4 AM automatic backup OK 2.65
2026/04/30 4 AM automatic backup OK 2.65
2026/05/01 around 2 AM Import Settings / “Import date defaults to” changed to “File Creation time” The problem of incorrect “date added” attribute is solved by this change 2.65
2026/05/01 4 AM automatic backup FAILED 2.65

Hello @Pascal_Girard

Thank you for the useful finding. We have updated our QA task accordingly and will update here as soon as new information is available.

Hi @vadim ,

A manual Roon backup just succeeded !
And I don’t know why …

Previously, all automatic (or manual) backups since May 1st failed; this morning at 4am also.

This evening I wanted to test if a cleaning of the database (from Roon GUI) may have a positive effect. So I stopped the roonserver service, copied (with tar) the /var/roon/RoonServer folder, and relaunched the service.

Then, before the cleaning of the database, I made a manual backup test, to confirm the problem; but it succeeded ! And I then forced an automatic backup : success again !
I still have to see if the automatic scheduled backup at 4am will be ok.

I have no explanation for this : in May I had several stop/start of the roonserver service, even a machine restart, and nothing improved the backup process failure.

Did you made a change from your side ?

Hey, @Pascal_Girard

Glad to hear the backup is working again. We did not make any changes, at least not as far as I am aware. Please keep us posted after a bit more testing, if the scheduled backups continue to succeed.

Hi,

The backups are still functional :

  • all automated backups at 4:00 AM since May 25
  • manual backups for test
  • with Roon v2.67 since May 27
  • even backup of today June 1st
    (the backup failed from May 1st : I wanted to eliminate the curse of first day of a month :smiling_face_with_sunglasses: )

I have no firm explanation, it may be a data synchronization from RoonLab / Qobuz servers which may have rewritten a corrupted (meta)data ?

I hope the defect will not reappear in the future.