Rwc file gets corrupted after publishing

Running Classic v9.3.4 on a MacBook Pro recently upgraded to Sequoia 15.3.1.

One of my website rwc’s is getting corrupted every time I publish it. It publishes OK, but when I try reopening the rwc, I get a “The document (rwc) could not be opened,” and then it provides a string to a Contents.plist file “that does not exist.”

Since I’m on deadline to make some major revisions for a client, I am working around it by making a copy of the rwc file after making updates, but BEFORE publishing it.

*** Can this problem be fixed, and how? I am not having this problem with other rwc projects… just this particular ones.

Hi @KdeB,

Is your RWC file located on a shared storage medium or in a cloud storage solution?

If yes - move it to your local Mac’s drive. Some of those solutions I mentioned tend to corrupt bundles (which is a special kind of filetype that only macOS uses) with this as one of the symptoms.

Opening it from a local drive conencted to your Mac will prevent it from being corrupted.

This isn’t caused by RapidWeaver by the way - all apps that use bundles to save their work in, are prone to this problem if cloud or shared storage is used.

Cheers,
Erwin

Wow @Heroic_Nonsense

thanks for that info. Not a classic user anymore, but I was not aware of that. I will keep an eye out for that.

:beer:

Thanks for the prompt reply.

Yes, I have all my RWCs in Dropbox. I was wondering if this was the problem, and late last night as I was struggling to get this site updated and published, with an uncorrupted RWC saved, I saved it to my hard drive.

I still got a corrupted file … but to tell you the truth, I was so weary and bleary eyed by then, I could have been confused as to which file I was trying to reopen.

I will give it a fresh go today, but thanks so much for the answer.

I’ve never had a problem keeping my RWCs on Dropbox before, after many years of RW and Dropbox use. BUT I will certainly move all my projects to my hard drive now, and make sure to back them up, as I don’t want to go through this again.

(I was able rebuild the site by converting my last RW8 file, from 2021, which at least preserved the design and most of the content. And content added/changed since then was easily retrieved from the currently published site.)

1 Like

Good to hear @KdeB!

A bit of background:

Most operating systems pack a file into a big block of data, containing everything needed by an application to read the file and the data within the next time you open it.

macOS does this too, but offers an alternative to this in the form of bundles. A bundle is a directory, containing several files and a “table of contents” (contents.plist) that lists what’s inside the bundle, what it does and what has changed. Contents.plist also assigns a key to all the files, so the asociated app can keep track of everything in the bundle.

If you right click on an RWC file (when stored on your mac) and then select “Show package content” you’ll see what I mean - a bunch of subdirectories, files and the content.plist file.

You can also right click, then choose “Show package content” on any apps in the Apps folder on your Mac, which will reveal a similar structure.

This is what the contents of a typical bundle (in this case an old RapidWeaver project) looks like:

And this is a snippet of that project’s contents.plist:

So this bundle is a directory, but is shown as a file. Double click it, and the bundle will open in the associated app like it was a normal file.

The bundle principle is not common among operating systems. Windows and Unix/Linux don’t have something similar at all. Only NeXTStep (one of macOS ancestors) and Commodore’s AmigaOS (1985) have a similar structure. So it’s really no surprise that most cloud storage providers don’t take the existance of bundles into account.

And this is where the trouble starts. Depending on the solution, files may be split from the rest of the bundle internally (without you noticing or agreeing to it) to save storage space on the actual hard drive that stores your date in the data center, or to save on the amount of data that has to be moved back and forth between you and the provider.

Of course Apple’s iCloud does work with bundles.

Cheers,
Erwin

Thank you so much. That explanation is extremely helpful, as I did want to understand what was going on … and you’ve explained it very well. I am very appreciative.

(I did know how to see into a bundle for its contents, and did look as I was trying to figure this out … But didn’t help me understand exactly what was happening.)

So, I guess I should start using iCloud. That would handle RWC bundles OK, is that right?

I’ve used Dropbox for many years, so never looked into iCloud. But now it seems I should.

Thanks again.