1

I deleted /var/lib/sss/db/config.ldb by mistake. Now when I try to start SSSD, I get the following errors:

(Wed Nov 23 11:40:36:059914 2016) [sssd] [check_file] (0x0400): lstat for [/var/run/nscd/socket] failed: [2][No such file or directory].
(Wed Nov 23 11:40:36:061661 2016) [sssd] [ldb] (0x0400): ltdb: tdb(/var/lib/sss/db/config.ldb): tdb_open_ex: could not open file /var/lib/sss/db/config.ldb: No such file or directory

(Wed Nov 23 11:40:36:061686 2016) [sssd] [ldb] (0x0020): Unable to open tdb '/var/lib/sss/db/config.ldb': No such file or directory
(Wed Nov 23 11:40:36:061699 2016) [sssd] [ldb] (0x0020): Failed to connect to '/var/lib/sss/db/config.ldb' with backend 'tdb': Unable to open tdb '/var/lib/sss/db/config.ldb': No such file or directory
(Wed Nov 23 11:40:36:061709 2016) [sssd] [confdb_init] (0x0010): Unable to open config database [/var/lib/sss/db/config.ldb]
(Wed Nov 23 11:40:36:061838 2016) [sssd] [load_configuration] (0x0010): The confdb initialization failed
(Wed Nov 23 11:40:36:061865 2016) [sssd] [main] (0x0020): SSSD couldn't load the configuration database.

How do I restore this file?

Saqib Ali
  • 428
  • 2
  • 7
  • 21
  • Some of the Google hits I am finding suggest that you should just reinstall SSSD, and it will re-create the file. – Zoredache Nov 23 '16 at 18:16
  • @Zoredache, that didn't help :( completely removed sssd and re-installed it. same error. – Saqib Ali Dec 02 '16 at 23:54
  • 2
    Not sure what to suggest. Maybe perform a completely new install of an identical version in a VM and then copy the file? – Zoredache Dec 03 '16 at 02:48
  • Thanks @Zoredache. That worked. I copied from a Ubuntu to a CentOS VM. Worked just fine! :) If you make this a answer, I will accept it as the correct answer – Saqib Ali Dec 07 '16 at 23:33

1 Answers1

5

Try yum reinstall sssd-common, this worked for me.

a2f0
  • 153
  • 1
  • 5