Changing the service name in the UI only changes the displayed name. It will not change anything in your docker-compose.yml.
I’m not sure whether the desired service IDs here are ctl-78
/ ctl-79
/ ctl-86
or spark4-links
/ spark4-midden
/ spark4-rechts
.
Either way: the header must match the --name
argument, and you must only have one --name
argument. If you have multiple (like now) the last one will take preference.
Thiery
June 4, 2023, 7:38pm
22
i have made the necessary changes to the yaml file.
In meantime i wanted to upgrade the raspberry pi to the newest version but i received somewhere an error. The error appears at the end of the insert.
[pi@thebrewery:~/brewblox $ brewblox-ctl update
INFO Starting update for brewblox edge…
INFO Updating brewblox-ctl…
Looking in indexes: Simple index , piwheels - Simple index
Requirement already satisfied: pip in ./.venv/lib/python3.7/site-packages (23.1.2)
Looking in indexes: Simple index , piwheels - Simple index
Processing ./brewblox-ctl.tar.gz
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing metadata (pyproject.toml) … done
Requirement already satisfied: click<9.0.0,>=8.1.3 in ./.venv/lib/python3.7/site-packages (from brewblox-ctl==1.0.0) (8.1.3)
Requirement already satisfied: configobj<6.0.0,>=5.0.6 in ./.venv/lib/python3.7/site-packages (from brewblox-ctl==1.0.0) (5.0.8)
Requirement already satisfied: packaging<24.0,>=23.0 in ./.venv/lib/python3.7/site-packages (from brewblox-ctl==1.0.0) (23.0)
Requirement already satisfied: psutil<6.0.0,>=5.9.4 in ./.venv/lib/python3.7/site-packages (from brewblox-ctl==1.0.0) (5.9.4)
Requirement already satisfied: pyserial<4.0,>=3.5 in ./.venv/lib/python3.7/site-packages (from brewblox-ctl==1.0.0) (3.5)
Requirement already satisfied: python-dotenv[cli]<0.22.0,>=0.21.1 in ./.venv/lib/python3.7/site-packages (from brewblox-ctl==1.0.0) (0.21.1)
Requirement already satisfied: pyusb<2.0.0,>=1.2.1 in ./.venv/lib/python3.7/site-packages (from brewblox-ctl==1.0.0) (1.2.1)
Requirement already satisfied: requests<3.0.0,>=2.28.2 in ./.venv/lib/python3.7/site-packages (from brewblox-ctl==1.0.0) (2.28.2)
Requirement already satisfied: ruamel.yaml<0.18.0,>=0.17.21 in ./.venv/lib/python3.7/site-packages (from brewblox-ctl==1.0.0) (0.17.21)
Requirement already satisfied: zeroconf<0.48.0,>=0.47.3 in ./.venv/lib/python3.7/site-packages (from brewblox-ctl==1.0.0) (0.47.3)
Requirement already satisfied: importlib-metadata in ./.venv/lib/python3.7/site-packages (from click<9.0.0,>=8.1.3->brewblox-ctl==1.0.0) (6.0.0)
Requirement already satisfied: six in ./.venv/lib/python3.7/site-packages (from configobj<6.0.0,>=5.0.6->brewblox-ctl==1.0.0) (1.16.0)
Requirement already satisfied: charset-normalizer<4,>=2 in ./.venv/lib/python3.7/site-packages (from requests<3.0.0,>=2.28.2->brewblox-ctl==1.0.0) (3.0.1)
Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.7/site-packages (from requests<3.0.0,>=2.28.2->brewblox-ctl==1.0.0) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.venv/lib/python3.7/site-packages (from requests<3.0.0,>=2.28.2->brewblox-ctl==1.0.0) (1.26.14)
Requirement already satisfied: certifi>=2017.4.17 in ./.venv/lib/python3.7/site-packages (from requests<3.0.0,>=2.28.2->brewblox-ctl==1.0.0) (2022.12.7)
Requirement already satisfied: ruamel.yaml.clib>=0.2.6 in ./.venv/lib/python3.7/site-packages (from ruamel.yaml<0.18.0,>=0.17.21->brewblox-ctl==1.0.0) (0.2.7)
Requirement already satisfied: async-timeout>=3.0.0 in ./.venv/lib/python3.7/site-packages (from zeroconf<0.48.0,>=0.47.3->brewblox-ctl==1.0.0) (4.0.2)
Requirement already satisfied: ifaddr>=0.1.7 in ./.venv/lib/python3.7/site-packages (from zeroconf<0.48.0,>=0.47.3->brewblox-ctl==1.0.0) (0.2.0)
Requirement already satisfied: typing-extensions>=3.6.5 in ./.venv/lib/python3.7/site-packages (from async-timeout>=3.0.0->zeroconf<0.48.0,>=0.47.3->brewblox-ctl==1.0.0) (4.5.0)
Requirement already satisfied: zipp>=0.5 in ./.venv/lib/python3.7/site-packages (from importlib-metadata->click<9.0.0,>=8.1.3->brewblox-ctl==1.0.0) (3.13.0)
Building wheels for collected packages: brewblox-ctl
Building wheel for brewblox-ctl (pyproject.toml) … done
Created wheel for brewblox-ctl: filename=brewblox_ctl-1.0.0-py3-none-any.whl size=66743 sha256=6418145c8969fd5a7a4f4be3e32d552b731ee6431605193ee9d9c5f72b5856a4
Stored in directory: /home/pi/.cache/pip/wheels/5e/72/f6/4898928d8d543a72b61cc9b8d3acc374caaf6b3d11293985d2
Successfully built brewblox-ctl
Installing collected packages: brewblox-ctl
Attempting uninstall: brewblox-ctl
Found existing installation: brewblox-ctl 1.0.0
Uninstalling brewblox-ctl-1.0.0:
Successfully uninstalled brewblox-ctl-1.0.0
Successfully installed brewblox-ctl-1.0.0
Docker Compose version v2.16.0
INFO Stopping services…
[+] Running 0/0
⠿ Network brewblox_default Error 0.0s
failed to remove network brewblox_default: Error response from daemon: error while removing network: network brewblox_default id 0bc1ea0ba621a1552938a82a0a92eb3365720dcddfb85590b2c4cb7f668cc414 has active endpoints
Command ‘docker compose down’ returned non-zero exit status 1.
Command ‘python3 -m brewblox_ctl update --update-ctl-done’ returned non-zero exit status 1.
pi@thebrewery:~/brewblox $ ]
The renamed services are still active, and not stopped because they no longer appear in docker-compose.yml.
To fix this, run brewblox-ctl kill
. This will stop and remove all docker containers. Then re-run the update.
Thiery
June 5, 2023, 7:44am
24
thks everything seems to be fine now (also the controllers had an update)