My BrewPi Spark showed up and I finally got around to setting it up, I had been running a simulation on my RaspberryPi 4. The Spark is connected via usb to my rPi4 and rPi4 is using a power supply.
The issue I am having now is after removing the simulated Spark and all blocks and dashboards my web interface does not auto discover the physical Spark. Also I notice on my Spark screen 6 empty boxes a USB icon and 0.0.0.0 in upper left and 61% 70% in upper right corner. Also have a blue light in upper left corner of case front.
I have also plugged in 1 temp probe but do not see it anywhere either.
I have tried brewblox-ctl add-spark and I noticed the blue light slowly pulses but i get the message… ‘No devices discovered… no valid combination of device ID and device host.’
I’m sure I missed a step or should just start over, but any ideas as to what may be wrong would be helpful.
@Elco & @Bob_Steers - so after trying both suggested previous steps of:
try diff cables - at 3x the 2x prior always worked before no issue, but now all of a sudden there is.
pi@Brewpi:~/brewblox $ docker-compose ps
Name Command State Ports
brewblox_eventbus_1 /docker-entrypoint.sh /usr … Up 0.0.0.0:1883->1883/tcp
brewblox_history_1 python3 -m brewblox_history Up 5000/tcp
brewblox_redis_1 docker-entrypoint.sh --app … Up 6379/tcp
brewblox_spark-one_1 python3 -m brewblox_devcon … Up 5000/tcp
brewblox_traefik_1 /entrypoint.sh --api.dashb … Up 0.0.0.0:443->443/tcp, 0.0.0.0:80->80/tcp
brewblox_ui_1 /docker-entrypoint.sh ngin … Up 80/tcp
brewblox_victoria_1 /victoria-metrics-prod --r … Up 8428/tcp
pi@Brewpi:~/brewblox $ brewblox-ctl down
pi@Brewpi:~/brewblox $ brewblox-ctl makecert
unknown flag: --pull
See ‘docker run --help’.
Command ‘docker run --rm --privileged --pull always -v “/home/pi/brewblox/traefik”:/certs/ brewblox/omgwtfssl:edge’ returned non-zero exit status 125. pi@Brewpi:~/brewblox $ docker run --rm --privileged --pull always -v “/home/pi/brewblox/traefik”:/certs/ brewblox/omgwtfssl:edge
I have just tried to remove and reinstall fresh and I still get this after:
brewblox-ctl down
cd ..
sudo rm -rf ./brewblox/
You can then use brewblox-ctl install and brewblox-ctl setup to reinstall your system.
I did all the above, now I get this:
pi@Brewpi:~/brewblox $ brewblox-ctl setup
brewblox-ctl requires extensions that match your Brewblox release. Do you want to download them now? [Press ENTER for default value ‘yes’]
SHELL docker rm ctl-lib
SHELL docker pull brewblox/brewblox-ctl-lib:edge
edge: Pulling from brewblox/brewblox-ctl-lib
Digest: sha256:2154260754efc123028c55804bd4a8bbddca55a19da4555cc03a73a8314bbbe9
Status: Image is up to date for brewblox/brewblox-ctl-lib:edge docker.io/brewblox/brewblox-ctl-lib:edge
SHELL docker create --name ctl-lib brewblox/brewblox-ctl-lib:edge
0d76e1eea67b818a2910e53a66950a717d64d97b0dece985a153882830b2c461
SHELL rm -rf ./brewblox_ctl_lib
SHELL docker cp ctl-lib:/brewblox_ctl_lib ./
SHELL docker rm ctl-lib
ctl-lib
INFO Checking ports…
INFO Setting .env values…
INFO Checking Avahi config…
INFO Copying docker-compose.shared.yml…
INFO Copying docker-compose.yml…
INFO Stopping services…
Removing network brewblox_default
WARNING: Network brewblox_default not found.
INFO Pulling docker images…
Pulling redis … done
Pulling ui … done
Pulling traefik … done
Pulling victoria … done
Pulling spark-one … done
Pulling eventbus … done
Pulling history … done
INFO Creating datastore directory…
INFO Creating history directory…
INFO Creating gateway directory…
INFO Creating SSL certificate…
unknown flag: --pull
See ‘docker run --help’.
Command ‘docker run --rm --privileged --pull always -v “/home/pi/brewblox/traefik”:/certs/ brewblox/omgwtfssl:edge’ returned non-zero exit status 125.
pi@Brewpi:~/brewblox $
What is the output from lsb_release -a? Docker 19.03 is an older release (and apparently I have to look up introduction of --pull again), and the pip error also suggests pip is outdated.
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
docker-compose 1.29.2 requires websocket-client<1,>=0.32.0, but you have websocket-client 1.2.1 which is incompatible.
Did you manually upgrade your python version btw? brewblox-ctl is supposed to print a warning whenever you run it on python 3.5 (the default for stretch).
I may have at some point a long time ago I don’t recall. I will try your suggestion - hopefully that will help - as usual thanks again for your time and support with all this, otherwise I would be “stuck”.
I see undervoltage detected on the raspberry pi logs.
You are probably not providing enough power to the raspberry pi, which can give all kinds of weird errors and data loss.
well did a fresh install, again. and now im getting this:
of note - this is the same power supply I have had on this RPI for years. I have unplugged the RJ12 data cables. so idk what the logs will show but hopefully that helps.
pi@raspberrypi:~/brewblox $ brewblox-ctl up
ERROR:
Can’t find a suitable configuration file in this directory or any
parent. Are you in the right directory?
Command 'docker-compose up -d ’ returned non-zero exit status 1.
pi@raspberrypi:~/brewblox $ brewblox-ctl log
INFO Log file: /home/pi/brewblox/brewblox.log
INFO Writing Brewblox .env values…
INFO Writing software version info…
INFO Writing active containers…
INFO Writing docker-compose configuration…
[Errno 2] No such file or directory: ‘docker-compose.yml’
Did you install the os from scratch?
Did you follow all the steps of the install guide, including brewblox-ctl setup?
What kind of power supply do you have on the pi? And are you powering extra things from the pi?
Note that a 3A power supply (that is not a phone charger!) is required for the pi 4. For the 3 I believe it was 2A. Phone chargers can cause problems, especially if they use separate thin USB cables.
As long as this warning is in your logs Aug 26 06:34:04 brewpi kernel: [ 9.754549] Under-voltage detected! (0x00050005)
I am not even going to look for other potential causes of problems.
yes from scratch following @Bob_Steers directions.
yes I went line by line, to verify no errors or issues.
as stated in the SSR expansion post - it is a 5V 2.5Amp power supply for the RPI 3 which according to their website/google that is the requirement. When I ran the logs that was with the old power supply. Here is the result with the new PS and with the expansion boards connected. https://termbin.com/ms5h
here is the log without the expansion boards: https://termbin.com/u86a
this should give you a good cross comparison being only a few minutes apart.
power supply issues: all logs show multiple under-voltage warnings
missing docker-compose.yml file
Elco already addressed the first. The second depends on the install process. Did you install from scratch, or using a snapshot? Could you please run ls ~/brewblox ?
Ok so are you suggesting that maybe the power supply needs to be more than the recommended 5V 2.5A? like a 3A or? Currently directly off the pins with the multimeter on the Brewpi I get 1.26A but with the connector and the wires the highest it got was 2.16 still not close to the 5 I thought we needed. is is possible that having 4x expansion boards through the data cable is too much somehow? When I connect the data cable for the valves and the 8x relay board the Voltage drops to 2.06 from 2.16. I understand the power supply is the potential issue/data cable - I have tried 3x diff data cables at this point and the Volts doesnt seem to change much with the testing results, maybe 0.01-2 difference. (I have ordered a replacement PS that is a “Charger 5V 2A 2.5A 3A 3.5A for Raspberry Pi 3 2 B+ Power Supply”) - Im hoping this will be enough juice to resolve the errors that we are seeing.
results: pi@raspberrypi:~/brewblox $ ls -all
total 180
drwxr-xr-x 8 pi pi 4096 Aug 26 22:04 .
drwxr-xr-x 16 pi pi 4096 Aug 27 09:56 …
drwxr-xr-x 2 pi pi 4096 Aug 26 21:57 brewblox
drwxr-xr-x 5 pi pi 4096 Aug 26 13:40 brewblox_ctl_lib
-rw-r–r-- 1 pi pi 137014 Aug 26 22:13 brewblox.log
-rw-r–r-- 1 pi pi 2382 Aug 26 22:02 docker-compose.shared.yml
-rw-r–r-- 1 pi pi 180 Aug 26 22:02 docker-compose.yml
Drawing from the RPI3
Of note I just flashed it - apparently it needed to be updated. With that said now the 4x relay board is lit up and the 8x relay board is not. 0 change in moving or adjusting wires.