Brewblox Update error (20230212)

Hi
This weekend i wanted to update my brewblox software since a long time. I have made a backup, created the snapshot and launched the update command.

I receive the following error:

"
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb56b7490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’)‘: /simple/brewblox-ctl/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb56b75f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’)‘: /simple/brewblox-ctl/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb56b76b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’)‘: /simple/brewblox-ctl/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb56b7770>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’)‘: /simple/brewblox-ctl/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb56b7830>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’)‘: /simple/brewblox-ctl/
Could not install packages due to an EnvironmentError:
HTTPSConnectionPool(host=‘pypi.org’, port=443):
Max retries exceeded with url: /simple/brewblox-ctl/ (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb56b78f0>:
Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))
"

How to solve this problem?

Thks
Thiery

It looks like it’s trying to download brewblox-ctl from pip. That would make the install a few years old.

Could you please run brewblox-ctl log to confirm?

If the install is very old, it’s often quicker and cleaner to export the backups, and flash the card with a new version of Raspberry Pi OS, before loading the backups into a fresh install.

I think that last time i run the update was in 2021 that is not that far ago.

While running the log command i received also an error as last line.


nc: getaddrinfo for host “termbin.com” port 9999: Temporary failure in name resolution
Command ‘cat brewblox.log | nc termbin.com 9999’ returned non-zero exit status 1.

brewblox.log (477.2 KB)

That’s definitely not the brewblox-ctl from pip, but there are some oddities around. Traefik reports multiple containers with the same name, and there’s the termbin name resolution error.

To double check:

pip3 uninstall brewblox-ctl

Either it removes something, or it tells you nothing was there. Both results are fine.

To stop and remove all running containers:

docker kill $(docker ps -aq)

To update system packages on the Pi itself:

sudo apt update
sudo apt upgrade -y

Reboot to apply any kernel updates (likely, if it wasn’t updated for a while)

sudo reboot

Then when it’s back up again, retry the brewblox-ctl update

Hereinafter the result after i executed the different commands. I don’t think that everything was succesfull. at the end i couldn’t connect anymore to the webpage although i could connect via filezilla to the same ip address.

Bob_Steers Brewblox Setup Wizard
February 12

That’s definitely not the brewblox-ctl from pip, but there are some oddities around. Traefik reports multiple containers with the same name, and there’s the termbin name resolution error.

To double check:

pip3 uninstall brewblox-ctl

Either it removes something, or it tells you nothing was there. Both results are fine.

[Thiery : ]

To stop and remove all running containers:

docker kill $(docker ps -aq)

To update system packages on the Pi itself:

[Thiery : ]

image

sudo apt update



[Thiery : ]

![image|690x317](upload://yH2EhosSW55TBt8HeqQl3mnYjMJ.jpeg)

sudo apt upgrade -y



Reboot to apply any kernel updates (likely, if it wasn’t updated for a while)

***[Thiery : ]***

![image|690x213](upload://fAWW4sCGyOte3aD3nJuTvlyRWuJ.png)


sudo reboot


Then when it’s back up again, retry the `brewblox-ctl update` ``

***[Thiery : ]***

![image|690x372](upload://rTY0m8fDEHSPqwHGdiczQjlEOcr.png)


Afterwards I couldn’t connect anymore to the web inetrface alrthough I could use th ipaddress to connect via filezilla.

![image|440x500](upload://sFYbd4EK1HTWBt45DQggAKhhoYC.png)

Additioanl information as the pictures are not well inserted…

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell Install PowerShell on Windows, Linux, and macOS - PowerShell | Microsoft Learn

PS C:\Users\thiery.crispeels.ELIN-KOR-NB32> ssh pi@192.168.1.107
pi@192.168.1.107’s password:
Linux thebrewery 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Feb 12 15:35:53 2023 from 192.168.1.100
pi@thebrewery:~ $ pip3 uninstall brewblox-ctl
Uninstalling brewblox-ctl-0.27.0:
Would remove:
/home/pi/.local/bin/brewblox-ctl
/home/pi/.local/lib/python3.7/site-packages/brewblox_ctl-0.27.0.dist-info/*
/home/pi/.local/lib/python3.7/site-packages/brewblox_ctl/*
Proceed (y/n)? y
Successfully uninstalled brewblox-ctl-0.27.0
pi@thebrewery:~ $ docker kill $(docker ps -ag)
unknown shorthand flag: ‘g’ in -g
See ‘docker ps --help’.
“docker kill” requires at least 1 argument.
See ‘docker kill --help’.

Usage: docker kill [OPTIONS] CONTAINER [CONTAINER…]

Kill one or more running containers
pi@thebrewery:~ $ docker kill $(docker ps -aq)
c87ae1161d02
1cea9432e0db
b944f43b71c8
288032b5cd40
40eaba75161b
3b60064ff6e6
7dd4fb72d49d
c1ce6f6fd647
88c4df6fd421
4826779b51d0
pi@thebrewery:~ $ sudo apt update
Err:1 Index of /raspbian buster InRelease
Temporary failure resolving ‘raspbian.raspberrypi.org
Err:2 Index of linux/raspbian/ buster InRelease
Temporary failure resolving ‘download.docker.com
Err:3 Index of /debian buster InRelease
Temporary failure resolving ‘archive.raspberrypi.org
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelease Temporary failure resolving ‘raspbian.raspberrypi.org
W: Failed to fetch https://download.docker.com/linux/raspbian/dists/buster/InRelease Temporary failure resolving ‘download.docker.com
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/buster/InRelease Temporary failure resolving ‘archive.raspberrypi.org
W: Some index files failed to download. They have been ignored, or old ones used instead.
pi@thebrewery:~ $ sudo apt upgrade -y
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following package was automatically installed and is no longer required:
python-colorzero
Use ‘sudo apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@thebrewery:~ $ sudo reboot
Connection to 192.168.1.107 closed by remote host.
Connection to 192.168.1.107 closed.
PS C:\Users\thiery.crispeels.ELIN-KOR-NB32> ssh pi@192.168.1.107
pi@192.168.1.107’s password:
Linux thebrewery 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Feb 13 19:54:24 2023 from 192.168.1.100
pi@thebrewery:~ $ cd ./brewblox
pi@thebrewery:~/brewblox $ brewblox-ctl update
-bash: brewblox-ctl: command not found

It looks like it correctly removed the old version of brewblox-ctl, and stopped running containers. That’s good.

The “temporary failure resolving {url}” is often caused by a router misconfiguration. Some googling suggests that if you have a pihole, it may be part of the problem.

In any case, a solution is to explicitly set the the DNS server in your Pi configuration:

Open the file with:

sudo nano /etc/resolv.conf

Add the following lines:

nameserver 8.8.8.8
nameserver 8.8.4.4

Press Ctrl-X to save and exit.

Open the second file:

sudo nano /etc/dnsmasq.conf

Here, add the lines:

server=8.8.8.8
server=8.8.4.4

Again, press Ctrl-X to exit.

Restart the Pi, and re-run sudo apt update. If it worked, it should no longer display the “Temporary failure resolving {url}” errors. If it works, continue with the commands I posted earlier.

For the forum, it’s often convenient to post terminal output as code block.
This is formatted by enclosing the block with triple backticks

Example:
```
PS C:\Users\thiery.crispeels.ELIN-KOR-NB32> ssh pi@192.168.1.107
pi@192.168.1.107’s password:
Linux thebrewery 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
```

Result:

PS C:\Users\thiery.crispeels.ELIN-KOR-NB32> ssh pi@192.168.1.107
pi@192.168.1.107’s password:
Linux thebrewery 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

I have executed all the commands and a lot seems to work fine. I have put a dump in tatachment of everything that was produced as feedback during the update.

Unfortunately in the end the system don’t recognises anymore the brewblox-ctl update command.
(cfr at the end of the dump)

powershell dump.txt (117.9 KB)

PS Also after updating the nameservers in both files i can still not run de UI

The nameserver update fixed the immediate problem.

To restore brewblox-ctl, run

cd
wget -qO - https://www.brewblox.com/install

It will recognize the brewblox directory. When prompted, choose to keep existing directories.
Afterwards, brewblox-ctl will again be available.

problem not yet resolved. Powershell of feedback in attachment.
the system recogises the directory but doesn’t recognises the brewblox-ctl app.

powershell_02 dump.txt (4.9 KB)

FYI - in the … file some nameservers were already installed
domain lan

search lan Ubify.be
nameserver 192.168.1.64
nameserver 195.130.130.2
nameserver 195.130.131.2

i added the nameserver as you indicated at the end …

It looks like the command I provided was incomplete. My apologies for this.
The full version is:

cd
wget -qO - https://www.brewblox.com/install | bash

It seems that everything is working fine. After running brewblox-ctl up i could connect again as well to the UI.

The UI tells me that i’m on a Build date 2023-01-26T16:03:58.411Z.

Thanks for all your help!

1 Like