Ftp fail can't find file to upload (does exist)

81 views
Skip to first unread message

Ian of Awai

unread,
Nov 14, 2025, 11:31:08 PM (13 days ago) Nov 14
to weewx-user
Hullo again
Weewx works for local access but fails on ftp upload as unable to see the png file needed although it does exist.
Maybe ftp upload python file corrupted?
No sure where those files live to check.

Attached snap of syslog re Ftp section.

cheers
Ian
Ftp 553 error.txt

vince

unread,
Nov 15, 2025, 12:26:27 AM (13 days ago) Nov 15
to weewx-user
ftplib.error_perm: 553 Can't open that file: No such file or directory

Possibly a permission error ?  Or you are trying to upload to a non-existant directory on the remote server.  Did it ever work ? You provided so little information it is hard to guess what is going on.

We’d have to see your FTP section from weewx.conf probably. Be sure to obfuscate the username and password.

Ian of Awai

unread,
Nov 15, 2025, 4:08:22 AM (13 days ago) Nov 15
to weewx...@googlegroups.com
Hi Vince
sorry not sure how much is needed.
attached the Ftp section of the weewx.conf  and a larger clip from the syslog.

It has worked once but haven't been able to get going again. 
I'm not sure if the "0 ./monthET.png 5b37571b2fead09adfe167cb1a82eb23fdb29ca84328c2692efccc73e77d3704" line is a working part or a miss-call of some sort as I checked that the file does exist in /html/weewx etc.
I'v tried different iterations of paths such as full "home/user/public_html/weather" and variations with leading "/" or not.
I'm also not sure if the "weather" is needed or if weewx creates it if necessary before dumping the *.png files in.
So just  "home/user/public_html/" would be enough for instance.
Also if "/weather" is also enough.
Have tried both.

thanks for your time on this
cheers
ian

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/FQKO4hua1YU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/00160b32-f14f-4afb-a8f1-4ecdb8b87f83n%40googlegroups.com.
weewx.conf_ftp.txt
sudo grep weewxd _var_log_syslog.txt

vince

unread,
Nov 15, 2025, 12:25:52 PM (12 days ago) Nov 15
to weewx-user
I suspect "path = public_html/weather" in your weewx.conf might be incorrect.  You probably want an absolute path starting with a / character.

Unfortunately we can't guess what your remote server might set your account's location to be. If you are using an Internet provider they probably have some instructions for what to use.

You might be able to figure it out yourself by logging in via ftp from a command line and typing "pwd" if I remember correctly.  It's probably been 10 years or more since I used FTP so my memory might be hazy there.


Jimi Lawson

unread,
Nov 15, 2025, 12:49:43 PM (12 days ago) Nov 15
to weewx-user
This is mine        
 [[FTP]]
        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        skin = Ftp
       
        # If you wish to use FTP, set "enable" to "true", then
        # fill out the next four lines.
        # Use quotes around passwords to guard against parsing errors.
        enable = true
        user = ***********
        password = **************
        server = **.***.***.***
        path = public_html/weewx
       
        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = False
Has worked no problem for years 
Try using an FTP client to connect to your web server to prove your credentials are correct.
Jimi

vince

unread,
Nov 15, 2025, 1:28:32 PM (12 days ago) Nov 15
to weewx-user
Yes - that was what I was trying to say.  Validate you can log in.  Validate the path you're in once you have successfully logged in.

Jimi Lawson

unread,
Nov 15, 2025, 3:15:52 PM (12 days ago) Nov 15
to weewx-user
Looking at his log it looks like ftp is connecting OK, but some kind of problem with the filename or the  directory ? No idea at which end

Nov 15 21:27:04 Rpi3 weewxd[1048]: DEBUG weeutil.ftpupload: Connected to ftp.conti.net.nz Nov 15 21:27:04 Rpi3 weewxd[1048]: DEBUG weeutil.ftpupload: 0 ./monthET.png 5b37571b2fead09adfe167cb1a82eb23fdb29ca84328c2692efccc73e77d3704 Nov 15 21:27:05 Rpi3 weewxd[1048]: ERROR weeutil.ftpupload: Failed uploading /var/www/html/weewx/monthET.png to server ftp.conti.net.nz. Reason: '553 Can't open that file: No such file or directory'

Ian of Awai

unread,
Nov 15, 2025, 3:46:10 PM (12 days ago) Nov 15
to weewx...@googlegroups.com
Hi Jimi
Yes, that is my issue.
It logs in ok but fails and I don't know at which end.
I know the file *.png exists at my end as can see locally but is it complaining of that or unable to find file or directory at the destination?
(surely it knows because it has already deposited the files into the www--------html/weewx folder for ftp......)
I also don't know if Weewx will create a folder "weather" (for example) at the destination to put the png files into or it has to exist for it to find via Ftp in order to complete the task.
I've tried stating various paths from "/", "/public_html" full "home/xxxx/xxx.xxx.xxx/weather" and anything similar with and without leading "/"....
I'm thinking a convoluted setup at my Host provider but not sure due to lack of experience/knowledge.
It's particularly annoying as I previously had it working from install at previous hosting since 2019 or so.
As Weewx connects to my wx-station, downloads data and displays via home net connection (direct), makes an Ftp connection but trips at that point it would be my Hosting setup as a likely problem.
I've tackled them about it but their thoughts haven't worked yet; incorporating variations of path= as mentioned above.
I did a pwd from my laptop as can be seen in attached....

thanks for your input guys
cheers
ian

PWD result.txt

Ian of Awai

unread,
Nov 15, 2025, 3:51:59 PM (12 days ago) Nov 15
to weewx...@googlegroups.com
Hi Jimi, Vince
Yes, that is my issue.
It logs in ok but fails and I don't know at which end.
I know the file *.png exists at my end as can see locally but is it complaining of that or unable to find file or directory at the destination?
(surely it knows because it has already deposited the files into the www--------html/weewx folder for ftp......)
I also don't know if Weewx will create a folder "weather" (for example) at the destination to put the png files into or it has to exist for it to find via Ftp in order to complete the task.
I've tried stating various paths from "/", "/public_html" full "home/xxxx/xxx.xxx.xxx/weather" and anything similar with and without leading "/"....
I'm thinking a convoluted setup at my Host provider but not sure due to lack of experience/knowledge.
It's particularly annoying as I previously had it working from install at previous hosting since 2019 or so.
As Weewx connects to my wx-station, downloads data and displays via home net connection (direct), makes an Ftp connection but trips at that point it would be my Hosting setup as a likely problem.
I've tackled them about it but their thoughts haven't worked yet; incorporating variations of path= as mentioned above.
I did a pwd from my laptop as can be seen in attached....

thanks for your input guys
cheers
ian
On Sun, Nov 16, 2025 at 9:16 AM Jimi Lawson <jimi....@gmail.com> wrote:
PWD test result.txt

John Kline

unread,
Nov 15, 2025, 3:56:18 PM (12 days ago) Nov 15
to weewx...@googlegroups.com, weewx...@googlegroups.com
It's particularly annoying as I previously had it working from install at previous hosting since 2019 or so.

So, when you said above:
It has worked once but haven't been able to get going again. 

Did you mean it worked with your previous hosting company are did it work once with your new hosting company?

On Nov 15, 2025, at 2:51 PM, Ian of Awai <ances...@gmail.com> wrote:


You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CALwpkTd8WQjUoDK6PzB-iaVGNToaa7FhoKUQ%2BxB8pqbdk9s25Q%40mail.gmail.com.
<PWD test result.txt>

Ian of Awai

unread,
Nov 15, 2025, 4:07:37 PM (12 days ago) Nov 15
to weewx...@googlegroups.com
Hi John
it worked fine with previous Hosting company.
I moved due to email issues (rejection when emailing Outlook etc users).
It was a simple install with them, a shared hosting as I now also have. 
It was long enough ago that this pretty much all new experience again (old brain here) so a painful relearning of the art of Weewx..... lol.
I'm thinking that I also fouled up my Weewx install on the Pi when frustrated getting going but as it seems to work ok then?

However,
just did another check and get a real mess as in attached.
regards
ian

New issues.txt

Ian of Awai

unread,
Nov 15, 2025, 4:14:31 PM (12 days ago) Nov 15
to weewx...@googlegroups.com
Have done "sudo reboot"  so will see how it goes.

John Kline

unread,
Nov 15, 2025, 4:21:16 PM (12 days ago) Nov 15
to weewx...@googlegroups.com, weewx...@googlegroups.com
Well, try to put everything back the way it was on the WeeWX side.

As for the hosting side, would you share with us who you are using for hosting (the company), the doc they provided for FTP and what they’ve told you.  Probably actually text they provided, rather than your interpretation, is better.

On Nov 15, 2025, at 3:14 PM, Ian of Awai <ances...@gmail.com> wrote:



vince

unread,
Nov 15, 2025, 4:33:10 PM (12 days ago) Nov 15
to weewx-user
"I've tried stating various paths from "/", "/public_html" full "home/xxxx/xxx.xxx.xxx/weather" and anything similar with and without leading "/"....
I'm thinking a convoluted setup at my Host provider but not sure due to lack of experience/knowledge.
It's particularly annoying as I previously had it working from install at previous hosting since 2019 or so."

You will probably not succeed by randomly trying things and hoping.

If you can log into your 'new' provider that is the first step.   They you need to figure out where your home directory the provider gives you is.  Again, ftp into the account and type "pwd" to have it return the path you are in.  You can probably then run "ls" to see what is in that location.   My guess is that you are not in a writable directory.

What you are describing happened to me on two different service providers years ago.  They each used different implementations and sometimes even relocated our home directories for sysadmin reasons, with no notification.  It broke my setup twice.

If you can tell us what your service provider is, maybe somebody here can point you to their documentation re: what to do.

Ian of Awai

unread,
Nov 15, 2025, 4:47:54 PM (12 days ago) Nov 15
to weewx...@googlegroups.com
Hi John
I've tried the simplest and also the longest, detailed PATH= I'm able including resetting to a "/wx" or similar path but although it connects it fails on upload?
i've suspected their implementation to be the issue but it's been a process getting to this point.
The new hosting company is Myhost in NZ.
I've set up the ftp accounts and destination folders via cPanel.
I can share all the correspondence but it will contain a lot of login etc stuff?
Can direct send you?

cheers
ian
.......................................................

Hey Ian,

Thanks for your message.

We had a look at the WeeWX documentation, and it looks like only path should be modified, as HTML_ROOT seems to refer to the local path: Integrating with a web server.

That said, if using the full path /home/continet/public_html/weather doesn’t work, could you please try using public_html/weather without the leading slash and let us know if it works?

Cheers,

Mariano | Support
sup...@myhost.nz | myhost.nz | 0800 454 537 | facebook.com/myhostnz | twitter.com/myhost

Cloud Web Hosting | Virtual Private Servers | cPanel Servers | Dedicated Servers | Domain Names | Managed Hosting | Co-location



Ian of Awai

unread,
Nov 15, 2025, 4:55:32 PM (12 days ago) Nov 15
to weewx...@googlegroups.com
Ok
Hold that thought, it just worked.
I put "/***** as path and it created another folder under it and populated it.
I'm sure I've done that before but.....
Unfortunately that is not in the "public_html" folder so not sure how that works but more like something to work out with the hosting blokes.
Sorry to everyone for the distraction.
I'll find out how to trim the path (@host) in the meantime.
Thanks to all you guys for your time and consideration

warm regards 
Ian
Reply all
Reply to author
Forward
0 new messages