Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Postgress lock, schema_version doesn't exist #1617

Open
2 tasks done
maxk001 opened this issue May 14, 2024 · 0 comments
Open
2 tasks done

[Bug]: Postgress lock, schema_version doesn't exist #1617

maxk001 opened this issue May 14, 2024 · 0 comments
Labels
support request request for free support. Check out our support policy

Comments

@maxk001
Copy link

maxk001 commented May 14, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration issue.
  • This issue is not already reported on Github (I've searched it).

Bug description

I have similar error as mentioned in this ticket, but for postgres provider so it may be wort a new ticket: ticket no 330

I tried using bolt, but I cannot as I need to do custom readiness probe cmd later to validate data in regular sql. Not doing it yet, so this extra sql is not a reason of current failure.

Steps to reproduce

  1. Installed sftpgo using sagikazarmark's helm chart
  2. Deployed postgress using cloudnative-pg operator.
  3. Mounted all secrets from newly generates cluster secrets.

Expected behavior

Postgress is bootstraping the app

SFTPGo version

v2.5.4

Data provider

postgres

Installation method

Community Docker image

Configuration

          env:
            - name: SFTPGO_DATA_PROVIDER__DRIVER
              value: postgresql
            - name: SFTPGO_DATA_PROVIDER__NAME
              valueFrom:
                secretKeyRef:
                  name: sftpgo-postgres-app
                  key: dbname
            - name: SFTPGO_DATA_PROVIDER__HOST
              valueFrom:
                secretKeyRef:
                  name: sftpgo-postgres-app
                  key: host
            - name: SFTPGO_DATA_PROVIDER__PORT
              valueFrom:
                secretKeyRef:
                  name: sftpgo-postgres-app
                  key: port
            - name: SFTPGO_DATA_PROVIDER__USERNAME
              valueFrom:
                secretKeyRef:
                  name: sftpgo-postgres-app
                  key: username
            - name: SFTPGO_DATA_PROVIDER__PASSWORD
              valueFrom:
                secretKeyRef:
                  name: sftpgo-postgres-app
                  key: password

Relevant log output

{"level":"debug","time":"2024-05-14T13:27:16.216","sender":"dataprovider_postgresql","message":"postgres database handle created, connection string: \"host='sftpgo-postgres-rw' port='5432' dbname='app' user='app' password='[redacted]' sslmode=disable connect_timeout=10\", pool size: 0"}
{"level":"error","time":"2024-05-14T13:27:16.234","sender":"dataprovider_postgresql","message":"error preparing database query \"SELECT version from schema_version LIMIT 1\": ERROR: relation \"schema_version\" does not exist (SQLSTATE 42P01)"}
{"level":"info","time":"2024-05-14T13:27:16.234","sender":"dataprovider_postgresql","message":"creating initial database schema, version 23"}
{"level":"info","time":"2024-05-14T13:27:16.235","sender":"dataprovider_postgresql","message":"acquired database lock"}
{"level":"error","time":"2024-05-14T13:27:16.236","sender":"dataprovider_postgresql","message":"error preparing database query \"SELECT version from schema_version LIMIT 1\": ERROR: relation \"schema_version\" does not exist (SQLSTATE 42P01)"}

What are you using SFTPGo for?

Professional user, 1 person business, Medium business

Additional info

No response

@maxk001 maxk001 added the bug Something isn't working label May 14, 2024
@drakkan drakkan added support request request for free support. Check out our support policy and removed bug Something isn't working labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support request request for free support. Check out our support policy
Projects
None yet
Development

No branches or pull requests

2 participants