Skip to content

Docker install fails on init - ModuleNotFoundError: No module named 'psycopg2' #2305

Description

@FurkanAlev

Hello,

I am trying to install Tactical RMM using Docker with an external PostgreSQL 16 server, but the installation fails.

The tactical-init container gets stuck in a loop with the message: "waiting for postgresql container to be ready...".

After extensive troubleshooting with Gemini Pro, we ran a Python command inside the tactical-init container and found the root cause:
ModuleNotFoundError: No module named 'psycopg2'

This indicates that the required PostgreSQL driver is missing from the Python environment.

Troubleshooting steps taken:

  • Confirmed network connectivity and credentials with a separate psql container on the same network.
  • Verified all environment variables in .env and docker-compose.yml.
  • Tried both latest and 1.2.0 tags for the VERSION variable.
  • Performed a full cleanup (docker compose down, docker volume rm ...) before each attempt to avoid caching issues.

The problem seems to be with the Docker image build.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions