"Underlying object can't load conf" in v2.0.11
Concerned version
Version: v2.0.11
Platform: Nginx
Summary
LemonLDAP v2.0.11
can't load a configuration that was loading fine with v2.0.9
. It seems related to the LDAP configuration.
Logs
FastCGI: manager (pid 8): open: /var/run/llng-fastcgi-server/llng-fastcgi.pid: No such file or directory
FastCGI: manager (pid 8): initialized
FastCGI: manager (pid 8): server (pid 9) started
FastCGI: server (pid 9): initialized
FastCGI: manager (pid 8): server (pid 10) started
FastCGI: server (pid 10): initialized
FastCGI: manager (pid 8): server (pid 11) started
FastCGI: server (pid 11): initialized
FastCGI: manager (pid 8): server (pid 12) started
FastCGI: server (pid 12): initialized
FastCGI: manager (pid 8): server (pid 13) started
FastCGI: server (pid 13): initialized
FastCGI: manager (pid 8): server (pid 14) started
FastCGI: server (pid 14): initialized
FastCGI: manager (pid 8): server (pid 15) started
FastCGI: server (pid 15): initialized
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Logger Lemonldap::NG::Common::Logger::Std loaded
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] User logger Lemonldap::NG::Common::Logger::Std loaded
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Check configuration for Lemonldap::NG::Handler::PSGI::Main
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Lemonldap::NG::Common::Conf::Backends::File loaded.
Configuration unchanged, get configuration from cache.
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Get configuration 1
[Thu Feb 11 17:12:26 2021] [LLNG:9] [info] Loading configuration 1 for process 9
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Process 9 calls defaultValuesInit
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Process 9 calls jailInit
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Process 9 calls portalInit
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Process 9 calls locationRulesInit
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Process 9 calls sessionStorageInit
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Process 9 calls headersInit
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Process 9 calls postUrlInit
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Process 9 calls aliasInit
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Process 9 calls oauth2Init
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Launching Lemonldap::NG::Handler::FastCGI::Loader->loadCustomHandlers(conf)
[Thu Feb 11 17:12:26 2021] [LLNG:9] [debug] Launching Lemonldap::NG::Portal::Main->reloadConf(conf)
[Thu Feb 11 17:12:26 2021] [LLNG:9] [error] Underlying object can't load conf (Lemonldap::NG::Portal::Main->reloadConf)
Backends used
Here is an example of a configuration that failes to load: https://gitlab.ow2.org/-/snippets/196
Possible fixes
I tried to pinpoint what property was causing the issue but couldn't even with debug mode enabled.
Honest feeback: it is always kind of a pain to debug configuration files, it would be a game changer to have some way to validate a configuration file or to add more logs.