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

    Files uploaded over FTP occasionally blank

    Scheduled Pinned Locked Moved
    General Discussion
    6
    15
    1.3k
    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.
    • Phaedruxundefined
      Phaedrux Moderator
      last edited by

      Firmware Electronics: Duet WiFi 1.02 or later
      Firmware Version: 2.01beta2(RTOS) (2018-06-28b1)
      WiFi Server Version: 1.21
      Web Interface Version: 1.21.2-b2

      Using FileZilla on MacOS. 1 connection at a time.

      I had a bunch of small macro files to upload so I setup FTP to make the process a bit quicker. Everything seems to work fine, except that I noticed that some of the files I uploaded ended up being 0bytes and empty even though the FTP transfer successfully completed and showed the proper byte size in the FTP window. If I re-upload the group of files it will be a different random set of files that is empty every time.

      Anyone else notice this?

      Z-Bot CoreXY Build | Thingiverse Profile

      dc42undefined wilrikerundefined 2 Replies Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @Phaedrux
        last edited by

        @phaedrux, I've never noticed that but I'll try to reproduce 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

        1 Reply Last reply Reply Quote 0
        • wilrikerundefined
          wilriker @Phaedrux
          last edited by

          @phaedrux How many files were you uploading in a row and how large are they in average? That might be relevant for reproduction.

          Manuel
          Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
          with probably always latest firmware/DWC (incl. betas or self-compiled)
          My Tool Collection

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

            @wilriker they were the macro files for the firmware retraction tuning I just posted. So there was at least a dozen in the directory I first noticed on. About 15 bytes each. Also happena when uploading a single file.

            Z-Bot CoreXY Build | Thingiverse Profile

            wilrikerundefined 1 Reply Last reply Reply Quote 0
            • wilrikerundefined
              wilriker @Phaedrux
              last edited by

              @phaedrux OK. Never used FTP to upload anything to Duet yet. I actually did upload 400 macro files (as part of my stand-still-noise-reduction-testing) as scripted curl uploads via HTTP and had no issues at all this way.

              Manuel
              Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
              with probably always latest firmware/DWC (incl. betas or self-compiled)
              My Tool Collection

              1 Reply Last reply Reply Quote 0
              • Googliolaundefined
                Googliola
                last edited by

                I have the very same issue. Files are sometimes empty on duet despite successful transfer.
                Filezilla 3.36.0 on Windows 8.1 x64

                Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
                Firmware Electronics: Duet WiFi 1.02 or later + DueX5
                Firmware Version: 2.01(RTOS) (2018-07-26b2)
                WiFi Server Version: 1.21
                Web Interface Version: 1.21.2-dc42

                1 Reply Last reply Reply Quote 0
                • token47undefined
                  token47
                  last edited by

                  I upload ALL files by FTP every time I do a config change (I edit on the PC and batch upload them every time). I can say I uploaded a few hundred times now, and I've never seen this problem of empty files. Just weighting in for statistics.

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

                    @token47 try uploading these macros. There's thousands of files. At first it looks like they all go through but when you refresh the directory you see 0k file sizes.

                    https://forum.duet3d.com/topic/6181/tuning-macros-menus-accel-jerk-retraction-pressure-advance

                    Z-Bot CoreXY Build | Thingiverse Profile

                    wilrikerundefined 1 Reply Last reply Reply Quote 0
                    • wilrikerundefined
                      wilriker @Phaedrux
                      last edited by

                      @phaedrux said in Files uploaded over FTP occasionally blank:

                      @token47 try uploading these macros. There's thousands of files. At first it looks like they all go through but when you refresh the directory you see 0k file sizes.

                      I did that and I just checked (all directories... I hope you created them via script 😉 ) and there are no zero-length files. So it worked for me.

                      I used ncftp to upload from command line.

                      Manuel
                      Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                      with probably always latest firmware/DWC (incl. betas or self-compiled)
                      My Tool Collection

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

                        Just tested uploading again. Same thing. Most of the files are 0k after refreshing.

                        Weird.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        wilrikerundefined 1 Reply Last reply Reply Quote 0
                        • wilrikerundefined
                          wilriker @Phaedrux
                          last edited by

                          @phaedrux Have you tried doing it with ncftp? Maybe it does some extended error checking. Just guessing though.

                          Manuel
                          Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                          with probably always latest firmware/DWC (incl. betas or self-compiled)
                          My Tool Collection

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

                            @wilriker said in Files uploaded over FTP occasionally blank:

                            ncftp

                            No, but I'll give that a shot. I've been using FileZilla as that's what's recommended. I'm on a Mac as well, so not sure if that's factoring into it or not. FTP should be agnostic though.

                            Z-Bot CoreXY Build | Thingiverse Profile

                            wilrikerundefined 1 Reply Last reply Reply Quote 0
                            • wilrikerundefined
                              wilriker @Phaedrux
                              last edited by

                              @phaedrux Due to some technical issues at the time of uploading I was unable to use FileZilla and had to work around using a command line tool. Default ftp does not support recursive directory upload, so I looked around and found ncftp. That's why I used it.

                              Manuel
                              Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
                              with probably always latest firmware/DWC (incl. betas or self-compiled)
                              My Tool Collection

                              1 Reply Last reply Reply Quote 0
                              • DonStaufferundefined
                                DonStauffer
                                last edited by

                                I've tried FTP with FileZIlla on the Duet 2 WiFi with firmware 2.03, 2.05.1, and 3.2.2. I get randomly truncated directory listings (missing files), truncated filenames, and truncated files (it seems to copy the file up to a point and then stop).

                                I've concluded that FTP on the Duet 2 WiFi is not currently working.

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

                                  @donstauffer What settings do you have set in your FTP client?

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  1 Reply Last reply Reply Quote 0
                                  • Phaedruxundefined Phaedrux referenced this topic
                                  • fcwiltundefined fcwilt referenced this topic
                                  • First post
                                    Last post
                                  Unless otherwise noted, all forum content is licensed under CC-BY-SA