Files
aliasvault/docs/installation/docker-compose/troubleshooting.md
2026-02-04 21:37:45 +01:00

4.2 KiB

layout, title, parent, nav_order
layout title parent nav_order
default Troubleshooting Docker Compose 3

Troubleshooting

This guide covers common issues and troubleshooting steps for AliasVault encountered during installation, updates or general maintenance.

{: .toc }

  • TOC {:toc}

Check Docker Container Status

For any issues you might encounter, the first step is to check the Docker container health. This will give you a quick insight into the status of the container which will help you identify the root cause of the issue.

1. Check the Docker container running status:

docker compose ps

2. Check the Docker container logs:

docker compose logs

3. Try restarting the Docker container:

docker compose restart

Check AliasVault Text Logs

All AliasVault services log information and errors to text files. These files are located in the logs directory within your AliasVault installation folder.

View logs for a specific service:

cat logs/[service-name].txt

View PostgreSQL logs:

cat logs/postgres/postgres.log

If PostgreSQL failed during initialization, also check:

cat logs/postgres/initdb.log

Common Issues

Below are some common issues you might encounter and how to troubleshoot them.

1. PostgreSQL fails to start

Symptoms:

  • Container fails to start or keeps restarting
  • Error messages about database connection failures
  • Services unable to connect to the database

Steps:

  1. Check the PostgreSQL logs for error details:
cat logs/postgres/postgres.log
  1. If PostgreSQL failed during initialization, check the init logs:
cat logs/postgres/initdb.log
  1. Permission errors: If you see permission-related errors, ensure the database folder has correct permissions for the user running the Docker container.

  2. Corrupted database: If the database appears corrupted, you may need to reinitialize it. Warning: This will delete all data:

# Stop containers first
docker compose down

# Remove the postgres data directory
sudo rm -rf database/postgres/

# Restart containers (will reinitialize the database)
docker compose up -d

2. No emails being received

Symptoms:

  • Aliases not receiving any emails
  • Emails to aliases bounce or timeout

Steps:

  1. Verify DNS records are correctly configured
  2. Ensure ports 25 and 587 are accessible from the internet
  3. Check your server's firewall settings
  4. Verify that your ISP/hosting provider allows SMTP traffic and does not block port 25

Refer to the installation guide for more information on how to configure your DNS records and ports.

3. Admin app not working via your own reverse proxy

Symptoms:

  • Errors after logging into the Admin panel
  • Page loads but becomes unresponsive
  • WebSocket connection errors in browser console

Solution:

If you're accessing the Admin page through your own reverse proxy, ensure the Upgrade header is allowed and forwarded. This is required because the Admin app uses WebSockets for client-server communication.

For nginx, add the following to your configuration:

# Add WebSocket support for Blazor server
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;

4. Forgot AliasVault admin password

Solution:

You can reset the admin password by running the aliasvault reset-admin-password command. This will generate a new random password and update the secret.

  1. SSH into the aliasvault container:
docker compose exec -it aliasvault /bin/bash
  1. Run the reset-admin-password script:
aliasvault reset-admin-password
  1. Note the password displayed, then exit the SSH session (Ctrl+C or type exit) and restart the container:
docker compose restart
  1. You can now log in to the admin panel (/admin) with the new password.

Other Issues

If you encounter any other issues not mentioned here and need help, please join our Discord server or create an issue on the GitHub repository and we will be happy to help you out.

Find all contact information on the contact page of our website: https://www.aliasvault.net/contact