Get error saving TW file

I have a TW file v5.2.2 on Windows 10 22h2. The TW file is 6.5MB long on a network drive. It’s quite small. I use this file at work. Some of my settings:

  1. Under General I have chosen “Do not save changes automatically”. This is because it takes 40 seconds each time I save this file.
  2. Under HTML Native File System Saver “Enable saver” is checked. It’s using HTML Native File System Saver v0.7.1.
  3. I use Chrome v1.40.0.7339.81 to open this file, it just updated. The save doesn’t work right on Firefox for me so I can’t use Firefox.
  4. I cannot use this on Tiddlyhost because that site is blocked at our router level at work.

Just this morning, even after a reboot of the machine. I get this error when saving to a network drive:

“Can’t open this file. File:/// can’t open files in this folder because it contains sytem files”. Buttons for me to choose from are: “Choose a different file” or “Cancel”.

When I click Cancel I get this error: “Error while saving: Encountered an error while saving to file system: [AbortEreror: Failed to execute ‘showSaveFilePicker’ on ‘Window’: The user aborted a request.]”

When I click “Choose a different file”, and I save to the same network file I get the same original error “Can’t open the file…” above.

I cannot get this to save. This file is only 6.5MB and must be on a network drive so I can access it from multiple remote desktops and my laptop.

Any idea how I can get this to work?

Upgrading my TW file would cause me to lose many customizations, mainly styles, which I don’t want to lose. I’d rather not update TW. But I might have to.

Thank you!

EDIT:

  1. Oddly enough the file does get saved when I check the file date and time on the network drive.

First of all: Do you have a backup?

There is a thread here at Talk, that shows, how you can create a local backup file if you save mechanism does not work.

See: "Emergency Save" - How to Save a Wiki if the UI is Broken

It shows a mechanism, that works with the browser console.


  • Can you “copy / paste” your file from the network drive using the File Explorer?
    • If no, the file is probably locked, which can happen with network files.
    • Worst case the file is corrupted.
  • If you can copy paste the file to a local directory, try to open it from there.
    • Open it in a browser
    • Right click into the page - There should be a dialogue, that shows View Page Source
    • Select it and have a look, if it looks OK – This only makes sense, if you know a bit about HTML source code.

Just some thoghts – And don’t for get backup first

Hope that helps
-Mario

I do not understand that? – As I wrote may be there is a problem with file locking on the server.

The Native File Saver API is not supported by FireFox at the moment.

That’s OK. Do you know how the file-system is “mounted” to your local machine?
SMB mounted drives are notoriously slow on Windows.


Do you have a FileExplorer open at the same time as you try to save to the network file. The Windows file explorer sometimes does lock the file, if it shows some meta data from the file. So a write may be blocked by the File Explorer.

  • Make sure all Explorer instance the show the directory or and file meta data are closed.
  • The same is true for some text editors. So make sure not text editor edits the file.

Just some more thoughts.

No I don’t know how it’s mounted. The TW file is on another Windows drive and I think we only use SMB on unix machines.

I do have a backup from last week, Friday. I will look at that. It seems my backup from 9/4 has the error as well. When I open the file to view the source I don’t see any garbage.

I would have to ask IT to reboot the computer that runs this network drive. Do you think that would help?

I found a backup from August, copied it to the root of my network drive where I normally store the file. When I open the file and save it I get the same error. Would this indicate a locked file? So would a reboot help?

May be. It’s worth a try.

You can as your IT, if they can have a closer look. – I only can guess.

Did you try to open a file on your local PC?

I just did. Opening this file and saving it locally worked perfectly with no errors. I have already asked IT to reboot whatever PC runs that network drive. This may take a few days to get done.

Thank you.

You are welcome. I hope that helps.

I got this to work in Firefox. I had a Google Chrome update last week so the update probably broke this. I’m trying to ping @jeremyruston to let him know. I hope he sees this.

The native saver no longer seems to work on Chrome if the TW file is stored on a network drive. Versions should be in the first post I made above. Chrome works fine on a local drive but in my case I need it on a network drive to access the TW file from various remote desktops I use.

I thought the native saver didn’t work with Firefox??

I would try seeing if anything can be downloaded and saved directly to your network drive from Chrome. It’s possible that your IT just implemented a new policy change.

I just tested this at work, and I cannot confirm. I’m using the latest Chrome (140.0.7339.128) and saving to a network drive works just as well as a local save.

Are you using the native-file saver (by which I assume this is meant.)

I suspect that it will still save fine, and that the problem is a change to the configuration of the network, but it’s worth a check.