Roon server 'Fatal error' - could not create lock file on iMac 2017 (ref#T974R4)

Hi! What’s not quite right with Roon?

· Roon is slow, freezing or won’t start

Roon is slow, freezing or won’t start

· Roon won’t start up at all

Tell us what's going on

· Roon server does not load. Eternal spinning icon. Received 'Fatal error' message: "Could not create required lock file"

And later: "Uh oh, something not right. Make sure…"

Setup unchanged for many years.
Not aware of any software changes.
• iMac 2017. 13.7.8
• Dedicated to Roon
• Ethernet
• Music on T7 SSD

Tell us about your home network

· Ethernet router: 3BB
Rasberry Pie
RoPee
Music on T7 SSD - direct connection

(But I don't see how this can be issue - software not loading)

it’s almost certainly a permissions (or ownership) problem, but it’s specifically about the macOS temp directory Roon is trying to use for its lock file, not about Roon’s own app bundle.

Here’s what I found out doing a bit of googling and AI queries. Info below was cross-checked using Perplexity as main source, with Clause and ChatGPT as reality checks. It also maps to what I think I know.

Roon on macOS creates a “required lock file” in the system temp directory when it starts.
If your user can’t write to that temp directory, you get the “Fatal error – could not create required lock file” message.

Under current macOS releases:

  • /tmp is a symlink to /private/tmp.

  • /private/tmp should be owned by root:wheel and world‑writable, typically with sticky bit: mode 1777.

  • If those permissions are broken (e.g., not writable for “everyone”), apps like Roon that expect to write lock files there will fail.

So it’s a permissions/ownership problem on the temp directory, not on Roon itself.

If you’re not comfortable using Terminal, you may be able to fix this another way:

Reboot into macOS Recovery and run Disk Utility → First Aid on the system volume, which can catch some filesystem/permission problems at a lower level.

  • Check free space in  menu → About This Mac → Storage, and free up space if the system volume is nearly full; lock‑file failures can be a symptom of “no space left on device.”

–Terminal Stuff Follows–

Quick diagnostic on the iMac:

On the 2017 iMac, in Terminal, run:

bash

ls -ld /tmp /private/tmp

You should see something like:

bash

drwxrwxrwt … root wheel /private/tmp
lrwxr-xr-x … root wheel /tmp → private/tmp

Key points:

  • Owner should be root, group wheel.

  • Permissions should be drwxrwxrwt (the t is the sticky bit, and the effective mode is 1777).

  • If /private/tmp isn’t writable by everyone, or the sticky bit is missing, that’s your problem.

Fixing the permissions safely

If /private/tmp is wrong, the canonical fix is to restore the correct mode and ownership, not to “chown it to your user” (which works short‑term but breaks the system convention).

In Terminal:

bash

sudo chown root:wheel /private/tmp
sudo chmod 1777 /private/tmp

Then reboot the Mac and try starting Roon Server again.

If permissions look correct but Roon still fails

If ls -ld shows the expected root:wheel and drwxrwxrwt on /private/tmp, but Roon still complains:

  • Make sure there’s actually disk space available on the system volume; “cannot create lock file” can also appear when there’s no space left.

  • Fully remove and reinstall Roon on that Mac, then when macOS asks for permissions (Documents, Music, etc.), grant them.

  • Confirm you’re not running Roon under some restricted user or sandboxed context that denies write access to /private/tmp.

Note: I don’t think any 3rd-party utilities can solve this problem.

Hello @Simon_Williams

Thank you for reaching Roon support.

Please proceed with the directory permission and disk space troubleshooting steps provided by Andrew_Webb above.

Additionally, verify that your macOS user account has full Administrator privileges. Roon requires an Administrator account to function properly and does not support standard user profiles.

Provide an update on your status after completing these checks.

Thanks for messages. I’ve attempted to complete the terminal actions.

Can confirm only 1 user setup on this Mac, and is the administrator.

Has 130 gb free on local disk.

250 gb free on the external SSD I house all the music.

Deleted Roon.

Restarted.
Reinstalled Roon.

It ‘almost’ loaded. Temporarily showing audio stream locations. To be replaced with the same fatal error message.

Now - just showing ‘waiting for Roon Server’.

Note: never asked me access to any folders.

Hi @Simon_Williams,

Thanks for the updates! For a few next steps in troubleshooting, can you:

  • Run ls -ld /tmp /private/tmp in Terminal and share the exact output — this will confirm whether the permissions fix actually took.
  • Check if Full Disk Access has been granted to Roon in System Settings → Privacy & Security → Full Disk Access.
  • The missing folder access prompt is suspicious, can you manually check Privacy & Security → Files and Folders to see if Roon has been blocked?
Thank you! 👍

Hi - Here is the Terminal output:

• ”drwxrwxrwt 11 root wheel 352 9 May 12:42 /private/tmp

lrwxr-xr-x@ 1 root wheel 11 16 Aug 2025 /tmp → private/tmp

Simons-iMac-2:~ simonwilliams$ “

• Im unable to open Roon settings - clicking on option in file - doesn’t have any action.

• Roon has access to ‘files and folders’ according to the System settings - attached.

Hi @Simon_Williams,

We’re sorry to hear you’re encountering this problem.

Did you recently restore a Time Machine backup on this machine or migrate Roon from another database location? If you truly took no action before this occurred, it might be evidence of latent database corruption.

In any case, if you have a recent Backup of Roon, please try the following:

  • Exit out of RoonServer from Activity Monitor
  • Navigate to your RoonServer’s Database Location
  • Find the folder that says “RoonServer” and delete it fully
  • Reinstall the RoonServer App from our Downloads Page to generate a new RoonServer folder
  • On your Roon Remotes, press “Use another Roon Server” and connect to the new database

Then restore your Backup.

Let us know if this helps. Thank you!

I’ve not had any restoration from Time-machine, or migration from any other Roon databases.

I’ve proceeded with your directions -
Deleted the ‘Roon server’ folder.
Re-installed Roon from the downloads page.
Setup server ‘on this Mac’.
Restarted.

Launched Roon.
Click on ‘Start Roon Server’ results in a loop - just returns me back to the same page.
Selecting ‘Select a different Roon server’ results in the same loop.

I can’t get as far as the restore from backup.

Hope you can assist

I also deleted the ‘Database’ folder from the ‘Roon’ folder.
Re-launched Roon.
De-authorized the previous Roon server.
Music is now playing :slight_smile:

Restored from backup - all seems good so far.

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

Hey @Simon_Williams,

Great to hear that music is playing again, and that the restore from backup is working so far. We’ll mark this thread for closure. Enjoy your Roon experience!