Matthew,

Thank you, this is pointing me in the right direction. I left out a key 
piece of information, which is that I had a weewx-multi configuration with 
two config files, two databases, etc. It appears that my systemd unit files 
and the /etc/default/weewx and /etc/default/weewx-multi files were not 
touched during the upgrade. I replaced these files with the ones found in 
the v5.0.0 source tarball (and modified with my user/group and config file 
names, etc.).

I'm now able to successfully run weectl and weewx from the command line! 
However I can't get the daemons to start using systemd. It appears the 
variables WEEWX_PYTHON, WEEWX, etc. used in the systemd unit file are not 
defined. Can you help me understand where/when these are defined and where 
I should be looking to set them properly?

Thanks for your help.

Also, this has given me a chance to poke around the codebase and look 
through the documentation. This is a really well documented piece of 
software.

Patrick

On Monday, January 15, 2024 at 4:33:57 PM UTC-5 matthew wall wrote:

> 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/c48d33b1-ccee-4eb9-a3c0-9ff39ad16b31n%40googlegroups.com.

Reply via email to