* [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env
@ 2007-10-10 9:52 Arnau Bria
2007-10-10 10:08 ` Alexander Reitzel
2007-10-10 13:17 ` Hans-Werner Hilse
0 siblings, 2 replies; 10+ messages in thread
From: Arnau Bria @ 2007-10-10 9:52 UTC (permalink / raw
To: gentoo-user
Hi,
I've posted my question in forums and cyrus list, but I still have no
reply... so, I decided to post here too.
I've updated my cyrus-imapd
and now I'm not able to make it work again. Every time I try to fetch
my mail (using pop3) I get an error in my MUA:
Error occurred while processing mail:
-ERR [SYS/PERM] Error initializing TLS
and I see this in log files:
Oct 5 18:22:21 afrodita pop3[14410]: DBERROR db4: Database handles
still open at environment close Oct 5 18:22:21 afrodita pop3[14410]:
DBERROR db4: Open database handle: /var/imap/tls_sessions.db
This is my imapd.conf:
# grep . /etc/imapd.conf|grep -v "^#"
configdirectory: /var/imap
defaultpartition: default
partition-default: /var/spool/imap
partition-news: /var/spool/cyrus/news
newsspool: /var/spool/news
altnamespace: no
unixhierarchysep: no
lmtp_downcase_rcpt: yes
sievedir: /var/imap/sieve
tls_ca_path: /etc/ssl/postfix
tls_cert_file: /etc/ssl/postfix/newcert.pem
tls_key_file: /etc/ssl/postfix/newkey.pem
tls_ca_file: /etc/ssl/postfix/cacert.pem
admins: cyrus
hashimapspool: yes
allowanonymouslogin: no
allowplaintext: yes
popminpoll: 1
autocreatequota: 0
umask: 027
sasl_mech_list: PLAIN
sasl_minimum_layer: 0
sasl_pwcheck_method: saslauthd
sasl_auxprop_plugin: sasldb
sasl_auto_transition: no
tls_session_timeout: 1440
tls_cipher_list: TLSv1:SSLv3:SSLv2:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
Notice I'm using postfix certs, cause I used:
#tls_cert_file: /etc/ssl/cyrus/newcert.pem
#tls_key_file: /etc/ssl/cyrus/newkey.pem
#tls_ca_file: /etc/ssl/certs/cyrus-imapd-ca.pem
and now /etc/ssl/certs/cyrus-imapd-ca.pem does not exist, but I'm not
sure if this is really important, we're talking about self-generated
self-signed certs... I can generate new ones, but old were fine...
And those are cyrus use:
[ebuild R ] net-mail/cyrus-imapd-2.2.13-r1 USE="ssl tcpd -afs
-drac -idled -kerberos -pam -snmp -unsupported_8bit"
TIA,
--
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env
2007-10-10 9:52 [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env Arnau Bria
@ 2007-10-10 10:08 ` Alexander Reitzel
2007-10-10 13:40 ` Arnau Bria
2007-10-10 13:17 ` Hans-Werner Hilse
1 sibling, 1 reply; 10+ messages in thread
From: Alexander Reitzel @ 2007-10-10 10:08 UTC (permalink / raw
To: gentoo-user
did you also update your db version?
Am Mittwoch, 10. Oktober 2007 11:52:25 schrieb Arnau Bria:
> Hi,
>
> I've posted my question in forums and cyrus list, but I still have no
> reply... so, I decided to post here too.
>
>
> I've updated my cyrus-imapd
> and now I'm not able to make it work again. Every time I try to fetch
> my mail (using pop3) I get an error in my MUA:
>
> Error occurred while processing mail:
> -ERR [SYS/PERM] Error initializing TLS
>
>
> and I see this in log files:
>
> Oct 5 18:22:21 afrodita pop3[14410]: DBERROR db4: Database handles
> still open at environment close Oct 5 18:22:21 afrodita pop3[14410]:
> DBERROR db4: Open database handle: /var/imap/tls_sessions.db
>
>
> This is my imapd.conf:
>
>
> # grep . /etc/imapd.conf|grep -v "^#"
> configdirectory: /var/imap
> defaultpartition: default
> partition-default: /var/spool/imap
> partition-news: /var/spool/cyrus/news
> newsspool: /var/spool/news
> altnamespace: no
> unixhierarchysep: no
> lmtp_downcase_rcpt: yes
> sievedir: /var/imap/sieve
> tls_ca_path: /etc/ssl/postfix
> tls_cert_file: /etc/ssl/postfix/newcert.pem
> tls_key_file: /etc/ssl/postfix/newkey.pem
> tls_ca_file: /etc/ssl/postfix/cacert.pem
> admins: cyrus
> hashimapspool: yes
> allowanonymouslogin: no
> allowplaintext: yes
> popminpoll: 1
> autocreatequota: 0
> umask: 027
> sasl_mech_list: PLAIN
> sasl_minimum_layer: 0
> sasl_pwcheck_method: saslauthd
> sasl_auxprop_plugin: sasldb
> sasl_auto_transition: no
> tls_session_timeout: 1440
> tls_cipher_list: TLSv1:SSLv3:SSLv2:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
>
>
> Notice I'm using postfix certs, cause I used:
>
>
> #tls_cert_file: /etc/ssl/cyrus/newcert.pem
> #tls_key_file: /etc/ssl/cyrus/newkey.pem
> #tls_ca_file: /etc/ssl/certs/cyrus-imapd-ca.pem
>
>
> and now /etc/ssl/certs/cyrus-imapd-ca.pem does not exist, but I'm not
> sure if this is really important, we're talking about self-generated
> self-signed certs... I can generate new ones, but old were fine...
>
> And those are cyrus use:
>
>
> [ebuild R ] net-mail/cyrus-imapd-2.2.13-r1 USE="ssl tcpd -afs
> -drac -idled -kerberos -pam -snmp -unsupported_8bit"
>
>
>
> TIA,
> --
> Arnau Bria
> http://blog.emergetux.net
> Bombing for peace is like fucking for virginity
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env
2007-10-10 9:52 [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env Arnau Bria
2007-10-10 10:08 ` Alexander Reitzel
@ 2007-10-10 13:17 ` Hans-Werner Hilse
2007-10-10 13:41 ` Arnau Bria
1 sibling, 1 reply; 10+ messages in thread
From: Hans-Werner Hilse @ 2007-10-10 13:17 UTC (permalink / raw
To: gentoo-user
Hi,
On Wed, 10 Oct 2007 11:52:25 +0200 Arnau Bria <arnau@emergetux.net>
wrote:
> Error occurred while processing mail:
> -ERR [SYS/PERM] Error initializing TLS
>
>
> and I see this in log files:
>
> Oct 5 18:22:21 afrodita pop3[14410]: DBERROR db4: Database handles
> still open at environment close Oct 5 18:22:21 afrodita pop3[14410]:
> DBERROR db4: Open database handle: /var/imap/tls_sessions.db
Did you try to remove that file? It should probably get recreated on
next start. (Don't kill it now, just move it away for testing and then
try starting Cyrus)
-hwh
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env
2007-10-10 10:08 ` Alexander Reitzel
@ 2007-10-10 13:40 ` Arnau Bria
2007-10-10 14:15 ` Alexander Reitzel
0 siblings, 1 reply; 10+ messages in thread
From: Arnau Bria @ 2007-10-10 13:40 UTC (permalink / raw
To: gentoo-user
On Wed, 10 Oct 2007 12:08:45 +0200
Alexander Reitzel wrote:
> did you also update your db version?
yep.
now I have:
[I] sys-libs/db (4.5.20_p2(4.5)@04/10/07): Oracle Berkeley DB
cheers,
Arnau
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env
2007-10-10 13:17 ` Hans-Werner Hilse
@ 2007-10-10 13:41 ` Arnau Bria
0 siblings, 0 replies; 10+ messages in thread
From: Arnau Bria @ 2007-10-10 13:41 UTC (permalink / raw
To: gentoo-user
On Wed, 10 Oct 2007 15:17:10 +0200
Hans-Werner Hilse wrote:
> Hi,
[...]
>
> Did you try to remove that file? It should probably get recreated on
> next start. (Don't kill it now, just move it away for testing and then
> try starting Cyrus)
Yep, I removed it, and it creates it agian with same error.
> -hwh
Cheers,
Arnau
--
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env
2007-10-10 13:40 ` Arnau Bria
@ 2007-10-10 14:15 ` Alexander Reitzel
2007-10-10 14:25 ` Arnau Bria
0 siblings, 1 reply; 10+ messages in thread
From: Alexander Reitzel @ 2007-10-10 14:15 UTC (permalink / raw
To: gentoo-user
then thats what fucked your whole cyrus databases.
first shut down cyrus, then move /var/imap/db* (backup1, backup2, whatnot..)
to some backup folder ie: /root/cyrus and then restart it.
thats not where the mails are stored, so youll lose no data. the db folders
with everything will be regenerated.
Am Mittwoch, 10. Oktober 2007 15:40:41 schrieb Arnau Bria:
> On Wed, 10 Oct 2007 12:08:45 +0200
>
> Alexander Reitzel wrote:
> > did you also update your db version?
>
> yep.
>
> now I have:
>
> [I] sys-libs/db (4.5.20_p2(4.5)@04/10/07): Oracle Berkeley DB
>
> cheers,
> Arnau
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env
2007-10-10 14:15 ` Alexander Reitzel
@ 2007-10-10 14:25 ` Arnau Bria
2007-10-10 15:52 ` Alexander Reitzel
0 siblings, 1 reply; 10+ messages in thread
From: Arnau Bria @ 2007-10-10 14:25 UTC (permalink / raw
To: gentoo-user
On Wed, 10 Oct 2007 16:15:15 +0200
Alexander Reitzel wrote:
> then thats what fucked your whole cyrus databases.
> first shut down cyrus, then move /var/imap/db* (backup1, backup2,
> whatnot..) to some backup folder ie: /root/cyrus and then restart it.
>
> thats not where the mails are stored, so youll lose no data. the db
> folders with everything will be regenerated.
It has regenerated all folder/files... but I still get the error.
no ssl working...
Cheers,
Arnau
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env
2007-10-10 14:25 ` Arnau Bria
@ 2007-10-10 15:52 ` Alexander Reitzel
2007-10-11 7:54 ` Arnau Bria
0 siblings, 1 reply; 10+ messages in thread
From: Alexander Reitzel @ 2007-10-10 15:52 UTC (permalink / raw
To: gentoo-user
http://forums.gentoo.org/viewtopic-t-499634-highlight-db4.html
does that help?
Am Mittwoch, 10. Oktober 2007 16:25:49 schrieb Arnau Bria:
> On Wed, 10 Oct 2007 16:15:15 +0200
>
> Alexander Reitzel wrote:
> > then thats what fucked your whole cyrus databases.
> > first shut down cyrus, then move /var/imap/db* (backup1, backup2,
> > whatnot..) to some backup folder ie: /root/cyrus and then restart it.
> >
> > thats not where the mails are stored, so youll lose no data. the db
> > folders with everything will be regenerated.
>
> It has regenerated all folder/files... but I still get the error.
>
> no ssl working...
>
> Cheers,
> Arnau
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env
2007-10-10 15:52 ` Alexander Reitzel
@ 2007-10-11 7:54 ` Arnau Bria
2007-10-11 11:44 ` Alexander Reitzel
0 siblings, 1 reply; 10+ messages in thread
From: Arnau Bria @ 2007-10-11 7:54 UTC (permalink / raw
To: gentoo-user
On Wed, 10 Oct 2007 17:52:40 +0200
Alexander Reitzel wrote:
Hi,
> http://forums.gentoo.org/viewtopic-t-499634-highlight-db4.html
> does that help?
no, it doens't!
[...]
Oct 11 11:59:22 afrodita cyr_expire[4377]: expunged 0 out of 0 messages from 0 mailboxes
Oct 11 11:59:22 afrodita ctl_cyrusdb[4378]: checkpointing cyrus databases
Oct 11 11:59:22 afrodita tls_prune[4376]: tls_prune: purged 0 out of 0 entries
Oct 11 11:59:22 afrodita ctl_cyrusdb[4378]: done checkpointing cyrus databases
Oct 11 11:59:37 afrodita pop3[4383]: DBERROR db4: Database handles still open at environment close
Oct 11 11:59:37 afrodita pop3[4383]: DBERROR db4: Open database handle: /var/imap/tls_sessions.db
[...]
I use the STARTTLS option in my MUA... but I always get the error...
# imtest -a arnau -w XXXXXX -m login localhost
S: * OK afrodita Cyrus IMAP4 v2.2.13-Gentoo server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS LISTEXT LIST-SUBSCRIBED X-NETSCAPE
S: C01 OK Completed
C: L01 LOGIN arnau {8}
S: + go ahead
C: <omitted>
S: L01 OK User logged in
Authenticated.
Security strength factor: 0
Cheers,
--
Arnau Bria
http://blog.emergetux.net
Bombing for peace is like fucking for virginity
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env
2007-10-11 7:54 ` Arnau Bria
@ 2007-10-11 11:44 ` Alexander Reitzel
0 siblings, 0 replies; 10+ messages in thread
From: Alexander Reitzel @ 2007-10-11 11:44 UTC (permalink / raw
To: gentoo-user
Im sorry I cant help :/
Am Donnerstag, 11. Oktober 2007 09:54:54 schrieb Arnau Bria:
> On Wed, 10 Oct 2007 17:52:40 +0200
> Alexander Reitzel wrote:
>
> Hi,
>
> > http://forums.gentoo.org/viewtopic-t-499634-highlight-db4.html
> > does that help?
>
> no, it doens't!
>
> [...]
> Oct 11 11:59:22 afrodita cyr_expire[4377]: expunged 0 out of 0 messages
> from 0 mailboxes Oct 11 11:59:22 afrodita ctl_cyrusdb[4378]: checkpointing
> cyrus databases Oct 11 11:59:22 afrodita tls_prune[4376]: tls_prune: purged
> 0 out of 0 entries Oct 11 11:59:22 afrodita ctl_cyrusdb[4378]: done
> checkpointing cyrus databases Oct 11 11:59:37 afrodita pop3[4383]: DBERROR
> db4: Database handles still open at environment close Oct 11 11:59:37
> afrodita pop3[4383]: DBERROR db4: Open database handle:
> /var/imap/tls_sessions.db [...]
>
> I use the STARTTLS option in my MUA... but I always get the error...
>
>
> # imtest -a arnau -w XXXXXX -m login localhost
> S: * OK afrodita Cyrus IMAP4 v2.2.13-Gentoo server ready
> C: C01 CAPABILITY
> S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
> NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY
> SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS
> LISTEXT LIST-SUBSCRIBED X-NETSCAPE S: C01 OK Completed
> C: L01 LOGIN arnau {8}
> S: + go ahead
> C: <omitted>
> S: L01 OK User logged in
> Authenticated.
> Security strength factor: 0
>
>
> Cheers,
>
> --
> Arnau Bria
> http://blog.emergetux.net
> Bombing for peace is like fucking for virginity
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-10-11 12:07 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-10 9:52 [gentoo-user] cyrus-imapd: DBERROR db4: Database handles still open at env Arnau Bria
2007-10-10 10:08 ` Alexander Reitzel
2007-10-10 13:40 ` Arnau Bria
2007-10-10 14:15 ` Alexander Reitzel
2007-10-10 14:25 ` Arnau Bria
2007-10-10 15:52 ` Alexander Reitzel
2007-10-11 7:54 ` Arnau Bria
2007-10-11 11:44 ` Alexander Reitzel
2007-10-10 13:17 ` Hans-Werner Hilse
2007-10-10 13:41 ` Arnau Bria
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox