config.g disappears
-
Can you try working your way through here?
https://duet3d.dozuki.com/Wiki/What_to_do_if_your_Duet_won't_respondHow far can you get?
-
@phaedrux I connected my MacBook Pro to the board, the two LEDs next to the USB, the red and green are illuminated, also the red blinking one near the corner is on. And I can connect with SerialTools. But no LEDs on the ethernet port.
-
In serial tools are you able to send M552 S1 to enable networking? That might get you some action on the ethernet port.
-
@phaedrux said in config.g disappears:
M552 S1
Yes, it did! I'll see if it works powered through VIN.
It does not work. I did:
Send M552 S0 to disable networking, then M552 S1 P0.0.0.0 to enable networking and have your router assign an IP address and it reported back good.Connecting to DWC again with Mac and looking at System, there still is no config.g and I had copied it there an hour ago.
Again, reloaded config.g and it appears to be working, for now. -
It's strange that only config.g would be missing. I'd expect any card issue to make the whole thing unaccessible and DWC wouldn't work at all.
I would suggest getting a fresh SD card and copying your files over to that one and see if it holds out longer.
-
@norwestie
I remember, I edited my config.g on my PC and saved it. But it was namedconfig.g.txt
Had to rename it in a DOS shell (Mac is different) and then could use it on my printer.
IIRC DWC can also rename files with wrong file-type letters, just have to find it. -
I also had this happen recently on the Duet 3 mini 5+. I lost ethernet connection at the same time. I checked the sd card to make sure it was seated and loaded the config.g back on. If it happens again, I will pull the card, inspect closer and report back.
-
@phaedrux it is when you are editing config.g and you press save and it drops the connection while saving it and you get a blank config.g when it reboots.
It only happens to config.g because that is the only file you are editing , I guess it could blank any file you are editing ?. -
@peter247 if it fails during the upload process you're typically left with a config.bak file, that can be renamed config.g
-
@jay_s_uk The problem is you can't connect back into my duet so you reboot it and the config.bak now automatically overwrites config.g , so now config.bak and config.g are both blank .
-
@peter247 yea, sd card removal is typically required. i'm surprised config.bak is being overwritten though as it only gets created by DWC when the existing config.g is editted. its not automatically created by the firmware on boot. but ultimately, always keep a backup of your files as sd cards aren't the most trustworthy devices
-
@peter247 My machine was off for the night, but my duet interface was still open. When I turned the machine back on, there was no connection. When I finally regained connection, config.g was missing. I replaced the card just to be safe.
-
@Tinken @peter247 What board are you using? Can you share a M122 as well?
-
It is for a Blv mgn cube which I'm still building , so it never been fully tested out
5/25/2021, 8:12:08 PM m122
=== Diagnostics ===
RepRapFirmware for Duet 3 Mini 5+ version 3.2.2 running on Duet 3 Mini5plus WiFi (standalone mode)
Board ID: MZSV6-S096U-D65J0-40KMD-3413Z-R7859
Used output buffers: 3 of 40 (24 max)
=== RTOS ===
Static ram: 98732
Dynamic ram: 107852 of which 44 recycled
Never used RAM 38588, free system stack 200 words
Tasks: NETWORK(ready,190) HEAT(blocked,315) CanReceiv(blocked,947) CanSender(blocked,372) CanClock(blocked,363) TMC(blocked,106) MAIN(running,440) IDLE(ready,20) AIN(blocked,269)
Owned mutexes:
=== Platform ===
Last reset 00:01:53 ago, cause: power up
Last software reset at 2021-05-20 20:46, reason: User, GCodes spinning, available RAM 38588, slot 0
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00000000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
Error status: 0x00
Aux0 errors 0,0,0
Aux1 errors 0,0,0
Supply voltage: min 24.0, current 24.1, max 24.1, under voltage events: 0, over voltage events: 0, power good: yes
Driver 0: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 5919, writes 0, timeouts 0, DMA errors 0
Driver 1: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 5920, writes 0, timeouts 0, DMA errors 0
Driver 2: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 5920, writes 0, timeouts 0, DMA errors 0
Driver 3: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 5920, writes 0, timeouts 0, DMA errors 0
Driver 4: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 5920, writes 0, timeouts 0, DMA errors 0
Driver 5: position 0, assumed not present
Driver 6: position 0, assumed not present
Date/time: 2021-05-25 20:12:07
Cache data hit count 255408117
Slowest loop: 6.19ms; fastest: 0.15ms
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 22.5MBytes/sec
SD card longest read time 3.4ms, write time 0.0ms, 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 = 0 -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.
=== Network ===
Slowest loop: 200.29ms; fastest: 0.08ms
Responder states: HTTP(0) HTTP(4) HTTP(1) 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 1
WiFi firmware version 1.25
WiFi MAC address f0:08:d1:02:eb:a5
WiFi Vcc 3.42, reset reason Power up
WiFi flash size 2097152, free heap 24560
WiFi IP address 192.168.0.186
WiFi signal strength -61dBm, mode 802.11n, reconnections 0, sleep mode modem
Clock register 00002002
Socket states: 0 2 2 0 0 0 0 0
=== CAN ===
Messages queued 373, send timeouts 373, received 0, lost 0, longest wait 0ms for reply type 0, free buffers 16
- WiFi -
-
@phaedrux said in config.g disappears:
M122
5/27/2021, 8:56:31 AM M122
=== Diagnostics ===
RepRapFirmware for Duet 3 Mini 5+ version 3.2.2 running on Duet 3 Mini5plus Ethernet (standalone mode)
Board ID: AMDTD-5396U-D65J0-40KM2-2N03Z-7RVW6
Used output buffers: 3 of 40 (11 max)
=== RTOS ===
Static ram: 98732
Dynamic ram: 102436 of which 60 recycled
Never used RAM 43988, free system stack 200 words
Tasks: NETWORK(ready,160) ETHERNET(blocked,566) HEAT(blocked,315) CanReceiv(blocked,947) CanSender(blocked,372) CanClock(blocked,363) TMC(blocked,106) MAIN(running,440) IDLE(ready,20) AIN(blocked,260)
Owned mutexes:
=== Platform ===
Last reset 00:00:30 ago, cause: power up
Last software reset at 2021-05-26 04:02, reason: User, GCodes spinning, available RAM 43988, slot 0
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00000000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
Error status: 0x00
Aux0 errors 0,0,0
Aux1 errors 0,0,0
Supply voltage: min 0.0, current 24.1, max 24.1, under voltage events: 0, over voltage events: 0, power good: yes
Driver 0: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 4254, writes 9, timeouts 0, DMA errors 0
Driver 1: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 4254, writes 9, timeouts 0, DMA errors 0
Driver 2: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 4254, writes 9, timeouts 0, DMA errors 0
Driver 3: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 4253, writes 9, timeouts 0, DMA errors 0
Driver 4: position 0, standstill, SG min/max 0/0, read errors 0, write errors 0, ifcnt 9, reads 4254, writes 9, timeouts 0, DMA errors 0
Driver 5: position 0, assumed not present
Driver 6: position 0, assumed not present
Date/time: 2021-05-27 08:56:30
Cache data hit count 55958591
Slowest loop: 2.38ms; fastest: 0.12ms
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 22.5MBytes/sec
SD card longest read time 1.9ms, write time 0.0ms, 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 = 0 -1, chamberHeaters = -1 -1
Heater 1 is on, I-accum = 0.0
=== 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.
=== Network ===
Slowest loop: 6.45ms; fastest: 0.03ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
HTTP sessions: 1 of 8- Ethernet -
State: active
Error counts: 0 0 0 0 0
Socket states: 5 2 2 2 2 0 0 0
=== CAN ===
Messages queued 271, send timeouts 269, received 0, lost 0, longest wait 0ms for reply type 0, free buffers 16
- Ethernet -
-
Could everyone in this thread who has had a config.g file go missing, can you please answer me these questions.
Was it just the config.g file that was gone, or other files as well?
At some point close to that time had you been editing config.g via DWC? -
@tinken Yea my brand New Duet 3 mini is doing that. Lucky for me my friend has a exact clone of my Printer. His Duet 3 mini works great, but mine the Duet 3 mini is crazy as my friend said to me. My Duet 3 mini freezes and the Config file is no more. We think it a bad card reader on mine. as we swap my Duet 3 mini with his and his works perfectly on my Printer. My duet 3 mini has the same problem when we try it on his printer. Please note all firmwares and printers were 100% the same and we tried new SD cards. Also no editing config.g via DWC at the time this was happening. Also It looks like more this just the config file is gone, some time other file go with it.
-
@phaedrux Just the config.g missing, nothing else. I was editing the config.g via DWC the night before. I didn't notice the missing file until I turned the machine back on the next day.
-
@Phaedrux
Just wondering when config.g.bak is created/overwritten? The very moment, I click on edit config.g or when the printer is powered up?
I'm puzzled, because I read that an empty config.g would cause an empty config.g.bak after startup?! -
@o_lampe its created on edit