Bitwarden/identity:latest - keeps on restarting

hi all,

i upgraded my version of bitwarden via cmd

cd /bitwarden/bwdata/docker/
docker-compose pull && docker-compose up -d

it upgraded it from 1.41.3 to 1.43.0 looking in the admin page

but when i run a docker ps i get this

0a522f3bcc66 bitwarden/identity:latest “/entrypoint.sh” 9 minutes ago Restarting (139) 17 seconds ago bitwarden-identity

thanks,
rob

Same for me. Just tried to install it for my company.

docker ps
CONTAINER ID   IMAGE                            COMMAND            CREATED         STATUS                            PORTS                                                 NAMES
e6191e2a231d   bitwarden/nginx:1.43.0           "/entrypoint.sh"   3 minutes ago   Up 3 minutes (healthy)            80/tcp, 0.0.0.0:80->8080/tcp, 0.0.0.0:443->8443/tcp   bitwarden-nginx
e6c54b83e09e   bitwarden/portal:1.43.0          "/entrypoint.sh"   3 minutes ago   Up 3 minutes (healthy)            5000/tcp                                              bitwarden-portal
7243fca6057a   bitwarden/admin:1.43.0           "/entrypoint.sh"   3 minutes ago   Restarting (139) 36 seconds ago                                                         bitwarden-admin
21b7f644d7c2   bitwarden/web:2.23.0             "/entrypoint.sh"   3 minutes ago   Up 3 minutes (healthy)                                                                  bitwarden-web
3b4fd45ed446   bitwarden/attachments:1.43.0     "/entrypoint.sh"   3 minutes ago   Up 3 minutes (healthy)                                                                  bitwarden-attachments
bcf842cec47f   bitwarden/events:1.43.0          "/entrypoint.sh"   3 minutes ago   Up 3 minutes (unhealthy)          5000/tcp                                              bitwarden-events
a2ec2c5205e4   bitwarden/mssql:1.43.0           "/entrypoint.sh"   3 minutes ago   Up 3 minutes (healthy)                                                                  bitwarden-mssql
82fec909f917   bitwarden/identity:1.43.0        "/entrypoint.sh"   3 minutes ago   Restarting (139) 39 seconds ago                                                         bitwarden-identity
eba97217ba32   bitwarden/icons:1.43.0           "/entrypoint.sh"   3 minutes ago   Up 3 minutes (healthy)            5000/tcp                                              bitwarden-icons
b21d5b7328d3   bitwarden/api:1.43.0             "/entrypoint.sh"   3 minutes ago   Up 3 minutes (healthy)            5000/tcp                                              bitwarden-api
77ece08e96a9   bitwarden/notifications:1.43.0   "/entrypoint.sh"   3 minutes ago   Up 3 minutes (healthy)            5000/tcp                                              bitwarden-notifications
d75799b9727f   bitwarden/sso:1.43.0             "/entrypoint.sh"   3 minutes ago   Restarting (139) 43 seconds ago                                                         bitwarden-sso

@FaserF Could you please check if this solves your problem Self Host Format of the initialization string does not conform to specification starting

Kind regards
Daniel

Sadly no.
Admin Page throws a 502 error, but I have setup some email adresses. Admin Docker container says unhealty.

CONTAINER ID   IMAGE                            COMMAND            CREATED         STATUS                            PORTS                                                 NAMES
d34f1c0942fb   bitwarden/nginx:1.43.0           "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)            80/tcp, 0.0.0.0:80->8080/tcp, 0.0.0.0:443->8443/tcp   bitwarden-nginx
ccedb03b306d   bitwarden/portal:1.43.0          "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)            5000/tcp                                              bitwarden-portal
118da128e20c   bitwarden/admin:1.43.0           "/entrypoint.sh"   2 minutes ago   Up 2 minutes (unhealthy)          5000/tcp                                              bitwarden-admin
3a7fcf98043f   bitwarden/identity:1.43.0        "/entrypoint.sh"   2 minutes ago   Restarting (139) 11 seconds ago                                                         bitwarden-identity
105c9141cb14   bitwarden/notifications:1.43.0   "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)            5000/tcp                                              bitwarden-notifications
a0084bd6f460   bitwarden/attachments:1.43.0     "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)                                                                  bitwarden-attachments
0e554e0b265e   bitwarden/api:1.43.0             "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)            5000/tcp                                              bitwarden-api
6d90a78d5af9   bitwarden/mssql:1.43.0           "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)                                                                  bitwarden-mssql
ff6fbfe1533d   bitwarden/web:2.23.0             "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)                                                                  bitwarden-web
99c5ca609a49   bitwarden/sso:1.43.0             "/entrypoint.sh"   2 minutes ago   Restarting (139) 11 seconds ago                                                         bitwarden-sso
1c1e0e93dec1   bitwarden/icons:1.43.0           "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)            5000/tcp                                              bitwarden-icons
5a322c0f2c4d   bitwarden/events:1.43.0          "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)            5000/tcp                                              bitwarden-events


globalSettings__baseServiceUri__vault=https://my.url
globalSettings__sqlServer__connectionString="Data Source=tcp:mssql,1433;Initial Catalog=vault;Persist Security Info=False;User ID=sa;Password=someGeneratedPw?;MultipleActiveResultSets=False;Connect Timeout=30;Encrypt=True;TrustServerCertificate=True"
globalSettings__identityServer__certificatePassword=someGeneratedPw?
globalSettings__internalIdentityKey=someGeneratedKey?
globalSettings__oidcIdentityClientKey=someGeneratedKey?
globalSettings__duo__aKey=someGeneratedKey?
globalSettings__installation__id=myID
globalSettings__installation__key=myKey
#globalSettings__yubico__clientId=REPLACE
#globalSettings__yubico__key=REPLACE
[email protected]
globalSettings__mail__smtp__host=mailserver.domain.de
globalSettings__mail__smtp__port=25
globalSettings__mail__smtp__ssl=false
globalSettings__mail__smtp__username=REPLACE
globalSettings__mail__smtp__password=REPLACE
globalSettings__disableUserRegistration=false
#globalSettings__hibpApiKey=REPLACE
[email protected]

I have now done the following:

To remove everything:

[email protected]:/opt/bitwarden# ./bitwarden.sh stop
[email protected]:/opt/bitwarden# docker ps -aq
empty
[email protected]:/opt/bitwarden# docker rmi $(docker images -q)
[…]successfully removed all images on the machine
Rm -r /opt/Bitwarden/bwdata

To reconfigure everything I followed the guide beginning with “create bitwarden local user & directory” (also done so before)

[email protected]:/opt/bitwarden# ./bitwarden.sh install
bitwarden.sh version 1.44.1
Docker version 20.10.11, build dea9396
docker-compose version 1.25.0, build unknown

(!) Enter the domain name for your Bitwarden instance (ex. bitwarden.example.com): bitwarden.my.company
(!) Do you want to use Let's Encrypt to generate a free SSL certificate? (y/n): n
(!) Enter the database name for your Bitwarden instance (ex. vault): vault

1.44.1: Pulling from bitwarden/setup
b380bbd43752: Pull complete
17989a3ecce8: Pull complete
ba0a1df0cfae: Pull complete
86d6b47d48e2: Pull complete
dc7f00e0c6ca: Pull complete
6181e0dc7d30: Pull complete
0c37de98dfd4: Pull complete
fc490c5ff95b: Pull complete
64353bf935ca: Pull complete
d2d4a91554c5: Pull complete
Digest: sha256:d06b051e84345232f673bb2a2a9a374fe3ae41b20ac5d8842d3cb0e32e170281
Status: Downloaded newer image for bitwarden/setup:1.44.1
docker.io/bitwarden/setup:1.44.1

(!) Enter your installation id (get at https://bitwarden.com/host): ******

(!) Enter your installation key: *****

(!) Do you have a SSL certificate to use? (y/n): y

!!!!!!!!!! NOTE !!!!!!!!!!
Make sure 'certificate.crt' and 'private.key' are provided in the
appropriate directory before running 'start' (see docs for info).

(!) Is this a trusted SSL certificate (requires ca.crt, see docs)? (y/n): y

Generating key for IdentityServer.
Generating a RSA private key
...................................++++
.......................................++++
writing new private key to 'identity.key'
-----

Building nginx config.
Building docker environment files.
Building docker environment override files.
Building FIDO U2F app id.
Building docker-compose.yml.

Installation complete

If you need to make additional configuration changes, you can modify
the settings in `./bwdata/config.yml` and then run:
`./bitwarden.sh rebuild` or `./bitwarden.sh update`

Next steps, run:
`./bitwarden.sh start`

[email protected]:/opt/bitwarden# cp /bw_cert/* /opt/bitwarden/bwdata/ssl/bitwarden.my.company/
[email protected]:/opt/bitwarden# ./bitwarden.sh start
bitwarden.sh version 1.44.1
Docker version 20.10.11, build dea9396
docker-compose version 1.25.0, build unknown

Pulling mssql         ... done
Pulling web           ... done
Pulling attachments   ... done
Pulling api           ... done
Pulling identity      ... done
Pulling sso           ... done
Pulling admin         ... done
Pulling icons         ... done
Pulling notifications ... done
Pulling events        ... done
Pulling nginx         ... done
Creating directory /opt/bitwarden/bwdata/core
Creating directory /opt/bitwarden/bwdata/core/attachments
Creating directory /opt/bitwarden/bwdata/logs
Creating directory /opt/bitwarden/bwdata/logs/admin
Creating directory /opt/bitwarden/bwdata/logs/api
Creating directory /opt/bitwarden/bwdata/logs/events
Creating directory /opt/bitwarden/bwdata/logs/icons
Creating directory /opt/bitwarden/bwdata/logs/identity
Creating directory /opt/bitwarden/bwdata/logs/mssql
Creating directory /opt/bitwarden/bwdata/logs/nginx
Creating directory /opt/bitwarden/bwdata/logs/notifications
Creating directory /opt/bitwarden/bwdata/logs/sso
Creating directory /opt/bitwarden/bwdata/logs/portal
Creating directory /opt/bitwarden/bwdata/mssql/backups
Creating directory /opt/bitwarden/bwdata/mssql/data
Creating network "docker_default" with the default driver
Creating network "docker_public" with the default driver
Creating bitwarden-api           ... done
Creating bitwarden-mssql         ... done
Creating bitwarden-identity      ... done
Creating bitwarden-sso           ... done
Creating bitwarden-events        ... done
Creating bitwarden-icons         ... done
Creating bitwarden-web           ... done
Creating bitwarden-attachments   ... done
Creating bitwarden-notifications ... done
Creating bitwarden-admin         ... done
Creating bitwarden-nginx         ... done
1.44.1: Pulling from bitwarden/setup
Digest: sha256:d06b051e84345232f673bb2a2a9a374fe3ae41b20ac5d8842d3cb0e32e170281
Status: Image is up to date for bitwarden/setup:1.44.1
docker.io/bitwarden/setup:1.44.1


Bitwarden is up and running!
===================================================

visit https://bitwarden.my.company
to update, run `./bitwarden.sh updateself` and then `./bitwarden.sh update`

Now it really works.
The strange thing is that I am 100% sure I did it the same way like this before (just with an older version of bitwarden 1.43 where the database file also only containe a single quote).

[email protected]:/opt/bitwarden# docker ps
CONTAINER ID   IMAGE                            COMMAND            CREATED         STATUS                   PORTS                                                                                    NAMES
9f5180bf4bf4   bitwarden/nginx:1.44.1           "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)   80/tcp, 0.0.0.0:80->8080/tcp, :::80->8080/tcp, 0.0.0.0:443->8443/tcp, :::443->8443/tcp   bitwarden-nginx
faf457370549   bitwarden/admin:1.44.1           "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)   5000/tcp                                                                                 bitwarden-admin
b4f0e3b35030   bitwarden/notifications:1.44.1   "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)   5000/tcp                                                                                 bitwarden-notifications
fe4ea3648bb8   bitwarden/web:2.24.2             "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)                                                                                            bitwarden-web
02504bc723ed   bitwarden/attachments:1.44.1     "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)                                                                                            bitwarden-attachments
958509ad264f   bitwarden/icons:1.44.1           "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)   5000/tcp                                                                                 bitwarden-icons
8c005de3ef04   bitwarden/events:1.44.1          "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)   5000/tcp                                                                                 bitwarden-events
c051d42372c8   bitwarden/sso:1.44.1             "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)   5000/tcp                                                                                 bitwarden-sso
a46787acb236   bitwarden/identity:1.44.1        "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)   5000/tcp                                                                                 bitwarden-identity
346f1b012016   bitwarden/mssql:1.44.1           "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)                                                                                            bitwarden-mssql
bd9a2e654df7   bitwarden/api:1.44.1             "/entrypoint.sh"   2 minutes ago   Up 2 minutes (healthy)   5000/tcp                                                                                 bitwarden-api