I feel your pain. Debugging a failed systemd start can be difficult. Things to try:
1. Make sure you are using the service file that you think you are using. V5 installs in /lib/systemd/system/weewx.service. You may have another one in /etc/systemd/system/weewx.service. 2. Along the same lines, what does "systemctl status weewx" show? It should show you using the service file /lib/systemd/system/weewx.service. 3. Make sure your service file is from V5, and not from your old installation. It will be in /lib/systemd/system/weewx.service. It should look something like this: [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 4. Make sure your unit file is valid: sudo systemd-analyze verify weewx.service 5. Double check that there isn't anything useful in the system log: sudo journalctl -u weewx If none of that works, come back here with the results of the above. On Sun, Dec 29, 2024 at 10:33 AM Tony Perkins <tonyper...@gmail.com> wrote: > Hello all. My existing longtime weewx installation on Ubuntu was > upgraded to version 5.0.1 after an OS upgrade. I've gotten parts of it > working, but the service doesn't appear to start using the new systemctl > method. > > I am using a serial device from a Vantage 2 Pro console. I have added > weewx to the dialout group for the /dev/ttyS0 device. I can successfully > start weewxd under the weewx user using this command: sudo runuser -u > weewx weewxd > > However using 'sudo systemctl start weewx' with start, status, or restart > results in an error (stop produces no output). Only the 3 lines below are > logged to syslog: > Started weewx.service - weewx weather system. > weewx.service: Main process exited, code=exited, status=1/FAILURE > weewx.service: Failed with result 'exit-code'. > > I have 'debug = 1' in my /etc/weewx/weewx.conf file. > Serial device: crw-rw---- 1 root dialout 4, 64 Dec 29 12:06 /dev/ttyS0 > dialout group members: > getent group dialout > dialout:x:20:weewx > > I'm not sure what the next step is here. There's a disconnect somewhere > between the service setup and running it directly, and I'd appreciate any > help. Thank you! > > -- > 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 visit > https://groups.google.com/d/msgid/weewx-user/8d03547d-8674-4ffa-b955-57592caf60dfn%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/8d03547d-8674-4ffa-b955-57592caf60dfn%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 visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEDtFjZRoEr7dDYMqXkw2BAGvOT8os58fLz6Re0g2jA3Ag%40mail.gmail.com.