Remote file size of 0 bytes

It seems like I have read something here about 0 byte files and remote renaming, but I can’t find it. I feel I searched and reread a bunch of posts trying to solve this myself.

I am running the latest consolewd on a Pi3+ running piOS Bullseye. I notice the other day that I am getting intermittent FTP failures of clientraw.txt, testtags.php, customclientraw.txt, etc. On the server, I am seeing the file length be zero bytes. It is usually not more than 2 of them at a time. Sometimes all files are there correctly.

On the pi, the files look created properly in the consolewdfiles directory.

The FTP portion of config.txt is below:

FTP server=xxx
FTP username=xxx
FTP password=xxx
FTP port=21
FTP remote dir=/public_html/
FTP use curl=N
FTP use passive=N
FTP use remote file rename=
FTP time interval=60
FTP use curlssh=N
FTP the custom file=Y
Save logfile=Y

On the pi, the “ftplogfull.txt” is 0 bytes and was last changed on 7/6/2021. I am not sure if that is supposed to be a log for cronftpreal or not. Also not sure if I created that when I was troubleshooting testtags.php not getting updated back in July.

I do not see anything on the webhosting side with respect to errors in the ftplog.

I am starting to think what I posted here: http://discourse.weather-watch.com/t/69871 might be related to empty files as I am seeing more than just Undefined variable and Undefined offset in ajax-gizmo.php and ajax-dashboard.php in the error.log file on hosting provider. I think I was chasing the wrong thing last month.

Thanks for any insight.

On 12/5/2021, HostMantis moved my service to new servers. Initially, I was unable to FTP to the site from my windows desktop until I configured for PASV FTP.

I finally put 2+2 together and it looks like I need to have the Pi connect passively as well. I set FTP use passive=Y and have not seen a problem for an hour. Fingers crossed.

I am starting to think what I posted here: [http://discourse.weather-watch.com/t/69871](http://discourse.weather-watch.com/t/69871) might be related to empty files as I am seeing more than just Undefined variable and Undefined offset in ajax-gizmo.php and ajax-dashboard.php in the error.log file on hosting provider. I think I was chasing the wrong thing last month.

Since I have had real (complete) files for the last hour or so, the error log on my server has only had Undefined variable and Undefined offset associated remanent of the moonage format difference that I did not totally deal with.

Good to know you solved the problem and thanks for updating us…it might help someone else in the future.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.