Hi! I've installed weewx in Oracle Linux 8.9 following the guide for RedHat.
The installation has completed without errors. It has been installed in default folders, in /var/www/html/weewx (weewx:weewx), /usr/share/weewx (root:root) and /etc/weewx (weewx:weewx) for bin and weewx.conf
Only weewx.conf is root:weewx.
Device driver is VantagePro2 , ethernet port.
Old installation (3.8.0a1) in old web server is working.
When I try to start weewx, it starts for a while then I get this error:
● weewx.service - WeeWX
Loaded: loaded (/usr/lib/systemd/system/weewx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2024-04-29 18:23:46 CEST; 14s ago
Docs: https://weewx.com/docs
Process: 11571 ExecStart=/usr/bin/weewxd /etc/weewx/weewx.conf (code=exited, status=4)
Main PID: 11571 (code=exited, status=4)
apr 29 18:23:46 web4.xxx weewxd[11571]: CRITICAL weewx.engine: **** Vantage.__init__(self, **config_d>
apr 29 18:23:46 web4.xxx weewxd[11571]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/driver>
apr 29 18:23:46 web4.xxx weewxd[11571]: CRITICAL weewx.engine: **** self.port.openPort()
apr 29 18:23:46 web4.xxx weewxd[11571]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/driver>
apr 29 18:23:46 web4.xxx weewxd[11571]: CRITICAL weewx.engine: **** raise weewx.WeeWxIOError(ex)
apr 29 18:23:46 web4.xxx weewxd[11571]: CRITICAL weewx.engine: **** weewx.WeeWxIOError: timed out
apr 29 18:23:46 web4.xxx weewxd[11571]: CRITICAL __main__: Unable to load driver: timed out
apr 29 18:23:46 web4.xxx weewxd[11571]: CRITICAL __main__: **** Exiting...
apr 29 18:23:46 web4.xxx systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION
apr 29 18:23:46 web4.xxx systemd[1]: weewx.service: Failed with result 'exit-code'.
If I do a restart for a while I get:
weewx.service - WeeWX
Loaded: loaded (/usr/lib/systemd/system/weewx.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2024-04-29 18:32:53 CEST; 3s ago
Docs: https://weewx.com/docs
Main PID: 11671 (python3)
Tasks: 1 (limit: 48736)
Memory: 11.3M
CGroup: /system.slice/weewx.service
└─11671 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
apr 29 18:32:53 web4.xxx weewxd[11671]: INFO __main__: Locale: 'en_US.UTF-8'
apr 29 18:32:53 web4.xxx weewxd[11671]: INFO __main__: Entry path: /usr/share/weewx/weewxd.py
apr 29 18:32:53 web4.xxx weewxd[11671]: INFO __main__: WEEWX_ROOT: /etc/weewx
apr 29 18:32:53 web4.xxx weewxd[11671]: INFO __main__: Configuration file: /etc/weewx/weewx.conf
apr 29 18:32:53 web4.xxx weewxd[11671]: INFO __main__: User module: /etc/weewx/bin/user
apr 29 18:32:53 web4.xxx weewxd[11671]: INFO __main__: Debug: 1
apr 29 18:32:53 web4.xxx weewxd[11671]: DEBUG __main__: Initializing engine
apr 29 18:32:53 web4.xxx weewxd[11671]: INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
apr 29 18:32:53 web4.xxx weewxd[11671]: DEBUG weewx.drivers.vantage: Driver version is 3.6.2
apr 29 18:32:53 web4.xxx weewxd[11671]: DEBUG weewx.drivers.vantage: Option loop_request=1
--
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/68ba097e-fc7d-4812-bd1c-64e0b2266f68n%40googlegroups.com.
Hi!
I've checked the article you suggested and looking the permissions in /etc/udev/rules.d/60-weewx.rules I see in the file:
# davis vantage via usb-serial
SUBSYSTEM=="tty",ATTRS{idVendor}=="10c4",ATTRS{idProduct}=="ea60",MODE="0664",GROUP="weewx",SYMLINK+="vantage"
SUBSYSTEM=="tty",ATTRS{idVendor}=="10c4",ATTR{idProduct}=="ea61",MODE="0664",GROUP="weewx",SYMLINK+="vantage"
It seems already ok.
If I try with ls -l /dev/ttyS0 I get:
crw-rw---- 1 root dialout 4, 64 28 apr 23.12 /dev/ttyS0
and it seems ok.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7fd824ba-0097-4ace-a8af-2e77a7c0e7f4n%40googlegroups.com.
weewx.service - WeeWX
Loaded: loaded (/usr/lib/systemd/system/weewx.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2024-04-30 12:00:53 CEST; 4s ago
Docs: https://weewx.com/docs
Main PID: 19495 (python3)
Tasks: 1 (limit: 48736)
Memory: 9.1M
CGroup: /system.slice/weewx.service
└─19495 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/13d39773-b506-4e85-9d97-537018ff82f4n%40googlegroups.com.
Yes it's ethernet.
Here it is the log:
apr 30 18:07:10 web4.xxx systemd[1]: Started WeeWX.
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Initializing weewxd version 5.0.2
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Using Python 3.6.8 (default, Jan 16 2024, 02:08:59)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-20.0.1)]
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Located at /usr/bin/python3
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Platform Linux-5.4.17-2136.330.7.1.el8uek.x86_64-x86_64-with-oracle-8.9
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Locale: 'en_US.UTF-8'
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Entry path: /usr/share/weewx/weewxd.py
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: WEEWX_ROOT: /etc/weewx
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Configuration file: /etc/weewx/weewx.conf
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: User module: /etc/weewx/bin/user
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO __main__: Debug: 1
apr 30 18:07:10 web4.xxx weewxd[22596]: DEBUG __main__: Initializing engine
apr 30 18:07:10 web4.xxx weewxd[22596]: INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage)
apr 30 18:07:10 web4.xxx weewxd[22596]: DEBUG weewx.drivers.vantage: Driver version is 3.6.2
apr 30 18:07:10 web4.xxx weewxd[22596]: DEBUG weewx.drivers.vantage: Option loop_request=1
apr 30 18:07:14 web4.xxx weewxd[22596]: ERROR weewx.drivers.vantage: Socket error while opening port 22222 to ethernet host 140.105.>
apr 30 18:07:14 web4.xxx weewxd[22596]: ERROR weewx.engine: Import of driver failed: timed out (<class 'weewx.WeeWxIOError'>)
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** Traceback (most recent call last):
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 35>
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** self.socket.connect((self.host, self.port))
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** socket.timeout: timed out
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: ****
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** During handling of the above exception, another exception o>
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: ****
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** Traceback (most recent call last):
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/engine.py", line 115, in set>
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** self.console = loader_function(config_dict, self)
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 32>
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** return VantageService(engine, config_dict)
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 20>
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** Vantage.__init__(self, **config_dict[DRIVER_NAME])
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 53>
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** self.port.openPort()
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 35>
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** raise weewx.WeeWxIOError(ex)
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL weewx.engine: **** weewx.WeeWxIOError: timed out
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL __main__: Unable to load driver: timed out
apr 30 18:07:14 web4.xxx weewxd[22596]: CRITICAL __main__: **** Exiting...
apr 30 18:07:14 web4.xxx systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION
apr 30 18:07:14 web4.xxx systemd[1]: weewx.service: Failed with result 'exit-code'.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c9a9bf78-6507-47a7-a2e7-20a35e18d3ffn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e4cdb671-ea72-49bb-ac93-105af06fdfdan%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6a544ae2-d649-4927-8631-73439e9256efn%40googlegroups.com.