Webserver crash
-
Hi, i’m new here, i have problems with the web interface, specifically the webserver. It runs perfectly, but after 1-2 Hours it crashes, i can ping it successfully, but i cant open it right via IP…
If i unplug the Ethernet cable and plug it in again it runs again till the next crash.Setup is a Duet 2 Ethernet
-
@anke Please post response to M122. Most likely you are running old firmware on the Duet.
Ian
-
Thanks for your fast reply.
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 3.3 (2021-06-15 21:44:54) running on Duet Ethernet 1.02 or later
Board ID: 08DGM-9T6BU-FG3SJ-6JTD6-3S46J-KUWBD
Used output buffers: 1 of 24 (18 max)
=== RTOS ===
Static ram: 23876
Dynamic ram: 71232 of which 0 recycled
Never used RAM 19308, free system stack 188 words
Tasks: NETWORK(ready,28.1%,244) HEAT(delaying,0.0%,330) Move(notifyWait,0.1%,364) MAIN(running,70.9%,441) IDLE(ready,0.9%,29), total 100.0%
Owned mutexes:
=== Platform ===
Last reset 00:01:37 ago, cause: power up
Last software reset at 2021-09-21 20:59, reason: User, GCodes spinning, available RAM 16388, slot 1
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00417000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
Error status: 0x00
Aux0 errors 0,0,0
Step timer max interval 0
MCU temperature: min 38.8, current 40.5, max 41.2
Supply voltage: min 24.0, current 24.1, max 24.1, under voltage events: 0, over voltage events: 0, power good: yes
Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
Driver 0: position 0, standstill, SG min/max not available
Driver 1: position 0, standstill, SG min/max not available
Driver 2: position 0, ok, SG min/max not available
Driver 3: position 0, standstill, SG min/max not available
Driver 4: position 0, standstill, SG min/max not available
Driver 5: position 0
Driver 6: position 0
Driver 7: position 0
Driver 8: position 0
Driver 9: position 0
Driver 10: position 0
Driver 11: position 0
Date/time: 2021-09-22 13:47:13
Cache data hit count 3616371062
Slowest loop: 7.56ms; fastest: 0.17ms
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest read time 3.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 -1 -1, chamberHeaters = -1 -1 -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
Daemon is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty.
=== Network ===
Slowest loop: 7.76ms; fastest: 0.02ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
HTTP sessions: 1 of 8
Interface state active, link 100Mbps full duplex -
@droftarts we’ve completely installed everything new on a faster SD Card. Nothing happened
We need help
-
@anke you’re on the current firmware, and I can’t see anything obviously wrong in the M122 report. Did you do the M122 after disconnecting and reconnecting Ethernet?
Generally in these cases we suggest running a Wireshark trace, and post the report after it disconnects.
When and where did you buy your Duet?
Ian
-
@droftarts Hi, sorry. Stressfull weeks, I´ve decided to buy a new Duet 2 Ethernet and just swap it. so hopefully the Webserver runs stable after it. Can I just swap the Board and the SD Card and run it with the new board?
-
@anke said in Webserver crash:
Can I just swap the Board and the SD Card and run it with the new board?
In general, yes, but the firmware that is flashed on the board itself may not match what you had previously. In some cases the config file might need some changes.
If looks like you were using 3.3 before, and your new board should have that as well, but it may have an older firmware. Use M115 to check the version and update accordingly.
-
The swap was successful. But i have the same issues with this board ️
-
Then I think the issue is likely on the network or PC side.
When it becomes unreachable are you able to ping the Duet IP address? Does it still show activity lights on the network port of the duet or switch/router?
To remove the network from the equation, you can try connecting directly to the Duet over ethernet cable to your computer. Manually configure an IP address on both, and then try and access the Duet by it's IP. If the connection doesn't drop then we've narrowed the issue to the network. If it still drops, then perhaps try a different computer or browser to see if that changes things.
-
@phaedrux
yes i can ping it.
Yes, both lights are on.I use different devices to connect to my Duet. Mostly my iPhone and MacBook. Cura sends the gcode directly to Duet and starts the print.
-
@Anke Did you try this:
@phaedrux said in Webserver crash:
To remove the network from the equation, you can try connecting directly to the Duet over ethernet cable to your computer. Manually configure an IP address on both, and then try and access the Duet by it's IP.
As you access the Duet from iPhone and MacBook, I have the suspicion that there is some kind of WiFi involved. i'm using Macs over WiFi myself, and every now and then, my FritzBox changes frequencies or re-assignes IPs - sometimes, then, my DWC can't reconnect. So I can only recommend to try a direct connection via ethernet - just to exclude networking problems.
Depending on the model of your MacBook, it might not have ethernet on board. Then I suggest you to purchase a Thunderbolt-to-Ethernet adapter (something like this) or, in case of a "real" MacBook (without the "Pro") a USB-C-to-Ethernet adapter (like this here).
-
I use my printer also from far distance over VPN and my personal VPN Server is only via Ethernet connected to the switch.
But i try it later with my Desktop PC.