New User trying Rpi Install with Errors

243 views
Skip to first unread message

Dennis Clark

unread,
Aug 24, 2020, 6:26:47 PM8/24/20
to weewx-user
Trying to install on a new RP4. New to both the Rpi and Weewx so not sure where my error lies. Looking for some next steps.
After getting it installed and checking the syslog I get the following:

Aug 24 22:20:50 raspberrypi weewx[1853] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1897, in __init__

Aug 24 22:20:50 raspberrypi weewx[1853] CRITICAL weewx.engine:     ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])

Aug 24 22:20:50 raspberrypi weewx[1853] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 511, in __init__

Aug 24 22:20:50 raspberrypi weewx[1853] CRITICAL weewx.engine:     ****      self.port.openPort()

Aug 24 22:20:50 raspberrypi weewx[1853] CRITICAL weewx.engine:     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 344, in openPort

Aug 24 22:20:50 raspberrypi weewx[1853] CRITICAL weewx.engine:     ****      raise weewx.WeeWxIOError(ex)

Aug 24 22:20:50 raspberrypi weewx[1853] CRITICAL weewx.engine:     ****  weewx.WeeWxIOError: [Errno 111] Connection refused

Aug 24 22:20:50 raspberrypi weewx[1853] CRITICAL __main__: Unable to load driver: [Errno 111] Connection refused

Aug 24 22:20:50 raspberrypi weewx[1853] CRITICAL __main__:     ****  Exiting...


Tried a couple of times with same results. The I Uninstalled again and this time choose Simulator instead of my Vantage station. Results below:


Aug 24 23:19:59 raspberrypi weewx[2610] CRITICAL __main__:     ****      self.preLoadServices(config_dict)

Aug 24 23:19:59 raspberrypi weewx[2610] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 112, in preLoadServices

Aug 24 23:19:59 raspberrypi weewx[2610] CRITICAL __main__:     ****      self.stn_info = weewx.station.StationInfo(self.console, **config_dict['Station'])

Aug 24 23:19:59 raspberrypi weewx[2610] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/station.py", line 51, in __init__

Aug 24 23:19:59 raspberrypi weewx[2610] CRITICAL __main__:     ****      self.latitude_f      = float(stn_dict['latitude'])

Aug 24 23:19:59 raspberrypi weewx[2610] CRITICAL __main__:     ****  ValueError: could not convert string to float: '32.46077 -11112799'

Aug 24 23:19:59 raspberrypi weewx[2610] CRITICAL __main__:     ****  Exiting.

Aug 24 23:19:59 raspberrypi weewx[2594]: Starting weewx weather system: weewx.

Aug 24 23:19:59 raspberrypi systemd[1]: Started LSB: weewx weather system.

vince

unread,
Aug 24, 2020, 8:30:14 PM8/24/20
to weewx-user
On Monday, August 24, 2020 at 3:26:47 PM UTC-7, Dennis Clark wrote:
Trying to install on a new RP4. New to both the Rpi and Weewx so not sure where my error lies. Looking for some next steps.
After getting it installed and checking the syslog I get the following:

Aug 24 23:19:59 raspberrypi weewx[2610] CRITICAL __main__:     ****  ValueError: could not convert string to float: '32.46077 -11112799'

Aug 24 23:19:59 raspberrypi weewx[2610] CRITICAL __main__:     ****  Exiting.



Looks like your latitude line in weewx.conf is incorrect...

Dennis Clark

unread,
Aug 25, 2020, 12:11:55 PM8/25/20
to weewx-user
So yes, found I omitted the comma between latitude and longitude. Tried a new install with correctly added comma and now it apperas I may have it narrowed down to some sort of permissions error???
When I did a manual weeconfig --reconfigure to check things out it errors after entering the IP of my Weatherlink.
Any thoughts ?

Specify the IP address (e.g., 192.168.0.10) or hostname

(e.g., console or console.example.com) for stations with

an ethernet interface.

host [10.1.1.91]: 

Traceback (most recent call last):

  File "/usr/lib/python3.7/shutil.py", line 563, in move

    os.rename(src, real_dst)

PermissionError: [Errno 13] Permission denied: '/etc/weewx/weewx.conf' -> '/etc/weewx/weewx.conf.20200825170437'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/usr/share/weewx/wee_config", line 123, in <module>

    main()

  File "/usr/share/weewx/wee_config", line 117, in main

    config_mgr.run(args, options)

  File "/usr/share/weewx/weecfg/config.py", line 126, in run

    backup_path = weecfg.save(config_dict, output_path, not options.no_backup)

  File "/usr/share/weewx/weecfg/__init__.py", line 194, in save

    backup_path = weeutil.weeutil.move_with_timestamp(config_path)

  File "/usr/share/weewx/weeutil/weeutil.py", line 1309, in move_with_timestamp

    shutil.move(filepath, newpath)

  File "/usr/lib/python3.7/shutil.py", line 577, in move

    copy_function(src, real_dst)

  File "/usr/lib/python3.7/shutil.py", line 263, in copy2

    copyfile(src, dst, follow_symlinks=follow_symlinks)

  File "/usr/lib/python3.7/shutil.py", line 121, in copyfile

    with open(dst, 'wb') as fdst:

PermissionError: [Errno 13] Permission denied: '/etc/weewx/weewx.conf.20200825170437'

vince

unread,
Aug 25, 2020, 2:16:53 PM8/25/20
to weewx-user
On Tuesday, August 25, 2020 at 9:11:55 AM UTC-7, Dennis Clark wrote:
So yes, found I omitted the comma between latitude and longitude. Tried a new install with correctly added comma and now it apperas I may have it narrowed down to some sort of permissions error???
When I did a manual weeconfig --reconfigure to check things out it errors after entering the IP of my Weatherlink.
Any thoughts ?


Permission denied on a pi, for new pi users especially, is always the user forgetting to preface their commands with 'sudo'

Dennis Clark

unread,
Aug 25, 2020, 2:25:06 PM8/25/20
to weewx-user
Always a possibility but I have gone back in terminal to review all my commands and it looks like sudo was always used. using ssh for everything as I dont have an external monitor.

i.e. sudo apt-get install weewx
Went through the setup dialogs then

sudo tail -f /var/log/syslog. was used to get errors shown in last post.


I am at the point of doing a fresh install of the pi followed by all the weewx install steps again.



Dennis Clark

unread,
Aug 25, 2020, 3:25:58 PM8/25/20
to weewx-user
Think I have this solved now. Finally found that the Weewx install would not work because I have a Davis Weatherlink Live in use. Had to add another driver for WLL. Found this at https://github.com/jonotaegi/weewx-wll. Thanks to Vince here and jonotaegi

lodewyk...@gmail.com

unread,
Sep 3, 2020, 1:21:00 AM9/3/20
to weewx-user
Hi Everyone,

I just can seem to get my WeeWX to run smoothly. I installed everything and it was running fine a month ago (in the office). So thinking everything was good I deployed the weather station (Davis Vantage Vue) outside for a month. 
When I tried to look for the data the archive stopped before I deployed the logger outside but in the office, it worked again. So I deployed it again and the something but now it doesn't want to work at all. 

I reinstalled Weewx but no luck even formatted the SD card and reinstalled but no luck. 

Is there something I am missing? 

Andrew Milner

unread,
Sep 3, 2020, 3:10:49 AM9/3/20
to weewx-user
what does the log say???

lodewyk...@gmail.com

unread,
Sep 3, 2020, 4:39:58 PM9/3/20
to weewx-user
Apologies - attached is the log file...
syslog_200904.txt

Tom Keffer

unread,
Sep 3, 2020, 7:02:27 PM9/3/20
to weewx-user
What seems to be the problem? The log looks totally normal to me. HTML pages are getting generated and put in /home/weewx/public_html

Any particular reason you're using software record generation?

-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/e1f33e20-1a79-4d1b-ba68-1cd77065e37bn%40googlegroups.com.

Graham Eddy

unread,
Sep 3, 2020, 11:07:20 PM9/3/20
to weewx...@googlegroups.com
selected some lines from log, shown below.
looks like RPi is reporting under-voltage THEN a high-speed usb hard drive is added on top of that...
weewx not reporting problems but not surprised if strange things are happening

but, repeating: weewx not reporting errors, images are being generated, so i don’t know what is being reported as the problem
-----------------------

Sep 4 07:14:52 raspberrypi kernel: [ 10.716358] Under-voltage detected! (0x00050005)
Sep 4 07:15:09 raspberrypi kernel: [ 27.356236] Voltage normalised (0x00000000)
Sep 4 07:15:20 raspberrypi weewx[517] INFO weewx.manager: Added record 2020-08-05 07:15:00 NZST (1596568500) to database 'weewx.sdb'
Sep 4 08:22:54 raspberrypi systemd-timesyncd[309]: Synchronized to time server for the first time 46.40.123.212:123 (2.debian.pool.ntp.org).
Sep 4 08:22:54 raspberrypi kernel: [ 39.836265] Under-voltage detected! (0x00050005)
Sep 4 08:22:59 raspberrypi kernel: [ 43.996306] Voltage normalised (0x00000000)
Sep 4 08:23:03 raspberrypi kernel: [ 48.156305] Under-voltage detected! (0x00050005)
Sep 4 08:23:09 raspberrypi kernel: [ 54.396218] Voltage normalised (0x00000000)
Sep 4 08:26:21 raspberrypi gvfsd[629]: mkdir failed on directory /var/cache/samba: Permission denied
Sep 4 08:27:56 raspberrypi kernel: [ 341.439091] rpi_firmware_get_throttled: 4 callbacks suppressed
Sep 4 08:27:56 raspberrypi kernel: [ 341.439098] Voltage normalised (0x00000000)
Sep 4 08:28:00 raspberrypi kernel: [ 345.599302] rpi_firmware_get_throttled: 5 callbacks suppressed
Sep 4 08:28:00 raspberrypi kernel: [ 345.599317] Under-voltage detected! (0x00050005)
Sep 4 08:28:06 raspberrypi kernel: [ 351.839299] Voltage normalised (0x00000000)
Sep 4 08:28:11 raspberrypi kernel: [ 355.999447] Under-voltage detected! (0x00050005)
Sep 4 08:28:44 raspberrypi kernel: [ 389.279727] Voltage normalised (0x00000000)
Sep 4 08:28:48 raspberrypi kernel: [ 393.439877] Under-voltage detected! (0x00050005)
Sep 4 08:29:30 raspberrypi kernel: [ 435.610099] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
Sep 4 08:29:30 raspberrypi weewx[517] INFO weewx.manager: Added record 2020-08-28 18:15:00 NZST (1598595300) to database 'weewx.sdb'
Sep 4 08:29:30 raspberrypi weewx[517] INFO weewx.manager: Added record 2020-08-28 18:15:00 NZST (1598595300) to daily summary in 'weewx.sdb'
Sep 4 08:29:30 raspberrypi kernel: [ 435.821976] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=231a, bcdDevice= 7.10
Sep 4 08:29:30 raspberrypi kernel: [ 435.822028] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 4 08:29:30 raspberrypi kernel: [ 435.822042] usb 1-1.2: Product: Expansion
Sep 4 08:29:30 raspberrypi kernel: [ 435.822057] usb 1-1.2: Manufacturer: Seagate
Sep 4 08:29:30 raspberrypi kernel: [ 435.822070] usb 1-1.2: SerialNumber: NAA8Q86P
Sep 4 08:29:30 raspberrypi kernel: [ 435.823355] usb 1-1.2: The driver for the USB controller dwc_otg_hcd does not support scatter-gather which is
Sep 4 08:29:30 raspberrypi kernel: [ 435.823406] usb 1-1.2: required by the UAS driver. Please try an other USB controller if you wish to use UAS.
Sep 4 08:29:30 raspberrypi kernel: [ 435.823422] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Sep 4 08:29:30 raspberrypi kernel: [ 435.843662] scsi host0: usb-storage 1-1.2:1.0
Sep 4 08:29:31 raspberrypi mtp-probe: checking bus 1, device 6: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2"
Sep 4 08:29:31 raspberrypi mtp-probe: bus: 1, device: 6 was not an MTP device
Sep 4 08:29:31 raspberrypi kernel: [ 436.067373] usbcore: registered new interface driver uas
Sep 4 08:29:31 raspberrypi weewx[517] INFO weewx.manager: Added record 2020-08-28 18:30:00 NZST (1598596200) to database 'weewx.sdb'
Sep 4 08:29:37 raspberrypi udisksd[383]: The disk contains an unclean file system (0, 0).
Sep 4 08:29:37 raspberrypi udisksd[383]: The file system wasn't safely closed on Windows. Fixing.
Sep 4 08:30:04 raspberrypi ntfs-3g[1701]: Version 2017.3.23AR.3 integrated FUSE 28
Sep 4 08:30:04 raspberrypi ntfs-3g[1701]: Mounted /dev/sda1 (Read-Write, label "Seagate Expansion Drive", NTFS 3.1)
Sep 4 08:30:04 raspberrypi ntfs-3g[1701]: Cmdline options: rw,nodev,nosuid,uid=1000,gid=1000,uhelper=udisks2
Sep 4 08:30:04 raspberrypi ntfs-3g[1701]: Mount options: nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,rw,default_permissions,fsname=/dev/sda1,blkdev,blksize=4096
Sep 4 08:30:04 raspberrypi ntfs-3g[1701]: Global ownership and permissions enforced, configuration type 7
Sep 4 08:35:16 raspberrypi weewx[517] DEBUG weewx.reportengine: Running reports for latest time in the database.
Sep 4 08:35:16 raspberrypi weewx[517] DEBUG weewx.reportengine: Running report 'SeasonsReport'
Sep 4 08:35:16 raspberrypi weewx[517] DEBUG weewx.drivers.vantage: Requesting 200 LOOP packets.
Sep 4 08:35:16 raspberrypi weewx[517] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
Sep 4 08:35:16 raspberrypi weewx[517] DEBUG weewx.reportengine: Found configuration file /home/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Sep 4 08:35:16 raspberrypi weewx[517] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Sep 4 08:35:16 raspberrypi weewx[517] DEBUG weewx.manager: Daily summary version is 2.0
Sep 4 08:35:17 raspberrypi kernel: [ 782.401152] Under-voltage detected! (0x00050005)
Sep 4 08:35:20 raspberrypi weewx[517] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 3.70 seconds
Sep 4 08:35:20 raspberrypi weewx[517] DEBUG weewx.manager: Daily summary version is 2.0
Sep 4 08:35:22 raspberrypi weewx[517] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 2.42 seconds
Sep 4 08:35:22 raspberrypi weewx[517] INFO weewx.reportengine: Copied 0 files to /home/weewx/public_html
Sep 4 08:35:22 raspberrypi weewx[517] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Sep 4 08:35:22 raspberrypi weewx[517] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
Sep 4 08:35:22 raspberrypi weewx[517] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
Sep 4 08:35:22 raspberrypi weewx[517] DEBUG weewx.reportengine: Report 'FTP' not enabled. Skipping.
Sep 4 08:35:22 raspberrypi weewx[517] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.
Sep 4 08:35:44 raspberrypi kernel: [ 809.441122] Voltage normalised (0x00000000)
Sep 4 08:35:57 raspberrypi kernel: [ 821.921203] Under-voltage detected! (0x00050005)



> On 4 Sep 2020, at 6:39 am, lodewyk...@gmail.com <lodewyk...@gmail.com> wrote:
>
> <syslog_200904.txt>

Andrew Milner

unread,
Sep 4, 2020, 12:06:35 AM9/4/20
to weewx-user
you appear to have a voltage issue - nothing to do with weewx - check with the pi forums.  Check your power supply and make sure you are using a beefy enough one.  if using usb to power devices use a powered usb hub.  otherwise all looks good from the weewx point of view.


> On 4 Sep 2020, at 6:39 am, lodewyk...@gmail.com <lodewy...@gmail.com> wrote:
>
> <syslog_200904.txt>

Reply all
Reply to author
Forward
0 new messages