Upgrade - how to determine the original install method

79 views
Skip to first unread message

Wiggytoo

unread,
Oct 28, 2021, 10:33:07 AM10/28/21
to weewx-user
Hi - I am running weewx 3.9.1 and was planning to upgrade to 4.5.1.

I came across this in the documentation

"Warning!
You must use the same upgrade technique as your initial install! For example, if you used setup.py to install WeeWX, then you should use setup.py to upgrade. If you used a DEB or RPM package to install, then you should upgrade using the same package type."

I want to ensure I take this sound advice but I have no idea how I originally installed it, is there some way of telling this?

Many thanks,
Gavin

vince

unread,
Oct 28, 2021, 11:25:20 AM10/28/21
to weewx-user
Simplest way is to look for where your weewx.conf is located.   If it's in /home/weewx then you used setup.py

Gavin Anderson

unread,
Oct 28, 2021, 12:17:20 PM10/28/21
to weewx...@googlegroups.com
Many thanks, it's in etc/weewx.

Gavin

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/96zIaqphAaE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4f7dca7e-aa7e-41eb-8485-cf096808c195n%40googlegroups.com.

Andy

unread,
Oct 29, 2021, 9:02:24 AM10/29/21
to weewx-user
Also you can look at installed packages.

apt search weewx or apt list --installed | grep weewx
rpm -qa | grep weewx

vince

unread,
Oct 29, 2021, 12:00:59 PM10/29/21
to weewx-user
Yes, but we have seen instances where people have installed both ways and are only running one currently.

Matthew reminded me a while back that the only way to know which one is 'running' is to look for the pathname of the weewxd that is currently running.   I'd do it by looking with the 'ps' command for the weewxd processs.

# this one is setup.py
root@debian:~# ps axu|grep weewxd|grep -v grep
root     13327 45.7 55.3 201136 68276 ?        Sl   Jun27 81488:50 /usr/local/bin/python3 /home/weewx/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /home/weewx/weewx.conf

# this one is running the packaged weewx
[vince@pi4 ~]$ ps axu | grep weewxd|grep -v grep
root         581  0.8  0.5 189068 20712 ?        Sl   08:59   0:00 python3 /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf

Reply all
Reply to author
Forward
0 new messages