Solved Error: Failed to rename file or directory
-
Just installed a new Duet 3 mini and I do have some problems. After uploading the config files from the RRF web tool I get errors in the console. Mostly about read and write problems. Who can help me out because no config files are able to load on the system. For each I get errors like Error: Failed to rename file or directory 0:/sys/config.g .part to /sys/config.g
-
@frankv
Have you checked that the SD card is writable?
Perhaps the write protect switch has been bumped. -
@owend I can write from windows to it. On a microSD ther is no clip to protect it against writing. In the sys directory there is a config.json file uploaded but it's not break down in the other files.
-
M122
=== Diagnostics ===
RepRapFirmware for Duet 3 Mini 5+ version 3.3 (2021-06-15 21:46:11) running on Duet 3 Mini5plus WiFi (standalone mode)
Board ID: ZWBG6-5196U-D65J0-40KMS-JY03Z-RTZ63
Used output buffers: 3 of 40 (17 max)
=== RTOS ===
Static ram: 102724
Dynamic ram: 104600 of which 464 recycled
Never used RAM 35916, free system stack 150 words
Tasks: NETWORK(ready,12.5%,226) HEAT(delaying,0.0%,406) Move(notifyWait,0.1%,362) CanReceiv(notifyWait,0.0%,941) CanSender(notifyWait,0.0%,371) CanClock(delaying,0.0%,340) TMC(notifyWait,0.0%,124) MAIN(running,86.6%,419) IDLE(ready,0.0%,29) AIN(delaying,0.8%,273), total 100.0%
Owned mutexes: WiFi(NETWORK)
=== Platform ===
Last reset 00:12:47 ago, cause: power up
Last software reset time unknown, reason: HardFault bfarValid precise, GCodes spinning, available RAM 35916, slot 1
Software reset code 0x0063 HFSR 0x40000000 CFSR 0x00008200 ICSR 0x00000803 BFAR 0x00000040 SP 0x20003650 Task MAIN Freestk 739 ok
Stack: 00000000 200036f4 00000571 00000000 00000000 0007bca5 00082fcc 610f0200 00000000 00000000 d0808a23 096a0080 2029090d 0484100e 40041883 2081c421 18114708 400844a1 3040c540 00000000 00000000 3f800000 358637bd 00000000 80000010 200036c4 ffffffff
Error status: 0x00
MCU revision 3, ADC conversions started 768478, completed 768478, timed out 0, errs 0
Step timer max interval 1489
MCU temperature: min 25.4, current 28.0, max 28.2
Supply voltage: min 1.3, current 1.3, max 1.4, under voltage events: 0, over voltage events: 0, power good: no
Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
Driver 0: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 1: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 2: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 3: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 4: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 5: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Driver 6: position 0, ok, SG min/max not available, read errors 0, write errors 0, ifcnt 0, reads 0, writes 0, timeouts 0, DMA errors 0
Date/time: 2021-11-26 10:22:31
Cache data hit count 1559034036
Slowest loop: 99.62ms; fastest: 0.11ms
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 22.5MBytes/sec
SD card longest read time 3.9ms, write time 5.8ms, max retries 0
=== Move ===
DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== AuxDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters = -1 -1, chamberHeaters = -1 -1
=== GCodes ===
Segments left: 0
Movement lock held by null
HTTP is idle in state(s) 0
Telnet is idle in state(s) 0
File is idle in state(s) 0
USB is idle in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
LCD is idle in state(s) 0
SBC is idle in state(s) 0
Daemon is idle in state(s) 0
Aux2 is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty.
=== CAN ===
Messages queued 3726, received 0, lost 0, longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 17 (min 17), ts 3726/0/0
Tx timeouts 0,0,3726,0,0,0 last cancelled message type 30 dest 127=== Network ===
Slowest loop: 35.01ms; fastest: 0.00ms
Responder states: HTTP(2) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
HTTP sessions: 1 of 8- WiFi -
Network state is active
WiFi module is connected to access point
Failed messages: pending 0, notready 0, noresp 0
WiFi firmware version 1.26
WiFi MAC address d8:bf:c0:15:0a:58
WiFi Vcc 3.39, reset reason Power up
WiFi flash size 2097152, free heap 23840
WiFi IP address 192.168.119.100
WiFi signal strength -47dBm, mode 802.11n, reconnections 0, sleep mode modem
Clock register 00002002
Socket states: 4 0 0 0 0 0 0 0
- WiFi -
-
Update:
There seems to be a problem with the provided zip file from the RRF tool. Windows will not read all files causing problems in read and write. They are in the zip and you can unarchive them with winzip. The extention is (Unix like i think) with an underscore after each extention. So Winzip the files and rename the extention. You can now direct write them to SD card or upload by the web interface. -
@frankv It was most likely caused by bad filenames from the configtool ZIP that you tried to upload before. If you delete the current files from /sys and upload a fresh bundle from ConfigTool v3.3.7, this error should no longer appear.
-
-