• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    Phaedrux Moderator
    last edited by 8 Jul 2018, 23:14

    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

    undefined undefined 2 Replies Last reply 10 Jul 2018, 08:19 Reply Quote 0
    • undefined
      dc42 administrators @Phaedrux
      last edited by 10 Jul 2018, 08:19

      @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
      • undefined
        wilriker @Phaedrux
        last edited by 11 Jul 2018, 10:11

        @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

        undefined 1 Reply Last reply 11 Jul 2018, 13:10 Reply Quote 0
        • undefined
          Phaedrux Moderator @wilriker
          last edited by 11 Jul 2018, 13:10

          @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

          undefined 1 Reply Last reply 11 Jul 2018, 13:15 Reply Quote 0
          • undefined
            wilriker @Phaedrux
            last edited by 11 Jul 2018, 13:15

            @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
            • undefined
              Googliola
              last edited by 12 Sept 2018, 11:15

              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
              • undefined
                token47
                last edited by 14 Sept 2018, 03:22

                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.

                undefined 1 Reply Last reply 14 Sept 2018, 04:14 Reply Quote 0
                • undefined
                  Phaedrux Moderator @token47
                  last edited by 14 Sept 2018, 04:14

                  @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

                  undefined 1 Reply Last reply 14 Sept 2018, 08:29 Reply Quote 0
                  • undefined
                    wilriker @Phaedrux
                    last edited by 14 Sept 2018, 08:29

                    @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
                    • undefined
                      Phaedrux Moderator
                      last edited by 14 Sept 2018, 19:57

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

                      Weird.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      undefined 1 Reply Last reply 14 Sept 2018, 20:03 Reply Quote 0
                      • undefined
                        wilriker @Phaedrux
                        last edited by 14 Sept 2018, 20:03

                        @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
                        • undefined
                          Phaedrux Moderator
                          last edited by 14 Sept 2018, 20:09

                          @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

                          undefined 1 Reply Last reply 14 Sept 2018, 20:17 Reply Quote 0
                          • undefined
                            wilriker @Phaedrux
                            last edited by 14 Sept 2018, 20:17

                            @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
                            • undefined
                              DonStauffer
                              last edited by 9 May 2021, 07:15

                              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.

                              undefined 1 Reply Last reply 9 May 2021, 17:32 Reply Quote 0
                              • undefined
                                Phaedrux Moderator @DonStauffer
                                last edited by 9 May 2021, 17:32

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

                                Z-Bot CoreXY Build | Thingiverse Profile

                                1 Reply Last reply Reply Quote 0
                                • undefined Phaedrux referenced this topic 10 Jun 2022, 16:29
                                • fcwiltundefined fcwilt referenced this topic 10 Jun 2022, 17:03
                                • First post
                                  Last post
                                Unless otherwise noted, all forum content is licensed under CC-BY-SA