New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2024.4.2 update broke my docker-compose.yml #4078
Comments
I was able to fix the issue by installing the latest
As the output in the original issue report shows, I was previously running Docker Engine 24.0.5 and Compose 1.24.1. I think updating the documentation is prudent, but it would also be nice I think to fail the upgrade with a precondition check on the |
@djsmith85 please note this is NOT a duplicate of #4059 and should not be closed as such the way #4067 and #4068 were incorrectly closed. This error is due to many systems not updating to the latest composer version via normal update channels (apt) and so they still default to version: "1", which obviously lacks some of the config options used in later versions (e.g. 3). |
@SynVisions Would you mind sharing the steps you took to updating your docker-compose, please? |
Had the same problem. Just delete old docker-compose binary. The bitwarden.sh script use the old docker-compose by default. if command -v docker-compose &> /dev/null
then
dccmd='docker-compose'
else
dccmd='docker compose'
fi |
First I followed the steps here (you may need to use different steps depending upon your OS and distro): https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository This did not fully solve the problem because as @tobiasbaehr calls out, the shell script looks for the existence of |
Ubuntu 18.04 here. Solution for me was a mix of everything.
Check docker is properly running with
So I had to delete
Then I run the update script again and all came back to normal. As mentioned by @tobiasbaehr the start script will try |
I needed to use ./bitwarden.sh rebuild after deleting docker-compose an then start ./bitwarden.sh start. |
Ran into the same issue. Deleting |
The 2024.5.0 image of the setup container now contains a fix for this issue. Please make sure you are running the latest version of Docker and update Bitwarden again to apply the fix. Thank you for everybody's patience. |
Steps To Reproduce
edit: I believe I have the root cause (and thus steps to reproduce) here: #4078 (comment) -- it seems that docker-compose 1.24.1 does not work with bitwarden-server 2024.4.2 despite current documentation stating that it should work.
I'm not sure if this is easily reproducible as I've been running the same self-hosted Bitwarden instance for years now, but this is what occurred in my environment. After updating from self-hosted bitwarden 2024.4.1 to 2024.4.2, my
docker-compose.yml
is now invalid, and bitwarden will no longer start.The update was applied in this fashion:
./bitwarden.sh updateself
./bitwarden.sh update
Expected Result
When running
./bitwarden.sh start
after updating I would expect to see something like this (except replace 2024.4.1 with 2024.4.2):Actual Result
What I see now:
I get different sets of errors each time I run it, for example the next time I got these:
Screenshots or Videos
No response
Additional Context
This is my
docker-compose.yml
:Build Version
2024.4.2
Environment
Self-Hosted
Environment Details
Issue Tracking Info
The text was updated successfully, but these errors were encountered: