[389-users] Re: can't start dirsrv-admin service after reboot
Glad you figured it out, but I have no idea how you got into that state. Very odd, but happy it's working now. Regards, Mark On 10/11/18 10:28 PM, DaV wrote: Hi Mark, I resolve this issue now. Thanks again for your help. At first, I want to find missing config files by rerun setup-ds-admin.pl, this is a mistake because it will create a new slapd instance. The correct step is following this link to find the missing files. https://bugzilla.redhat.com/show_bug.cgi?id=1217015 I change /etc/dirsrv/admin-serv/adm.conf to my site info. #diff adm.conf adm.conf.bkp 7,8c7,8 < ldapStart: /usr/sbin/start-dirsrv slapd-389ds < ldapurl: ldap://vdi-ds-1.seczone.com:389/o=NetscapeRoot --- > ldapStart: /usr/sbin/start-dirsrv vdi-ds-1 > ldapurl: ldap://vdi-ds-1.seczone.com:60389/o=NetscapeRoot somehow the dirsrv-admin service don't start. [Fri Oct 12 17:51:52.455771 2018] [:warn] [pid 5365:tid 139683716089984] NSSSessionCacheTimeout is deprecated. Ignoring. [Fri Oct 12 17:51:52.457582 2018] [:crit] [pid 5365:tid 139683716089984] host_ip_init(): PSET failure: Failed to create PSET handle (pset error = ) AH00016: Configuration Failed finally, I find that that the user/group is nobody in /etc/dirsrv/admin-serv/console.conf, so I change it to dirsrv (in my case) and restart the dirsrv-admin service. It works! :) # diff console.conf console.conf.bkp 35,36c35,36 < User dirsrv < Group dirsrv --- > User nobody > Group nobody Sincerely, -- DaV On Tue, Oct 9, 2018, at 07:18, DaV wrote: Hi Mark, Thanks for your reply. In fact, I follow this link and resolve missing config file https://bugzilla.redhat.com/show_bug.cgi?id=1217015 Now, 389ds admin-server can't start normal, either. loginfo: tail -f /var/log/dirsrv/admin-serv/error [Wed Oct 10 05:43:20.564047 2018] [:warn] [pid 3447:tid 140517964691584] NSSSessionCacheTimeout is deprecated. Ignoring. [Wed Oct 10 05:43:20.564598 2018] [:error] [pid 3447:tid 140517964691584] Could not bind as []: ldap error -1: Can't contact LDAP server [Wed Oct 10 05:43:20.564716 2018] [:error] [pid 3447:tid 140517964691584] Could not bind as []: ldap error -1: Can't contact LDAP server [Wed Oct 10 05:43:20.564740 2018] [:warn] [pid 3447:tid 140517964691584] Unable to bind as LocalAdmin to populate LocalAdmin tasks into cache. [Wed Oct 10 05:43:20.564981 2018] [:crit] [pid 3447:tid 140517964691584] host_ip_init(): PSET failure: Failed to create PSET handle (pset error = ) AH00016: Configuration Failed [Wed Oct 10 05:43:20.575067 2018] [:debug] [pid 3447:tid 140517964691584] mod_admserv/mod_admserv.c(2352): mod_admserv_unload: cannot clear cache - NSS not initialized When I exec command: httpd -e debug -E / tmp /output -k start -f /etc/dirsrv/admin-serv/httpd.conf the output is: [Wed Oct 10 05:39:37.127886 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module authz_host_module from /usr/lib64/httpd/modules/mod_authz_host.so [Wed Oct 10 05:39:37.128062 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module auth_basic_module from /usr/lib64/httpd/modules/mod_auth_basic.so [Wed Oct 10 05:39:37.128136 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module authn_file_module from /usr/lib64/httpd/modules/mod_authn_file.so [Wed Oct 10 05:39:37.128210 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module log_config_module from /usr/lib64/httpd/modules/mod_log_config.so [Wed Oct 10 05:39:37.128266 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module env_module from /usr/lib64/httpd/modules/mod_env.so [Wed Oct 10 05:39:37.128339 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module mime_magic_module from /usr/lib64/httpd/modules/mod_mime_magic.so [Wed Oct 10 05:39:37.128393 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module unique_id_module from /usr/lib64/httpd/modules/mod_unique_id.so [Wed Oct 10 05:39:37.128446 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module setenvif_module from /usr/lib64/httpd/modules/mod_setenvif.so [Wed Oct 10 05:39:37.128542 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module mime_module from /usr/lib64/httpd/modules/mod_mime.so [Wed Oct 10 05:39:37.128626 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module negotiation_module from /usr/lib64/httpd/modules/mod_negotiation.so [Wed Oct 10 05:39:37.128680 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module dir_module from /usr/lib64/httpd/modules/mod_dir.so [Wed Oct 10 05:39:37.128744 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module alias_module from /usr/lib64/httpd/modules/mod_alias.so [Wed Oct 10 05:39:37.128827 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module rewrite_module from /usr/lib64/httpd/modules/mod_rewrite.so [Wed Oct 10 05:39:37.128904 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module cgi_module from /usr/lib64/httpd/modules/mod_cgi.so [Wed Oct 10
[389-users] Re: can't start dirsrv-admin service after reboot
Hi Mark, I resolve this issue now. Thanks again for your help. At first, I want to find missing config files by rerun setup-ds- admin.pl, this is a mistake because it will create a new slapd instance. The correct step is following this link to find the missing files. https://bugzilla.redhat.com/show_bug.cgi?id=1217015 I change /etc/dirsrv/admin-serv/adm.conf to my site info. #diff adm.conf adm.conf.bkp 7,8c7,8 < ldapStart: /usr/sbin/start-dirsrv slapd-389ds < ldapurl: ldap://vdi-ds-1.seczone.com:389/o=NetscapeRoot --- > ldapStart: /usr/sbin/start-dirsrv vdi-ds-1 > ldapurl: ldap://vdi-ds-1.seczone.com:60389/o=NetscapeRoot somehow the dirsrv-admin service don't start. [Fri Oct 12 17:51:52.455771 2018] [:warn] [pid 5365:tid 139683716089984] NSSSessionCacheTimeout is deprecated. Ignoring.[Fri Oct 12 17:51:52.457582 2018] [:crit] [pid 5365:tid 139683716089984] host_ip_init(): PSET failure: Failed to create PSET handle (pset error = )AH00016: Configuration Failed finally, I find that that the user/group is nobody in /etc/dirsrv/admin- serv/console.conf, so I change it to dirsrv (in my case) and restart the dirsrv-admin service. It works! :) # diff console.conf console.conf.bkp 35,36c35,36 < User dirsrv < Group dirsrv --- > User nobody > Group nobody Sincerely, -- DaV On Tue, Oct 9, 2018, at 07:18, DaVwrote: > Hi Mark, > Thanks for your reply. > In fact, I follow this link and resolve missing config file > > https://bugzilla.redhat.com/show_bug.cgi?id=1217015 > > Now, 389ds admin-server can't start normal, either. > loginfo: > tail -f /var/log/dirsrv/admin-serv/error > > [Wed Oct 10 05:43:20.564047 2018] [:warn] [pid 3447:tid > 140517964691584] NSSSessionCacheTimeout is deprecated. Ignoring.> [Wed Oct 10 > 05:43:20.564598 2018] [:error] [pid 3447:tid > 140517964691584] Could not bind as []: ldap error -1: Can't contact > LDAP server> [Wed Oct 10 05:43:20.564716 2018] [:error] [pid 3447:tid > 140517964691584] Could not bind as []: ldap error -1: Can't contact > LDAP server> [Wed Oct 10 05:43:20.564740 2018] [:warn] [pid 3447:tid > 140517964691584] Unable to bind as LocalAdmin to populate LocalAdmin > tasks into cache.> [Wed Oct 10 05:43:20.564981 2018] [:crit] [pid 3447:tid > 140517964691584] host_ip_init(): PSET failure: Failed to create PSET > handle (pset error = )> AH00016: Configuration Failed > [Wed Oct 10 05:43:20.575067 2018] [:debug] [pid 3447:tid > 140517964691584] mod_admserv/mod_admserv.c(2352): mod_admserv_unload: > cannot clear cache - NSS not initialized> > > When I exec command: > httpd > -e debug -E / > tmp > /output -k start -f /etc/dirsrv/admin-serv/httpd.conf > > the output is: > > [Wed Oct 10 05:39:37.127886 2018] [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module authz_host_module from > /usr/lib64/httpd/modules/mod_authz_host.so> [Wed Oct 10 05:39:37.128062 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module auth_basic_module from > /usr/lib64/httpd/modules/mod_auth_basic.so> [Wed Oct 10 05:39:37.128136 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module authn_file_module from > /usr/lib64/httpd/modules/mod_authn_file.so> [Wed Oct 10 05:39:37.128210 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module log_config_module from > /usr/lib64/httpd/modules/mod_log_config.so> [Wed Oct 10 05:39:37.128266 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module env_module from > /usr/lib64/httpd/modules/mod_env.so> [Wed Oct 10 05:39:37.128339 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module mime_magic_module from > /usr/lib64/httpd/modules/mod_mime_magic.so> [Wed Oct 10 05:39:37.128393 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module unique_id_module from > /usr/lib64/httpd/modules/mod_unique_id.so> [Wed Oct 10 05:39:37.128446 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module setenvif_module from > /usr/lib64/httpd/modules/mod_setenvif.so> [Wed Oct 10 05:39:37.128542 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module mime_module from > /usr/lib64/httpd/modules/mod_mime.so> [Wed Oct 10 05:39:37.128626 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module negotiation_module from > /usr/lib64/httpd/modules/mod_negotiation.so> [Wed Oct 10 05:39:37.128680 > 2018] [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module dir_module from > /usr/lib64/httpd/modules/mod_dir.so> [Wed Oct 10 05:39:37.128744 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module alias_module from > /usr/lib64/httpd/modules/mod_alias.so> [Wed Oct 10 05:39:37.128827 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module rewrite_module from > /usr/lib64/httpd/modules/mod_rewrite.so> [Wed Oct 10 05:39:37.128904 2018] > [so:debug] [pid 3435] mod_so.c(266): > AH01575: loaded module cgi_module from > /usr/lib64/httpd/modules/mod_cgi.so> [Wed Oct 10 05:39:37.128995 2018] > [so:debug]
[389-users] Re: can't start dirsrv-admin service after reboot
Hi Mark, Thanks for your reply. In fact, I follow this link and resolve missing config file https://bugzilla.redhat.com/show_bug.cgi?id=1217015 Now, 389ds admin-server can't start normal, either. loginfo: tail -f /var/log/dirsrv/admin-serv/error [Wed Oct 10 05:43:20.564047 2018] [:warn] [pid 3447:tid 140517964691584] NSSSessionCacheTimeout is deprecated. Ignoring.[Wed Oct 10 05:43:20.564598 2018] [:error] [pid 3447:tid 140517964691584] Could not bind as []: ldap error -1: Can't contact LDAP server[Wed Oct 10 05:43:20.564716 2018] [:error] [pid 3447:tid 140517964691584] Could not bind as []: ldap error -1: Can't contact LDAP server[Wed Oct 10 05:43:20.564740 2018] [:warn] [pid 3447:tid 140517964691584] Unable to bind as LocalAdmin to populate LocalAdmin tasks into cache.[Wed Oct 10 05:43:20.564981 2018] [:crit] [pid 3447:tid 140517964691584] host_ip_init(): PSET failure: Failed to create PSET handle (pset error = )AH00016: Configuration Failed [Wed Oct 10 05:43:20.575067 2018] [:debug] [pid 3447:tid 140517964691584] mod_admserv/mod_admserv.c(2352): mod_admserv_unload: cannot clear cache - NSS not initialized When I exec command: httpd -e debug -E / tmp/output -k start -f /etc/dirsrv/admin-serv/httpd.conf the output is: [Wed Oct 10 05:39:37.127886 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module authz_host_module from /usr/lib64/httpd/modules/mod_authz_host.so[Wed Oct 10 05:39:37.128062 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module auth_basic_module from /usr/lib64/httpd/modules/mod_auth_basic.so[Wed Oct 10 05:39:37.128136 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module authn_file_module from /usr/lib64/httpd/modules/mod_authn_file.so[Wed Oct 10 05:39:37.128210 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module log_config_module from /usr/lib64/httpd/modules/mod_log_config.so[Wed Oct 10 05:39:37.128266 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module env_module from /usr/lib64/httpd/modules/mod_env.so[Wed Oct 10 05:39:37.128339 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module mime_magic_module from /usr/lib64/httpd/modules/mod_mime_magic.so[Wed Oct 10 05:39:37.128393 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module unique_id_module from /usr/lib64/httpd/modules/mod_unique_id.so[Wed Oct 10 05:39:37.128446 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module setenvif_module from /usr/lib64/httpd/modules/mod_setenvif.so[Wed Oct 10 05:39:37.128542 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module mime_module from /usr/lib64/httpd/modules/mod_mime.so[Wed Oct 10 05:39:37.128626 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module negotiation_module from /usr/lib64/httpd/modules/mod_negotiation.so[Wed Oct 10 05:39:37.128680 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module dir_module from /usr/lib64/httpd/modules/mod_dir.so[Wed Oct 10 05:39:37.128744 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module alias_module from /usr/lib64/httpd/modules/mod_alias.so[Wed Oct 10 05:39:37.128827 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module rewrite_module from /usr/lib64/httpd/modules/mod_rewrite.so[Wed Oct 10 05:39:37.128904 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module cgi_module from /usr/lib64/httpd/modules/mod_cgi.so[Wed Oct 10 05:39:37.128995 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module restartd_module from /usr/lib64/dirsrv/modules/mod_restartd.so[Wed Oct 10 05:39:37.131171 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module nss_module from /usr/lib64/httpd/modules/libmodnss.so[Wed Oct 10 05:39:37.162919 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module admserv_module from /usr/lib64/dirsrv/modules/mod_admserv.so[Wed Oct 10 05:39:37.162946 2018] [:debug] [pid 3435] mod_admserv/mod_admserv.c(2607): [3435] create_server_config [0xbogus %p for (null)[Wed Oct 10 05:39:37.162953 2018] [:debug] [pid 3435] mod_admserv/mod_admserv.c(2595): [3435] create_config [0xbogus %p for (null)[Wed Oct 10 05:39:37.163129 2018] [so:debug] [pid 3435] mod_so.c(266): AH01575: loaded module mpm_worker_module from /usr/lib64/httpd/modules/mod_mpm_worker.so[Wed Oct 10 05:39:37.163220 2018] [so:debug] [pid 3435:tid 140611918878848] mod_so.c(266): AH01575: loaded module access_compat_module from /usr/lib64/httpd/modules/mod_access_compat.so[Wed Oct 10 05:39:37.163292 2018] [so:debug] [pid 3435:tid 140611918878848] mod_so.c(266): AH01575: loaded module authn_core_module from /usr/lib64/httpd/modules/mod_authn_core.so[Wed Oct 10 05:39:37.163371 2018] [so:debug] [pid 3435:tid 140611918878848] mod_so.c(266): AH01575: loaded module authz_core_module from /usr/lib64/httpd/modules/mod_authz_core.so[Wed Oct 10 05:39:37.163445 2018] [so:debug] [pid 3435:tid 140611918878848] mod_so.c(266): AH01575: loaded module authz_user_module from
[389-users] Re: can't start dirsrv-admin service after reboot
On 10/2/18 10:47 PM, DaV wrote: Hi guys, I am facing an issue of can't start dirsrv-admin service after reboot 389ds server. Can anyone help me? Thank in advance. It seems that some files missing after 389ds server reboot. OS: CentOS Linux release 7.5.1804 (Core) Packages: 389-ds-base-1.3.7.5-24.el7_5.x86_64 389-admin-console-doc-1.1.12-1.el7.noarch 389-adminutil-1.1.21-2.el7.x86_64 389-ds-base-libs-1.3.7.5-24.el7_5.x86_64 389-admin-1.1.46-1.el7.x86_64 389-admin-console-1.1.12-1.el7.noarch 389-ds-console-doc-1.2.16-1.el7.noarch 389-ds-1.2.2-6.el7.noarch 389-console-1.1.18-1.el7.noarch 389-ds-console-1.2.16-1.el7.noarch 389-dsgw-1.1.11-5.el7.x86_64 /var/log/dirsrv/admin-serv/error [Mon Oct 01 04:41:14.628926 2018] [mpm_worker:notice] [pid 1515:tid 139888393697408] AH00295: caught SIGTERM, shutting down [Mon Oct 01 20:15:10.124133 2018] [:warn] [pid 1498:tid 140057745549440] NSSSessionCacheTimeout is deprecated. Ignoring. [Tue Oct 02 00:12:12.064065 2018] [:warn] [pid 1506:tid 140717522962560] NSSSessionCacheTimeout is deprecated. Ignoring. [Tue Oct 02 01:24:15.688367 2018] [:warn] [pid 1486:tid 140470383057024] NSSSessionCacheTimeout is deprecated. Ignoring. [Tue Oct 02 01:24:15.764891 2018] [:notice] [pid 1486:tid 140470383057024] Access Host filter is: *.seczone.com [Tue Oct 02 01:24:15.764904 2018] [:notice] [pid 1486:tid 140470383057024] Access Address filter is: * [Tue Oct 02 01:24:15.789117 2018] [:warn] [pid 1487:tid 140470383057024] NSSSessionCacheTimeout is deprecated. Ignoring. [Tue Oct 02 01:24:15.789651 2018] [mpm_worker:notice] [pid 1487:tid 140470383057024] AH00292: Apache/2.4.6 (CentOS) configured -- resuming normal operations [Tue Oct 02 01:24:15.789670 2018] [core:notice] [pid 1487:tid 140470383057024] AH00094: Command line: '/usr/sbin/httpd -f /etc/dirsrv/admin-serv/httpd.conf' [Tue Oct 02 01:24:15.793251 2018] [:notice] [pid 1489:tid 140470383057024] Access Host filter is: *.seczone.com [Tue Oct 02 01:24:15.793278 2018] [:notice] [pid 1489:tid 140470383057024] Access Address filter is: * [Tue Oct 02 02:05:48.933732 2018] [mpm_worker:notice] [pid 1487:tid 140470383057024] AH00295: caught SIGTERM, shutting down systemctl status dirsrv-admin -l ● dirsrv-admin.service - 389 Administration Server. Loaded: loaded (/usr/lib/systemd/system/dirsrv-admin.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2018-10-03 17:34:52 CST; 1h 6min ago Process: 3290 ExecStart=/usr/sbin/httpd -k start -f /etc/dirsrv/admin-serv/httpd.conf (code=exited, status=1/FAILURE) Oct 03 17:34:52 vdi-ds-1 systemd[1]: Starting 389 Administration Server Oct 03 17:34:52 vdi-ds-1 httpd[3290]: httpd: Could not open configuration file /etc/dirsrv/admin-serv/httpd.conf: No such file or directory Does this file exist (/etc/dirsrv/admin-serv/httpd.conf) ? Not sure how this file could disappear, but if it's gone you will need to remove the "389-admin" package and reinstall it. Regards, Mark Oct 03 17:34:52 vdi-ds-1 systemd[1]: dirsrv-admin.service: control process exited, code=exited status=1 Oct 03 17:34:52 vdi-ds-1 systemd[1]: Failed to start 389 Administration Server.. Oct 03 17:34:52 vdi-ds-1 systemd[1]: Unit dirsrv-admin.service entered failed state. Oct 03 17:34:52 vdi-ds-1 systemd[1]: dirsrv-admin.service failed. Sincerely, -- DaV ___ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org ___ 389-users mailing list -- 389-users@lists.fedoraproject.org To unsubscribe send an email to 389-users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org