Skip to content

jellystat_user 'FATAL: database "jellystat_user" does not exist #525

Description

@Jurrer

Describe the bug
Hello, parsing of env variables for DB has some bug, because it tries to find a DB named like db user
I happens on container startup.

jellystat_user 'FATAL: database "jellystat_user" does not exist <- this is a log from Postgres

Here's my current env var config

    environment:
      TZ: ${TZ}
      JWT_SECRET: ${JELLYSTAT_JWT_KEY}
      POSTGRES_USER: jellystat_user
      POSTGRES_PASSWORD: ${JELLYSTAT_PG_PASS}
      POSTGRES_IP: postgresql
      POSTGRES_PORT: 5432
      POSTGRES_DB: jellystat
      MINIMUM_SECONDS_TO_INCLUDE_PLAYBACK: 60

Environment Details (please complete the following information):

  • OS: Docker
  • Jellystat Version 1.1.10

To Reproduce
Steps to reproduce the behavior:

  1. Set up Jellystat with Postgres DB
  2. Launch the container
  3. See first logs

Expected behavior
No error

Container Logs

    at Parser.parseErrorMessage (/app/node_modules/pg-protocol/dist/parser.js:285:98)
    at Parser.handlePacket (/app/node_modules/pg-protocol/dist/parser.js:122:29)
    at Parser.parse (/app/node_modules/pg-protocol/dist/parser.js:35:38)
    at Socket.<anonymous> (/app/node_modules/pg-protocol/dist/index.js:11:42)
    at Socket.emit (node:events:519:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:189:23)
[JELLYSTAT] Database exists. Skipping creation
FS-related option specified for migration configuration. This resets migrationSource to default FsMigrations
FS-related option specified for migration configuration. This resets migrationSource to default FsMigrations```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions