Skip to content
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

Bitwarden.sh calls "docker compose" instead of "docker-compose" #5043

Closed
1 task done
Exportedthought opened this issue Nov 17, 2024 · 7 comments
Closed
1 task done
Labels
bug bw-unified-deploy An Issue related to Bitwarden unified deployment

Comments

@Exportedthought
Copy link

Steps To Reproduce

Attempt to update bitwarden self-hosted

  1. Run ./bitwarden.sh updateself
  2. Run ./bitwarden.sh update
    All as the bitwarden user with permissions required to access docker, per the bitwarden self-host documentation.

Expected Result

Script execution/update completion.

Actual Result

Error is received, see below:

docker: 'compose' is not a docker command.
See 'docker --help'

Screenshots or Videos

No response

Additional Context

After manually changing the bitwarden.sh script and the run.sh scripts to use "docker-compose" instead of "docker compose" I was able to get everything to update. It is unclear if this is something self-induced or something wrong with my environment but it seems like the docker compose entries within run.sh/bitwarden.sh should be docker-compose or at least should check as bitwarden.sh seemed to do this previously.

Githash Version

6862a9b

Environment Details

  • Operating System: Debian GNU/Linux 12 (bookworm)

Database Image

No response

Issue-Link

#2480

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@Exportedthought Exportedthought added bug bw-unified-deploy An Issue related to Bitwarden unified deployment labels Nov 17, 2024
@Exportedthought
Copy link
Author

Accidentally opened this issue on the unified deployment instead of self-host but I don't see where self-host bugs would be reported.

@bglf83
Copy link

bglf83 commented Nov 17, 2024

I have this issue on self-hosted as well.

@DimebagCFH
Copy link

DimebagCFH commented Nov 18, 2024

I have the same issue as well
I'm running on a synology

@Exportedthought
Can you please be a little bit more specific to explain how you fix this into the bitwarden.sh and run.sh ?
Thanks in advance,
Have a nice day,

@bglf83
Copy link

bglf83 commented Nov 19, 2024

I have the same issue as well I'm running on a synology

@Exportedthought Can you please be a little bit more specific to explain how you fix this into the bitwarden.sh and run.sh ? Thanks in advance, Have a nice day,

I am also using a Synology device.

@Exportedthought
Copy link
Author

Exportedthought commented Nov 19, 2024

For my situation I simply went through the bitwarden.sh and run.sh scripts and modified any section that referenced "docker compose" to have the dash, as in "docker-compose". I did have to run the ./bitwarden.sh updateself first to get the most recent version of the script and then do the necessary modifications since updateself will replace ./bitwarden.sh. I also had to comment out the function call downloadRunFile in the case statement to ensure it didn't replace those modifications as well. Also note, I ran the update first normally (that's how I ran into issues in the first place) so the modifications that I made are all assuming the latest scripts, I'm not sure all of this is the recommended way to handle this but I'll leave it all here anyways. I would also like to warn that these modifications will certainly be cleared out if another attempt to updateself is performed and the normal update procedures are followed so this is not a real solution.

@DimebagCFH
Copy link

Thanks for the update.

@bglf83
Copy link

bglf83 commented Nov 19, 2024

Agree, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bw-unified-deploy An Issue related to Bitwarden unified deployment
Projects
None yet
Development

No branches or pull requests

3 participants