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

CronJob failing at MySQL connection #691

Open
adrianwnuk opened this issue Oct 18, 2024 · 1 comment
Open

CronJob failing at MySQL connection #691

adrianwnuk opened this issue Oct 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@adrianwnuk
Copy link

adrianwnuk commented Oct 18, 2024

Chart Name

bookstack

Chart Version

0.17.2

Bug Description

Hello,

Enabled CronJob failing with the same configuration of environment variables as Deployment.

values.yaml

image:
  tag: "version-v24.05.4"
shelfPermissionsCron:
  enabled: true
env:
  APP_URL: "REDACTED"
  DB_HOST: "REDACTED"
  DB_USER: "admin"
  DB_PASS: "REDACTED"
  DB_DATABASE: "bookstack"
  AUTH_METHOD: "ldap"
  LDAP_SERVER: "REDACTED"
  LDAP_BASE_DN: "REDACTED"
  LDAP_DN: "REDACTED"
  LDAP_PASS: "REDACTED"
  LDAP_USER_FILTER: "REDACTED"
  LDAP_EMAIL_ATTRIBUTE: "mail"
  LDAP_USER_TO_GROUPS: true
  LDAP_REMOVE_FROM_GROUPS: false
  APP_VIEWS_BOOKS: "list"
  APP_VIEWS_BOOKSHELVES: "list"

persistence:
  config:
    enabled: true
    retain: true
    storageClass: "gp3-retain"
    size: 1Gi

Relevant log output

Illuminate\Database\QueryException 

  SQLSTATE[HY000] [1045] Access denied for user 'forge'@'10.100.0.35' (using password: YES) (Connection: mysql, SQL: select `id` from `bookshelves` where `bookshelves`.`deleted_at` is null)

  at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829
    825▕                     $this->getName(), $query, $this->prepareBindings($bindings), $e
    826▕                 );
    827▕             }
    828▕ 
  ➜ 829▕             throw new QueryException(
    830▕                 $this->getName(), $query, $this->prepareBindings($bindings), $e
    831▕             );
    832▕         }
    833▕     }

      +19 vendor frames 

  20  /app/www/app/Console/Commands/CopyShelfPermissionsCommand.php:54
      Illuminate\Database\Eloquent\Builder::get()
      +12 vendor frames
@adrianwnuk adrianwnuk added the bug Something isn't working label Oct 18, 2024
@gabe565
Copy link
Owner

gabe565 commented Nov 17, 2024

@adrianwnuk The CronJob should contain all envs that the Deployment gets, so I wonder what's different here. If you run kubectl get cronjob NAME -o yaml, do you see the envs you'd expect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants