[Jenkins-infra] openldap is being a little shit

R. Tyler Croy tyler at monkeypox.org
Mon Jul 27 13:34:14 UTC 2015


(replies inline)

On Mon, 27 Jul 2015, R. Tyler Croy wrote:

> 
> After thinking I had put everything back in its place properly earlier, slapd
> decided it didn't want to restart with this error:
> 
>     Jul 27 09:13:49 cucumber slapd[32333]: @(#) $OpenLDAP: slapd 2.4.21 (Dec 19 2011 15:40:04) $#012#011buildd at allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd
>     Jul 27 09:13:50 cucumber slapd[32335]: hdb_db_open: database "dc=jenkins-ci,dc=org" cannot be opened, err 13. Restore from backup!
>     Jul 27 09:13:50 cucumber slapd[32335]: bdb(dc=jenkins-ci,dc=org): txn_checkpoint interface requires an environment configured for the transaction subsystem
>     Jul 27 09:13:50 cucumber slapd[32335]: bdb_db_close: database "dc=jenkins-ci,dc=org": txn_checkpoint failed: Invalid argument (22).
>     Jul 27 09:13:50 cucumber slapd[32335]: backend_startup_one (type=hdb, suffix="dc=jenkins-ci,dc=org"): bi_db_open failed! (13)
>     Jul 27 09:13:50 cucumber slapd[32335]: bdb_db_close: database "dc=jenkins-ci,dc=org": alock_close failed
>     Jul 27 09:13:50 cucumber slapd[32335]: slapd stopped.


I believe I've fixed this, there were some files that got updated with a root
user when I was triaging (read: fucking up) slapd earlier. I had previously
missed seeing these files becaues the /var/lib/ldap directory has a metric ton
of log flies in it that caused me not to notice.


Now I'm back in Confluence-is-unhappy-because-ldap hell, but I'm more
comfortable there :)



> 
> 
> From what I've found on the internet, this will happen if a crash or something
> bad happens (this was definitely my fault) to interrupt the write of a bdb
> file.
> 
> 
> I'm making a copy of the bdb logs for ldap now so I can try some recovery
> tools. Not terrifically thrilled about this.
> 
> 
> - R. Tyler Croy
> 
> ------------------------------------------------------
>      Code: <https://github.com/rtyler>
>   Chatter: <https://twitter.com/agentdero>
> 
>   % gpg --keyserver keys.gnupg.net --recv-key 3F51E16F
> ------------------------------------------------------



> _______________________________________________
> Jenkins-infra mailing list
> Jenkins-infra at lists.jenkins-ci.org
> http://lists.jenkins-ci.org/mailman/listinfo/jenkins-infra


- R. Tyler Croy

------------------------------------------------------
     Code: <https://github.com/rtyler>
  Chatter: <https://twitter.com/agentdero>

  % gpg --keyserver keys.gnupg.net --recv-key 3F51E16F
------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.jenkins-ci.org/pipermail/jenkins-infra/attachments/20150727/d9feb8fc/attachment.asc>


More information about the Jenkins-infra mailing list