Error after updating

I got this error after running “brewblox-ctl update”

Running command:
docker-compose down

ERROR: .FileNotFoundError: [Errno 2] No such file or directory: ‘./docker-compose.shared.yml’
Command ‘docker-compose down’ returned non-zero exit status 1

Could you please run brewblox-ctl log?

Something seems to have gone wrong during the update that split the docker-compose.yml. The solution depends on what your config currently looks like.

pi@raspberrypi:~/brewblox $ brewblox-ctl log
Why are you generating this log? (will be included in log)
Can we include your docker-compose file? You should choose “no” if it contains any passwords or other sensitive information [Press ENTER for default value ‘Yes’]

The following shell commands will be used:

     echo "BREWBLOX DIAGNOSTIC DUMP" > brewblox.log
     date >> brewblox.log
     echo '' >> brewblox.log
     echo "==============VARS==============" >> brewblox.log
     echo "$(uname -a)" >> brewblox.log
     echo "$(docker --version)" >> brewblox.log
     echo "$(docker-compose --version)" >> brewblox.log
     echo "BREWBLOX_CFG_VERSION=0.2.2" >> brewblox.log
     echo "BREWBLOX_PORT_HTTPS=443" >> brewblox.log
     echo "BREWBLOX_PORT_HTTP=82" >> brewblox.log
     echo "BREWBLOX_PORT_MDNS=5000" >> brewblox.log
     echo "BREWBLOX_RELEASE=edge" >> brewblox.log
     echo "==============LOGS==============" >> brewblox.log
     echo 'FileNotFoundError: [Errno 2] No such file or directory: '"'"'docker-compose.shared.yml'"'"'' >> brewblox.log
     echo "==============COMPOSE==============" >> brewblox.log
     cat docker-compose.yml >> brewblox.log
     echo "==============SHARED===============" >> brewblox.log
     cat docker-compose.shared.yml >> brewblox.log
     echo "==============BLOCKS==============" >> brewblox.log
     /usr/bin/python3 -m brewblox_ctl http get --pretty https://localhost:443/spark-one/objects >> brewblox.log || echo "spark-one not found" >> brewblox.log
     echo "==============INSPECT==============" >> brewblox.log
     for cont in $(docker-compose ps -q); do docker inspect $(docker inspect --format '{{ .Image }}' "$cont") >> brewblox.log; done;

Press ENTER to continue, Ctrl+C to cancel

Running command:
echo “BREWBLOX DIAGNOSTIC DUMP” > brewblox.log

Running command:
date >> brewblox.log

Running command:
echo ‘’ >> brewblox.log

Running command:
echo “==============VARS==============” >> brewblox.log

Running command:
echo “$(uname -a)” >> brewblox.log

Running command:
echo “$(docker --version)” >> brewblox.log

Running command:
echo “$(docker-compose --version)” >> brewblox.log

Running command:
echo “BREWBLOX_CFG_VERSION=0.2.2” >> brewblox.log

Running command:
echo “BREWBLOX_PORT_HTTPS=443” >> brewblox.log

Running command:
echo “BREWBLOX_PORT_HTTP=82” >> brewblox.log

Running command:
echo “BREWBLOX_PORT_MDNS=5000” >> brewblox.log

Running command:
echo “BREWBLOX_RELEASE=edge” >> brewblox.log

Running command:
echo “==============LOGS==============” >> brewblox.log

Running command:
echo ‘FileNotFoundError: [Errno 2] No such file or directory: ‘"’"‘docker-compose.shared.yml’"’"’’ >> brewblox.log

Running command:
echo “==============COMPOSE==============” >> brewblox.log

Running command:
cat docker-compose.yml >> brewblox.log

Running command:
echo “==============SHARED===============” >> brewblox.log

Running command:
cat docker-compose.shared.yml >> brewblox.log

cat: docker-compose.shared.yml: Filen eller katalogen finns inte
Command ‘cat docker-compose.shared.yml >> brewblox.log’ returned non-zero exit status 1

… I’ll add an issue for it not quitting when it can’t find a file.

For now, please run this command instead, and post the link.

cat brewblox.log docker-compose.yml.log | nc termbin.com 9999

pi@raspberrypi:~/brewblox $ cat brewblox.log docker-compose.yml.log | nc termbin.com 9999
cat: docker-compose.yml.log: Filen eller katalogen finns inte
https://termbin.com/pwd6
pi@raspberrypi:~/brewblox $

Cheers. Running these commands should fix the issue:

cp ./brewblox_ctl_lib/config_files/armhf/docker-compose.shared.yml ./
dotenv --quote never set BREWBLOX_CFG_VERSION 0.3.0
brewblox-ctl update

Thanks now its working

1 Like