title | description | sidebar_label | hide_table_of_contents |
---|---|---|---|
Troubleshooting Docker |
A guide for how to troubleshoot your Passbolt instance on Docker |
Docker |
false |
import CodeBlock from '@theme/CodeBlock';
Connect yourself inside passbolt docker container (replace passbolt-container-name with your own):
{`docker exec -ti passbolt-container-name bash`}All troubleshooting commands must be launched as www-data
user. It is the case if you are running non-root docker images but for root images, switch as www-data
user:
su -s /bin/bash www-data
Then to be able to launch some commands, you must retrieve PASSBOLT_GPG_SERVER_KEY_FINGERPRINT
environment variable:
export PASSBOLT_GPG_SERVER_KEY_FINGERPRINT="$(gpg \
--home $GNUPGHOME\
--list-keys \
${PASSBOLT_KEY_EMAIL:-passbolt@yourdomain.com} | \
grep -Ev "^(pub|sub|uid|^$)" | tr -d ' ')"
Alternatively if you are using Docker Secrets you’ll need to run the following to access the secrets as environment variables:
{`source /etc/environment`} {`./bin/cake passbolt healthcheck`}./bin/cake passbolt send_test_email \
--recipient=youremail@domain.com
To connect into mysql container console (replace db-container-name with your own):
docker exec -ti db-container-name bash -c \
'mysql -u${MYSQL_USER} -p${MYSQL_PASSWORD} ${MYSQL_DATABASE}'