I am in a situation that the Nethserver I use for email had lost power due to someones carelessness this am unplugging the server from the battery. The server came up but is running slow. No users can log in including the admin on all services (Webmail, SOGo and owncloud) as well as user admin cannot log into the admin console. I can however log in as root.
The services list shows
-slapd (openldap) enabled but stopped,
-nslcd (Local LDAP name service) enabled but stopped
-lsm (Link Status Monitor) enabled but stopped (normal operation showed this anyhow)
-fetchmail enables but stopped
I would assume most the problem lays with openldap as when I click on mail quota it says empty table. I have checked all the directories that mail is in and I see the mail there.
The system log for /var/log/slapd show this:
Feb 1 16:31:50 mail slapd[6969]: auxpropfunc error invalid parameter supplied
Feb 1 16:31:50 mail slapd[6969]: _sasl_plugin_load failed on sasl_auxprop_plug_init for plugin: ldapdb
Upon trying to restart slapd from command line it immediately fails. I can view users but cannot edit or change.
I have already tried rebooting as well as restore from the config backup from 2 days ago (when the full backup took place)
My last full backup was from Saturday. I spun up a vm and restored to it and all works. I tried running a restore-config but no dice. Perhaps I should do a restore-data?
I ended up rebuilding the machine and running a restore from backup. I first did this in a VM and found the best way is command line for all restore-config then restore data. The system tends to hang up in the GUI on both the Virtual and Physical. Lessons learned I found the importance of adding inclusive directories for the certificates and all the various rebranding as well as Journaling to an internal account then pop access to external server (I used Gmail) as I lost all emails that were received before the next daily backup. At any rate thanks for trying to help but Im still wondering how the slapd database was up and gone after that reboot. Wasn’t corrupt it is was gone!