Skip to content

bug: one-click hosted installs (DigitalOcean 1-Click first) create new instances on SQLite after its end-of-support — bundle PostgreSQL in the hosted compose #3159

Closed

Description

@obasilakis

Summary

Every new DigitalOcean 1-Click droplet starts on SQLite. SQLite reached end-of-support on 2026-09-01 (#1278), so each new install is born on a backend that no longer receives schema migrations or fixes, and will need a data migration that has no tooling today.

Fresh hosted installs must run on a bundled PostgreSQL by default.

Cause

  • src/backend/db/engine.py falls back to SQLite at /data/trinity.db whenever DATABASE_URL is unset.
  • docker-compose.hosted.yml passes DATABASE_URL=${DATABASE_URL:-} (empty by default) and has no postgres service. Its comment says a Postgres URL must point at an operator-managed database.
  • Nothing under packer/digitalocean/ (provision, firstboot, .env writing) and nothing in start.sh --hosted sets DATABASE_URL.

Scope: the shared hosted path, not the DO image alone

DigitalOcean is where this was found, but every one-click channel converges on the same two pieces:

Channel Path
DigitalOcean 1-Click firstboot.sh → start.sh --provision --cloud digitalocean --site-only --hosted --unattended
AWS AMI / CloudFormation (#3004) the same firstboot.sh → start.sh ... --cloud aws ... --hosted
Vultr imageless (#2282) vultr-vendor-data.sh → start.sh --provision
Hostinger button / Dokploy (#2283) docker-compose.hosted.yml directly, no start.sh

Fix it once in docker-compose.hosted.yml + start.sh --hosted; every channel inherits it. The DO-specific work is the rebuild and resubmission.

Acceptance Criteria

Out of scope

  • Migrating droplets already deployed on SQLite. No SQLite→PostgreSQL data-copy tool exists; that needs its own ticket.
  • Changing the code-level default in engine.py or the dev docker-compose.yml.

Related

Parent: #2332. Same decision for the ops provisioning skills: abilityai/trinity-ops-agent#380. Channel tickets: #3004 (AWS), #2282 (Vultr), #2283 (Hostinger/Dokploy), #835 (GCP/Hetzner). Snapshot automation: abilityai/trinity-enterprise#648.

Activity

  1. added
    priority-p1
    type-bug
    theme-infrastructure
    complexity-medium
    status-ready
    on Oct 1, 2026
  2. self-assigned this
    on Oct 1, 2026
  3. removed
    status-ready
    on Oct 1, 2026
  4. obasilakis commented on Oct 1, 2026

    @obasilakis
    ContributorAuthor

    /claim

  5. github-actions commented on Oct 1, 2026

    @github-actions

    @obasilakis This issue is already assigned to obasilakis. Use /unclaim first if you want to take over.

  6. added
    status-in-dev
    on Oct 1, 2026
  7. removed
    status-in-dev
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-mediumpriority-p1theme-infrastructuretype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions