No configuration available in fresh LemonLDAP 2.0.12
Concerned version
Version: %2.0.12
Platform: any
Summary
When starting fresh new installation of LemonLDAP::NG, I get:
/usr/share/lemonldap-ng/bin/lmConfigEditor
[...]
[Mon Jul 26 07:43:38 2021] [LLNG:168] [error] No configuration available
[...]
Portal component is crashed too: Initialization failed! Enable debug logs, reload your web server and catch main error...
Logs
This seems due to an update in Handler/Main/Reload.pm
:
sub checkConf {
[...]
$class->logger->debug("Get configuration $conf->{cfgNum}");
- unless ( $class->cfgNum( $conf->{cfgNum} ) ) {
+ unless ( $class->cfgNum( $conf->{cfgNum} )
+ && $class->cfgDate( $conf->{cfgDate} ) )
+ {
$class->logger->error('No configuration available');
But there is no cfgDate parameter in provided ./_example/conf/lmConf-1.json
Possible fixes
Add cfgDate by default in ./_example/conf/lmConf-1.json
I suppose this should be sufficient.
Edited by dcoutadeur dcoutadeur