Strange FTP problems started occurring after Sep 28 **solved**

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
dolfs
Junior Boarder
Junior Boarder
Posts: 37
Joined: Mon Apr 20, 2015 11:26 am

Strange FTP problems started occurring after Sep 28 **solved**

Post by dolfs »

I had not paid attention closely so don't know when this started exactly, but I am observing problems uploading files through FTP service. It seems that last successful upload happened on Sep 29.

I noticed this for a configured service to upload a template based file:
Every minute:
- Template: http://starreveld.com/weather_uploads/u ... ags.mb.txt
- Path: /starreveld.com/weather_uploads/uploadMB/tagsMB.txt
The error:
Error: 2022-11-30 14:43:22 ncftpput /starreveld.com/weather_uploads/uploadMB/tagsMB.txt: server said: /starreveld.com/weather_uploads/uploadMB/mb_tagsMB.txt: No such file or directory (no more tries):

This always worked fine. I have independently verified the username/password using an ftp client and uploading a file to the same directory.
The interesting detail in the error is that it refers to mb_tagsMB.txt (notice the leading mb_ that seems somehow manufactured). I have also verified a browser can download the template without issue.

Then I went to check my camera picture upload (also using ftp) and it fails too:
Cam configuration: <url to fetch an external picture>
Every Minute:
Path: /starreveld.com/Front Left/snapshot.jpg
The error:
Error: 2022-11-30 14:24:27 ncftpput /starreveld.com/Front Left/snapshot.jpg: server said: /starreveld.com/Front Left/mb_snapshot.jpg: No such file or directory (no more tries):

Notice here too is this, apparently manufactured, "mb_" prefix.
Here I manually tested the whole path by fetching the image in a browser, saving it in a file, and using ftp client to upload. It works manually.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7874
Joined: Mon Oct 01, 2007 10:51 pm

Re: Strange FTP problems started occurring after Sep 28

Post by admin »

Looks to me as if something on your server side (new FTP daemon, etc) has changed.
Metrobridge uploads file at a temporary name (prefixed by "mb_") and the renames it to the final name. When the FTP server does not support this or the FTP user does not have necessary rights, this fails. Just uploading a file with a FTP client does not mimic what Meteobridge is doing via NCFTP.
dolfs
Junior Boarder
Junior Boarder
Posts: 37
Joined: Mon Apr 20, 2015 11:26 am

Re: Strange FTP problems started occurring after Sep 28

Post by dolfs »

Thanks. Describing the behavior allowed me to mimic that behavior and find the actual problem. Sounds indeed the something changed in my provider because all my FTP paths were setup as absolute (starting with /) and had always worked until then. Removing the initial slash fixed the problem.
Post Reply