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) On Tuesday, April 2, 2024 at 2:02:07 PM UTC-7 crecre9 wrote: > 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: > >> 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 >> >> On Tuesday, April 2, 2024 at 11:50:36 AM UTC-7 crecre9 wrote: >> >>> 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 >>> >> -- 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/f32b17bf-46e4-4f3b-bec6-e350c7249283n%40googlegroups.com.