Hello Azure Support Team,
I am running a self-hosted PostgreSQL-based stack on an Azure VM using Docker Compose, and I am blocked by a database authentication issue that appears during initial database bootstrap. I suspect this may be related to filesystem behavior, volume mounts, or permissions on the Azure VM.
Summary of the issue
A PostgreSQL role required by the application (supabase_auth_admin) is created during initial database initialization without a password. This causes all dependent services to fail authentication and continuously restart.
The role is marked as reserved and cannot be modified after creation, so the only way to fix this is a clean and successful database bootstrap — which is not occurring even after a full reset.
Observable symptoms
- PostgreSQL container starts and reports healthy
Multiple dependent containers repeatedly restart due to auth failures
PostgreSQL logs and client logs show:
password authentication failed for user "supabase_auth_admin"
Direct inspection of PostgreSQL system catalog shows:
SELECT rolname, rolpassword IS NOT NULL AS has_password
FROM pg_authid
WHERE rolname = 'supabase_auth_admin';
Result:
supabase_auth_admin | false
What I have already done
Fully stopped and removed all containers and volumes:
docker compose down -v
Manually deleted the PostgreSQL data directory on the VM:
`sudo rm -rf volumes/db/data`
Verified no containers were running before restart
Restarted the database container alone to force clean initialization
Confirmed PostgreSQL initializes cleanly but still creates the role without a password
Verified the role exists and is marked as reserved and unmodifiable
Repeated the entire process multiple times with the same result
Why I suspect an Azure environment issue
The database initializes, but some initialization steps appear to be skipped
This behavior typically occurs if:
A volume mount is partially reused
Filesystem permissions prevent init scripts from executing
The data directory is not truly empty despite deletion
I previously encountered permission inconsistencies on mounted directories (root-owned paths, directories where files were expected)
What I am requesting help with
Verification that the VM disk and filesystem allow full deletion and recreation of PostgreSQL data directories
Confirmation that Docker volume mounts and permissions on this VM do not interfere with container initialization
Guidance on whether any Azure VM, disk, or filesystem settings could cause partial persistence of PostgreSQL system catalogs across restarts
I can provide additional logs, configuration files (with secrets redacted), or VM details if needed.
Thank you for your assistance — this issue is currently blocking deployment.
Kind regards, [Your Name]Hello Azure Support Team,
I am running a self-hosted PostgreSQL-based stack on an Azure VM using Docker Compose, and I am blocked by a database authentication issue that appears during initial database bootstrap. I suspect this may be related to filesystem behavior, volume mounts, or permissions on the Azure VM.
Summary of the issue
A PostgreSQL role required by the application (supabase_auth_admin) is created during initial database initialization without a password. This causes all dependent services to fail authentication and continuously restart.
The role is marked as reserved and cannot be modified after creation, so the only way to fix this is a clean and successful database bootstrap — which is not occurring even after a full reset.
Observable symptoms
PostgreSQL container starts and reports healthy
Multiple dependent containers repeatedly restart due to auth failures
PostgreSQL logs and client logs show:
password authentication failed for user "supabase_auth_admin"
Direct inspection of PostgreSQL system catalog shows:
SELECT rolname, rolpassword IS NOT NULL AS has_password
FROM pg_authid
WHERE rolname = 'supabase_auth_admin';
Result:
supabase_auth_admin | false
What I have already done
Fully stopped and removed all containers and volumes:
docker compose down -v
Manually deleted the PostgreSQL data directory on the VM:
`sudo rm -rf volumes/db/data`
Verified no containers were running before restart
Restarted the database container alone to force clean initialization
Confirmed PostgreSQL initializes cleanly but still creates the role without a password
Verified the role exists and is marked as reserved and unmodifiable
Repeated the entire process multiple times with the same result
Why I suspect an Azure environment issue
The database initializes, but some initialization steps appear to be skipped
This behavior typically occurs if:
A volume mount is partially reused
Filesystem permissions prevent init scripts from executing
The data directory is not truly empty despite deletion
I previously encountered permission inconsistencies on mounted directories (root-owned paths, directories where files were expected)
What I am requesting help with
Verification that the VM disk and filesystem allow full deletion and recreation of PostgreSQL data directories
Confirmation that Docker volume mounts and permissions on this VM do not interfere with container initialization
Guidance on whether any Azure VM, disk, or filesystem settings could cause partial persistence of PostgreSQL system catalogs across restarts
I can provide additional logs, configuration files (with secrets redacted), or VM details if needed.
Thank you for your assistance — this issue is currently blocking deployment.
Kind regards,
Sadeer