[weewx-user] Re: Install of WeeWX 5.0.2 on RPI 5 Failed

2024-02-21 Thread Dave McCreath
Tom

Many thanks, solved!

sudo usermod -aG dialout weewx.

All up and working fine on the new RPi 5 having followed your magnificent 
guide here:  Moving Weewx to new PC (google.com) 


Regards

Dave

On Wednesday 21 February 2024 at 16:00:54 UTC Dave McCreath wrote:

> I also ran dmesg with the serial adaptor inserted and the following are 
> the last six lines of output: 
>
> [ 1596.869545] usb 3-1: New USB device strings: Mfr=1, Product=2, 
> SerialNumber=3
> [ 1596.869548] usb 3-1: Product: CP2102 USB to UART Bridge Controller
> [ 1596.869551] usb 3-1: Manufacturer: Silicon Labs
> [ 1596.869553] usb 3-1: SerialNumber: 0001
> [ 1596.870446] cp210x 3-1:1.0: cp210x converter detected
> [ 1596.873368] usb 3-1: cp210x converter now attached to ttyUSB0
> On Wednesday 21 February 2024 at 13:18:38 UTC Dave McCreath wrote:
>
>> Ville
>>
>> Many thanks for your support.  As requested output of ls /dev/
>>
>> is here:
>>
>> DMac@WeeWX:~ $ ls /dev/
>> autofs   loop1 ram6tty24  tty58  vcsu1
>> blockloop2 ram7tty25  tty59  vcsu2
>> bsg  loop3 ram8tty26  tty6   vcsu3
>> btrfs-controlloop4 ram9tty27  tty60  vcsu4
>> bus  loop5 random  tty28  tty61  vcsu5
>> cachefiles   loop6 rfkill  tty29  tty62  vcsu6
>> cec0 loop7 rtc tty3   tty63  vcsu7
>> cec1 loop-control  rtc0tty30  tty7   vga_arbiter
>> char mappersda tty31  tty8   vhci
>> console  media0sda1tty32  tty9   vhost-net
>> cpu_dma_latency  media1serial  tty33  ttyAMA10   vhost-vsock
>> cuse media2serial0 tty34  ttyprintk  video19
>> disk mem   sg0 tty35  ttyUSB0video20
>> dma_heap mmcblk0   shm tty36  uhid   video21
>> dri  mmcblk0p1 snd tty37  uinput video22
>> fd   mmcblk0p2 spidev10.0  tty38  urandomvideo23
>> full mqueuestderr  tty39  v4lvideo24
>> fuse net   stdin   tty4   vantagevideo25
>> gpiochip0null  stdout  tty40  vcio   video26
>> gpiochip1port  tty tty41  vc-mem video27
>> gpiochip2ppp   tty0tty42  vcsvideo28
>> gpiochip3pps0  tty1tty43  vcs1   video29
>> gpiochip4ptmx  tty10   tty44  vcs2   video30
>> gpiomem0 ptp0  tty11   tty45  vcs3   video31
>> gpiomem1 pts   tty12   tty46  vcs4   video32
>> gpiomem2 ram0  tty13   tty47  vcs5   video33
>> gpiomem3 ram1  tty14   tty48  vcs6   video34
>> gpiomem4 ram10 tty15   tty49  vcs7   video35
>> hwrngram11 tty16   tty5   vcsa   video36
>> i2c-11   ram12 tty17   tty50  vcsa1  video37
>> i2c-12   ram13 tty18   tty51  vcsa2  watchdog
>> initctl  ram14 tty19   tty52  vcsa3  watchdog0
>> inputram15 tty2tty53  vcsa4  zero
>> kmsg ram2  tty20   tty54  vcsa5
>> kvm  ram3  tty21   tty55  vcsa6
>> log  ram4  tty22   tty56  vcsa7
>> loop0ram5  tty23   tty57  vcsu
>>
>> Regards
>>
>> Dave
>>
>>
>> On Wednesday 21 February 2024 at 12:49:42 UTC vhel...@gmail.com wrote:
>>
>>> Hi,
>>>
>>> Plug the USB serial converter with weatherstation plugged to your RPI5.
>>> Check from linux terminal command: ls /dev/ to see is your logger there.
>>> Paste the results of: ls /dev/ here.
>>>
>>> -Ville-
>>>
>>>
>>> keskiviikko 21. helmikuuta 2024 klo 14.38.36 UTC+2 Dave McCreath 
>>> kirjoitti:
>>>
 Recently acquired an RPi 5 and decided this morning to migrate WeeWX 
 over to it from an up to date RPi 4.

 Three attempts, all failed with the same errors.  I have tried with 
 both the USB serial connector inserted and without.  I'm running the RPi 
 headless over VNC and nothing else plugged into it at all apart from the 
 power lead.

 *Log:*

  2024-02-21T12:15:44.944885+00:00 WeeWX weectl[2869]: INFO weectllib: 
 Initializing weectl version 5.0.2
 2024-02-21T12:15:44.945066+00:00 WeeWX weectl[2869]: INFO weectllib: 
 Command line: /usr/share/weewx/weectl.py station reconfigure 
 --config=/etc/weewx/weewx.conf --driver=weewx.drivers.vantage 
 --units=metric --location=Leverington --latitude=52.693 --longitude=0.147 
 --altitude=3,meter --register=y --station-url=
 https://www.wunderground.com/dashboard/pws/ICAMBSLE2 --no-prompt 
 --no-backup
 

Re: [weewx-user] Re: Install of WeeWX 5.0.2 on RPI 5 Failed

2024-02-21 Thread Tom Keffer
Dave, you have a permissions problem. See the wiki article How to fix
device permissions

in
particular, *Example: add the weewx user to group defined on a device*
.
If that doesn't help, come back here and we'll figure it out.

Neil, your problem is something completely different and not related to
Dave's. It looks like you solved it in another thread.

-tk

On Wed, Feb 21, 2024 at 8:00 AM Dave McCreath 
wrote:

> I also ran dmesg with the serial adaptor inserted and the following are
> the last six lines of output:
>
> [ 1596.869545] usb 3-1: New USB device strings: Mfr=1, Product=2,
> SerialNumber=3
> [ 1596.869548] usb 3-1: Product: CP2102 USB to UART Bridge Controller
> [ 1596.869551] usb 3-1: Manufacturer: Silicon Labs
> [ 1596.869553] usb 3-1: SerialNumber: 0001
> [ 1596.870446] cp210x 3-1:1.0: cp210x converter detected
> [ 1596.873368] usb 3-1: cp210x converter now attached to ttyUSB0
> On Wednesday 21 February 2024 at 13:18:38 UTC Dave McCreath wrote:
>
>> Ville
>>
>> Many thanks for your support.  As requested output of ls /dev/
>>
>> is here:
>>
>> DMac@WeeWX:~ $ ls /dev/
>> autofs   loop1 ram6tty24  tty58  vcsu1
>> blockloop2 ram7tty25  tty59  vcsu2
>> bsg  loop3 ram8tty26  tty6   vcsu3
>> btrfs-controlloop4 ram9tty27  tty60  vcsu4
>> bus  loop5 random  tty28  tty61  vcsu5
>> cachefiles   loop6 rfkill  tty29  tty62  vcsu6
>> cec0 loop7 rtc tty3   tty63  vcsu7
>> cec1 loop-control  rtc0tty30  tty7   vga_arbiter
>> char mappersda tty31  tty8   vhci
>> console  media0sda1tty32  tty9   vhost-net
>> cpu_dma_latency  media1serial  tty33  ttyAMA10   vhost-vsock
>> cuse media2serial0 tty34  ttyprintk  video19
>> disk mem   sg0 tty35  ttyUSB0video20
>> dma_heap mmcblk0   shm tty36  uhid   video21
>> dri  mmcblk0p1 snd tty37  uinput video22
>> fd   mmcblk0p2 spidev10.0  tty38  urandomvideo23
>> full mqueuestderr  tty39  v4lvideo24
>> fuse net   stdin   tty4   vantagevideo25
>> gpiochip0null  stdout  tty40  vcio   video26
>> gpiochip1port  tty tty41  vc-mem video27
>> gpiochip2ppp   tty0tty42  vcsvideo28
>> gpiochip3pps0  tty1tty43  vcs1   video29
>> gpiochip4ptmx  tty10   tty44  vcs2   video30
>> gpiomem0 ptp0  tty11   tty45  vcs3   video31
>> gpiomem1 pts   tty12   tty46  vcs4   video32
>> gpiomem2 ram0  tty13   tty47  vcs5   video33
>> gpiomem3 ram1  tty14   tty48  vcs6   video34
>> gpiomem4 ram10 tty15   tty49  vcs7   video35
>> hwrngram11 tty16   tty5   vcsa   video36
>> i2c-11   ram12 tty17   tty50  vcsa1  video37
>> i2c-12   ram13 tty18   tty51  vcsa2  watchdog
>> initctl  ram14 tty19   tty52  vcsa3  watchdog0
>> inputram15 tty2tty53  vcsa4  zero
>> kmsg ram2  tty20   tty54  vcsa5
>> kvm  ram3  tty21   tty55  vcsa6
>> log  ram4  tty22   tty56  vcsa7
>> loop0ram5  tty23   tty57  vcsu
>>
>> Regards
>>
>> Dave
>>
>>
>> On Wednesday 21 February 2024 at 12:49:42 UTC vhel...@gmail.com wrote:
>>
>>> Hi,
>>>
>>> Plug the USB serial converter with weatherstation plugged to your RPI5.
>>> Check from linux terminal command: ls /dev/ to see is your logger there.
>>> Paste the results of: ls /dev/ here.
>>>
>>> -Ville-
>>>
>>>
>>> keskiviikko 21. helmikuuta 2024 klo 14.38.36 UTC+2 Dave McCreath
>>> kirjoitti:
>>>
 Recently acquired an RPi 5 and decided this morning to migrate WeeWX
 over to it from an up to date RPi 4.

 Three attempts, all failed with the same errors.  I have tried with
 both the USB serial connector inserted and without.  I'm running the RPi
 headless over VNC and nothing else plugged into it at all apart from the
 power lead.

 *Log:*

  2024-02-21T12:15:44.944885+00:00 WeeWX weectl[2869]: INFO weectllib:
 Initializing weectl version 5.0.2
 2024-02-21T12:15:44.945066+00:00 WeeWX weectl[2869]: INFO weectllib:
 Command line: /usr/share/weewx/weectl.py station reconfigure
 

[weewx-user] Re: Install of WeeWX 5.0.2 on RPI 5 Failed

2024-02-21 Thread Dave McCreath
I also ran dmesg with the serial adaptor inserted and the following are the 
last six lines of output: 

[ 1596.869545] usb 3-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[ 1596.869548] usb 3-1: Product: CP2102 USB to UART Bridge Controller
[ 1596.869551] usb 3-1: Manufacturer: Silicon Labs
[ 1596.869553] usb 3-1: SerialNumber: 0001
[ 1596.870446] cp210x 3-1:1.0: cp210x converter detected
[ 1596.873368] usb 3-1: cp210x converter now attached to ttyUSB0
On Wednesday 21 February 2024 at 13:18:38 UTC Dave McCreath wrote:

> Ville
>
> Many thanks for your support.  As requested output of ls /dev/
>
> is here:
>
> DMac@WeeWX:~ $ ls /dev/
> autofs   loop1 ram6tty24  tty58  vcsu1
> blockloop2 ram7tty25  tty59  vcsu2
> bsg  loop3 ram8tty26  tty6   vcsu3
> btrfs-controlloop4 ram9tty27  tty60  vcsu4
> bus  loop5 random  tty28  tty61  vcsu5
> cachefiles   loop6 rfkill  tty29  tty62  vcsu6
> cec0 loop7 rtc tty3   tty63  vcsu7
> cec1 loop-control  rtc0tty30  tty7   vga_arbiter
> char mappersda tty31  tty8   vhci
> console  media0sda1tty32  tty9   vhost-net
> cpu_dma_latency  media1serial  tty33  ttyAMA10   vhost-vsock
> cuse media2serial0 tty34  ttyprintk  video19
> disk mem   sg0 tty35  ttyUSB0video20
> dma_heap mmcblk0   shm tty36  uhid   video21
> dri  mmcblk0p1 snd tty37  uinput video22
> fd   mmcblk0p2 spidev10.0  tty38  urandomvideo23
> full mqueuestderr  tty39  v4lvideo24
> fuse net   stdin   tty4   vantagevideo25
> gpiochip0null  stdout  tty40  vcio   video26
> gpiochip1port  tty tty41  vc-mem video27
> gpiochip2ppp   tty0tty42  vcsvideo28
> gpiochip3pps0  tty1tty43  vcs1   video29
> gpiochip4ptmx  tty10   tty44  vcs2   video30
> gpiomem0 ptp0  tty11   tty45  vcs3   video31
> gpiomem1 pts   tty12   tty46  vcs4   video32
> gpiomem2 ram0  tty13   tty47  vcs5   video33
> gpiomem3 ram1  tty14   tty48  vcs6   video34
> gpiomem4 ram10 tty15   tty49  vcs7   video35
> hwrngram11 tty16   tty5   vcsa   video36
> i2c-11   ram12 tty17   tty50  vcsa1  video37
> i2c-12   ram13 tty18   tty51  vcsa2  watchdog
> initctl  ram14 tty19   tty52  vcsa3  watchdog0
> inputram15 tty2tty53  vcsa4  zero
> kmsg ram2  tty20   tty54  vcsa5
> kvm  ram3  tty21   tty55  vcsa6
> log  ram4  tty22   tty56  vcsa7
> loop0ram5  tty23   tty57  vcsu
>
> Regards
>
> Dave
>
>
> On Wednesday 21 February 2024 at 12:49:42 UTC vhel...@gmail.com wrote:
>
>> Hi,
>>
>> Plug the USB serial converter with weatherstation plugged to your RPI5.
>> Check from linux terminal command: ls /dev/ to see is your logger there.
>> Paste the results of: ls /dev/ here.
>>
>> -Ville-
>>
>>
>> keskiviikko 21. helmikuuta 2024 klo 14.38.36 UTC+2 Dave McCreath 
>> kirjoitti:
>>
>>> Recently acquired an RPi 5 and decided this morning to migrate WeeWX 
>>> over to it from an up to date RPi 4.
>>>
>>> Three attempts, all failed with the same errors.  I have tried with both 
>>> the USB serial connector inserted and without.  I'm running the RPi 
>>> headless over VNC and nothing else plugged into it at all apart from the 
>>> power lead.
>>>
>>> *Log:*
>>>
>>>  2024-02-21T12:15:44.944885+00:00 WeeWX weectl[2869]: INFO weectllib: 
>>> Initializing weectl version 5.0.2
>>> 2024-02-21T12:15:44.945066+00:00 WeeWX weectl[2869]: INFO weectllib: 
>>> Command line: /usr/share/weewx/weectl.py station reconfigure 
>>> --config=/etc/weewx/weewx.conf --driver=weewx.drivers.vantage 
>>> --units=metric --location=Leverington --latitude=52.693 --longitude=0.147 
>>> --altitude=3,meter --register=y --station-url=
>>> https://www.wunderground.com/dashboard/pws/ICAMBSLE2 --no-prompt 
>>> --no-backup
>>> 2024-02-21T12:15:44.945101+00:00 WeeWX weectl[2869]: ERROR 
>>> weeutil.startup: Cannot load user extensions: No module named 'user'
>>> 2024-02-21T12:15:44.974672+00:00 WeeWX weectl[2869]: INFO 
>>> weectl-station: Using Vantage version 3.6.2 (weewx.drivers.vantage)
>>> 2024-02-21T12:15:45.030191+00:00 WeeWX systemd[1]: Reloading.
>>> 2024-02-21T12:15:45.848292+00:00 WeeWX systemd[1]: Reloading.
>>> 2024-02-21T12:15:46.281844+00:00 WeeWX 

[weewx-user] Re: Install of WeeWX 5.0.2 on RPI 5 Failed

2024-02-21 Thread Dave McCreath
Ville

Many thanks for your support.  As requested output of ls /dev/

is here:

DMac@WeeWX:~ $ ls /dev/
autofs   loop1 ram6tty24  tty58  vcsu1
blockloop2 ram7tty25  tty59  vcsu2
bsg  loop3 ram8tty26  tty6   vcsu3
btrfs-controlloop4 ram9tty27  tty60  vcsu4
bus  loop5 random  tty28  tty61  vcsu5
cachefiles   loop6 rfkill  tty29  tty62  vcsu6
cec0 loop7 rtc tty3   tty63  vcsu7
cec1 loop-control  rtc0tty30  tty7   vga_arbiter
char mappersda tty31  tty8   vhci
console  media0sda1tty32  tty9   vhost-net
cpu_dma_latency  media1serial  tty33  ttyAMA10   vhost-vsock
cuse media2serial0 tty34  ttyprintk  video19
disk mem   sg0 tty35  ttyUSB0video20
dma_heap mmcblk0   shm tty36  uhid   video21
dri  mmcblk0p1 snd tty37  uinput video22
fd   mmcblk0p2 spidev10.0  tty38  urandomvideo23
full mqueuestderr  tty39  v4lvideo24
fuse net   stdin   tty4   vantagevideo25
gpiochip0null  stdout  tty40  vcio   video26
gpiochip1port  tty tty41  vc-mem video27
gpiochip2ppp   tty0tty42  vcsvideo28
gpiochip3pps0  tty1tty43  vcs1   video29
gpiochip4ptmx  tty10   tty44  vcs2   video30
gpiomem0 ptp0  tty11   tty45  vcs3   video31
gpiomem1 pts   tty12   tty46  vcs4   video32
gpiomem2 ram0  tty13   tty47  vcs5   video33
gpiomem3 ram1  tty14   tty48  vcs6   video34
gpiomem4 ram10 tty15   tty49  vcs7   video35
hwrngram11 tty16   tty5   vcsa   video36
i2c-11   ram12 tty17   tty50  vcsa1  video37
i2c-12   ram13 tty18   tty51  vcsa2  watchdog
initctl  ram14 tty19   tty52  vcsa3  watchdog0
inputram15 tty2tty53  vcsa4  zero
kmsg ram2  tty20   tty54  vcsa5
kvm  ram3  tty21   tty55  vcsa6
log  ram4  tty22   tty56  vcsa7
loop0ram5  tty23   tty57  vcsu

Regards

Dave


On Wednesday 21 February 2024 at 12:49:42 UTC vhel...@gmail.com wrote:

> Hi,
>
> Plug the USB serial converter with weatherstation plugged to your RPI5.
> Check from linux terminal command: ls /dev/ to see is your logger there.
> Paste the results of: ls /dev/ here.
>
> -Ville-
>
>
> keskiviikko 21. helmikuuta 2024 klo 14.38.36 UTC+2 Dave McCreath kirjoitti:
>
>> Recently acquired an RPi 5 and decided this morning to migrate WeeWX over 
>> to it from an up to date RPi 4.
>>
>> Three attempts, all failed with the same errors.  I have tried with both 
>> the USB serial connector inserted and without.  I'm running the RPi 
>> headless over VNC and nothing else plugged into it at all apart from the 
>> power lead.
>>
>> *Log:*
>>
>>  2024-02-21T12:15:44.944885+00:00 WeeWX weectl[2869]: INFO weectllib: 
>> Initializing weectl version 5.0.2
>> 2024-02-21T12:15:44.945066+00:00 WeeWX weectl[2869]: INFO weectllib: 
>> Command line: /usr/share/weewx/weectl.py station reconfigure 
>> --config=/etc/weewx/weewx.conf --driver=weewx.drivers.vantage 
>> --units=metric --location=Leverington --latitude=52.693 --longitude=0.147 
>> --altitude=3,meter --register=y --station-url=
>> https://www.wunderground.com/dashboard/pws/ICAMBSLE2 --no-prompt 
>> --no-backup
>> 2024-02-21T12:15:44.945101+00:00 WeeWX weectl[2869]: ERROR 
>> weeutil.startup: Cannot load user extensions: No module named 'user'
>> 2024-02-21T12:15:44.974672+00:00 WeeWX weectl[2869]: INFO weectl-station: 
>> Using Vantage version 3.6.2 (weewx.drivers.vantage)
>> 2024-02-21T12:15:45.030191+00:00 WeeWX systemd[1]: Reloading.
>> 2024-02-21T12:15:45.848292+00:00 WeeWX systemd[1]: Reloading.
>> 2024-02-21T12:15:46.281844+00:00 WeeWX systemd[1]: Started weewx.service 
>> - WeeWX.
>> 2024-02-21T12:15:46.362945+00:00 WeeWX weewxd[3153]: INFO __main__: 
>> Initializing weewxd version 5.0.2
>> 2024-02-21T12:15:46.363060+00:00 WeeWX weewxd[3153]: INFO __main__: 
>> Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
>> 2024-02-21T12:15:46.371965+00:00 WeeWX weewxd[3153]: INFO __main__: Using 
>> Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]
>> 2024-02-21T12:15:46.372032+00:00 WeeWX weewxd[3153]: INFO __main__: 
>> Located at /usr/bin/python3
>> 2024-02-21T12:15:46.374175+00:00 WeeWX weewxd[3153]: INFO __main__: 
>> Platform Linux-6.1.0-rpi8-rpi-2712-aarch64-with-glibc2.36
>> 

[weewx-user] Re: Install of WeeWX 5.0.2 on RPI 5 Failed

2024-02-21 Thread vhel...@gmail.com
Hi,

Plug the USB serial converter with weatherstation plugged to your RPI5.
Check from linux terminal command: ls /dev/ to see is your logger there.
Paste the results of: ls /dev/ here.

-Ville-


keskiviikko 21. helmikuuta 2024 klo 14.38.36 UTC+2 Dave McCreath kirjoitti:

> Recently acquired an RPi 5 and decided this morning to migrate WeeWX over 
> to it from an up to date RPi 4.
>
> Three attempts, all failed with the same errors.  I have tried with both 
> the USB serial connector inserted and without.  I'm running the RPi 
> headless over VNC and nothing else plugged into it at all apart from the 
> power lead.
>
> *Log:*
>
>  2024-02-21T12:15:44.944885+00:00 WeeWX weectl[2869]: INFO weectllib: 
> Initializing weectl version 5.0.2
> 2024-02-21T12:15:44.945066+00:00 WeeWX weectl[2869]: INFO weectllib: 
> Command line: /usr/share/weewx/weectl.py station reconfigure 
> --config=/etc/weewx/weewx.conf --driver=weewx.drivers.vantage 
> --units=metric --location=Leverington --latitude=52.693 --longitude=0.147 
> --altitude=3,meter --register=y --station-url=
> https://www.wunderground.com/dashboard/pws/ICAMBSLE2 --no-prompt 
> --no-backup
> 2024-02-21T12:15:44.945101+00:00 WeeWX weectl[2869]: ERROR 
> weeutil.startup: Cannot load user extensions: No module named 'user'
> 2024-02-21T12:15:44.974672+00:00 WeeWX weectl[2869]: INFO weectl-station: 
> Using Vantage version 3.6.2 (weewx.drivers.vantage)
> 2024-02-21T12:15:45.030191+00:00 WeeWX systemd[1]: Reloading.
> 2024-02-21T12:15:45.848292+00:00 WeeWX systemd[1]: Reloading.
> 2024-02-21T12:15:46.281844+00:00 WeeWX systemd[1]: Started weewx.service - 
> WeeWX.
> 2024-02-21T12:15:46.362945+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Initializing weewxd version 5.0.2
> 2024-02-21T12:15:46.363060+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
> 2024-02-21T12:15:46.371965+00:00 WeeWX weewxd[3153]: INFO __main__: Using 
> Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]
> 2024-02-21T12:15:46.372032+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Located at /usr/bin/python3
> 2024-02-21T12:15:46.374175+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Platform Linux-6.1.0-rpi8-rpi-2712-aarch64-with-glibc2.36
> 2024-02-21T12:15:46.374268+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Locale: 'en_GB.UTF-8'
> 2024-02-21T12:15:46.374299+00:00 WeeWX weewxd[3153]: INFO __main__: Entry 
> path: /usr/share/weewx/weewxd.py
> 2024-02-21T12:15:46.374324+00:00 WeeWX weewxd[3153]: INFO __main__: 
> WEEWX_ROOT: /etc/weewx
> 2024-02-21T12:15:46.374352+00:00 WeeWX weewxd[3153]: INFO __main__: 
> Configuration file: /etc/weewx/weewx.conf
> 2024-02-21T12:15:46.374376+00:00 WeeWX weewxd[3153]: INFO __main__: User 
> module: /etc/weewx/bin/user
> 2024-02-21T12:15:46.374401+00:00 WeeWX weewxd[3153]: INFO __main__: Debug: 
> 0
> 2024-02-21T12:15:46.374584+00:00 WeeWX weewxd[3153]: INFO weewx.engine: 
> Loading station type Vantage (weewx.drivers.vantage)
> 2024-02-21T12:15:46.379577+00:00 WeeWX weewxd[3153]: ERROR weewx.engine: 
> Import of driver failed: [Errno 2] could not open port /dev/ttyUSB0: [Errno 
> 2] No such file or directory: '/dev/ttyUSB0' ( 'serial.serialutil.SerialException'>)
> 2024-02-21T12:15:46.382885+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   Traceback (most recent call last):
> 2024-02-21T12:15:46.384033+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine: File 
> "/usr/lib/python3/dist-packages/serial/serialposix.py", line 322, in open
> 2024-02-21T12:15:46.384085+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   self.fd = os.open(self.portstr, os.O_RDWR | 
> os.O_NOCTTY | os.O_NONBLOCK)
> 2024-02-21T12:15:46.384112+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:    
>  ^^
> 2024-02-21T12:15:46.384136+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   FileNotFoundError: [Errno 2] No such file or 
> directory: '/dev/ttyUSB0'
> 2024-02-21T12:15:46.384173+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   
> 2024-02-21T12:15:46.384196+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   During handling of the above exception, another 
> exception occurred:
> 2024-02-21T12:15:46.384219+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   
> 2024-02-21T12:15:46.384240+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   Traceback (most recent call last):
> 2024-02-21T12:15:46.384261+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine: File "/usr/share/weewx/weewx/engine.py", line 
> 115, in setupStation
> 2024-02-21T12:15:46.384285+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:   self.console = loader_function(config_dict, 
> self)
> 2024-02-21T12:15:46.384311+00:00 WeeWX weewxd[3153]: CRITICAL 
> weewx.engine:  
> ^^
> 2024-02-21T12:15:46.384339+00:00 

[weewx-user] Re: Install of WeeWX 5.0.2 on RPI 5 Failed

2024-02-21 Thread Neil B
I've just had a similar issue with the VANTAGE on Ethernet. All was fine 
with me on a Raspberry Pi 4, but I updated to a full Debian Bookwork mini 
PC over the weekend and now Weewx won't start. In a previous post Tom and 
others helped by putting in a file to allow the network to start before 
Weewx kicked in. However, on a fresh install on vanilla Debian, the 
directories/files don't exist as they did on the PI. This is my error log:

Feb 21 12:40:25 SCADA systemd[1]: Started weewx.service - WeeWX.
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Initializing weewxd 
version 5.0.2
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Command line: 
/usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Using Python 3.11.2 
(main, Mar 13 2023, 12:18:29) [GCC 12.2.0]
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Located at 
/usr/bin/python3
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Platform 
Linux-6.1.0-18-amd64-x86_64-with-glibc2.36
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Locale: 'en_GB.UTF-8'
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Entry path: 
/usr/share/weewx/weewxd.py
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: WEEWX_ROOT: /etc/weewx
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Configuration file: 
/etc/weewx/weewx.conf
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: User module: 
/etc/weewx/bin/user
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Debug: 1
Feb 21 12:40:26 SCADA weewxd[520]: DEBUG __main__: Initializing engine
Feb 21 12:40:26 SCADA weewxd[520]: INFO weewx.engine: Loading station type 
Vantage (weewx.drivers.vantage)
Feb 21 12:40:26 SCADA weewxd[520]: DEBUG weewx.drivers.vantage: Driver 
version is 3.6.2
Feb 21 12:40:26 SCADA weewxd[520]: DEBUG weewx.drivers.vantage: Option 
loop_request=1
Feb 21 12:40:26 SCADA weewxd[520]: ERROR weewx.drivers.vantage: Socket 
error while opening port 2 to ethernet host >
Feb 21 12:40:26 SCADA weewxd[520]: ERROR weewx.engine: Import of driver 
failed: [Errno 101] Network is unreachable (
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 Traceback (most recent call last):
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 self.socket.connect((self.host, self.port))
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 OSError: [Errno 101] Network is unreachable
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: 
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:   During 
handling of the above exception, another exc>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: 
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 Traceback (most recent call last):
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/engine.py", line 115>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 self.console = loader_function(config_dict, sel>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 return VantageService(engine, config_dict)
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
^^^
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 Vantage.__init__(self, **config_dict[DRIVER_NAM>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 self.port.openPort()
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 raise weewx.WeeWxIOError(ex)
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 weewx.WeeWxIOError: [Errno 101] Network is unreacha>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL __main__: Unable to load 
driver: [Errno 101] Network is unreachable
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL __main__:   Exiting...
Feb 21 12:40:26 SCADA systemd[1]: weewx.service: Main process exited, 
code=exited, status=4/NOPERMISSION
Feb 21 12:40:26 SCADA systemd[1]: weewx.service: Failed with result 
'exit-code'.

On Wednesday 21 February 2024 at 12:38:36 UTC Dave McCreath wrote:

> Recently acquired an RPi 5 and decided this morning to migrate WeeWX over 
> to it from an up to date RPi 4.
>
> Three attempts, all failed