Ftp upload

175 views
Skip to first unread message

Kalli Gøtze

unread,
Mar 9, 2022, 12:27:38 PM3/9/22
to weewx-user
Hi all,
I run Weewx 4.6.2 on my Notebook whit Ubuntu 20.04 it work's fine but the upload to my Website didn't work to Awekas it work's.
If i run sudo tail -f /var/log/syslog it show me this
################################################################
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weeutil.ftpupload: Failed uploading /home/weewx/public_html/monthhum.png to server francium.selfhost.de. Reason: '550 /home/weewx/public_html/monthhum.png: No such file or directory'
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine: ftpgenerator: (2): caught exception '<class 'ftplib.error_perm'>': 550 /home/weewx/public_html/monthhum.png: No such file or directory
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 429, in run
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:         ****      n = ftp_data.run()
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeutil/ftpupload.py", line 210, in run
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:         ****      ftp_server.storbinary(stor_cmd, fd)
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.8/ftplib.py", line 494, in storbinary
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:         ****      with self.transfercmd(cmd, rest) as conn:
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.8/ftplib.py", line 389, in transfercmd
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:         ****      return self.ntransfercmd(cmd, rest)[0]
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeutil/ftpupload.py", line 119, in ntransfercmd
################################################################
I don't know what i have to do,can someone help?
regards Karl

vince

unread,
Mar 9, 2022, 12:55:07 PM3/9/22
to weewx-user
On Wednesday, March 9, 2022 at 9:27:38 AM UTC-8 kalli...@gmail.com wrote:
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weeutil.ftpupload: Failed uploading /home/weewx/public_html/monthhum.png to server francium.selfhost.de. Reason: '550 /home/weewx/public_html/monthhum.png: No such file or directory'

Your remote [[FTP]] path is probably incorrect in your weewx.conf


Karen K

unread,
Mar 9, 2022, 1:11:51 PM3/9/22
to weewx-user
kalli...@gmail.com schrieb am Mittwoch, 9. März 2022 um 18:27:38 UTC+1:
Reason: '550 /home/weewx/public_html/monthhum.png: No such file or directory'

I would have listened to that error message and guess, the local file is missing.
 

vince

unread,
Mar 9, 2022, 2:28:06 PM3/9/22
to weewx-user
Possibly, but why would weewx try to upload a file that is not there on the weewx system ?
Or is that what that #FTPlast file does ?

https://groups.google.com/g/weewx-user/c/XwQqsslGKfA suggests removing that file which should cause weewx to upload everything it finds.

Tom Keffer

unread,
Mar 9, 2022, 3:24:08 PM3/9/22
to weewx-user
We have seen this error before and it's very misleading. Despite the message, it can be caused by problems either locally or remotely.

1. Make sure the FTP username has write permissions on the server for the path you specified.
2. Make sure the password is correct. Does it include special characters? If so, be sure to quote the password.
3. Does your server require FTPS?
4. Try different variations for the path option for [FTP].

If you are still stuck, post your [FTP] section, but be sure to obfuscate your password first.

-tk

--
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 on the web visit https://groups.google.com/d/msgid/weewx-user/70edd677-2765-4bb2-8088-60e0cf5c09a0n%40googlegroups.com.

Tom Keffer

unread,
Mar 10, 2022, 8:49:42 AM3/10/22
to weewx-user
In a private email, Kalli noted that the value for "path" is

[[FTP]]
   ...
   path = /home/weewx/public_html
   ...

Two things to note:
  • "path" is the destination directory. This is usually something like "/var/www/html" or "/weewx".
  • "HTML_ROOT" is the source directory, usually set to "/home/weewx/public_html" if you used the setup.py install method (which you did).
You did not say what destination directory you expect, but it is probably not "/home/weewx/public_html". Think about where you want the files to go, and set "path" to that. Whatever it is set to, you must have write permission for the user name you supplied. Another complication is that for some FTP servers the path must be an absolute path, for others it is relative to the home directory of the supplied user. Experiment.

On the other hand, maybe you did want "/home/weewx/public_html". If so, let us know and we'll go to the next step.

-tk


Kalli Gøtze

unread,
Mar 10, 2022, 10:19:13 AM3/10/22
to weewx-user
Hi all,
Today i install weewx new and it works.  www.kalligotze.org
Thanks for your help :)

best regards Karl

Tom Keffer

unread,
Mar 10, 2022, 11:03:37 AM3/10/22
to weewx-user
Wait, wait! What changed? It would be useful to know for future users. Is there something different in [[FTP]]?

Rainer Lang

unread,
Mar 10, 2022, 11:31:55 AM3/10/22
to weewx...@googlegroups.com
I doubt that "it" or "everything" works.
Clicking on your link only provides a general page of your web hoster.
Something is still "fishy" - locally, on your web host or with both.
Message has been deleted
Message has been deleted

Tom Keffer

unread,
Mar 11, 2022, 8:18:08 AM3/11/22
to weewx-user

But, what changed in the [[FTP]] section? It would be useful to know for future users.

On Thu, Mar 10, 2022 at 9:46 PM Kalli Gøtze <kalli...@gmail.com> wrote:
@ tke,i use weewx 4-7-0 and here the result.
Gryting.png

Tom Keffer

unread,
Mar 11, 2022, 8:20:34 AM3/11/22
to weewx-user
OK, thanks for that! That's a new one for me, so it's good to add it to the list of possibilities.

Interesting how that manifests itself as this error.

On Fri, Mar 11, 2022 at 5:18 AM Kalli Gøtze <kalli...@gmail.com> wrote:
Hi all,
I was in contact whit the support from Selfhost and they say i should flush the Dns-Cache,i did and now is working.
Thanks for your.
Best regards Karl
Reply all
Reply to author
Forward
0 new messages