>
> That's basically what i did.
>

You didn't have the --pidfile flag before, but now it seems that you've
added it. That's good, but you still have "Type=simple", while what you
want is "Type=forking". Really, you should just start with the
weewx.service file that came with your copy of WeeWX.

Speaking of which, I'm just now realizing that log_success was not honored
by v4.0.0. That came in with V4.5.0. So, you should upgrade. But I don't
think this is related to your problem below.


> When i add --daemon and restart i see this:
> Mar 02 08:53:52 pc2 systemd[1]: weewx.service: Current command vanished
> from the unit file, execution of the command list won't be resumed.
> followed by some weather data then this:
> Mar 02 08:54:10 pc2 python[16601]: weewx[16601] INFO __main__:
> Initializing weewx version 4.0.0
> Mar 02 08:54:10 pc2 python[16601]: weewx[16601] INFO __main__: Using
> Python 3.8.8 (default, Feb 19 2021, 16:53:21) [GCC]
> Mar 02 08:54:10 pc2 python[16601]: weewx[16601] INFO __main__: Platform
> Linux-5.8.11-x86_64-with-glibc2.2.5
> Mar 02 08:54:10 pc2 python[16601]: weewx[16601] INFO __main__: Locale is
> 'en_US.UTF-8'
> Mar 02 08:54:10 pc2 python[16601]: weewx[16601] INFO __main__: PID file is
> /var/run/weewx.pid
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] INFO __main__: Using
> configuration file /usr/local/bin/weewx/weewx.conf
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] INFO weewx.engine: Loading
> station type Vantage (weewx.drivers.vantage)
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] INFO __main__: Received
> signal TERM (15).
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] ERROR weewx.engine: Import
> of driver failed:  (<class '__main__.Terminate'>)
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****  Traceback (most recent call last):
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "/usr/local/bin/weewx/bin/weewx/engine.py", line 103, in
> setupStation
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****      self.console = loader_function(config_dict, self)
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "/usr/local/bin/weewx/bin/weewx/drivers/vantage.py", line 39,
> in loader
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****      return VantageService(engine, config_dict)
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "/usr/local/bin/weewx/bin/weewx/drivers/vantage.py", line
> 1897, in __init__
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****      Vantage.__init__(self, **config_dict[DRIVER_NAME])
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "/usr/local/bin/weewx/bin/weewx/drivers/vantage.py", line 511,
> in __init__
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****      self.port.openPort()
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "/usr/local/bin/weewx/bin/weewx/drivers/vantage.py", line 305,
> in openPort
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****      import serial
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "/usr/lib/python3.8/site-packages/serial/__init__.py", line
> 14, in <module>
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****      from serial.serialutil import *
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "<frozen importlib._bootstrap>", line 991, in _find_and_load
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "<frozen importlib._bootstrap>", line 975, in
> _find_and_load_unlocked
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "<frozen importlib._bootstrap>", line 657, in _load_unlocked
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "<frozen importlib._bootstrap>", line 562, in module_from_spec
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "<frozen importlib._bootstrap>", line 481, in
> _init_module_attrs
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****    File "/usr/local/bin/weewx/bin/weewxd", line 257, in sigTERMhandler
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****      raise Terminate
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL weewx.engine:
> ****  Terminate
> Mar 02 08:54:10 pc2 python[16604]: weewx[16604] CRITICAL __main__: Unable
> to load driver:


This may be a bad install of the python library "serial".

Try this:

*python3 -c "import serial" *


See if that crashes. Also, upgrade!

-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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEA%3D2%3D0bPEtjMcjwoLfi3oYerptaHquEjJViGTST8LPeew%40mail.gmail.com.

Reply via email to