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

[runix/pgadmin4] Internal server error #134

Open
Iamafirestarter opened this issue Jan 21, 2022 · 2 comments
Open

[runix/pgadmin4] Internal server error #134

Iamafirestarter opened this issue Jan 21, 2022 · 2 comments

Comments

@Iamafirestarter
Copy link

The issue is that after enabling ouath2, Pgadmin crashes with the 500 error and the following in the logs:

File "/pgadmin4/pgadmin/utils/session.py", line 270, in put
dump(
_pickle.PicklingError: Can't pickle <class 'wtforms.form.Meta'>: attribute lookup Meta on wtforms.form failed

@rowanruseler
Copy link
Owner

Apologies for the late reply, can you provide me an overview of your values file?

@guyguy333
Copy link

@rowanruseler Having similar issue. Here are files:

values.yaml:

serviceAccount:
  create: true

serverDefinitions:
  enabled: true
  servers:
    # xxxx

networkPolicy:
  enabled: false

ingress:
  enabled: true
  hosts:
    - host: pgadmin.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - hosts:
        - pgadmin.example.com

extraSecretMounts:
  - name: config-local
    secret: pgadmin4-config-local
    subPath: config_local.py
    mountPath: "/pgadmin4/config_local.py"
    readOnly: true

persistentVolume:
  enabled: true
  size: 1Gi

config-local secret:

kind: Secret
apiVersion: v1
metadata:
  name: pgadmin4-config-local
type: Opaque
stringData:
  config_local.py: |-
    MASTER_PASSWORD_REQUIRED = True
    AUTHENTICATION_SOURCES = ['oauth2']
    OAUTH2_AUTO_CREATE_USER = True
    OAUTH2_CONFIG = [
      {
          'OAUTH2_NAME': 'authentik',
          'OAUTH2_DISPLAY_NAME': 'Authentik',
          'OAUTH2_CLIENT_ID': 'xxxxxx',
          'OAUTH2_CLIENT_SECRET': 'xxxxx',
          'OAUTH2_TOKEN_URL': 'https://sso.example.com/application/o/token/',
          'OAUTH2_AUTHORIZATION_URL': 'https://sso.example.com/application/o/authorize/',
          'OAUTH2_API_BASE_URL': 'https://sso.example.com/',
          'OAUTH2_USERINFO_ENDPOINT': 'https://sso.example.com/application/o/userinfo/',
          'OAUTH2_SCOPE': 'openid email profile'
      }
    ]

Chart version: 1.9.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants