Error: Failed to rename file ...
A week or so ago I was editing config.g and when I tried to save, I got this message "Error: Failed to rename file config.g.part...File not found." (See thread entitled Variable "already exists")
I took out the SD card and looked at it on my PC. It was fine, except config.g had a length of zero. I had a backup, so I renamed the empty config.g and copied the backup and I was back up and running. Nothing like this had ever happened before, but I was a little unnerved.
Just now I was editing a small macro file and when I tried to save it, the same things happened: "Error: Failed to rename file 0:/macros/Music/Trilogy.part: file not found". (Macro was named Trilogy) The file is still there now, but empty.
Is there any information on this issue? Any way to recover lost files when it happens? Any idea what causes it?
@donstauffer what type of duet board are you using?
@jay_s_uk Duet 2 WiFi. Railcore printer.
@donstauffer I have seen issues in the past where the wifi connection has been borderline, causing issues when editing files (the files are downloaded to your machine when they're edited and then uploaded back to the duet board during the save process).
Check M122. What sort of signal strength do you have?
@jay_s_uk WiFi signal strength -41dBm, mode 802.11n, reconnections 0, sleep mode modem
From what I found by Google, that's excellent. My router is about 8 feet from the Duet.
Even if there's a WiFi failure, shouldn't the file fall back to the prior version, at worst? It should be checking that it got a good transmission, and if not, just not change it at all, right?
@donstauffer yea, that's a decent signal strength.
DWC moves a copy of the file being edited to .bak and then it's there to recover from. But I don't think there's really any way to know there's been a failure.
The wrote failure could also be as a result of issues with the SD card. Try backing it up and reformatting it
@jay_s_uk I don't see a .bak file. Where would it be? Or is that only config.g that gets a .bak file?
@donstauffer it may have deleted it if it thought the file had been uploaded correctly
DonStauffer last edited by
@jay_s_uk That sounds like it would be a bug, if so.
There was some discussion in May regarding how DWC saves edited files, etc. Will see what became of that.