Systemctl error

177 views
Skip to first unread message

ALPHA SG

unread,
Sep 12, 2024, 5:24:44 PM9/12/24
to weewx-user
Good evening,
I'm a new user and I installed weewx version 5 on the rpi .
I have an error when I do systemctl status weewx (start or stop it's the same)
I will post the log i hope is help .
 I don't really know where the problem comes from.
thanks.
sudo systemctl status weewx.txt
journalctl -u weewx.txt
journalctl -xe.txt

Tom Keffer

unread,
Sep 12, 2024, 6:09:34 PM9/12/24
to weewx...@googlegroups.com
Take a look at line 68 in /etc/weewx/weewx.conf. Something is malformed.

--
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/944dfe79-cefd-431c-a9ef-bf451220a30an%40googlegroups.com.

ALPHA SG

unread,
Sep 13, 2024, 3:29:29 AM9/13/24
to weewx-user
I sent a response but it does not appear here, I made a mistake in sending the response to the author :)
but I looked at the file and deleted line 68
[SDR]
    driver = user.sdr
now the error has changed. here is the new error log
thank you.

systemctl status weewx

weewx.service - weewx weather system
     Loaded: loaded (/etc/systemd/system/weewx.service; enabled; vendor preset: enabled)
     Active: failed (Result: timeout) since Fri 2024-09-13 01:01:03 CEST; 12min ago
    Process: 853 ExecStart=/usr/bin/weewxd /etc/weewx/weewx.conf (code=killed, signal=TERM)
        CPU: 25.971s

Sep 13 01:01:03 raspberrypi weewxd[853]: DEBUG __main__:     ****    File "/usr/lib/python3.9/queue.py", line 180, in get
Sep 13 01:01:03 raspberrypi weewxd[853]: DEBUG __main__:     ****      self.not_empty.wait(remaining)
Sep 13 01:01:03 raspberrypi weewxd[853]: DEBUG __main__:     ****    File "/usr/lib/python3.9/threading.py", line 316, in wait
Sep 13 01:01:03 raspberrypi weewxd[853]: DEBUG __main__:     ****      gotit = waiter.acquire(True, timeout)
Sep 13 01:01:03 raspberrypi weewxd[853]: DEBUG __main__:     ****    File "/usr/share/weewx/weewxd.py", line 221, in sigTERMhandler
Sep 13 01:01:03 raspberrypi weewxd[853]: DEBUG __main__:     ****      raise Terminate
Sep 13 01:01:03 raspberrypi weewxd[853]: DEBUG __main__:     ****  Terminate
Sep 13 01:01:03 raspberrypi systemd[1]: weewx.service: Failed with result 'timeout'.
Sep 13 01:01:03 raspberrypi systemd[1]: Failed to start weewx weather system.
Sep 13 01:01:03 raspberrypi systemd[1]: weewx.service: Consumed 25.971s CPU time.
weewx.conf

Tom Keffer

unread,
Sep 13, 2024, 7:50:29 AM9/13/24
to weewx...@googlegroups.com
You have two "[SDR]" stanzas. Only one is allowed. Combine them into one. So, this

[SDR]
    # This section is for the software-defined radio driver.
   
    # The driver to use
    driver = user.sdr
    cmd = rtl_433 -M utc -F json -R 55

# collect data from Acurite-606TX

[SDR]
    driver = user.sdr

[[sensor_map]]
OutTemp = temperature.25.Acurite606TXPacketV2

becomes this

[SDR]
    # This section is for the software-defined radio driver.
   
    # The driver to use
    driver = user.sdr
    cmd = rtl_433 -M utc -F json -R 55

    [[sensor_map]]
        OutTemp = temperature.25.Acurite606TXPacketV2


ALPHA SG

unread,
Sep 13, 2024, 7:57:49 AM9/13/24
to weewx-user
yes that's what I did but the error changed to signal=term timeout.
look at the log in the previous message.
thx

Tom Keffer

unread,
Sep 13, 2024, 8:18:23 AM9/13/24
to weewx...@googlegroups.com
Impossible to draw any conclusions from such a short excerpt of the log. See the wiki article How to get a good, useful log.

ALPHA SG

unread,
Sep 13, 2024, 8:27:23 AM9/13/24
to weewx-user
Sorry :/ here is my syslog
do u have another one files  ?
syslog

ALPHA SG

unread,
Sep 13, 2024, 8:28:51 AM9/13/24
to weewx-user
oopps!!! 
do u want another files ?

Tom Keffer

unread,
Sep 13, 2024, 9:56:03 AM9/13/24
to weewx...@googlegroups.com
Three things come to mind:

1. Your power supply is inadequate. There are frequent "Undervoltage detected!" errors. Replace it with a higher capacity power supply. Or, use a powered USB hub.
2. The clock is way off. Make sure that you are running some kind of clock that can synchronize with a network clock. 
3. I suspect that your systemd service file is attempting forking, when it should use a "simple" start. Can we see the file /etc/systemd/system/weewx.service?

-tk

ALPHA SG

unread,
Sep 13, 2024, 10:16:14 AM9/13/24
to weewx-user
ok 
1) i have a 5v 2a power supply but I'm going to order an original..
2)what can I do for the clock?
3)here is the weewx.service file.

I am following installation tutorials but some are on the old version of weewx, I am trying to adapt it to the new one. 
I installed the Belchertown skin and the sdr driver that's all for now. 
I'm also looking to repair it on my own by searching on this forum and elsewhere but my knowledge is limited. 
thank you for your help.

weewx.service.txt

Tom Keffer

unread,
Sep 13, 2024, 10:25:52 AM9/13/24
to weewx...@googlegroups.com
As suspected, it does use "forking". Replace it with this one, then restart weewx. This version will also cause the clock to be synchronized.

-tk


weewx.service

ALPHA SG

unread,
Sep 13, 2024, 10:35:03 AM9/13/24
to weewx-user
:0 it works
It's weird I didn't modify this file, it's the original one. 
 thank you very much

● weewx.service - WeeWX

     Loaded: loaded (/etc/systemd/system/weewx.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2024-09-13 16:32:02 CEST; 8s ago
       Docs: https://weewx.com/docs
   Main PID: 3359 (python3)
      Tasks: 5 (limit: 779)
        CPU: 1.878s
     CGroup: /system.slice/weewx.service
             ├─3359 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
             └─3364 rtl_433 -M utc -F json -R 55

Sep 13 16:32:04 raspberrypi weewxd[3359]: DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Sep 13 16:32:04 raspberrypi weewxd[3359]: DEBUG weewx.engine: Loading service weewx.engine.StdReport
Sep 13 16:32:04 raspberrypi weewxd[3359]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Sep 13 16:32:04 raspberrypi weewxd[3359]: DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
Sep 13 16:32:04 raspberrypi weewxd[3359]: INFO __main__: Starting up weewx version 5.1.0
Sep 13 16:32:04 raspberrypi weewxd[3359]: DEBUG weewx.engine: Station does not support reading the time
Sep 13 16:32:04 raspberrypi weewxd[3359]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Sep 13 16:32:04 raspberrypi weewxd[3359]: INFO weewx.manager: Starting backfill of daily summaries
Sep 13 16:32:04 raspberrypi weewxd[3359]: INFO weewx.manager: Daily summaries up to date
Sep 13 16:32:04 raspberrypi weewxd[3359]: INFO weewx.engine: Starting main packet loop.

Reply all
Reply to author
Forward
0 new messages