On Monday, January 15, 2024 at 4:14:28 PM UTC-5 [email protected] wrote:
Hi all, I have a weewx installation on an Ubuntu 20.04.6 LTS box that was installed via apt using the weewx official repo. I upgraded from v4.x to 5.0.0 and am no longer able to get the weewx process to start. When manually attempting to start weewxd from the command line (as root), I receive the following: The weewx daemon is not installed at /usr/share/weewx/weewxd your init script is looking in the wrong place. there are two ways to fix this: 1) delete the init script. the upgrade should have installed a systemd unit file. the unit file *should* have precedence over the old init script, but for some reason that is not happening on your system. are you using the standard /etc/init.d/weewx script, or are you using some other script? 2) adjust the init script or (preferably) the file /etc/default/weewx so that it points to the correct entry point. there should be a file /usr/bin/weewxd and /usr/bin/weectl that simply exec 'python /usr/share/weewx/weewxd.py'. if you want to keep your old init script, change it so that it invokes /usr/bin/weewxd. (those scripts use values from /etc/default/weewx) I see in the release notes that weewx is now intended to run under the weewx user and group. I do not see this group in my /etc/group file and it looks like all the weewx files are still owned by root:root. an upgrade should run weewx as the user it ran before the upgrade. so in your case, unless you changed something, it should run as root. (the user identity is determined based on the ownership of /var/lib/weewx) Did the installer miss something here converting to the new user/group configuration or should I be looking somewhere else to get weewx (and weectl, etc.) to run properly? it would be nice to know what happened. could you post the output from dpkg/apt? that should tell us m -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3a82e030-c25e-464c-a32f-b9a2f87e03dcn%40googlegroups.com.
