Messed up docker-compose.yml file

Hi,

I think I just messed up my docker-compose file. The reason was that my Tilt did not show up in my dashboard anymore. In my brewblox folder I have the docker-compose.yml file and a docker-compose-shared.yml. When I run brewblox-clt update I get the following error:

how can I fix that again, and finally use my tilt’s SG data in the Graph widget?

Thanks

Patrick

Could you please post your docker-compose.yml file using brewblox-ctl termbin docker-compose.yml ?

https://termbin.com/y5it

There’s a ° as first character on the first line that shouldn’t be there. The rest looks OK.

It helped :+1: Any idea why the file changed?

Maybe you edited it with nano, and hit ctrl+V when closing.

Alternatively, gremlins did it while you slept.

1 Like

Hey guys,

I think my docker-compose file also went wonky somehow. It seems it is obsolete but I’m not really sure why.

WARN[0000] /home/kaapsebrouwers/brewblox/docker-compose.shared.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
WARN[0000] /home/kaapsebrouwers/brewblox/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 3/3
 ✘ Container brewblox-ui-1        Error while...                          14.1s 
 ✘ Container brewblox-redis-1     Error wh...                             14.1s 
 ✘ Container brewblox-eventbus-1  Error...                                14.1s 
Error response from daemon: cannot stop container: 0ee1ea2fc6a93f5c77b9cd09b2594c54de1ef44e6ffdf6ebb3121b374242e385: permission denied
ERROR      CalledProcessError(Command 'docker compose up -d ' returned non-zero exit status 1.)
ERROR   

Here is the termbin of docker-compose.yml:

https://termbin.com/jpxf

I tried to update my docker compose version which is now v2.29.1. I also update brewblox-ctl.

I currently cannot even start brewblox because it cannot stop ui-1, eventbus-1, and redis-1 first. Problematic…

After restarting my brewblox server (ubuntu PC), I ran brewblox-ctl up and got the following:

Error response from daemon: driver failed programming external connectivity on endpoint brewblox-traefik-1 (61267f0ef51ee5d7d02acd4010c5ed26cfd604f89ec1bc0672180772a0cd70b2): Error starting userland proxy: listen tcp4 0.0.0.0:8883: bind: address already in use
ERROR      CalledProcessError(Command 'docker compose up -d ' returned non-zero exit status 1.)
ERROR      

Can you post the output of this command:

docker ps
CONTAINER ID   IMAGE                                         COMMAND                  CREATED       STATUS                           PORTS      NAMES
f8bc8ec60e84   ghcr.io/brewblox/brewblox-ui:edge             "/docker-entrypoint.…"   5 hours ago   Up 5 hours                       80/tcp     bead3d9a9af9_brewblox-ui-1
732ab2afbad2   ghcr.io/brewblox/brewblox-devcon-spark:edge   "bash ./entrypoint.s…"   5 hours ago   Up 5 hours                       5000/tcp   brewblox-spark-21-1
33223bd7fb9b   ghcr.io/brewblox/brewblox-devcon-spark:edge   "bash ./entrypoint.s…"   5 hours ago   Up 5 hours                       5000/tcp   brewblox-spark-3-1
66f277418c71   redis:6.0                                     "docker-entrypoint.s…"   5 hours ago   Up 5 hours                       6379/tcp   0ee1ea2fc6a9_brewblox-redis-1
dee842e14530   ghcr.io/brewblox/brewblox-devcon-spark:edge   "bash ./entrypoint.s…"   5 hours ago   Up 5 hours                       5000/tcp   brewblox-spark-one-1
f66cbc029d8c   ghcr.io/brewblox/brewblox-history:edge        "python3 -m brewblox…"   5 hours ago   Up 5 hours                       5000/tcp   brewblox-history-1
fa6d7e8868a1   ghcr.io/brewblox/mosquitto:edge               "/docker-entrypoint.…"   5 hours ago   Up 5 hours                       1883/tcp   96adaf758a41_brewblox-eventbus-1
51410d54055a   ghcr.io/brewblox/brewblox-devcon-spark:edge   "bash ./entrypoint.s…"   5 hours ago   Up 5 hours                       5000/tcp   brewblox-spark-5-1
560b93391c67   ghcr.io/brewblox/brewblox-devcon-spark:edge   "bash ./entrypoint.s…"   5 hours ago   Up 5 hours                       5000/tcp   brewblox-spark-6-1
0385be34e379   ghcr.io/brewblox/brewblox-devcon-spark:edge   "bash ./entrypoint.s…"   5 hours ago   Up 5 hours                       5000/tcp   brewblox-spark-4-1
0cd56bfb02cf   victoriametrics/victoria-metrics:v1.88.0      "/victoria-metrics-p…"   5 hours ago   Restarting (255) 7 seconds ago              brewblox-victoria-1

Try this:

docker compose down --remove-orphans
brewblox-ctl update
brewblox-ctl up

If this still fails, share the output of brewblox-ctl log.

Just had a chance to try the above. Failed.

root@kb-brewblox:/home/kaapsebrouwers/brewblox# docker compose down --remove-orphans
WARN[0000] /home/kaapsebrouwers/brewblox/docker-compose.shared.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
WARN[0000] /home/kaapsebrouwers/brewblox/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Running 3/3
 ✘ Container 96adaf758a41_brewblox-eventbus-1  Error while Stopping       14.1s 
 ✘ Container 0ee1ea2fc6a9_brewblox-redis-1     Error while Stopping       14.1s 
 ✘ Container bead3d9a9af9_brewblox-ui-1        Error while Stopping       14.1s 
Error response from daemon: cannot stop container: fa6d7e8868a1aacca70165b166e8d58e9ffe3be18d5403a53ad8b8824a5174ff: permission denied

https://termbin.com/ij55

Can you kill the containers with force?

docker kill 96adaf758a41_brewblox-eventbus-1
docker kill 0ee1ea2fc6a9_brewblox-redis-1
docker kill bead3d9a9af9_brewblox-ui-1

Or if that doesn’t work with sudo:

sudo docker kill 96adaf758a41_brewblox-eventbus-1
sudo docker kill 0ee1ea2fc6a9_brewblox-redis-1
sudo docker kill bead3d9a9af9_brewblox-ui-1

Then retry running brewblox-ctl update.

Permission denied on both attempts.

kaapsebrouwers@kb-brewblox:~/brewblox$ docker kill 96adaf758a41_brewblox-eventbus-1
Error response from daemon: Cannot kill container: 96adaf758a41_brewblox-eventbus-1: permission denied
kaapsebrouwers@kb-brewblox:~/brewblox$ sudo docker kill 96adaf758a41_brewblox-eventbus-1
[sudo] password for kaapsebrouwers: 
Error response from daemon: Cannot kill container: 96adaf758a41_brewblox-eventbus-1: permission denied

Googling tells me that if you have a duplicate install of docker (snap and normal), this can happen and removing the snap version will resolve it.

On what kind of server is this install?
What do you get when you run which docker and is docker in snap list?
Do you get any relevant error in dmesg?

I sent you a message on Whatsapp too. If you can give me access I can investigate myself.