Skip to content

ent-prod env reports Invalid database url #2384

Description

@data-sync-user

Sentry Issue: SYNCSTORAGE-RS-HG

panic: called `Result::unwrap()` on an `Err` value: ApiError { kind: Db(DbError { kind: Common(SyncstorageDbError { kind: Internal("Invalid database url: mysql://root@127.0.0.1/syncstorage"), status: 500, backtrace:    0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
 }), status: 500, backtrace:    0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
 }), backtrace:    0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
, status: 500 }
  File "main.rs", line 57, in syncserver::main::{{closure}}
  File "runtime.rs", line 138, in actix_rt::runtime::Runtime::block_on
  File "system.rs", line 240, in actix_rt::system::SystemRunner::block_on
  File "main.rs", line 27, in syncserver::main
  ?, in main
...
(66 additional frame(s) were not displayed)

A recent new release seems to have auto deployed this environment, which then began producing this error. ent-prod was probably originally configured to point to Spanner (never migrated to postgres). I'm not sure why this error started occurring just now.

The ent-stage/prod envs are likely to be decommissioned but in the meantime, we can probably apply a quick fix to stop this event.

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions