Skip to content

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

@jeritiana

Description

@jeritiana

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions