Oddjobd fails to start [FIXED]

I was configuring a new CentOS 6.5 machine to accept Active Directory logins and up until recently you could use the trust pam_mkhomedir.so to auto create home directories on login. This has since been replaced by a new system called Oddjobd and after the standard authconfig tool I enabled the auto create home directories and then Oddjobd fails to start.


[root@host ~]# service oddjobd start
Starting oddjobd:                                          [ FAILED ]

I did a bit of searching and couldn’t find anything in the logs on the machine or on the net with regards to this. So here is the post. Oddjobd requires access to the system message bus (dbus) and when trying to login to the machine with an AD account I got an error message.


org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

This pointed out that the message bus wasn’t working or was broken. So first thing I did was check the status of the messagebus and it wasn’t running. I started up messagebus service and then oddjobd started fine.


[root@host ~]# service messagebus restart
Stopping system message bus:                             [ FAILED ]
Starting system message bus:                               [ OK ]
[root@host ~]# service oddjobd start
Starting oddjobd:                                                      [ OK ]
[root@host ~]#

I was then able to login with my AD user and it auto created the home directory as required .

Comments

16 responses to “Oddjobd fails to start [FIXED]”

  1. Todd Jensen Avatar
    Todd Jensen

    Thanks. First search result and exactly what I needed.

    1. digitalchild Avatar
      digitalchild

      Glad I could help!

  2. Frank Kincell Avatar
    Frank Kincell

    Helped me as well. Thanks!

  3. Thanks a lot! Exactly what I needed! 🙂

  4. POOL-POG Avatar

    just throwing a “thanks” on the pile

  5. spirited Avatar

    Thanks! This helped me too 😀

  6. disqus_IBA3isrH7u Avatar
    disqus_IBA3isrH7u

    Thanks! This helped me.

  7. Thank you so much ! 🙂

  8. Gabriel Enache Avatar
    Gabriel Enache

    thank you!

  9. [FAILED]
    [root@sameer-rmm ~]# service oddjobd restart
    Shutting down oddjobd: [FAILED]
    Starting oddjobd: [FAILED]
    [root@sameer-rmm ~]# service messagebus restart
    messagebus: unrecognized service
    [root@sameer-rmm ~]# serv
    servertool service
    [root@sameer-rmm ~]# service dbus restart
    dbus: unrecognized service
    [root@sameer-rmm ~]# uname -a
    Linux sameer-rmm 2.6.32-573.8.1.el6.x86_64 #1 SMP Tue Nov 10 18:01:38 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
    [root@sameer-rmm ~]#

  10. Andrew Duggan Avatar
    Andrew Duggan

    Thanks Jamie 🙂

  11. Thanks so much 🙂

  12. just encoutered this today. So even after all this time still relevant! 🙂

  13. gsc2000 Avatar
    gsc2000

    Just used the same solution and it worked on Centos 7.5 Core. Many thanks for sharing

  14. Angel Eduardo Porras Avatar
    Angel Eduardo Porras

    You are the man !!! Thanks a lot

  15. nitiratna nikalje Avatar
    nitiratna nikalje

    U must be JESUS!! 😉

    Thank you