FTP Not working

216 views
Skip to first unread message

Rich Strle

unread,
May 21, 2024, 8:29:52 PM5/21/24
to weewx-user
I have installed the latest version of weewx on a fresh RasberryPi and almost everything is working as expected.

I also have a different Pi running weewx 4.x. It's been running perfectly for years. I shut down weewx on that Pi. After everything is working, I can see the files getting created on the new 5.x Pi, in weewx.conf I turned on upload to WeatherUnderground and FTP to my GoDaddy hosted domain Strle.com. WeatherUnderground is getting through but the FTP to GoDaddy isn't.
the ftp section of the two Pi's are identical.
I set debug to 1, and restarted.
I used journalctl --since "2 hours ago" > \tmp\weewx.log to grab the log.
I looked through the log and didn't see anything related to FTP or FTP errors.
I reviewed the wiki and saw a section on additional logging but it looks like v4 code.
weewx.conf
FTP_Section.txt

Tom Keffer

unread,
May 21, 2024, 9:32:32 PM5/21/24
to weewx...@googlegroups.com
If you're sure the two FTP sections are identical, it must be a firewall / network issue.

Can you FTP directly from the new RPi using the ftp utility?

--
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/6d236f5c-a7e0-4f52-86f1-6980d471d0dan%40googlegroups.com.
Message has been deleted
Message has been deleted

Rich Strle

unread,
May 23, 2024, 6:59:16 PM5/23/24
to weewx-user
From the RPi I can ftp to the server. I start ftp, login, do a lcd /var, lcd www, lcd html lcd weewx then I do an mput * 

It asks me [anpqy?] for each file, I press y and it seems to copy the files. I couldn't figure out the - modifiers to copy the directory and subdirectory without being prompted for every file.

Rich Strle

unread,
May 23, 2024, 6:59:20 PM5/23/24
to weewx-user
Yes I can. I made a test directory and uploaded the files using ftp on the new RPi. I used the same username and password as in my weewx.conf.

On Tuesday, May 21, 2024 at 8:32:32 PM UTC-5 Tom Keffer wrote:

Tom Keffer

unread,
May 23, 2024, 7:25:20 PM5/23/24
to weewx...@googlegroups.com
There are some bugs in the Python libraries, but as far as I know, they only affect FTPS, and you're using a regular, insecure, connection.

One thing you could try: set debug=2. This will give you extra logging information. Don't know if it will uncover anything, but it's worth a shot.

Rich Strle

unread,
May 24, 2024, 10:23:41 AM5/24/24
to weewx-user
When I try to post a response I keep getting a 'message is to long error...' I hope I didn't make a naughty list : )

Tom Keffer

unread,
May 24, 2024, 5:20:33 PM5/24/24
to weewx...@googlegroups.com
Google Groups can be very flaky. I got a notice that your messages were quarantined, but then when I went to release them, they were gone.

Rich Strle

unread,
May 24, 2024, 9:51:50 PM5/24/24
to weewx-user
I set debug=2 and restarted weewx. I looked through the log file and didn't see where the ftp report was running. Would the Ftp process how up in the log as started?

Grasping at straws I added the ftpgenerator to the skins.conf file. That didn't do anything productive.

I ran weectl report list and weectl report run. Logs are attached.

Thanks for your efforts.

reportList.log
weectrl_report_run.log

Rich Strle

unread,
May 24, 2024, 9:54:11 PM5/24/24
to weewx-user
It doesn't seem to like the 9.9 Mb Log file...

vince

unread,
May 24, 2024, 10:47:41 PM5/24/24
to weewx-user

Your one small log clearly shows a permission denied error. Fix that and things should clear up.

Rich Strle

unread,
May 25, 2024, 7:41:54 AM5/25/24
to weewx-user
When I ran that report I didn't do it with sudo. When I run sudo weectl report run the error goes away. I'm starting weewx with:

sudo systemctl start weewx while I'm trouble shooting. Otherwise it runs as a damon.

weectl_report_run_sudo.log

vince

unread,
May 25, 2024, 12:07:33 PM5/25/24
to weewx-user
Your original post with the weewx.conf file had your FTP section containing an odd user value...

skin = Ftp enable = true user = your_u...@cliffandbuster.com <==== make this just your_username password = "its_password" server = www.cliffandbuster.com path = / secure_ftp = False port = 21 passive = 1  
And you posted the real account and its actual password (yikes!) so you definitely want to change those pronto.

Rich Strle

unread,
May 29, 2024, 8:51:05 AM5/29/24
to weewx-user
The FTP process works perfectly. My issues were all self inflicted. Thanks for your help.
Reply all
Reply to author
Forward
0 new messages