"permission denied" error and "error opening file:invalid file format"


I’m getting the above errors on two different projects, which obviously aren’t opening at all.

We’ve been installing a fresh Dorico install on some new Mac minis within the department. These original compositions were created on our existing Macbook Pros. They were then opened on our new machines and then saved. After re-opening them on any of our machines, we are faced with these errors. We’re not sure what is causing the problem.

Could I upload them for you to have a look please?


If they’re smaller than 2MB when zipped up, you can upload them as an attachment to a reply to this thread. If they’re too big, you could send them via WeTransfer.com to me at d dot spreadbury at steinberg dot de and I’ll take a look. There may be only a limited amount I can do over the weekend, unfortunately, as it may well require the skills and talents of the developers.

Thanks for your reply. Please find attached

TSANG-Composition v2.zip (1.12 MB)
GRASSBY viola piece.zip (1.38 MB)

Thanks for attaching these files, Tony. Dorico projects use zip compression, and the zip files for these projects are both corrupted. So the question remains: how did this happen?

Can you tell us something about the Macs in your department? Are they all the same configuration? What operating system(s) are they running? Are files saved locally or onto the network? If locally, are they saved onto an internal or external drive? If on the network, what network protocol are you using to connect to the network volumes (e.g. Samba? AFS? something else?), and what operating system is the network storage running? What filesystem is the network storage using? Finally, how were the files copied from one machine to another? Were they transported on a USB flash drive, or similar? If so, what filesystem is the USB flash drive using?

Can you open other projects without problems? E.g. if you create a new project, save it, close it, and reopen it, does that work? Try opening one of the Dorico example projects (from /Users/Shared/Dorico Example Projects), and then doing Save As to save it somewhere else, then close and reopen it again: does that work?

The peculiar thing about these projects is that although the zip files are too corrupted for Dorico to be able to open them, macOS seems to be able to recover them OK. See if you can do the following:

  1. Change the file extension of one of the corrupted projects from .dorico to .zip. Answer in the affirmative when asked if you want to proceed.
  2. Double-click the new .zip file to uncompress it.
  3. You will end up with a folder called e.g. ‘GRASSBY viola piece’, inside which are two files (score.dtn and scorelibrary.dtn) and two folders (META-INF and supplementary_data). In the Finder, select these two files and two folders directly, not the parent folder.
  4. Right-click on the selected files and folders and choose Compress 4 items from the context menu.
  5. Change the filename of the resulting ‘Archive.zip’ file to e.g. ‘test.dorico’. Again, answer in the affirmative when asked if you want to change the file extension.

Now try opening the test.dorico file you ended up with in step 5 on your Macs. You should find that it opens as expected.

Hopefully with some answers to the questions above we’ll be able to get to the bottom of this problem.

Hi Daniel,

Your method DID indeed fix the corrupted files. Thanks for this!!!

We have a bank of Macbook pros 2012 all running sierra 10.12.2. These were the original machines we were running Dorico om. We’ve recently bought some Mac minis which are running the exact same software. They are all cloned, so should be the same software wise. The only difference in this case was that the full soundpacks were not installed on the Mac minis at the time.

The students save their projects to a shared folder that everyone has access too. They also open directly from this area too, so they weren’t copied to anywhere externally. They connecting to a Windows server 2012 R2 share on NTFS via cifs://

I will try opening and saving some other projects to see if I can emulate the problem…

Thanks for explaining your setup, Tony. Is it possible that two students both had the same project open at the same time on different machines and were trying to save different versions into the folder? In theory that should work fine, because the way it actually works is that the project(s) you’re working on are kept unzipped in the local machine’s temporary folder, and only when you save is the file re-zipped and then saved to the final location, and I would assume that the network file system won’t allow write access to a file that another computer is also writing simultaneously, so it’s hard to see how this could cause the kind of corruption you were seeing.

Please do let me know if you encounter this problem again, and if so, if you can think of any specific details of the circumstances when the problem occurred that could be significant in helping us to track this down.

Hi Daniel,

Each student had only their own file open so they hadn’t been sharing their projects.

We had the same problem on Friday. A Dorico file was created on a Teacher’s PC and then copied to the shared area. A student then opened this file on one of our Mac Minis directly form the shared area. They then saved and closed Dorico down. When reopening the file, the same error came up. The problem was then fixed using your method.

I can only assume it’s a problem when working directly from the networked area.

We’ve now advised out students to copy their work locally to work on. When finished they copy their work back over to the networked area. We haven’t had any problems yet, but I’ll keep you posted.


Thanks for updating me on this issue, Tony. It’s very peculiar. If it happens again, please send us whatever files you have to hand, ideally including the ones saved on each computer as well as the ones put back into the network area.