Error code

macOS -54

MACOS-54
System Error Code· A POSIX/system errno returned when a system call fails.

What it means

File permission error (permErr) — the process tried to open a file in a mode its permissions do not allow..

How to fix it

  1. Check permissions in Finder Get Info > Sharing & Permissions.
  2. use `chmod` and `chown` in Terminal to correct ownership.
  3. run Disk Utility First Aid to repair directory permissions.

Not affiliated with macOS. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.