Error -54 can typically seem while you edit your Apple Music Library in your Mac. This is the right way to repair the
When you use Apple’s Music app on macOS, you might have encountered error -54 now and again. This error can happen in response to a number of actions in Music:
- When including or eradicating information to your Music Library
- When including or enhancing file metadata in Get Information home windows in Music
- When syncing your Music Library to iOS units
Within the first two instances, error -54 is sort of all the time associated to permissions errors on the information or folders in your Mac’s storage system. This could embrace permissions on information themselves or on their containing folders.
In reality, the -54 error is likely one of the oldest errors within the Macintosh filesystem courting again a long time as first documented in Apple’s e book Inside Macintosh: Information:
permErr = -54, /*permissions error (on file open)*/
This can be a basic file permission error which means an operation on a file or folder could not be accomplished as a result of filesystem permissions are stopping it.
For instance, in Music, when you drag information or folders containing information from the Finder into the Apple Music app’s foremost window, you might have seen error -54 crop up. The identical error can occur typically if you choose information in Music’s foremost window after which hit the Delete key or choose “Delete from Library” from Music’s contextual popup menu by Management-clicking on an merchandise.
Get Information
You might also have seen error -54 when you choose a file in Music’s foremost window and attempt to edit its metadata by way of the Get Information window:
That is often the identical challenge as above: locked information, folders, or permissions errors on these objects within the filesystem.
To repair each of the above errors, you may want to alter the permissions within the Finder. You then return to Music and add or take away your information or re-open the Get Information window and edit the information’ metadata once more.
To take action in Music, Management-click or right-click the objects whose permissions you wish to repair, then choose “Present in Finder” from the context popup menu. macOS will swap to Finder and reveal the information you chose.
Subsequent, choose a number of of the revealed information in Finder, then Management-click on them and choose “Get Information from the Finder’s popup menu. This opens the Finder’s Get Information window.
If it is not already proven within the Get Information window, flip the small arrow to the left of the Sharing & Permissions part on the backside to disclose the permissions pane.
A small lock icon seems on the backside of this pane, within the decrease proper nook. Click on it and enter your admin password to unlock the permissions pane:
Now change the highest merchandise (“Me”) to Learn & Write by clicking on the highest line underneath the “Privilege” label. Shut the Get Information window. You may repeat these steps on every file, or on a folder containing objects in Finder.
You may inform if a folder is locked or lacks write permissions by opening the folder and looking out within the lower-left nook for the pencil icon with a slash by means of it. When you’re not exhibiting a folder’s Toolbar then the pencil icon might seem within the window’s higher proper or decrease proper nook.
Now you possibly can return to the Apple Music app and check out your operation once more. Word within the case of enhancing file metadata in Get Information home windows in Music you might have to shut any open Get Information home windows and re-open them for the permissions modifications to take impact.
Syncing
Generally you may even see the identical -54 error while you attempt to sync your Music Library to an iOS system. That is often within the type of an error similar to:
“The iPhone [device name] can’t be synced. An unknown error occurred (-54).”
This may be brought on by the identical permissions errors as above, or different issues such because the goal system being full, a foul USB cable or unstable cable connection, or different issues. Apple technote HT205597 additionally says this could occur in case your Apple Music folder accommodates information in several places inside the Music folder on disk.
On this case, you may must give up Apple Music, consolidate your information in your Apple Music folder, then open Apple Music and check out once more. Chances are you’ll must take away and re-add all of the objects in Music earlier than you do that.
By default Apple Music shops information within the person’s /Music/Media folder – however this location may be modified in Apple Music’s Settings window.
Backup and restore
When you nonetheless cannot resolve error -54 after making an attempt the entire above, there’s one latch ditch resolution: again up your complete Music folder, delete it out of your Mac, and re-add all its content material to Apple Music.
To take action, again up your person’s Music folder from the Music folder to an exterior storage system, delete the whole Music folder, restart your Mac, then run the Apple Music app once more. This forces Music to create a brand new Music folder within the person folder with appropriate permissions.
Lastly, copy the contents of your backed-up Music folder into the newly created Music folder within the person folder, then open the Apple Music app and re-add all of your content material.
In case your backed-up content material nonetheless has permissions locks on it, remember to unlock all the things first utilizing the steps above earlier than copying the information again to your Mac’s person Music folder.
Superior: change file permissions in Terminal
Clearly, if in case you have a number of Music content material, resetting every file or folder’s file permissions in Finder Get Information home windows may be fairly time-consuming. One different is to make use of Terminal to batch-change file and folder permissions.
Be warned: altering file permissions in Terminal is highly effective and when you’re not cautious you possibly can injury the software program in your Mac and even delete information unwittingly.
To bulk-change file permissions in Terminal you employ the chmod
and chgrp
instructions.
chmod
is brief for change file modes and chgrp
is brief for change group. You may learn extra about the right way to use each in Terminal by typing man
adopted by an area, adopted by both command identify, after which urgent Return in your keyboard.
To make use of chmod
or chgrp
you may must find out about UNIX file and group permissions which we cannot get into right here.
Suffice it to say every file or folder in UNIX has an proprietor, a gaggle, and three units of permissions: proprietor, group, and everybody or “world” permissions.
In Terminal, when you kind ls -l
and press Return whereas in any folder, Terminal will record all information and folders and their permissions within the Terminal window:
On the far left are the three units of permissions for every merchandise in a folder: proprietor, group, and everybody. If an merchandise has a “d” to the far left it means it is a listing as an alternative of a file or alias.
Permissions on every merchandise for every of the three varieties may be any mixture of “rwx” which implies “learn, “write”, or “execute”. There are three units of them listed, so as in Terminal for the three varieties talked about above.
If any of those permissions shows a “-” it signifies that permission is turned off.
Utilizing the chmod
and chgrp
instructions you possibly can change these units of permissions in Terminal. These are successfully the identical permissions as proven within the Sharing & Permissions pane in Finder Get Information home windows.
You can even use the ls
command with out the -l
flag to show a folder’s itemizing in Terminal with simply the merchandise names with out all of the permissions information.
Error -54 is actually a file permission error within the filesystem and by utilizing numerous means to reset the permissions you need to be capable of resolve it with out an excessive amount of bother.