{"id":2839,"date":"2018-10-30T19:14:19","date_gmt":"2018-10-31T00:14:19","guid":{"rendered":"http:\/\/osric.com\/chris\/accidental-developer\/?p=2839"},"modified":"2018-10-30T19:29:15","modified_gmt":"2018-10-31T00:29:15","slug":"ipactl-error-failed-to-start-directory-service-non-zero-exit-status","status":"publish","type":"post","link":"https:\/\/osric.com\/chris\/accidental-developer\/2018\/10\/ipactl-error-failed-to-start-directory-service-non-zero-exit-status\/","title":{"rendered":"ipactl error: Failed to start Directory Service: Command &#8216;\/bin\/systemctl start dirsrv@FREEIPA-OSRIC-NET.service&#8217; returned non-zero exit status 1"},"content":{"rendered":"<p>Earlier today I got an alert that the LDAP service on my FreeIPA server was down. This was not long after I had received another alert that the drive space on the <code>\/var<\/code> partition was critical. I logged on, freed up some drive space, and tried to start the service:<\/p>\n<pre><code>$ sudo ipactl start\r\nStarting Directory Service\r\nFailed to start Directory Service: Command '\/bin\/systemctl start dirsrv@FREEIPA-OSRIC-NET.service' returned non-zero exit status 1<\/code><\/pre>\n<p>I tried running systemctl directly to see the error message:<\/p>\n<pre><code>$ sudo systemctl start dirsrv@FREEIPA-OSRIC-NET.service<\/code><\/pre>\n<p><!--more--><\/p>\n<p>It produced an error again, as expected, so I examined the status message:<\/p>\n<pre><code>$ systemctl -l status dirsrv@FREEIPA-OSRIC-NET.service\r\n\u25cf dirsrv@FREEIPA-OSRIC-NET.service - 389 Directory Server FREEIPA-OSRIC-NET.\r\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/dirsrv@.service; disabled; vendor preset: disabled)\r\n   Active: failed (Result: exit-code) since Tue 2018-10-30 10:41:41 CDT; 27s ago\r\n  Process: 23515 ExecStart=\/usr\/sbin\/ns-slapd -D \/etc\/dirsrv\/slapd-%i -i \/var\/run\/dirsrv\/slapd-%i.pid (code=exited, status=1\/FAILURE)\r\n  Process: 23510 ExecStartPre=\/usr\/sbin\/ds_systemd_ask_password_acl \/etc\/dirsrv\/slapd-%i\/dse.ldif (code=exited, status=0\/SUCCESS)\r\n Main PID: 23515 (code=exited, status=1\/FAILURE)\r\n\r\nOct 30 10:41:41 freeipa.osric.net ns-slapd[23515]: [30\/Oct\/2018:10:41:41.555157141 -0500] - ERR - plugin_dependency_startall - object plugin Roles Plugin is not started\r\nOct 30 10:41:41 freeipa.osric.net ns-slapd[23515]: [30\/Oct\/2018:10:41:41.556541498 -0500] - ERR - plugin_dependency_startall - preoperation plugin sudorule name uniqueness is not started\r\nOct 30 10:41:41 freeipa.osric.net ns-slapd[23515]: [30\/Oct\/2018:10:41:41.557822184 -0500] - ERR - plugin_dependency_startall - preoperation plugin uid uniqueness is not started\r\nOct 30 10:41:41 freeipa.osric.net ns-slapd[23515]: [30\/Oct\/2018:10:41:41.559024594 -0500] - ERR - plugin_dependency_startall - object plugin USN is not started\r\nOct 30 10:41:41 freeipa.osric.net ns-slapd[23515]: [30\/Oct\/2018:10:41:41.560834787 -0500] - ERR - plugin_dependency_startall - object plugin Views is not started\r\nOct 30 10:41:41 freeipa.osric.net ns-slapd[23515]: [30\/Oct\/2018:10:41:41.564809195 -0500] - ERR - plugin_dependency_startall - extendedop plugin whoami is not started\r\nOct 30 10:41:41 freeipa.osric.net systemd[1]: dirsrv@FREEIPA-OSRIC-NET.service: main process exited, code=exited, status=1\/FAILURE\r\nOct 30 10:41:41 freeipa.osric.net systemd[1]: Failed to start 389 Directory Server FREEIPA-OSRIC-NET..\r\nOct 30 10:41:41 freeipa.osric.net systemd[1]: Unit dirsrv@FREEIPA-OSRIC-NET.service entered failed state.\r\nOct 30 10:41:41 freeipa.osric.net systemd[1]: dirsrv@FREEIPA-OSRIC-NET.service failed.<\/code><\/pre>\n<p>Several dependencies the directory server expects to find aren&#8217;t running! I assumed they crashed when the drive ran out of space, so I tried rebooting.<\/p>\n<p>Once the system restarted, I confirmed that the directory server and other FreeIPA services started as expected:<\/p>\n<pre><code>$ sudo ipactl status\r\nDirectory Service: RUNNING\r\nkrb5kdc Service: RUNNING\r\nkadmin Service: RUNNING\r\nhttpd Service: RUNNING\r\nipa-custodia Service: RUNNING\r\nntpd Service: RUNNING\r\npki-tomcatd Service: RUNNING\r\nipa-otpd Service: RUNNING\r\nipa: INFO: The ipactl command was successful<\/code><\/pre>\n<p>That fixed it! Sometimes the most basic troubleshooting steps are enough.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Earlier today I got an alert that the LDAP service on my FreeIPA server was down. This was not long after I had received another alert that the drive space on the \/var partition was critical. I logged on, freed up some drive space, and tried to start the service but ran into an error I&#8217;d never seen before.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[417],"class_list":["post-2839","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-freeipa"],"_links":{"self":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/2839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/comments?post=2839"}],"version-history":[{"count":9,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/2839\/revisions"}],"predecessor-version":[{"id":2851,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/posts\/2839\/revisions\/2851"}],"wp:attachment":[{"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/media?parent=2839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/categories?post=2839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/osric.com\/chris\/accidental-developer\/wp-json\/wp\/v2\/tags?post=2839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}