Unable to start osa-dispatcher and jabberd services due to following error "db: couldn't open environment: Resource temporarily unavailable" (Doc ID 2299977.1)

Last updated on SEPTEMBER 04, 2017

Applies to:

Linux OS - Version Oracle Linux 6.0 and later
Information in this document applies to any platform.

Symptoms

OSA-dispatcher and jabberd services fails to start / restart due to the below error messages.

 #tailf /var/log/rhn/osa-dispatcher.log:

2017/08/08 15:25:50 -05:00 27470 0.0.0.0: osad/jabber_lib.__init__
2017/08/08 15:25:50 -05:00 27470 0.0.0.0: osad/jabber_lib.connect('ERROR', 'Error connecting to jabber server: Unable to connect to the host and port specified. See https://access.redhat.com/solutions/327903 for more information. ')
2017/08/08 15:25:50 -05:00 27470 0.0.0.0: osad/jabber_lib.print_message('socket error',)
2017/08/08 15:25:50 -05:00 27470 0.0.0.0: osad/jabber_lib.print_message('Could not connect to jabber server', 'spacewalk.xxxx.com')
2017/08/08 15:25:50 -05:00 27470 0.0.0.0: osad/jabber_lib.main('ERROR', 'Error caught:')

# service jabberd restart
Terminating jabberd processes ...
Stopping s2s: [ OK ]
Stopping c2s: [FAILED]
Stopping sm: [FAILED]
Stopping router: [ OK ]
Initializing jabberd processes ...
Starting router: [ OK ]
Starting sm: [ OK ]
Starting c2s: [ OK ]
Starting s2s: [ OK ]

# service jabberd status
router (pid 28270) is running...
sm (pid 28278) is running...
c2s dead but subsys locked <<<<<<<<<<<<< it's dead
s2s (pid 28294) is running...

Error logs from the /var/log/messages file.

Aug 8 16:04:12 spacewalk jabberd/s2s[30842]: shutting down
Aug 8 16:04:12 spacewalk jabberd/s2s[30842]: connection to router closed
Aug 8 16:04:12 spacewalk jabberd/router[30818]: [::1, port=52168] disconnect
Aug 8 16:04:12 spacewalk jabberd/router[30818]: [s2s] default route offline
Aug 8 16:04:12 spacewalk jabberd/router[30818]: [s2s] offline
Aug 8 16:04:19 spacewalk jabberd/router[30818]: shutting down
Aug 8 16:04:20 spacewalk jabberd/router[31573]: starting up
Aug 8 16:04:20 spacewalk jabberd/router[31573]: process id is 31573, written to /var/lib/jabberd/pid/router.pid
Aug 8 16:04:20 spacewalk jabberd/router[31573]: loaded user table (1 users)
Aug 8 16:04:20 spacewalk jabberd/router[31573]: loaded filters (0 rules)
Aug 8 16:04:20 spacewalk jabberd/router[31573]: [::, port=5347] listening for incoming connections
Aug 8 16:04:20 spacewalk jabberd/sm[31581]: starting up
Aug 8 16:04:20 spacewalk jabberd/sm[31581]: process id is 31581, written to /var/lib/jabberd/pid/sm.pid
Aug 8 16:04:20 spacewalk jabberd/sm[31581]: loading 'db' storage module
Aug 8 16:04:20 spacewalk jabberd/c2s[31589]: modules search path: /usr/lib64/jabberd
Aug 8 16:04:20 spacewalk jabberd/c2s[31589]: loading 'db' authreg module
Aug 8 16:04:20 spacewalk jabberd/s2s[31597]: starting up (interval=3, queue=60, keepalive=0, idle=86400)
Aug 8 16:04:20 spacewalk jabberd/s2s[31597]: process id is 31597, written to /var/lib/jabberd/pid/s2s.pid
Aug 8 16:04:20 spacewalk jabberd/s2s[31597]: attempting connection to router at ::1, port=5347
Aug 8 16:04:20 spacewalk jabberd/router[31573]: [::1, port=52495] connect
Aug 8 16:04:20 spacewalk jabberd/router[31573]: [::1, port=52495] authenticated as jabberd@jabberd-router
Aug 8 16:04:20 spacewalk jabberd/s2s[31597]: connection to router established
Aug 8 16:04:20 spacewalk jabberd/router[31573]: [s2s] set as default route
Aug 8 16:04:20 spacewalk jabberd/router[31573]: [s2s] online (bound to ::1, port 52495)
Aug 8 16:04:20 spacewalk jabberd/s2s[31597]: [::, port=5269] listening for connections
Aug 8 16:04:20 spacewalk jabberd/s2s[31597]: ready for connections
Aug 8 16:04:38 spacewalk jabberd/c2s[31589]: db: couldn't open environment: Resource temporarily unavailable
Aug 8 16:04:38 spacewalk jabberd/c2s[31589]: failed to initialize auth module 'db'

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms