update to 4.7 weewx-multi

214 views
Skip to first unread message

Joachim Puttkammer

unread,
Mar 3, 2022, 7:59:55 AM3/3/22
to weewx-user
How should I proceed with the update for weewx-multi (2 instances)?
 

Tom Keffer

unread,
Mar 3, 2022, 8:14:26 AM3/3/22
to weewx-user
Not sure what you're asking. If all instances are using the same code base, just update the code base. 

On Thu, Mar 3, 2022 at 4:59 AM Joachim Puttkammer <jputt...@gmail.com> wrote:
How should I proceed with the update for weewx-multi (2 instances)?
 

--
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/0c64229c-974c-4d8a-acb6-d53b27d2c352n%40googlegroups.com.

gjr80

unread,
Mar 3, 2022, 8:56:47 AM3/3/22
to weewx-user
I have a dual instance setup running and it's basically as Tom said, you just upgrade WeeWX as normal. A WeeWX upgrade only upgrades weewx.conf so once the upgrade is done I run the following command on each instance config file (neither of my config files is named weewx.conf - if you do use weewx.conf for one instance then of course it is upgraded as part of the WeeWX upgrade so no need to 'upgrade' it again) to upgrade the instance config files:

$ cd /home/weewx
$ ./bin/wee_config instance.conf --dist-config=weewx.conf.X.Y.Z --upgrade

I run a setup.py install so for a package install the paths will be different. sudo may also be required depending on your setup.

Gary

Joachim Puttkammer

unread,
Mar 5, 2022, 8:07:34 AM3/5/22
to weewx-user
Thanks, the update was successful.
After the normal WeeWX upgrade, there was an error message:

See "systemctl status weewx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript weewx, action "start" failed.
● weewx.service - LSB: weewx-multi
     Loaded: loaded (/etc/init.d/weewx; generated)
     Active: failed (Result: exit-code) since Sat 2022-03-05 13:44:34 CET; 21ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 72952 ExecStart=/etc/init.d/weewx start (code=exited, status=1/FAILURE)
      Tasks: 2 (limit: 8987)
        CPU: 1.649s
     CGroup: /system.slice/weewx.service
             ├─72966 python /usr/share/weewx/weewxd --daemon --log-label weewx-dav --pidfile=/var/run/weewx-dav.pid /etc/weewx/dav.conf
             └─72976 python /usr/share/weewx/weewxd --daemon --log-label weewx-eco --pidfile=/var/run/weewx-eco.pid /etc/weewx/eco.conf

After :
sudo wee_config --upgrade --config=/etc/weewx/dav.conf --dist-config=/etc/weewx/weewx.conf.dist
and
sudo wee_config --upgrade --config=/etc/weewx/eco.conf --dist-config=/etc/weewx/weewx.conf.dist

there was no error .

Joachim Puttkammer

unread,
Mar 26, 2022, 6:41:56 AM3/26/22
to weewx-user
How can I solve the 'upgrade' problem? ( Raspberry pi 4 with Debian Bullsey )
Terminal command :  sudo apt upgrade
....  0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert
1 not completely installed
....
dpkg: Fehler beim Bearbeiten des Paketes weewx (--configure):
 »installiertes weewx-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 1 zurück
Trigger für libc-bin (2.31-13+rpt2+rpi1+deb11u2) werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
 weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)

Joachim Puttkammer

unread,
Mar 27, 2022, 7:51:41 AM3/27/22
to weewx-user
I replaced the weewx (=weewx-multi) in the /etc/init.d folder with the normal weewx and then the upgrade finished without error, Then copied weewx-multi again as weewx in the /etc/init.d folder.
Next time I do the upgrade immediately
sudo wee_config --upgrade --config=/etc/weewx/instance.conf --dist-config=/etc/weewx/weewx.conf.dist
Reply all
Reply to author
Forward
0 new messages