Looks like a permissions issue accessing the port. See the wiki article How to fix device permissions <https://github.com/weewx/weewx/wiki/Understanding-permissions#how-to-fix-device-permissions> and see if that helps.
On Mon, Apr 29, 2024 at 9:48 AM Marco Citossi <mcito...@gmail.com> wrote: > 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+unsubscr...@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 > <https://groups.google.com/d/msgid/weewx-user/68ba097e-fc7d-4812-bd1c-64e0b2266f68n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEBaM_XDBVZCeKYitkUKbqjFe3az9_65o3cHU-D3CKy_1Q%40mail.gmail.com.