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

    Unable to upload files larger than approx 1.2MB

    Scheduled Pinned Locked Moved Solved
    Duet Web Control
    4
    21
    664
    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.
    • bdeliaundefined
      bdelia @bdelia
      last edited by

      @bdelia I am at my wits end and am thinking I may need to replace the board...but everything seems to work with the exception of uploading files bigger than about 1.4MB. The uploads consistently fail, it is not intermittent.

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

        Did this start happening after updating a firmware or any other change?
        Have you tried uploading from a different computer?

        Z-Bot CoreXY Build | Thingiverse Profile

        bdeliaundefined 1 Reply Last reply Reply Quote 0
        • bdeliaundefined
          bdelia @Phaedrux
          last edited by

          @Phaedrux I just tried uploading from another computer and it worked. I have cleared the cache on the original computer's browser (Chrome), but that did not seem to help. I'll try again and another browser.

          dc42undefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @bdelia
            last edited by

            @bdelia if this issue continues then it may be helpful if you install Wireshark on your PC and get a trace of a failed attempt to upload a larger file.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            bdeliaundefined 1 Reply Last reply Reply Quote 0
            • bdeliaundefined
              bdelia @dc42
              last edited by

              @dc42 , thanks I will give that a try tonight or tomorrow.

              bdeliaundefined 1 Reply Last reply Reply Quote 0
              • bdeliaundefined
                bdelia @bdelia
                last edited by

                @dc42 , I have been learning wireshark and have done some testing. I am not sure yet how to detect errors associated with network connections, but I know how to isolate the capture between my laptop IP and Duet IP. I now see that any file under about 1.5MB never gets to the POST command. Any file under that threshold uploads fine and I see the POST command.

                Any recommendations on what to look for in the capture that might indicate a network issue? I am familiar with HTTP response codes due to my day job, but I am not a network engineer.

                dc42undefined 1 Reply Last reply Reply Quote 0
                • dc42undefined
                  dc42 administrators @bdelia
                  last edited by

                  @bdelia there should always be a POST command, that's how file uploads are done.

                  Usually when there are network issues we see network packets with error status. Wireshark usually highlights these in a dark colour.

                  You probably already know this, but to isolate the traffic to the Duet use filter ip.addr==192.169.1.150 (substitute the actual IP address of the Duet).

                  Duet WiFi hardware designer and firmware engineer
                  Please do not ask me for Duet support via PM or email, use the forum
                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                  bdeliaundefined 1 Reply Last reply Reply Quote 0
                  • bdeliaundefined
                    bdelia @dc42
                    last edited by

                    @dc42 I have been able to isolate the isolate the traffic to the Duet. I can see lines of info colored Red and Black amongst the green.

                    I am just not able to interpret the lines for meaningful errors.

                    dc42undefined 1 Reply Last reply Reply Quote 0
                    • dc42undefined
                      dc42 administrators @bdelia
                      last edited by

                      @bdelia if you save the trace as a .pcap file and attach it to a post then we can look at it.

                      Duet WiFi hardware designer and firmware engineer
                      Please do not ask me for Duet support via PM or email, use the forum
                      http://www.escher3d.com, https://miscsolutions.wordpress.com

                      bdeliaundefined 1 Reply Last reply Reply Quote 0
                      • bdeliaundefined
                        bdelia @dc42
                        last edited by

                        @dc42 Thanks. Here is my .pcap file. Wireshark reveals just how much back and forth takes place between my laptop browser and the Duet. I tried to limit the packets capture to just the act of uploading but that was hard. I believe the upload is initiated at the TimeStamp: 738 21.597390

                        UploadFail.pcapng

                        chrishammundefined 1 Reply Last reply Reply Quote 0
                        • chrishammundefined
                          chrishamm administrators @bdelia
                          last edited by

                          @bdelia Thanks for the Wireshark dump. What I find odd is that your PC keeps aborting connections to the Duet, which shouldn't happen unless you set the number of AJAX retries in DWC -> Machine-Specific to a very high value. If that is the case, the effective timeout of regular requests becomes very low which may lead to complications. In doubt, perhaps delete dwc-settings.json from the System Files and reload DWC.

                          If that does not help, I suggest you try a different device (like a smartphone) to upload a bigger file. If that works, try to reset the TCP/IP stack of your Windows machine as outlined here: https://support.microsoft.com/en-us/topic/how-to-reset-tcp-ip-by-using-the-netshell-utility-d954430c-9b11-43f0-6081-0fc9235a8b4a That might help, too.

                          What kind of microSD card do you have? From the Wireshark dump I can see that RRF doesn't seem to accept more data within 15+ seconds so that does seem like an I/O issue to me. It might be worth to replace the SD card with a class 10 (possibly even A-rated) microSD card and to check if the problem persists then.

                          Duet software engineer

                          bdeliaundefined 1 Reply Last reply Reply Quote 1
                          • bdeliaundefined
                            bdelia @chrishamm
                            last edited by bdelia

                            @chrishamm thanks for this info, I can upload large files from another device, but it is my work laptop and I try to not use that for personal use.

                            I have both deleted the dwc-settings.json as well as reset the TCP/IP stack and the same error happens.

                            My microSD is a new one and I have tried one other as well.

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

                              Try creating a new user profile on your PC and try uploading from that account.

                              Z-Bot CoreXY Build | Thingiverse Profile

                              bdeliaundefined 1 Reply Last reply Reply Quote 0
                              • bdeliaundefined
                                bdelia @Phaedrux
                                last edited by

                                @Phaedrux @chrishamm @dc42
                                I ended up resetting my laptop OS and am now able to upload large files.

                                I appreciate all of you help and suggestions.

                                1 Reply Last reply Reply Quote 1
                                • Phaedruxundefined Phaedrux marked this topic as a question
                                • Phaedruxundefined Phaedrux has marked this topic as solved
                                • First post
                                  Last post
                                Unless otherwise noted, all forum content is licensed under CC-BY-SA