Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    incomplete gcodes upload

    General Discussion
    3
    13
    88
    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.
    • Tinchus
      Tinchus last edited by

      Hello. I have had some cases where the print stops and it is reported as finished.
      But I downloaded the last gcode showed that error and I found the gcode it is incomplete. It is just not compelte. Somehow the uploaded file was cut and part of it was just lost.
      Since this has happened to me 3 or 4 times I guess there is something wrong somewhere.

      Is there any other similar reports? What can be causing this incomplete upload?

      T3P3Tony 1 Reply Last reply Reply Quote 0
      • T3P3Tony
        T3P3Tony administrators @Tinchus last edited by

        @tinchus in the latest firmware there is a CRC check run on uploaded gcodes. Because you are using SBC mode I am going to ask @chrishamm if there is any specific things he would like you to test.

        I assume you have downloaded one of the incomplete files and confirmed that it is truncated?

        www.duet3d.com

        T3P3Tony Tinchus 2 Replies Last reply Reply Quote 0
        • T3P3Tony
          T3P3Tony administrators @T3P3Tony last edited by

          @Tinchus When you get a partial upload, please use:

          journalctl -u duetwebserver

          in a console window on the pi. This shows the DWS log which may contain further details about why the G-code was only partially written

          www.duet3d.com

          Tinchus 1 Reply Last reply Reply Quote 0
          • Tinchus
            Tinchus @T3P3Tony last edited by

            @t3p3tony Yes, I downloaded it just to check and I saw it was not complete, so basically the print finish report was ok, the problem is the truncated gcode file

            1 Reply Last reply Reply Quote 0
            • Tinchus
              Tinchus @T3P3Tony last edited by

              @t3p3tony

              Ok, I have done that command and created this log file. File attachedlog_duetwebserver.txt
              The content of that log file is way outside my knowledge to see if there is something wrong. I saw some warnings about a service not started?

              T3P3Tony 1 Reply Last reply Reply Quote 0
              • T3P3Tony
                T3P3Tony administrators @Tinchus last edited by

                @tinchus what time did you do the upload that ended up being incomplete?

                www.duet3d.com

                Tinchus 1 Reply Last reply Reply Quote 0
                • Tinchus
                  Tinchus @T3P3Tony last edited by

                  @t3p3tony In the DWC time says it was uploaded at 2:59 PM on 24th (yesterday)

                  T3P3Tony 1 Reply Last reply Reply Quote 0
                  • T3P3Tony
                    T3P3Tony administrators @Tinchus last edited by

                    @tinchus thanks.

                    It looks like a reset/emergency stop was called at 14:59:

                    Oct 24 14:59:13 PU-HT-1 DuetWebServer[634]: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'DuetWebServer.Controllers.MachineController.DoCode (DuetWebServer)'
                    Oct 24 14:59:13 PU-HT-1 DuetWebServer[634]: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3] Route matched with {action = "DoCode", controller = "Machine"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] DoCode() on controller DuetWebServer.Controllers.MachineController (DuetWebServer).
                    Oct 24 14:59:13 PU-HT-1 DuetWebServer[634]: DuetWebServer.Controllers.MachineController[0] [DoCode] Executing code 'M112 M999'
                    

                    That cancelled the file upload - was that automatic or commanded from DWC?

                    www.duet3d.com

                    Tinchus 1 Reply Last reply Reply Quote 0
                    • Tinchus
                      Tinchus @T3P3Tony last edited by

                      @t3p3tony I did the upload, Im sure I didnt reset the machine while uploading.
                      For the uoload I used the buttom "UPLOAD AND START"

                      T3P3Tony chrishamm 2 Replies Last reply Reply Quote 0
                      • T3P3Tony
                        T3P3Tony administrators @Tinchus last edited by

                        @tinchus thanks for confirming that.

                        www.duet3d.com

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

                          @tinchus I could discover this in your log:

                          Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Unexpected end of request content.
                          

                          So it seems like something cancelled the upload request before it could finish. Can you try to upload something from a different device or using a different browser? If not, please try to upload something in incognito mode.

                          Duet software engineer

                          Tinchus 2 Replies Last reply Reply Quote 0
                          • Tinchus
                            Tinchus @chrishamm last edited by

                            @chrishamm the real problem here is that if something cancelled the upload... I was never told about being cancelled. I got the normal green message pop up saying upload successful

                            1 Reply Last reply Reply Quote 0
                            • Tinchus
                              Tinchus @chrishamm last edited by

                              @chrishamm Any suggestion on how to test? Im using firefox, so I can use the private mode. Also, this problem is not happening all the time, I have not been able to reproduce the error today

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