Installation error

i have to install bitwarden on my server
when i am trying to execute ./bitwarden.sh install i get error


| |__ () |__ ____ _ _ __ _| | ___ _ __
| ’
| | \ \ /\ / / | '__/ _ |/ _ \ ’
| |) | | | \ V V / (| | | | (| | / | | |
|_.
/||_| _/_/ _,|| _,_|_
|| ||

Open source password management solutions
Copyright 2015-2021, 8bit Solutions LLC
https://bitwarden.com, Bitwarden · GitHub

===================================================

bitwarden.sh version 1.43.0
Docker version 20.10.9, build c2ea9bc
./bitwarden.sh: line 42: docker-compose: command not found

how to solve it

thanks

Can you verify you have docker-compose installed on your machine?

Run the command

docker-compose -version

This link may also assist you in any prerequisites for Bitwarden installation for self-hosting

https://bitwarden.com/help/article/install-on-premise/#install-docker-and-docker-compose

1 Like

docker-compose version 1.29.2, build 5becea4c

when I am trying to install after enter mail is its showing error

[[email protected] isecurity]$ ./bitwarden.sh install


| |__ () |__ ____ _ _ __ _| | ___ _ __
| ’
| | \ \ /\ / / | '__/ _ |/ _ \ ’
| |) | | | \ V V / (| | | | (| | / | | |
|_.
/||_| _/_/ _,|| _,_|_
|| ||

Open source password management solutions
Copyright 2015-2021, 8bit Solutions LLC
https://bitwarden.com, Bitwarden · GitHub

===================================================

bitwarden.sh version 1.43.0
Docker version 20.10.9, build c2ea9bc
docker-compose version 1.29.2, build 5becea4c

(!) Enter the domain name for your Bitwarden instance (ex. bitwarden.example.com): isecurity.8ty6.co

(!) Do you want to use Let’s Encrypt to generate a free SSL certificate? (y/n): y

(!) Enter your email address (Let’s Encrypt will send you certificate expiration reminders): [email protected]

Using default tag: latest
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post “http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=certbot%2Fcertbot&tag=latest”: dial unix /var/run/docker.sock: connect: permission denied

[[email protected] isecurity]$ ./bitwarden.sh restart


| |__ () |__ ____ _ _ __ _| | ___ _ __
| ’
| | \ \ /\ / / | '__/ _ |/ _ \ ’
| |) | | | \ V V / (| | | | (| | / | | |
|_.
/||_| _/_/ _,|| _,_|_
|| ||

Open source password management solutions
Copyright 2015-2021, 8bit Solutions LLC
https://bitwarden.com, Bitwarden · GitHub

===================================================

bitwarden.sh version 1.43.0
Docker version 20.10.9, build c2ea9bc
docker-compose version 1.29.2, build 5becea4c

Pulling mssql … done
Pulling web … done
Pulling attachments … done
Pulling api … done
Pulling identity … done
Pulling sso … done
Pulling admin … done
Pulling portal … done
Pulling icons … done
Pulling notifications … done
Pulling events … done
Pulling nginx … done
Creating network “docker_default” with the default driver
Creating network “docker_public” with the default driver
Creating bitwarden-mssql … done
Creating bitwarden-notifications … done
Creating bitwarden-icons … done
Creating bitwarden-identity … done
Creating bitwarden-web … done
Creating bitwarden-api … done
Creating bitwarden-sso … done
Creating bitwarden-events … done
Creating bitwarden-attachments … done
Creating bitwarden-admin … done
Creating bitwarden-portal … done
Creating bitwarden-nginx …
Creating bitwarden-nginx … error

ERROR: for bitwarden-nginx Cannot start service nginx: driver failed programming external connectivity on endpoint bitwarden-nginx (15e7574d42afdfb594a05ade066f9a369064f155173f04265b85c4585c9a4356): Error starting userland proxy: listen tcp4 0.0.0.0:443: bind: address already in use

ERROR: for nginx Cannot start service nginx: driver failed programming external connectivity on endpoint bitwarden-nginx (15e7574d42afdfb594a05ade066f9a369064f155173f04265b85c4585c9a4356): Error starting userland proxy: listen tcp4 0.0.0.0:443: bind: address already in use
ERROR: Encountered errors while bringing up the project.
[[email protected] isecurity]$

Did you get permission denied issue resolved?
You may need to run

sudo ./bitwarden.sh install

or add yourself to the docker group, Steps 3 - 4

You can also look into running docker in rootless mode but that would go beyond the scope of this forum post and not necessary needed here.