Skip to content

Error database and scan hosts #98

@nadoura

Description

@nadoura

docker logs --since 5m sirius-api
2026/02/19 13:59:51 INFO Initializing PostgreSQL database connection...
2026/02/19 13:59:51 INFO Using environment variables for database connection host=sirius-postgres dbname=sirius user=postgres port=5432
2026/02/19 13:59:51 INFO Connecting to PostgreSQL database...
2026/02/19 13:59:51 INFO Database connection pool configured
2026/02/19 13:59:51 INFO PostgreSQL database connection established
2026/02/19 13:59:51 INFO Initializing database schema...
[DB] 2026/02/19 13:59:57 /go/pkg/mod/github.com/!sirius!scan/go-api@v0.0.15/sirius/postgres/connection.go:280 SLOW SQL >= 1s
[1247.081ms] [rows:0] CREATE TABLE "cve_data_meta" ("id" bigserial,"created_at" timestamptz,"updated_at" timestamptz,"deleted_at" timestamptz,"cve_identifier" text,"assigner" text,"cve_item_id" bigint,PRIMARY KEY ("id"),CONSTRAINT "fk_cve_items_data_meta" FOREIGN KEY ("cve_item_id") REFERENCES "cve_items"("id"))
[DB] 2026/02/19 13:59:57 /go/pkg/mod/github.com/!sirius!scan/go-api@v0.0.15/sirius/postgres/connection.go:280 ERROR: relation "cve_data_meta" does not exist (SQLSTATE 42P01)
[100.083ms] [rows:0] CREATE UNIQUE INDEX IF NOT EXISTS "idx_cve_data_meta_cve_identifier" ON "cve_data_meta" ("cve_identifier")
2026/02/19 13:59:57 WARN Failed to migrate CVE tables error="ERROR: relation "cve_data_meta" does not exist (SQLSTATE 42P01)"
2026/02/19 13:59:57 INFO Database schema initialized successfully

┌───────────────────────────────────────────────────┐
│ Fiber v2.49.2 │
http://127.0.0.1:9001
│ (bound on host 0.0.0.0 and port 9001) │
│ │
│ Handlers ........... 124 Processes ........... 1 │
│ Prefork ....... Disabled PID ................. 1 │
└───────────────────────────────────────────────────┘

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