BrewBlox Basic questions

Have you done brewblox-ctl install first?

I did the installation with the following input


And for some reason, I still got the error
image

BR Ken

If you run ls, it will show the directories. A brewblox one should be among them.

Hi Bob
It seems that only pi directory have been created since ls command just shows
image

image

BR Ken

Out of curiosity, try ls -a in the pi home directory. I wonder if it stripped the “/” from “./BrewBlox” (which would make it a hidden directory).

If this is the case, you should be able to unhide it with mv .BrewBlox BrewBlox.

I have tried to run the “brewblox-ctl install” command once more with the same result as shown below.
At the end of the execution, errors occur.
BR Ken

It seems like brewblox-ctl install exited with an error before it created the directory.
To fix this, you could try to reboot your raspberry, and then run the following commands:

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
brewblox-ctl install
brewblox-ctl setup

Linux is case sensitive…

1 Like

Hi Bob,
I have tried to run the commands. During execution of the last commend I got the following question. What should be replied to this question?
BR Ken
image

My bad on that one: you should navigate to your install dir before running brewblox-ctl setup.

Did your brewblox-ctl install complete without errors this time? Can you see your install directory if you run ls -a?

Running ls -a shows
image
and cd ./brewblox shows
image
Means that something goes wrong during installation?

BR Ken

Did you reboot your raspberry?
Did your install command finish successfully?
What was the output of the install command?

The installation is executed after cold boot and output is shown below
The following shell commands will be used:

     sudo apt update
     sudo apt upgrade -y
     sudo apt install -y libssl-dev libffi-dev
     curl -sSL https://get.docker.com | sh
     sudo usermod -aG docker $USER
     sudo /usr/bin/python3 -m pip install -U docker-compose
     mkdir -p ./brewblox
     touch ./brewblox/.env
     /usr/bin/python3 -m dotenv.cli --quote never -f ./brewblox/.env set BRE                                                       WBLOX_RELEASE edge
     /usr/bin/python3 -m dotenv.cli --quote never -f ./brewblox/.env set BRE                                                       WBLOX_CFG_VERSION 0.0.0
     sudo reboot

Press ENTER to continue, Ctrl+C to cancel

Running command:
sudo apt update

Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Hit:3 https://download.docker.com/linux/raspbian stretch InRelease
Err:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
The following signatures couldn’t be verified because the public key is not av ailable: NO_PUBKEY 9165938D90FDDD2E
Err:1 http://archive.raspberrypi.org/debian stretch InRelease
The following signatures couldn’t be verified because the public key is not av ailable: NO_PUBKEY 82B129927FA3303E
Fetched 40.3 kB in 2s (16.9 kB/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG erverified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG erified because the public key is not available: NO_PUBKEY 82B129927FA3303E
W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/stretch/InRelease The following signatures couldn’t be verified beca
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/stretch/InRelease The following signatures couldn’t be verified because
W: Some index files failed to download. They have been ignored, or old ones used instead.

Running command:
sudo apt upgrade -y

Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Running command:
sudo apt install -y libssl-dev libffi-dev

Reading package lists… Done
Building dependency tree
Reading state information… Done
libffi-dev is already the newest version (3.2.1-6).
libssl-dev is already the newest version (1.1.0j-1~deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Running command:
curl -sSL https://get.docker.com | sh

Executing docker install script, commit: 2f4ae48

  • sudo -E sh -c apt-get update -qq >/dev/null
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://raspbian.raspberrypi.org/raspbian stretch InRelease: The following signatures could n’t be verified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.raspberrypi.org/debian stretch InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E
    W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/stretch/InRelease The following signatures could n’t be verified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E
    W: Failed to fetch http://archive.raspberrypi.org/debian/dists/stretch/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E
    W: Some index files failed to download. They have been ignored, or old ones used instead.
  • sudo -E sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
  • sudo -E sh -c curl -fsSL “https://download.docker.com/linux/raspbian/gpg” | apt-key add -qq - >/dev/null
    Warning: apt-key output should not be parsed (stdout is not a terminal)
  • sudo -E sh -c echo “deb [arch=armhf] https://download.docker.com/linux/raspbian stretch stable” > /etc/apt/source s.list.d/docker.list
  • sudo -E sh -c apt-get update -qq >/dev/null
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://raspbian.raspberrypi.org/raspbian stretch InRelease: The following signatures could n’t be verified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.raspberrypi.org/debian stretch InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E
    W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/stretch/InRelease The following signatures could n’t be verified because the public key is not available: NO_PUBKEY 9165938D90FDDD2E
    W: Failed to fetch http://archive.raspberrypi.org/debian/dists/stretch/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E
    W: Some index files failed to download. They have been ignored, or old ones used instead.
  • [ -n ]
  • sudo -E sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
    E: Unable to locate package docker-ce

Error: Command ‘curl -sSL https://get.docker.com | sh’ returned non-zero exit status 100

Thank you. If your install command output ends with “error: XXXX”, you shouldn’t continue running commands: it means something went wrong that must be solved first.

It appears this specific issue is in the Raspberry Pi itself, not in BrewBlox.
A google search indicates a possible solution:

wget http://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add -
curl -sSL https://get.docker.com | sh

If this still ends in an error, you may have a corrupted SD card. In that case it’s best to restart the install guide from the beginning.

Hi Bob
I got the following reply when executing the commands
wget http://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add -
–2019-04-29 19:55:49-- http://archive.raspbian.org/raspbian.public.key
Resolving archive.raspbian.org (archive.raspbian.org)… 93.93.128.191, 2a00:1098:0:80:1000:75:0:2
Connecting to archive.raspbian.org (archive.raspbian.org)|93.93.128.191|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1776 (1.7K) [application/octet-stream]
Saving to: ‘STDOUT’

  •                             100%[============================================================>]   1.73K  --.-KB/s    in 0s
    

2019-04-29 19:55:49 (3.66 MB/s) - written to stdout [1776/1776]

OK
curl -sSL https://get.docker.com | sh

Executing docker install script, commit: 2f4ae48

  • sudo -E sh -c apt-get update -qq >/dev/null
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.raspberrypi.org/debian stretch InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E
    W: Failed to fetch http://archive.raspberrypi.org/debian/dists/stretch/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E
    W: Some index files failed to download. They have been ignored, or old ones used instead.
  • sudo -E sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
  • sudo -E sh -c curl -fsSL “https://download.docker.com/linux/raspbian/gpg” | apt-key add -qq - >/dev/null
    Warning: apt-key output should not be parsed (stdout is not a terminal)
  • sudo -E sh -c echo “deb [arch=armhf] https://download.docker.com/linux/raspbian stretch stable” > /etc/apt/sources.list.d/docker.list
  • sudo -E sh -c apt-get update -qq >/dev/null
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.raspberrypi.org/debian stretch InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E
    W: Failed to fetch http://archive.raspberrypi.org/debian/dists/stretch/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 82B129927FA3303E
    W: Some index files failed to download. They have been ignored, or old ones used instead.
  • [ -n ]
  • sudo -E sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
    E: Unable to locate package docker-ce

You could try:

gpg --keyserver keys.gnupg.net --recv-key 82B129927FA3303E
gpg -a --export 82B129927FA3303E | apt-key add -
curl -sSL https://get.docker.com | sh

If the output still ends with

Error: Command ‘curl -sSL https://get.docker.com | sh’ returned non-zero exit status 100

then the best choice is to restart the install guide. Make sure you safely eject the SD card after you flash it.

Hi Bob
I got the following response to the commands
pi@raspberrypi:~ $ gpg --keyserver keys.gnupg.net --recv-key 82B129927FA3303E
gpg: failed to start the dirmngr ‘/usr/bin/dirmngr’: No such file or directory
gpg: connecting dirmngr at ‘/run/user/1000/gnupg/S.dirmngr’ failed: No such file or directory
gpg: keyserver receive failed: No dirmngr
pi@raspberrypi:~ $ gpg -a --export 82B129927FA3303E | apt-key add -
gpg: WARNING: nothing exported
E: This command can only be used by root.
pi@raspberrypi:~ $ curl -sSL https://get.docker.com | sh

Executing docker install script, commit: 2f4ae48

  • sudo -E sh -c apt-get update -qq >/dev/null
    W: An error occurred during the signature verification. The repository is not updated and the previous indeified because the public key is not available: NO_PUBKEY 82B129927FA3303E
    W: Failed to fetch http://archive.raspberrypi.org/debian/dists/stretch/InRelease The following signatures
    W: Some index files failed to download. They have been ignored, or old ones used instead.
  • sudo -E sh -c apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
  • sudo -E sh -c curl -fsSL “https://download.docker.com/linux/raspbian/gpg” | apt-key add -qq - >/dev/null
    Warning: apt-key output should not be parsed (stdout is not a terminal)
  • sudo -E sh -c echo “deb [arch=armhf] https://download.docker.com/linux/raspbian stretch stable” > /etc/ap
  • sudo -E sh -c apt-get update -qq >/dev/null
    W: An error occurred during the signature verification. The repository is not updated and the previous indeified because the public key is not available: NO_PUBKEY 82B129927FA3303E
    W: Failed to fetch http://archive.raspberrypi.org/debian/dists/stretch/InRelease The following signatures
    W: Some index files failed to download. They have been ignored, or old ones used instead.
  • [ -n ]
  • sudo -E sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
    E: Unable to locate package docker-ce

Then your best option is to restart the brewblox install guide from step 1.

I will do a complete reinstall from step 1 as you recommend, thank you for your assistance.

I have an error coming up on the screen connected to the PI saying that (under voltage detected (0x00050005), Even I use the original power supply rated 5.00V@1.00A.

Do you think this could be an issue

BR Ken

A Raspberry Pi requires a +5.1V / 2.5A power supply.
It’s likely not the cause for this issue.