Skip to content

plain dev sends shutdown request as soon as started #44

Open
@avycado13

Description

@avycado13

When I run Plain dev it just starts and immediately acts like it got shutdown

plain dev
Automatically set PLAIN_CSRF_TRUSTED_ORIGINS=["https://app.localhost:8443"]
Automatically set PLAIN_ALLOWED_HOSTS=["app.localhost"]

✔ Preflight check identified no issues.

Starting services...
08:24:35 system   | postgres started (pid=49417)
08:24:35 postgres | 
08:24:35 postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
08:24:35 postgres | 
08:24:35 postgres | 2025-06-05 13:24:35.977 UTC [1] LOG:  starting PostgreSQL 15.13 (Debian 15.13-1.pgdg120+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
08:24:35 postgres | 2025-06-05 13:24:35.977 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
08:24:35 postgres | 2025-06-05 13:24:35.977 UTC [1] LOG:  listening on IPv6 address "::", port 5432
08:24:35 postgres | 2025-06-05 13:24:35.978 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
08:24:35 postgres | 2025-06-05 13:24:35.981 UTC [30] LOG:  database system was shut down at 2025-06-05 13:24:10 UTC
08:24:35 postgres | 2025-06-05 13:24:35.987 UTC [1] LOG:  database system is ready to accept connections
Database ready: default
Operations to perform:
  Apply all migrations: ai, bots, memories, plainflags, plainoauth, plainsessions, users
  No migrations to apply.

Starting app...
08:24:36 system   | plain started (pid=49425)
08:24:36 system   | tailwind started (pid=49424)
08:24:36 plain    | [49425] [INFO] Starting gunicorn 23.0.0
08:24:36 plain    | [49425] [INFO] Listening at: https://127.0.0.1:8443 (49425)
08:24:36 plain    | [49425] [INFO] Using worker: gthread
08:24:36 plain    | [49426] [INFO] Booting worker with pid: 49426
08:24:36 tailwind | Tailwind already installed
08:24:36 tailwind | Compiling tailwind.css to app/assets/tailwind.min.css...
08:24:36 system   | tailwind stopped (rc=247)
08:24:36 system   | sending SIGTERM to postgres (pid 49417)
08:24:36 system   | sending SIGTERM to plain (pid 49425)
08:24:36 plain    | [49425] [INFO] Handling signal: term
08:24:36 postgres | 2025-06-05 13:24:36.983 UTC [1] LOG:  received smart shutdown request
08:24:36 postgres | 2025-06-05 13:24:36.986 UTC [1] LOG:  background worker "logical replication launcher" (PID 33) exited with exit code 1
08:24:36 postgres | 2025-06-05 13:24:36.986 UTC [28] LOG:  shutting down
08:24:36 postgres | 2025-06-05 13:24:36.987 UTC [28] LOG:  checkpoint starting: shutdown immediate
08:24:36 postgres | 2025-06-05 13:24:36.990 UTC [28] LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.001 s, sync=0.001 s, total=0.004 s; sync files=2, longest=0.001 s, average=0.001 s; distance=0 kB, estimate=0 kB
08:24:36 postgres | 2025-06-05 13:24:36.993 UTC [1] LOG:  database system is shut down
08:24:37 system   | postgres stopped (rc=0)
08:24:37 plain    | [49426] [INFO] Worker exiting (pid: 49426)
08:24:38 plain    | [49425] [INFO] Shutting down: Master
08:24:38 system   | plain stopped (rc=0)```

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