I responded to this conversation a few days ago, but my message has disappeared. I wiped my sd card and spun a new OS. I'm happy to report Weewx 5 is working as expected on the new installation. I am sorry, i know it isn't helpful know that I cannot provide you that information. I was running a buster release on my Raspberry Pi2b. I had Weewx 4.8 previously and had tried installs using both the pip method and the package method. I got similar errors for the systemctl after both installations. My weewx.service file looked like the examples provided, so I don't know what was wrong. I assume it had something to do with my old installation, but I will never know.
On Tuesday, April 2, 2024 at 5:08:53 PM UTC-5 Tom Keffer wrote: > 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. > > > On Tue, Apr 2, 2024 at 2:02 PM crecre9 <jrmcc...@gmail.com> 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+...@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 >> >> <https://groups.google.com/d/msgid/weewx-user/9965cf0f-391b-4d22-ab92-5f16edc03369n%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/cdff1ddb-ed41-4115-8beb-b574acafa9bbn%40googlegroups.com.