probs updating from 4 to 4.1

83 views
Skip to first unread message

Eric Gammeter

unread,
May 28, 2020, 4:03:57 PM5/28/20
to weewx-user
Hello-  I was running WEEWX 4.0 on my RaspberryPi until yesterday- when I did an upgrade and accepted V4.1.  I have no success getting my web pages posted to my web server (FTP toWWW.N8AAY.NET).  Below is text from my syslog with DEBUG set.  

May 28 16:00:16 raspberrypi weewx[1933] DEBUG weewx.drivers.vantage: Getting archive packets since 2020-05-28 15:30:00 EDT (1590694200)
May 28 16:00:16 raspberrypi weewx[1933] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
May 28 16:00:16 raspberrypi weewx[1933] DEBUG weewx.drivers.vantage: Retrieving 1 page(s); starting index= 0
May 28 16:00:16 raspberrypi weewx[1933] INFO weewx.manager: Added record 2020-05-28 16:00:00 EDT (1590696000) to database 'weewx'
May 28 16:00:16 raspberrypi weewx[1933] INFO weewx.manager: Added record 2020-05-28 16:00:00 EDT (1590696000) to daily summary in 'weewx'
May 28 16:00:16 raspberrypi weewx[1933] DEBUG weewx.drivers.vantage: DMPAFT complete: page timestamp 2020-04-05 08:30:00 EDT (1586089800) less than final timestamp 2020-05-28 16:00:00 EDT (1590696000)
May 28 16:00:16 raspberrypi weewx[1933] DEBUG weewx.drivers.vantage: Catch up complete.
May 28 16:00:16 raspberrypi weewx[1933] DEBUG weewx.reportengine: Running reports for latest time in the database.
May 28 16:00:16 raspberrypi weewx[1933] DEBUG weewx.drivers.vantage: Requesting 200 LOOP packets.
May 28 16:00:16 raspberrypi weewx[1933] DEBUG weewx.reportengine: Running report 'SeasonsReport'
May 28 16:00:16 raspberrypi weewx[1933] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
May 28 16:00:16 raspberrypi weewx[1933] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
May 28 16:00:17 raspberrypi weewx[1933] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
May 28 16:00:17 raspberrypi weewx[1933] DEBUG weewx.manager: Daily summary version is 2.0
May 28 16:00:17 raspberrypi weewx[1933] INFO weewx.restx: StationRegistry: Published record 2020-05-28 16:00:00 EDT (1590696000)
May 28 16:00:17 raspberrypi weewx[1933] INFO weewx.restx: Wunderground-PWS: Published record 2020-05-28 16:00:00 EDT (1590696000)
May 28 16:00:23 raspberrypi weewx[1933] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 6.19 seconds
May 28 16:00:23 raspberrypi weewx[1933] DEBUG weewx.manager: Daily summary version is 2.0
May 28 16:00:33 raspberrypi weewx[1933] INFO weewx.imagegenerator: Generated 30 images for report SeasonsReport in 10.69 seconds
May 28 16:00:33 raspberrypi weewx[1933] INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
May 28 16:00:33 raspberrypi weewx[1933] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
May 28 16:00:33 raspberrypi weewx[1933] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
May 28 16:00:33 raspberrypi weewx[1933] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
May 28 16:00:33 raspberrypi weewx[1933] DEBUG weewx.reportengine: Running report 'FTP'
May 28 16:00:33 raspberrypi weewx[1933] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
May 28 16:00:33 raspberrypi weewx[1933] DEBUG weeutil.ftpupload: Attempting connection to www.N8AAY.NET
May 28 16:00:34 raspberrypi weewx[1933] DEBUG weeutil.ftpupload: quit() exception <type 'exceptions.AttributeError'>: ''NoneType' object has no attribute 'sendall''
May 28 16:00:34 raspberrypi weewx[1933] ERROR weewx.reportengine: ftpgenerator: (0): caught exception '<class 'socket.error'>': [Errno 111] Connection refused
May 28 16:00:34 raspberrypi weewx[1933] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
May 28 16:00:34 raspberrypi weewx[1933] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 330, in run
May 28 16:00:34 raspberrypi weewx[1933] ERROR weewx.reportengine:         ****      n = ftp_data.run()
May 28 16:00:34 raspberrypi weewx[1933] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run
May 28 16:00:34 raspberrypi weewx[1933] ERROR weewx.reportengine:         ****      ftp_server.connect(self.server, self.port)
May 28 16:00:34 raspberrypi weewx[1933] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/ftplib.py", line 135, in connect
May 28 16:00:34 raspberrypi weewx[1933] ERROR weewx.reportengine:         ****      self.sock = socket.create_connection((self.host, self.port), self.timeout)
May 28 16:00:34 raspberrypi weewx[1933] ERROR weewx.reportengine:         ****    File "/usr/lib/python2.7/socket.py", line 575, in create_connection
May 28 16:00:34 raspberrypi weewx[1933] ERROR weewx.reportengine:         ****      raise err
May 28 16:00:34 raspberrypi weewx[1933] ERROR weewx.reportengine:         ****  error: [Errno 111] Connection refused
May 28 16:00:34 raspberrypi weewx[1933] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.


Additionally I am curious just how my python is (should be) set (ie:  V 2.7.16 or 3.7.3) since the new WEEWX v4.

pi@raspberrypi:/etc/weewx $ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
pi@raspberrypi:/etc/weewx $ python3.7 --version
Python 3.7.3

Tom Keffer

unread,
May 28, 2020, 4:26:47 PM5/28/20
to weewx-user
Hello, Eric

Two things:

1. Can you post your section [FTP], after obfuscating anything personal.

2. Set the debug flag in the [FTP] section, then run weewxd from the command line. This will print out (to the console) lots of extra information about what's going on inside FTP.

[FTP]
  ...
  debug = 1

-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/838d2f8b-f02b-4f3d-bf02-371a404281d5%40googlegroups.com.

vince

unread,
May 28, 2020, 4:33:05 PM5/28/20
to weewx-user
  > ftpgenerator: (0): caught exception '<class 'socket.error'>': [Errno 111] Connection refused

Connection refused means you are trying to connect to a computer that isn't running the service you're trying to connect to.   Is it possible you have a typo in weewx.conf for the system name (or address) you hope to connect to via ftp ?

If you're on a raspberry pi and used the packaged version of weewx, which your log snippet seems to indicate, then it's going to use python3 probably.

Eric Gammeter

unread,
May 29, 2020, 8:11:22 AM5/29/20
to weewx-user
Here is my wee_debug info:

  [[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
        debug = 1
        user = XXX obfuscated by wee_debug XXX
        password = XXX obfuscated by wee_debug XXX
        server = http://WWW.N8AAY.NET
        path = /weather/4.1

        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = False

As for running weewxd from cmd line-  all I got at 8:00 am was copious amounts of loop data.  There was not any info about FTP.    below is an example:


LOOP:   2020-05-29 08:07:50 EDT (1590754070) altimeter: 30.0327339235, appTemp: 80.0207937815, barometer: 30.005, beaufort: 2, cloudbase: 1405.05043868, consBatteryVoltage: 4.71, dateTime: 1590754070, dayET: 0.0, dayRain: 0.0, dewpoint: 71.2937780698, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, extraAlarm8: 0, forecastIcon: 6, forecastRule: 44, heatindex: 75.1, humidex: 91.5954288614, inDewpoint: 62.4062044499, inHumidity: 56.0, insideAlarm: 0, inTemp: 79.5, leafWet4: 0.0, maxSolarRad: 340.585268415, monthET: 0.0, monthRain: 2.13, outHumidity: 88.0, outsideAlarm1: 0, outsideAlarm2: 0, outTemp: 75.1, pressure: 29.4490369347, rain: 0.0, rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 0.05, stormStart: 1590638400, sunrise: 1590747120.0, sunset: 1590799488.0, txBatteryStatus: 0, usUnits: 1, windchill: 75.1, windDir: 200.0, windGust: 6.0, windGustDir: 207.0, windSpeed: 6.0, windSpeed10: 5.0, yearET: 0.0, yearRain: 13.96
LOOP:   2020-05-29 08:07:52 EDT (1590754072) altimeter: 30.0327339235, appTemp: 80.5840627815, barometer: 30.005, beaufort: 2, cloudbase: 1405.05043868, consBatteryVoltage: 4.71, dateTime: 1590754072, dayET: 0.0, dayRain: 0.0, dewpoint: 71.2937780698, extraAlarm1: 0, extraAlarm2: 0, extraAlarm3: 0, extraAlarm4: 0, extraAlarm5: 0, extraAlarm6: 0, extraAlarm7: 0, extraAlarm8: 0, forecastIcon: 6, forecastRule: 44, heatindex: 75.1, humidex: 91.5954288614, inDewpoint: 62.4062044499, inHumidity: 56.0, insideAlarm: 0, inTemp: 79.5, leafWet4: 0.0, maxSolarRad: 340.70586259, monthET: 0.0, monthRain: 2.13, outHumidity: 88.0, outsideAlarm1: 0, outsideAlarm2: 0, outTemp: 75.1, pressure: 29.4490369347, rain: 0.0, rainAlarm: 0, rainRate: 0.0, soilLeafAlarm1: 0, soilLeafAlarm2: 0, soilLeafAlarm3: 0, soilLeafAlarm4: 0, stormRain: 0.05, stormStart: 1590638400, sunrise: 1590747120.0, sunset: 1590799488.0, txBatteryStatus: 0, usUnits: 1, windchill: 75.1, windDir: 212.0, windGust: 6.0, windGustDir: 207.0, windSpeed: 5.0, windSpeed10: 5.0, yearET: 0.0, yearRain: 13.96
^CTraceback (most recent call last):
  File "/usr/share/weewx/weewxd", line 261, in <module>
    main()
  File "/usr/share/weewx/weewxd", line 154, in main
    engine.run()
  File "/usr/share/weewx/weewx/engine.py", line 188, in run
    for packet in self.console.genLoopPackets():
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 532, in genLoopPackets
    for _loop_packet in self.genDavisLoopPackets(200):
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 559, in genDavisLoopPackets
    loop_packet = self._get_packet()
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 572, in _get_packet
    _buffer = self.port.read(99)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 279, in read
    _buffer = self.serial_port.read(chars)
  File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 483, in read
    ready, _, _ = select.select([self.fd, self.pipe_abort_read_r], [], [], timeout.time_left())
KeyboardInterrupt

Eric Gammeter

unread,
May 29, 2020, 9:17:35 AM5/29/20
to weewx-user
Duh--  just found my own problem in the FTP section.  Plugging that fix in now and testing.  IMHO: I goofed!  


On Thursday, May 28, 2020 at 4:03:57 PM UTC-4, Eric Gammeter wrote:

Eric Gammeter

unread,
May 29, 2020, 9:23:49 AM5/29/20
to weewx-user
Yep-  that did the trick-  fixing my own error!  4.1 looks great!  


On Thursday, May 28, 2020 at 4:03:57 PM UTC-4, Eric Gammeter wrote:
Reply all
Reply to author
Forward
0 new messages