Files uploaded over FTP occasionally blank
-
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-b2Using 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?
-
@phaedrux, I've never noticed that but I'll try to reproduce it.
-
@phaedrux How many files were you uploading in a row and how large are they in average? That might be relevant for reproduction.
-
@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.
-
@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. -
I have the very same issue. Files are sometimes empty on duet despite successful transfer.
Filezilla 3.36.0 on Windows 8.1 x64Firmware 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 -
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.
-
@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
-
@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. -
Just tested uploading again. Same thing. Most of the files are 0k after refreshing.
Weird.
-
@phaedrux Have you tried doing it with
ncftp
? Maybe it does some extended error checking. Just guessing though. -
@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.
-
@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 foundncftp
. That's why I used it. -
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.
-
@donstauffer What settings do you have set in your FTP client?
-
-