Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Error: Failed to rename file ...

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    3
    10
    299
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DonStaufferundefined
      DonStauffer
      last edited by DonStauffer

      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?

      Thanks!

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @DonStauffer
        last edited by

        @donstauffer what type of duet board are you using?

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        DonStaufferundefined 1 Reply Last reply Reply Quote 0
        • DonStaufferundefined
          DonStauffer @jay_s_uk
          last edited by DonStauffer

          @jay_s_uk Duet 2 WiFi. Railcore printer.

          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @DonStauffer
            last edited by

            @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?

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            DonStaufferundefined 1 Reply Last reply Reply Quote 0
            • DonStaufferundefined
              DonStauffer @jay_s_uk
              last edited by DonStauffer

              @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?

              1 Reply Last reply Reply Quote 0
              • jay_s_ukundefined
                jay_s_uk
                last edited by

                @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

                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                DonStaufferundefined 1 Reply Last reply Reply Quote 0
                • DonStaufferundefined
                  DonStauffer @jay_s_uk
                  last edited by DonStauffer

                  @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?

                  jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                  • jay_s_ukundefined
                    jay_s_uk @DonStauffer
                    last edited by

                    @donstauffer it may have deleted it if it thought the file had been uploaded correctly

                    Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                    DonStaufferundefined 1 Reply Last reply Reply Quote 0
                    • DonStaufferundefined
                      DonStauffer @jay_s_uk
                      last edited by

                      @jay_s_uk That sounds like it would be a bug, if so.

                      1 Reply Last reply Reply Quote 0
                      • Phaedruxundefined
                        Phaedrux Moderator
                        last edited by

                        There was some discussion in May regarding how DWC saves edited files, etc. Will see what became of that.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Unless otherwise noted, all forum content is licensed under CC-BY-SA