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

Uncaught Exception RuntimeException: You must create a security key. #47

Open
jeritiana opened this issue Dec 1, 2022 · 0 comments
Open

Comments

@jeritiana
Copy link

Hi all,

I migrated a host installation into Docker using this image. It works well, except for the fact that each time the container is restarted or redeployed (e.g.: add a new volume into Docker Compose), I have this error message:

[2022-12-01 12:07:11] glpiphplog.CRITICAL:   *** Uncaught Exception RuntimeException: You must create a security key, see glpi:security:change_key command. in /var/www/html/inc/glpikey.class.php at line 120
  Backtrace :
  inc/toolbox.class.php:347                          GLPIKey->get()
  inc/toolbox.class.php:286                          Toolbox::getGlpiSecKey()
  inc/authldap.class.php:1460                        Toolbox::sodiumDecrypt()
  front/authldap.form.php:78                         AuthLDAP::testLDAPConnection()

The fix is to:

  1. Run /var/www/html/bin/console glpi:security:change_key
  2. Then update the LDAP passwords on all directory configurations.

Is there a way to prevent this? For me, one of the main purposes of using Docker is to be able to quickly change the configuration, or stop-backup-restart, etc. Currently, each container modification implies heavy reconfiguration.

Thanks!

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

1 participant