Yeah, I did that a few times myself. Try rolling back to an earlier LLNG config file–they’re in /var/lib/lemonldap-ng/conf/. Just delete (or move out of that directory) the highest-numbered one (or however many there are since you started messing with the settings), restart Apache, and you should be set.
glad you faced similar challenges, was starting to wonder.
now am getting this after removing those files
Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Not sure what would have made you think that was the way ahead, but that’s the reason Apache won’t start. You’ll need to recover at least the lmConf-1.json file, and then re-run the lemon_config.sh script. If you don’t have a saved copy of that file, reinstalling LLNG is the only way I know of to get it.
[root@nethserver-ad opc]# /root/lemon_config.sh
sed: can't read /var/lib/lemonldap-ng/conf/lmConf-1.json: No such file or directory
sed: can't read /var/lib/lemonldap-ng/conf/lmConf-1.json: No such file or directory
sed: can't read /var/lib/lemonldap-ng/conf/lmConf-1.json: No such file or directory
grep: /var/lib/lemonldap-ng/conf/lmConf-1.json: No such file or directory
Adding cfgDate property to lmConf-1.json
sed: can't read /var/lib/lemonldap-ng/conf/lmConf-1.json: No such file or directory
Unable to build Lemonldap::NG::Common::Conf Directory "/var/lib/lemonldap-ng/conf" does not exis t !
Unable to build Lemonldap::NG::Common::Conf Directory "/var/lib/lemonldap-ng/conf" does not exis t !
Unable to build Lemonldap::NG::Common::Conf Directory "/var/lib/lemonldap-ng/conf" does not exis t !
Unable to build Lemonldap::NG::Common::Conf Directory "/var/lib/lemonldap-ng/conf" does not exis t !
Unable to build Lemonldap::NG::Common::Conf Directory "/var/lib/lemonldap-ng/conf" does not exis t !
Unable to build Lemonldap::NG::Common::Conf Directory "/var/lib/lemonldap-ng/conf" does not exis t !
Unable to build Lemonldap::NG::Common::Conf Directory "/var/lib/lemonldap-ng/conf" does not exis t !
Unable to build Lemonldap::NG::Common::Conf Directory "/var/lib/lemonldap-ng/conf" does not exis t !
Job for httpd.service invalid.
Why does it say no File or Directory. and yet its a new installation?
You need to give a lot more specifics about what, exactly, you’ve done. How, for example, did you install it in the first place? If you’d followed the instructions on the wiki, you wouldn’t have had the problem with the yum repo. If you’d followed my instructions to remove the highest-numbered config file, Apache would likely start just fine. And now you say you’ve removed and reinstalled llng–what, exactly, did you remove and reinstall? Using what commands, exactly? Is the /var/lib/lemonldap-ng/conf/ directory present at all?
No, it isn’t–it’s an installation with who-knows-what residual cruft from whatever you’ve done previously with it. And since I know you haven’t been following the docs, I have no idea what that cruft might be.
I restored the server to before llng was installed.
which means to a snaphost of 2 days back. installed llng,
and now when i load the manager page, we are back to the begining. i went to the directy you mentioned, and removed the highest number config, restarted httpd, but same thing.
Since this command is being run in whatever the opc directory is, rather than in /var/lib/lemonldap-ng/conf/, it won’t have any effect on the files there.
I don’t have any idea what “it” would be here. I’m pretty sure the default installation method doesn’t generate 17 versions of the config file, which would mean that you’ve made further edits to it.
A new copy of the config file is saved every time you save config changes. The lemon_config.sh script saves four times, so the “normal” result of a fresh installation would be to have five config files. But any further changes you make, either through the manager or through the LLNG CLI, will result in a new file. On my “production” LLNG box, I have 24. I could delete some of the old ones, but there doesn’t seem to be much point.
Hello @danb35 i managed to install using the enw script you sent.
i am however getting this error on the dashboard page.
Abnormal error from LDAP server