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

    Webserver won't start

    Scheduled Pinned Locked Moved Solved
    Duet Web Control
    4
    76
    2.9k
    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.
    • Haffwalkerundefined
      Haffwalker @droftarts
      last edited by Haffwalker

      @droftarts I unconnected everything to get it to my router and I used the cable which already was working, but still nothing changes in the behavior...

      f4c9b70c-6864-4a26-8bbe-274fc4c7b9e6-image.png

      1 Reply Last reply Reply Quote 0
      • Haffwalkerundefined
        Haffwalker @A Former User
        last edited by

        @bearer About the wireshark traffic...do you have any source of explanation, which steps I have to take like a youtube video or something?

        A Former User? 1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User @Haffwalker
          last edited by A Former User

          @Haffwalker said in Webserver won't start:

          @bearer About the wireshark traffic...do you have any source of explanation, which steps I have to take like a youtube video or something?

          its mostly down to equipment; a modern switched network won't send the packets to your computer unless they're adressed to your computer ... so to monitor traffic between your Duet and your router you'd need some fancy managed gear.

          Although, if you have a basic switch and can be bothered to set up a DHCP server on your computer that would work to diagnose the issue. A relatively simple DHCP server for windows is tfptd32 (or 64 whatever floats your boat).

          (you need the switch because you need to configure the computers interface with a static IP and start the DHCP server before connecting the Duet, and a such a direct connection won't work even though you're just connecting the computer and the duet to a basic switch)

          1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @Haffwalker
            last edited by

            @Haffwalker Yes, I don't think this is a firmware issue. Thanks for trying the different ethernet lead. I'm just looking at the Duet 2 Ethernet I have here, particularly how easy it is to dislodge the ethernet module. It isn't!

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            1 Reply Last reply Reply Quote 0
            • Dougal1957undefined
              Dougal1957
              last edited by

              This may sound stupid but have you tried taking it back out of the printer and trying it again on the bench just to see if it could be a short somewhere?

              It's a long shot mind but it is all I can think of now.

              1 Reply Last reply Reply Quote 0
              • A Former User?
                A Former User
                last edited by

                ..its not stupid when everything else doesnt work:)

                Dougal1957undefined 1 Reply Last reply Reply Quote 0
                • Dougal1957undefined
                  Dougal1957 @A Former User
                  last edited by

                  @bearer It isn't to me either but I k now how frustrating these things can be and the simplest thing gets overlooked. It is certainly the approach I would take now

                  1 Reply Last reply Reply Quote 0
                  • Haffwalkerundefined
                    Haffwalker
                    last edited by

                    Just put everything back together on the bench how it already worked once, but it didn't help...still not working.

                    1 Reply Last reply Reply Quote 0
                    • Haffwalkerundefined
                      Haffwalker
                      last edited by

                      I got the router which was provided by my provider, but I only use it for the internet connection + the 4 ethernet ports in the back...for wifi I have an Ubiquiti Nano - maybe that thing has some precious logging funcionality...

                      droftartsundefined 1 Reply Last reply Reply Quote 0
                      • A Former User?
                        A Former User
                        last edited by

                        Doubt it, but it would probably be a setting in the vicinity of vlans or mirror settings.

                        Depending on the router you might be able to capture a DHCP discover request or some ARP traffic without any special setup, but it'd be a bit half hearted.

                        1 Reply Last reply Reply Quote 0
                        • droftartsundefined
                          droftarts administrators @Haffwalker
                          last edited by

                          @Haffwalker I set up the Duet Ethernet I've got here. Connected to a TP-Link AV500 TL-WPA4220 powerline adapter (wifi and Ethernet), which connects to a TL-PA4010 at the other end, then into a Virgin Media Super Hub 2ac. From first power on, no SD card, I get:

                          Connecting...
                          RepRapFirmware for Duet 2 WiFi/Ethernet Version 2.02(RTOS) dated 2018-12-24b1
                          No SD card present
                          Network disabled.
                          RepRapFirmware for Duet 2 WiFi/Ethernet is up and running.
                          ok B:2000.0 /0.0
                          Printer is now online.
                          ok B:2000.0 /0.0
                          >>>M552
                          SENDING:M552
                          Network is disabled, configured IP address: 0.0.0.0, actual IP address: 0.0.0.0
                          >>>M552 P0.0.0.0 S1
                          SENDING:M552 P0.0.0.0 S1
                          ok B:2000.0 /0.0
                          >>>M552
                          SENDING:M552
                          Network is enabled, configured IP address: 0.0.0.0, actual IP address: 0.0.0.0
                          Network running, IP address = 192.168.0.18
                          >>>M552
                          SENDING:M552
                          Network is enabled, configured IP address: 0.0.0.0, actual IP address: 192.168.0.18
                          

                          I get a solid orange light on the Ethernet socket on the Duet, and flashing green light.

                          I can also ping it:

                          Ians-MacBook-Pro:~ Ian$ ping 192.168.0.18
                          PING 192.168.0.18 (192.168.0.18): 56 data bytes
                          64 bytes from 192.168.0.18: icmp_seq=0 ttl=128 time=22.335 ms
                          64 bytes from 192.168.0.18: icmp_seq=1 ttl=128 time=2.999 ms
                          64 bytes from 192.168.0.18: icmp_seq=2 ttl=128 time=3.411 ms
                          64 bytes from 192.168.0.18: icmp_seq=3 ttl=128 time=2.110 ms
                          64 bytes from 192.168.0.18: icmp_seq=4 ttl=128 time=1.592 ms
                          64 bytes from 192.168.0.18: icmp_seq=5 ttl=128 time=1.542 ms
                          64 bytes from 192.168.0.18: icmp_seq=6 ttl=128 time=1.395 ms
                          

                          I put the original SD card back in and reset the board. I could connect to it via USB, but not to the IP address it was using, but then realised that the SD card has a static IP address set, of 192.168.1.14. I turned off networking, then turned it back on with a DHCP set IP address, and was then able to connect to DWC. Log:

                          Connecting...
                          Network running, IP address = 192.168.1.14
                          Error: Temperature reading fault on heater 1: sensor open circuit
                          Printer is now online.
                          >>>M552
                          SENDING:M552
                          Network is enabled, configured IP address: 192.168.1.14, actual IP address: 192.168.1.14
                          >>>M20 P"/www"
                          SENDING:M20 P"/www"
                          Begin file list
                          favicon.ico.gz
                          html404.htm
                          language.xml.gz
                          reprap.htm.gz
                          css
                          fonts
                          js
                          dwc.json
                          End file list
                          >>>M552 S0
                          SENDING:M552 S0
                          Network stopped
                          >>>M552 P0.0.0.0 S1
                          SENDING:M552 P0.0.0.0 S1
                          Network running, IP address = 192.168.0.19
                          

                          Not sure if any of this is useful for diagnosing your problem, though!

                          Ian

                          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                          1 Reply Last reply Reply Quote 0
                          • Haffwalkerundefined
                            Haffwalker
                            last edited by

                            Wireshark gives me this:
                            0fc92bac-b14c-4de3-8272-f557827ea85f-image.png

                            so it should recieve 192.168.137.22 as ip adress, but i cant ping it nor is it in listed in arp -a.
                            57f2639e-8c09-4efe-b7d7-16ea99aa4aac-image.png

                            29da3773-535e-4ee8-983a-ecbc6eafe68a-image.png

                            1 Reply Last reply Reply Quote 0
                            • A Former User?
                              A Former User
                              last edited by A Former User

                              is this with just the computer and the duet on a switch? can you save and upload the .pcap file somewhere? gofile.io or similar?

                              (at a glance it looks like the duet isn't sending its mac address as part of the dhcp discovery)

                              Haffwalkerundefined 1 Reply Last reply Reply Quote 0
                              • Haffwalkerundefined
                                Haffwalker
                                last edited by

                                This is what I get when I connect the Ethernet cable directly to my pc and the duet.

                                I can't find the Duet's Mac Address anywhere in Wireshark...

                                I also got a DSO0138 if that helps troubleshooting....I think, that the ethernet module is broken.

                                1 Reply Last reply Reply Quote 0
                                • A Former User?
                                  A Former User
                                  last edited by

                                  as laid out earlier, a direct connection isn't the best option as windows takes a while from the link status goes up until its ready with a static ip to start logging and/or serving dhcp.

                                  anyways, still like to have a peak at the whole .pcap for any arp or mdns traffic etc, as well as looking as the ethernet source for the packets etc. but for now it would appear the ethernet module is the culprit, given the firmware isn't corrupted - which is unlikely given the downgrades

                                  1 Reply Last reply Reply Quote 0
                                  • Haffwalkerundefined
                                    Haffwalker @A Former User
                                    last edited by

                                    @bearer I try to upload to gofile.io, but it doesnt work...I zipped my pcap file into an rar archive and added .txt to the end, to be able to upload it directly...so simply remove .txt and you should have an rar archive.duetethernet.rar.txt

                                    I hope this is allowed (and works).

                                    droftartsundefined A Former User? 2 Replies Last reply Reply Quote 0
                                    • droftartsundefined
                                      droftarts administrators @Haffwalker
                                      last edited by

                                      @Haffwalker I’m still puzzled by why you got an IP address initially. But does increasingly look like a failure of the Ethernet module. How long ago, and where did you buy it? Warranty is 6 months.

                                      Ian

                                      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                                      Haffwalkerundefined 1 Reply Last reply Reply Quote 0
                                      • A Former User?
                                        A Former User @Haffwalker
                                        last edited by

                                        Right, I'm guessing you haven't put a static IP address on your computer and the DHCP requests are from the local machine.

                                        The only thing the log actually tells me is that there isn't a single frame that isn't from your computer, i.e no traffic from the Duet. Two possible explanations, either it didn't get a DHCP response before window was ready and stopped trying, or it never started trying. This is why the switch is needed so windows and wireshark is up to speed before the Duet establishes a link status.

                                        1 Reply Last reply Reply Quote 0
                                        • Haffwalkerundefined
                                          Haffwalker
                                          last edited by Haffwalker

                                          I got the Duet Ethernet back in January 2019 for a different project (I did optimize a Deltatower RTA420, because the owner wasn't happy with it's performance, which he now is), but went for the Duet Wifi instead, so the ethernet was sitting under my workbench for over a year now...so no warranty anymore...Well then i probably blow this one up with a bunch of fireworks and get a Duet Wifi instead.
                                          Thanks everyone for your time and help!!!

                                          PS: I currently run three Duet 2 Wifi boards...but wanted to use the Ethernet and get a Maestro as well, to have the full set ^^

                                          PPS: Will also get Duet 3 as soon as I start building a CNC machine...

                                          droftartsundefined 1 Reply Last reply Reply Quote 0
                                          • droftartsundefined
                                            droftarts administrators @Haffwalker
                                            last edited by

                                            @Haffwalker You can get just the Ethernet module, if you want. https://www.duet3d.com/DuetEthernet_Module

                                            Ian

                                            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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