-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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. |
Hi, and then with ./bitwarden.sh update, i got this error : ERROR: The Compose file '/opt/bitwarden/bwdata/docker/docker-compose.yml' is invalid because: |
@MatthieuBarthel |
Check your docker-compose.yml and make sure there are no duplicate services entries (i.e. mssql, web, attachments, api, identity, nginx, etc). Next, if you have one, check your docker-compose.override.yml for the same thing and remove any duplicate service entries. |
Just if someone comes here using Alpine:
|
Well, update works but as said @MatthieuBarthel , i need to remove docker-compose by hand : rm -f /usr/local/bin/docker-compose and then run |
+1 on that working for me as well. Thank goodness for VM snapshots.. I tried it again with chmod 000, in case I needed it back, but that failed as well. |
Thank you, can confirm this worked for me as well. I'm on Ubuntu so one extra step was needed: |
Another +1 on this from Ubuntu 20 LTS. I really didn't like the idea of manually deleting /usr files, but it's what let the update script work properly. Frankly, this is a huge bug on the part of BitWarden and ought to have it's priority upgraded. How more users haven't swarmed this thread is beyond me. They're not owned by CloudStrike, are they? |
How is this fixed again? I just upgraded to 2024.06 and had this exact bug. Almost like updateself needs an update or something? |
I'm running Ubuntu 20.04. I ran into this issue and was able to resolve the issue after updating bitwarden by just removing sudo apt remove docker-compose |
Thanks to this thread, I've upgraded from 2024.4.2 to 2024.7.2. OS ubuntu 20.04.6 LTS, I needed to:
Followed instructions here - https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository - to reinstall/update Docker, including step 1
It didn't work without moving the old docker-compose files. Thanks everyone! |
Easier fix on Debian 11 was to make sure you have backports enabled: https://backports.debian.org/Instructions/ ...and then update docker-compose from the backports repo, like:
Your fix is probably longer-term, but this worked. |
heho, for me following was working:
what a crap... |
Thanks to this thread, thank you very much. |
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: