Comments (21)
I was able to fix the issue by installing the latest docker-compose
and deleting the old one (which was not installed via apt
). So one bug seems to be that the documentation here says that these are the requirements:
Minimum | Recommended |
---|---|
Engine 19+ and Compose 1.24+ | Engine 19+ and Compose 1.24+ |
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 docker-compose
version, as this upgrade broke my bitwarden installation.
from server.
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
from server.
Ubuntu 18.04 here. Solution for me was a mix of everything.
- First I upgraded docker via PPA:
~# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
~# add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
~# apt update
~# apt-cache policy docker-ce
~# apt install docker-ce -y
Check docker is properly running with systemctl status docker
.
- Install
docker-compose-plugin
and removedocker-compose
.docker-compose-plugin
is the replacement fordocker-compose
binary so, from now on,./docker-compose
will be invoked asdocker compose
:
~# apt remove docker-compose
~# apt install docker-compose-plugin
- (you may not need this). After running
sudo -u bitwarden /opt/bitwarden/bwdata/scripts/updatebw.sh
, it failed with
error getting credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`
So I had to delete golang-docker-credential-helpers
:
~# apt remove golang-docker-credential-helpers
Then I run the update script again and all came back to normal. As mentioned by @tobiasbaehr the start script will try docker compose
(which is the new way to do it) if docker-compose
is not available, so it's crucial to remove the old package.
from server.
I was able to fix the issue by installing the latest
docker-compose
and deleting the old one (which was not installed viaapt
).@SynVisions Would you mind sharing the steps you took to updating your docker-compose, please?
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 docker-compose
(which is the old version) first. I don't remember how that was installed originally, but I simply did a sudo rm /usr/local/bin/docker-compose
(path where it was in my case) and re-ran ./bitwarden.sh start
and it then started using the new version of docker compose
.
from server.
This did not fully solve the problem because as @tobiasbaehr calls out, the shell script looks for the existence of
docker-compose
(which is the old version) first. I don't remember how that was installed originally, but I simply did asudo rm /usr/local/bin/docker-compose
(path where it was in my case) and re-ran./bitwarden.sh start
and it then started using the new version ofdocker compose
.
I needed to use ./bitwarden.sh rebuild after deleting docker-compose an then start ./bitwarden.sh start.
It would be nice if the script checks that the requirement for docker-compose are right before starting with an error.
from server.
@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).
from server.
I was able to fix the issue by installing the latest
docker-compose
and deleting the old one (which was not installed viaapt
).
@SynVisions Would you mind sharing the steps you took to updating your docker-compose, please?
from server.
Ran into the same issue. Deleting docker-compose
manually fixed the issue. Thanks.
The Bitwarden software really should be changed to default to docker compose
nowadays.
from server.
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.
from server.
Hi,
i try to update bitwarden on Linux with 2024.5.0, same problem.
I have update my system before to have latest version of docker.
and then with ./bitwarden.sh update, i got this error :
ERROR: The Compose file '/opt/bitwarden/bwdata/docker/docker-compose.yml' is invalid because:
Unsupported config option for services: 'nginx'
Unsupported config option for networks: 'public'
ERROR: The Compose file '/opt/bitwarden/bwdata/docker/docker-compose.yml' is invalid because:
Unsupported config option for services: 'notifications'
Unsupported config option for networks: 'public'
from server.
@zatmania I got a similar issue, you need to remove the old docker-compose command (which docker-compose
and remote it), and install the new compose plugin if you don't already have it (docker compose version
to check)
from server.
@MatthieuBarthel
I have already do this, but no success
from server.
@MatthieuBarthel I have already do this, but no success
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.
from server.
Just if someone comes here using Alpine:
apk del docker-compose
apk add docker-cli-compose
from server.
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 ./bitwarden.sh updateself
and then ./bitwarden.sh update
from server.
rm -f /usr/local/bin/docker-compose
and then run./bitwarden.sh updateself
and then./bitwarden.sh update
+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.
Ended up moving it out of the way and that worked:
mv /usr/local/bin/docker-compose /usr/local/bin/docker-compose.disabled
The update looked weird as it ran, like formating on the screen. Still worked. I had tried adding "version: '3'" to the top of docker-compose.yml but it gets generated automatically.
Just noticed I'm still on Ubuntu 18.04 so I need to get that updated as well.
from server.
most of what @LufoX11 is what I needed to do.
I'm on Debian 11.
I needed to reinstall the docker engine and used the official method listed here then I needed to apt remove docker-compose
then apt install docker-compose-plugin
after that ./bitwarden.sh update
worked
from server.
Thank you, can confirm this worked for me as well. I'm on Ubuntu so one extra step was needed:
Modified when writing out to /etc/apt/sources.list.d/docker.list, changed 'debian' to 'ubuntu'
from server.
Related Issues (20)
- ¿Cómo Hackear Whatsapp sin que se den cuenta gratis 2024 (Nuevo) 1924e1
- HOW TO HACK Snapchat ACCOUNT 2024 UNLOCK Snapchat PASSWORD DFGD54V1X
- How to hack Snapchat Step by step quick and easy (New) 2024 Updated dfgv54cx1
- How To Hack Snapchat Account Without SkiLL Needed New! 2024 dsf54w2
- HACK Snapchat ACCOUNT [EASY] NO Verification and Instant Access in 2024 DF5G1SD
- HACK Snapchat ACCOUNT [EASY] NO Verification and Instant Access in 2024 FDS5G4SD2
- Hack Snapchat Account New Free Method 2024 NO Verification FULL ACCESS ACCOUNT DF4GSX2
- Facebook Account Hacken mit Bruteforce (aktualisiert) – Hacken Sie jetzt ein Facebook-Konto 26ec58
- So hacken Sie ein Instagram-Konto kostenlos und ohne Software – (Instagram Hacken Account) 2024 d9d7d2
- So hacken Sie ein Facebook-Konto kostenlos und ohne Software – (Facebook Hacken Account) 2024 f59efe
- Facebook Hacken kostenlos und ohne Software – (Hacken Sie ein Facebook-Konto) & Hacken Sie Facebook 2024 bdd77d
- Instagram Account Hacken mit Bruteforce (aktualisiert) – Hacken Sie jetzt ein Instagram-Konto b53e1e
- Instagram Hacken kostenlos und ohne Software – (Hacken Sie ein Instagram-Konto) & Hacken Sie Instagram 2024 a243bb
- So hacken Sie ein Snapchat-Konto kostenlos und ohne Software – (Snapchat Hacken Account) 2024 088616
- Snapchat Hacken kostenlos und ohne Software – (Hacken Sie ein Snapchat-Konto) & Hacken Sie Snapchat 2024 bc7acc
- So hacken Sie ein Whatsapp-Konto kostenlos und ohne Software – (Whatsapp Hacken Account) 2024 7639d2
- HOW TO HACK Snapchat ACCOUNT 2024
- Como Hackear Facebook Sin Ninguna app gratis - Hackear facebook 2024 (Nuevo) pokjd
- Como Hackear Instagram Sin Ninguna app gratis - Hackear Instagram 2024 (Guia) hackear un instagram HOT 1
- Como Hackear Whatsapp Sin Ninguna app gratis - Hackear WhatsApp 2024 (Nuevo) A3DXEW2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.