New 5.0.2 Installation - SystemCtl can't start it, invalid argument

130 views
Skip to first unread message

crecre9

unread,
Apr 2, 2024, 6:50:36 PM4/2/24
to weewx-user
I have a fresh 5.0.2 install using apt-get. The program won't run as a service:

● weewx.service - WeeWX
   Loaded: loaded (/etc/systemd/system/weewx.service; enabled; vendor preset: en
   Active: failed (Result: exit-code) since Tue 2024-04-02 13:26:02 -05; 1min 2s
     Docs: https://weewx.com/docs
  Process: 2178 ExecStart=/etc/weewx/weewx.conf (code=exited, status=203/EXEC)
 Main PID: 2178 (code=exited, status=203/EXEC)

Apr 02 13:26:02 rpi systemd[1]: Started WeeWX.
Apr 02 13:26:02 rpi systemd[1]: weewx.service: Main process exited, code=exited,
Apr 02 13:26:02 rpi systemd[1]: weewx.service: Unit entered failed state.
Apr 02 13:26:02 rpi systemd[1]: weewx.service: Failed with result 'exit-code'.

And when I look at status:

Apr 02 13:28:28 rpi systemd[1]: [/usr/lib/systemd/system/weewx.service:12] Executable path is not absolute, ignoring: weewxd /etc/weewx/weewx.conf
Apr 02 13:28:28 rpi systemd[1]: weewx.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.


Any ideas? Its like the installation files improperly set up the daemon service.


-Joseph

vince

unread,
Apr 2, 2024, 7:18:26 PM4/2/24
to weewx-user
Are you running an unusual os on the pi ?
 Did you do something to edit the weewx.service file ?

 A clean pi running raspios installs+works just fine here with the apt-get dpkg.
The vanilla service file looks like:

pi@raspberrypi:~ $ cat /usr/lib/systemd/system/weewx.service
# systemd service configuration file for WeeWX

[Unit]
Description=WeeWX
Documentation=https://weewx.com/docs
Requires=time-sync.target
After=time-sync.target
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=weewxd /etc/weewx/weewx.conf
StandardOutput=null
StandardError=journal+console
RuntimeDirectory=weewx
RuntimeDirectoryMode=775
User=weewx
Group=weewx

[Install]
WantedBy=multi-user.target


crecre9

unread,
Apr 2, 2024, 8:45:16 PM4/2/24
to weewx-user
No, just raspbian. A more recent release.

vince

unread,
Apr 2, 2024, 8:52:31 PM4/2/24
to weewx-user
Me too but no issues.  All I can suggest is editing the service file as it seems to be asking you to do.  Can't explain why.

crecre9

unread,
Apr 2, 2024, 8:53:58 PM4/2/24
to weewx-user
Thank you for your suggestion. I have attempted to do so, but I can't understand what is wrong.

crecre9

unread,
Apr 2, 2024, 9:02:07 PM4/2/24
to weewx-user
That's what my service file looked like. i was getting the error saying the path wasn't absolute, so i removed the "weewxd" portion from the ExecStart line, but as i mentioned, i don't have any idea how to fix that file. I have no idea why it wouldn't work out of the box either. The only thing i can think of is the removal of older versions of weewx were incomplete somehow and is somehow interfering.

On Tuesday, April 2, 2024 at 2:18:26 PM UTC-5 vince wrote:

Tom Keffer

unread,
Apr 2, 2024, 10:08:53 PM4/2/24
to weewx...@googlegroups.com
Discussed this with Matthew. Could you post the contents of a few things for us? 

1. Contents of /usr/lib/systemd/system/weewx.service
2. Contents of /etc/default/weewx.  
3. Does /etc/systemd/system/weewx.service exist? If so, what does it contain?
4. Contents of /usr/bin/weewxd
5. Contents of /etc/os-release

Please note any changes you have made since the install.


--
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/9965cf0f-391b-4d22-ab92-5f16edc03369n%40googlegroups.com.

vince

unread,
Apr 2, 2024, 10:14:48 PM4/2/24
to weewx-user
Try running this to see what's where....you might have old versions sitting around...

This is from a clean dpkg deb12 installation with no previous versions there....

$ sudo find / -name weewx.service  -exec ls -lgd {} \; 2>/dev/null | sort +7
lrwxrwxrwx 1 root   33 Apr  2 12:04 /etc/systemd/system/multi-user.target.wants/weewx.service -> /lib/systemd/system/weewx.service
-rw-rw-r-- 1 weewx 424 Feb  9 23:03 /etc/weewx/systemd/weewx.service
drwxr-xr-x 2 root    0 Apr  2 15:07 /sys/fs/cgroup/system.slice/weewx.service
-rw-r--r-- 1 root  424 Apr  2 12:04 /usr/lib/systemd/system/weewx.service
-rw-r--r-- 1 root  417 Feb  9 23:03 /usr/share/weewx/weewx_data/util/systemd/weewx.service

(I added a few spaces to the output above for readability)
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages