Fresh development setup: auth service fails during migration 0045_agent_schedules_notify_on.sql (relation "agent_schedules" does not exist) · Issue #1351 · nixopus/nixopus · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fresh development setup: auth service fails during migration 0045_agent_schedules_notify_on.sql (relation "agent_schedules" does not exist) #1351
Following the official development setup from the Nixopus documentation, the nixopus-auth container fails to start because the database migration fails.
The auth container enters a restart loop with the following PostgreSQL error:
ERROR: relation "agent_schedules" does not exist
The failing migration is:
ALTERTABLE"agent_schedules"
ADD COLUMN IF NOT EXISTS "notify_on"text DEFAULT 'smart'NOT NULL;
Steps to reproduce
Fresh clone of the repository.
Copy the environment file:
cp .env.sample .env
Start the development dependencies:
docker compose -f docker-compose-dev.yml up -d
Check the auth container logs:
docker logs -f nixopus-auth
Expected behavior
The auth service should complete database migrations successfully and start normally.
Actual behavior
The auth container repeatedly exits because migration 0045_agent_schedules_notify_on.sql fails with:
ERROR: relation "agent_schedules" does not exist
Investigation
I performed the following checks before opening this issue:
Fresh clone of master
Followed the official setup documentation
Used .env generated from .env.sample
Removed all containers, networks and volumes using:
docker compose -f docker-compose-dev.yml down -v
Recreated everything from scratch
PostgreSQL container becomes healthy
Redis container becomes healthy
Caddy starts successfully
Only nixopus-auth fails during migrations
I also checked the auth repository corresponding to the image revision:
Activity
linear commentedon Jul 4, 2026
NIX-320