Please press ENTER when your Spark is connected over USB
The following shell commands will be used:
docker-compose down
docker pull brewblox/firmware-flasher:rpi-develop
docker run -it --rm --privileged brewblox/firmware-flasher:rpi-develop trigger-dfu
sleep 2
docker run -it --rm --privileged brewblox/firmware-flasher:rpi-develop flash
sleep 5
docker run -it --rm --privileged brewblox/firmware-flasher:rpi-develop flash-bootloader
Press ENTER to continue, Ctrl+C to cancel
Running command:
docker-compose down
ERROR: Couldn’t connect to Docker daemon at http+docker://localhost - is it running?
If it’s at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
Error: Command ‘docker-compose down’ returned non-zero exit status 1.
pi@Brewpi:~/brewblox $
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.1.113 netmask 255.255.255.0 broadcast 10.0.1.255
I can still access the webpage for the brewpi page the IP on the spark shows 10.0.1.106
installation went fine and I also update PIP to the latest cause it was giving me a note there was a newer version.
Thoughts, let me know how I can help troubleshoot this, I’m sure it’s simple I just don’t know. TIA.
so i re-ran it again (honestly 3rd time I did it and it said Docker was already installed and skipped it, but this time I said NO to using sudo for the docker commands and that part worked… but as it was going through the process I get this error part:
Creating network “brewblox_default” with the default driver
Creating brewblox_traefik_1 … error
Creating brewblox_datastore_1 …
ERROR: for brewblox_traefik_1 Cannot start service traefik: driver failed programming external connectivity on endpoint brewblox_traefik_1 (bc317d70d482e661bc1389f83145b0a89cad43b895c3159f1aa2b26ed9de8679): Bind for 0.0.0.0:80 failed: portCreating brewblox_datastore_1 … done
ERROR: for traefik Cannot start service traefik: driver failed programming external connectivity on endpoint brewblox_traefik_1 (bc317d70d482e661bc1389f83145b0a89cad43b895c3159f1aa2b26ed9de8679): Bind for 0.0.0.0:80 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
Error: Command ‘docker-compose up -d datastore traefik’ returned non-zero exit status 1.
Here is status from the Menu option:
Name Command State Ports
brewblox_datastore_1 tini – /docker-entrypoint … Up 4369/tcp, 5984/tcp, 9100/tcp
brewblox_eventbus_1 docker-entrypoint.sh rabbi … Up 25672/tcp, 4369/tcp, 5671/tcp, 5672/tcp
brewblox_history_1 python3 -m brewblox_history Up 5000/tcp
brewblox_influx_1 /entrypoint.sh influxd Up 8086/tcp
brewblox_mdns_1 python3 -m brewblox_mdns Up
brewblox_spark_1 python3 -m brewblox_devcon … Up 5000/tcp
brewblox_traefik_1 /traefik -c /config/traefi … Exit 128
brewblox_ui_1 nginx -g daemon off; Up 80/tcp
This is the error I got when doing option 6 for connect to wifi
ERROR: for brewblox_ui_1 Driver overlay2 failed to remove root filesystem 18fb754f515b0742d2f0c4ff87f11f7551b1c3061799197b4c0942ae44133c72: remove /var/lib/docker/overlay2/b11a5653bfea5741de50d76f0bec48ab542617ec35abcfb2696871cccdd22c59-init/merged/run: directory not empty
Removing network brewblox_default
Here is a warning from the process as well:
WARNING: Network brewblox_default not found.
yes its fairly fresh - its been sitting on the SD card for months after I upgraded the FW to 0.5.10 and havent done anything with it since. - currently that command doesnt work so im troubleshooting something similar for it?
it doesn’t show anything for that port being used:
Creating brewblox_traefik_1 … error
Creating brewblox_datastore_1 … done
aefik_1 (07f723524859f818be21fa70a9f838cdb3b87cb56f06e6500470519628cffa94): Bind for 0.0.0.0:80 failed: port is already allocated
ERROR: for traefik Cannot start service traefik: driver failed programming external connectivity on endpoint brewblox_traefik_1 (07f723524859f818be21fa70a9f838cdb3b87cb56f06e6500470519628cffa94): Bind for 0.0.0.0:80 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
Error: Command ‘docker-compose up -d datastore traefik’ returned non-zero exit status 1.
pi@Brewpi:~/brewblox $ lsof -i :80
pi@Brewpi:~/brewblox $
I don’t know why docker isn’t working as expected, but I think the quickest way to get up and running is to flash raspbian to the SD card and start fresh. I know that some time ago there was a raspbian version on which docker was buggy.
Cause last time I did this I had to install Kivy, a virtual keyboard, and modify a file for my specific touch screen to work. But as you elude to this being the best option then so be it, Just a bummer, and time…
Ah I didn’t remember your special touch screen.
Then first try running a ‘sudo apt update && sudo apt dist-upgrade’ and try removing and reinstalling docker.
ok i ran your update and removed docker, now running your install commands for brewblox and it asked if I wanted to install docker I said Yes… so its trying now- Ill keep you posted - thanks so much for your help!
looks like same error:
Creating network “brewblox_default” with the default driver
Creating brewblox_traefik_1 … error
Creating brewblox_datastore_1 …
ERROR: for brewblox_traefik_1 Cannot start service traefik: driver failed programming external connectivity on endpoint brewblox_traefik_1 (7e181fbb0a21fdeec64737b2b9474730e7cc605586068e97d1249eeb374b51b2): Bind for 0.0.0.0:80 failed: port is alreadCreating brewblox_datastore_1 … done
ERROR: for traefik Cannot start service traefik: driver failed programming external connectivity on endpoint brewblox_traefik_1 (7e181fbb0a21fdeec64737b2b9474730e7cc605586068e97d1249eeb374b51b2): Bind for 0.0.0.0:80 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.
Error: Command ‘docker-compose up -d datastore traefik’ returned non-zero exit status 1.
pi@Brewpi:~/brewblox $ sudo lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
docker-pr 1209 root 4u IPv6 13237 0t0 TCP *:http (LISTEN)
ok So basically I had to do the following in combination:
dpkg -l | grep docker
sudo apt remove docker-ce -y
sudo apt remove docker-ce-cli -y
sudo apt remove docker-engine -y
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
Then - “sudo reboot” then i re-ran your script and it seemed to have worked, there were a few errors, but I was still able to flash the firmware and register it with the wifi.
I put in the IP address and I see this:
Your BrewBlox Spark is online but it does not run it’s own web server. Please install a BrewBlox server to connect to it using the BrewBlox protocol.
Don’t use the BrewPi Wiki to find information about how to deploy BrewBlox.
BrewBlox will replace everything that was used in BrewPi.
We removed portainer from the default install. If you decide you want to have it, please use a port other than 9000.
That is because you are entering the IP address of the BrewPi Spark instead of the IP address of the raspberry pi. This is just the Spark telling you that, but clearly we need to rephrase it.
But There isn’t the web dashboard for the brewblox, its not the IP of the spark which is .106
I’m sure it is something very simple, and I do apologize.
I feel like I’m really close so I can start plugging things in to work on labeling the sensors and stuff, my control panel is almost done - I think friday, then Ill build a visio diagram of the wiring for display as well.