When updating my spark v2, it shows a blank screen. The LED flashes very fast in green.
pi@brewblox:~/brewblox $ brewblox-ctl flash
Please press ENTER when your Spark is connected over USB
Running command:
docker-compose down
Removing network brewblox_default
WARNING: Network brewblox_default not found.
Running command:
docker pull brewblox/firmware-flasher:rpi-edge
rpi-edge: Pulling from brewblox/firmware-flasher
Digest: sha256:599a978d232e7ea27883114f635ba91ebee886bc9c56377815524c000e20f60e
Status: Image is up to date for brewblox/firmware-flasher:rpi-edge docker.io/brewblox/firmware-flasher:rpi-edge
Running command:
docker run -it --rm --privileged brewblox/firmware-flasher:rpi-edge trigger-dfu
Running command:
docker run -it --rm --privileged brewblox/firmware-flasher:rpi-edge flash
Flashing Photon…
Flashing System 1 file…
Flash success!
Flashing System 2 file…
Flash success!
Flashing Firmware file…
Flash success!
And set up the wifi connection:
pi@brewblox:~/brewblox $ brewblox-ctl wifi
Please press ENTER when your Spark is connected over USB
Running command:
docker-compose down
Stopping brewblox_spark-one_1 … done
Stopping brewblox_mdns_1 … done
Stopping brewblox_Tilt_1 … done
Stopping brewblox_datastore_1 … done
Stopping brewblox_ui_1 … done
Stopping brewblox_history_1 … done
Stopping brewblox_eventbus_1 … done
Stopping brewblox_traefik_1 … done
Stopping brewblox_influx_1 … done
Removing brewblox_spark-one_1 … done
Removing brewblox_mdns_1 … done
Removing brewblox_Tilt_1 … done
Removing brewblox_datastore_1 … done
Removing brewblox_ui_1 … done
Removing brewblox_history_1 … done
Removing brewblox_eventbus_1 … done
Removing brewblox_traefik_1 … done
Removing brewblox_influx_1 … done
Removing network brewblox_default
Running command:
docker pull brewblox/firmware-flasher:rpi-edge
rpi-edge: Pulling from brewblox/firmware-flasher
Digest: sha256:599a978d232e7ea27883114f635ba91ebee886bc9c56377815524c000e20f60e
Status: Image is up to date for brewblox/firmware-flasher:rpi-edge docker.io/brewblox/firmware-flasher:rpi-edge
Running command:
docker run -it --rm --privileged brewblox/firmware-flasher:rpi-edge wifi
IMPORTANT: answer ‘no’ when asked to scan for Wifi networks
? Should I scan for nearby Wi-Fi networks? No
? SSID hola
? Security Type WPA2
? Cipher Type AES+TKIP
? Wi-Fi Password 12345678
Done! Your device should now restart.
But the screen is still white and the LED is green.
How can I install manually?
Can i go back to the previous version?
Run “brewblox-ctl flash” again and before executing “brewblox-ctl wifi” I pressed the button for a few seconds and it flashed purple and started working.
Now brewblox gives 404 error, but this I think I can fix it.
Regards,
Daniel.
EDID:
I can’t make it work:
pi@brewblox:~/brewblox $ brewblox-ctl setup
Do you want to check whether ports are already in use? [Press ENTER for default value ‘Yes’]
n
Do you want to update brewblox-ctl? [Press ENTER for default value ‘Yes’]
n
This directory already contains datastore files. Do you want to keep them? [Press ENTER for default value ‘Yes’]
y
Running command:
cp -f ./brewblox_ctl_lib/config_files/docker-compose_armhf.yml ./docker-compose.yml
Running command:
docker-compose down --remove-orphans
Removing network brewblox_default
WARNING: Network brewblox_default not found.
Running command:
docker-compose pull
Pulling mdns … done
Pulling eventbus … done
Pulling influx … done
Pulling datastore … done
Pulling history … done
Pulling ui … done
Pulling traefik … done
Pulling spark-one … done
Running command:
sudo rm -rf ./influxdb/; mkdir ./influxdb/
Running command:
sudo rm -rf ./traefik/; mkdir ./traefik/
Running command:
sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -subj “/C=NL/ST=./L=./O=BrewBlox/OU=./CN=.” -keyout traefik/brewblox.key -out traefik/brewblox.crt
Generating a RSA private key
…+++++
…+++++
writing new private key to ‘traefik/brewblox.key’ -----
Running command:
sudo chmod 644 traefik/brewblox.crt
Running command:
sudo chmod 600 traefik/brewblox.key
Running command:
docker-compose up -d --remove-orphans traefik influx history
Creating network “brewblox_default” with the default driver
Creating brewblox_influx_1 … done
Creating brewblox_traefik_1 … done
Creating brewblox_eventbus_1 … done
Creating brewblox_history_1 … done
Running command:
/usr/bin/python3 -m brewblox_ctl http wait https://localhost:443/history/_service/status
Connecting https://localhost:443/history/_service/status, attempt 1/60
Connecting https://localhost:443/history/_service/status, attempt 2/60
Success!
Running command:
/usr/bin/python3 -m brewblox_ctl http post https://localhost:443/history/query/configure
500: ClientConnectorError(Cannot connect to host influx:8086 ssl:None [Connect call failed (‘172.19.0.2’, 8086)])
Error: 500 Server Error: Internal Server Error for url: https://localhost:443/history/query/configure
Command ‘/usr/bin/python3 -m brewblox_ctl http post https://localhost:443/history/query/configure’ returned non-zero exit status 1.
when I check “https: // localhost: 443 / history / query / configure” it returns a 405
pi@brewblox:~/brewblox $ wget https://localhost:443/history/query/configure --no-check-certificate
–2019-11-24 02:46:56-- https://localhost/history/query/configure
Resolviendo localhost (localhost)… ::1, 127.0.0.1
Conectando con localhost (localhost)[::1]:443… conectado.
AVISO: El certificado de “localhost” no es confiable.
AVISO: The certificate of “localhost” doesn’t have a known issuer.
El propietario del certificado no se ajusta al nombre de equipo “localhost”
Petición HTTP enviada, esperando respuesta… 405 Method Not Allowed
2019-11-24 02:46:56 ERROR 405: Method Not Allowed.
This does seem indicative of there being a problem with the InfluxDB database. It’s too early to tell whether that’s a bug, or some issue specific to your configuration or hardware.
If it’s no problem to lose your dashboards and history, you can indeed remove and reinstall:
(In your brewblox dir)
brewblox-ctl kill
cd ..
sudo rm -rf ./brewblox
brewblox-ctl install
cd brewblox
brewblox-ctl setup
brewblox-ctl up
If you’d rather, we could also try to find the problem with your database. This would preserve your configuration, but will require some back-and-forth messaging to find and fix the problem.
I’m upgrading to a glycol chiller
I have to create a new configuration anyway.
Thank you for your help and tell you that I love brewblox and I think it has a great future.
If you need anything from me, I am at your disposal to help in any way I can.