Trying to fix Belchertown graphs, but I broke ftp uploads!

59 views
Skip to first unread message

Drew Richards

unread,
May 21, 2023, 1:58:50 PM5/21/23
to weewx-user
This morning I found the group messages on here that showed where Highcharts required me to update to the latest Belchertown skin to fix my graphs. I upgraded to the latest Belchertown Skin Version 1.3b2.

After upgrade, I noticed my ftp had stopped to my website. I used this as an opportunity to upgrade to the latest WeeWx version 4.10.2, thinking at the time this might help. Unfortunately ftp was still broken.

I went as far as to completely remove and purge weewx and it's config files, then reinstalled and restored my weewx.conf file. Same results.

Now, I'm stuck with ftp errors that I didn't have before. 

I uploaded a shell html page using filezilla to verify it wasn't anything on my hosting site end, and it uploaded just fine with the credentials I've been using in my weewx.conf file. 

Hoping someone can point me in the right direction on what to try here. The error states files do not exist, but I've verified they do exist just fine in the directories that's shown on the error messages.


I apologize in advance for my noob linux skills...

May 21 12:45:13 raspberrypi weewx[5293] INFO weewx.restx: MQTT: Published record 2023-05-21 12:45:13 CDT (1684691113)
May 21 12:45:15 raspberrypi weewx[5293] INFO weewx.restx: MQTT: Published record 2023-05-21 12:45:15 CDT (1684691115)
May 21 12:45:15 raspberrypi weewx[5293] INFO weewx.manager: Added record 2023-05-21 12:45:00 CDT (1684691100) to database 'weewx.sdb'
May 21 12:45:15 raspberrypi weewx[5293] INFO weewx.manager: Added record 2023-05-21 12:45:00 CDT (1684691100) to daily summary in 'weewx.sdb'
May 21 12:45:16 raspberrypi weewx[5293] INFO weewx.cheetahgenerator: Generated 12 files for report StandardReport in 1.51 seconds
May 21 12:45:16 raspberrypi weewx[5293] INFO weewx.reportengine: Copied 3 files to /var/www/html/weewx
May 21 12:45:17 raspberrypi weewx[5293] INFO weewx.restx: MQTT: Published record 2023-05-21 12:45:17 CDT (1684691117)
May 21 12:45:17 raspberrypi weewx[5293] INFO weewx.restx: MQTT: Published record 2023-05-21 12:45:17 CDT (1684691117)
May 21 12:45:19 raspberrypi weewx[5293] INFO weewx.restx: MQTT: Published record 2023-05-21 12:45:19 CDT (1684691119)
May 21 12:45:19 raspberrypi weewx[5293] INFO weewx.cheetahgenerator: Generated 12 files for report Belchertown in 1.51 seconds
May 21 12:45:19 raspberrypi weewx[5293] INFO weewx.reportengine: Copied 3 files to /var/www/html/weewx/belchertown
May 21 12:45:20 raspberrypi weewx[5293] INFO weewx.restx: MQTT: Published record 2023-05-21 12:45:21 CDT (1684691121)
May 21 12:45:22 raspberrypi weewx[5293] ERROR weeutil.ftpupload: Failed uploading /var/www/html/weewx/weekvolt.png to server ftp.shoalsweather.net. Reason: '553 Can't open that file: No such file or directory'
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'ftplib.error_perm'>': 553 Can't open that file: No such file or directory
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 437, in run
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      n = ftp_data.run()
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 220, in run
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      ftp_server.storbinary(stor_cmd, fd)
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 491, in storbinary
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      with self.transfercmd(cmd, rest) as conn:
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 386, in transfercmd
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      return self.ntransfercmd(cmd, rest)[0]
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 352, in ntransfercmd
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      resp = self.sendcmd(cmd)
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 279, in sendcmd
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      return self.getresp()
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 252, in getresp
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      raise error_perm(resp)
May 21 12:45:22 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****  ftplib.error_perm: 553 Can't open that file: No such file or directory
May 21 12:45:23 raspberrypi weewx[5293] ERROR weeutil.ftpupload: Failed uploading /var/www/html/weewx/weekvolt.png to server ftp.shoalsweather.net. Reason: '553 Can't open that file: No such file or directory'
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine: ftpgenerator: (1): caught exception '<class 'ftplib.error_perm'>': 553 Can't open that file: No such file or directory
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 437, in run
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      n = ftp_data.run()
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 220, in run
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      ftp_server.storbinary(stor_cmd, fd)
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 491, in storbinary
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      with self.transfercmd(cmd, rest) as conn:
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 386, in transfercmd
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      return self.ntransfercmd(cmd, rest)[0]
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 352, in ntransfercmd
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      resp = self.sendcmd(cmd)
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 279, in sendcmd
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      return self.getresp()
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 252, in getresp
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      raise error_perm(resp)
May 21 12:45:23 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****  ftplib.error_perm: 553 Can't open that file: No such file or directory
May 21 12:45:23 raspberrypi weewx[5293] INFO weewx.restx: MQTT: Published record 2023-05-21 12:45:23 CDT (1684691123)
May 21 12:45:24 raspberrypi weewx[5293] ERROR weeutil.ftpupload: Failed uploading /var/www/html/weewx/weekvolt.png to server ftp.shoalsweather.net. Reason: '553 Can't open that file: No such file or directory'
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine: ftpgenerator: (2): caught exception '<class 'ftplib.error_perm'>': 553 Can't open that file: No such file or directory
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 437, in run
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      n = ftp_data.run()
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 220, in run
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      ftp_server.storbinary(stor_cmd, fd)
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 491, in storbinary
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      with self.transfercmd(cmd, rest) as conn:
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 386, in transfercmd
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      return self.ntransfercmd(cmd, rest)[0]
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 352, in ntransfercmd
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      resp = self.sendcmd(cmd)
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 279, in sendcmd
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      return self.getresp()
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.9/ftplib.py", line 252, in getresp
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****      raise error_perm(resp)
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine:         ****  ftplib.error_perm: 553 Can't open that file: No such file or directory
May 21 12:45:24 raspberrypi weewx[5293] ERROR weewx.reportengine: ftpgenerator: Upload failed
May 21 12:45:25 raspberrypi weewx[5293] INFO weewx.restx: MQTT: Published record 2023-05-21 12:45:25 CDT (1684691125)
May 21 12:45:27 raspberrypi weewx[5293] INFO weewx.restx: MQTT: Published record 2023-05-21 12:45:27 CDT (1684691127)

Tom Keffer

unread,
May 21, 2023, 3:36:11 PM5/21/23
to weewx...@googlegroups.com
I really doubt this has anything to do with the Highcharts upgrade. Most likely, something in the configuration got changed when you upgraded.

Things to check

1. Check that /var/www/html/weewx/weekvolt.png exists on your weewx machine.
2. Take a look at the [[FTP]] section in weewx.conf and see what you've specified for "path". A file such as weekvolt.png will be going into the directory structure at this path. Do you have the necessary permissions on the FTP server to do this?
3. Run with debug=2 in weewx.conf. This will give you extra debug information, although I doubt it will help much. Post the results. 
4. If all else fails, please post the [[FTP]] section of weewx.conf, after obfuscating your password.


--
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/fdf69cc5-7e04-4caa-87e4-febc3ef1197bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages