Gnus development mailing list
 help / color / mirror / Atom feed
* Fatal error: No such file... closed GnuTLS connection, two nnimap processes
@ 2010-10-06 19:23 JJ
  2010-10-07 20:13 ` Lars Magne Ingebrigtsen
  2010-10-11 18:24 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 10+ messages in thread
From: JJ @ 2010-10-06 19:23 UTC (permalink / raw)
  To: ding

Am having problems running the latest git checkout.

Clean ~/.emacs with only:
(add-to-list 'load-path "~/0/elisp/no-gnus/lisp")
(require 'gnus-load)
(setq gnus-select-method '(nnimap "mail.hcoop.net"))

No stale ~/News or ~/.neswrc*

M-x gnus

*Messages*:
For information about GNU Emacs and the GNU system, type C-h C-a.
First time agent user, agentizing remote groups...
Opening TLS connection to `mail.hcoop.net'...
Opening TLS connection with `gnutls-cli --insecure -p imaps
mail.hcoop.net'...done
Opening TLS connection to `mail.hcoop.net'...done
Saving file /home/jj/.newsrc-dribble...
Wrote /home/jj/.newsrc-dribble [2 times]
Gnus auto-save file exists.  Do you want to read it? (y or n) 
Reading active file from mail.hcoop.net via nnimap...done
Opening nnimap server on mail.hcoop.net...
Opening TLS connection to `mail.hcoop.net'...
Opening TLS connection with `gnutls-cli --insecure -p imaps
mail.hcoop.net'...done
Opening TLS connection to `mail.hcoop.net'...done
Opening nnimap server on mail.hcoop.net...done
First time user; subscribing you to default groups
Opening nndoc server on gnus-help...done
`A k' to list killed groups
Checking new news...done
Setting up drafts group
Warning: Setting up drafts group; First time agent user, agentizing remote
groups...
Making completion list...
Mark set

gnus-subscribe-newsgroup-method: 
gnus-subscribe-zombies as that is automatically selected for first time run
I guess.

Why does it open two imap processes? Well, seems to be an error in the
first one:

*nnimap mail.hcoop.net nil  *nntpd**:
* LIST (\Marked \HasNoChildren) "." "shared.SpamAssassin.SiteHam"

* LIST (\Marked \HasNoChildren) "." "shared.SpamAssassin.SiteSpam"

* LIST (\Marked \HasNoChildren) "." "INBOX.list.gnu-emacs-sources"

...
* LIST (\Unmarked \HasNoChildren) "." "INBOX.list.gnu-emacs-help"

...
* LIST (\Marked \HasChildren) "." "INBOX"

...
3 OK LIST completed

* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)

* OK [PERMANENTFLAGS ()] No permanent flags permitted

* 2 EXISTS

* 2 RECENT

* OK [UIDVALIDITY 1268635723] Ok

* OK [MYRIGHTS "dilrsw"] ACL

4 OK [READ-ONLY] Ok

* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)

* OK [PERMANENTFLAGS ()] No permanent flags permitted

* 74 EXISTS

* 72 RECENT

* OK [UIDVALIDITY 1268635726] Ok

* OK [MYRIGHTS "dilrsw"] ACL

5 OK [READ-ONLY] Ok

* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)

* OK [PERMANENTFLAGS ()] No permanent flags permitted

* 6 EXISTS

* 2 RECENT

* OK [UIDVALIDITY 1274349543] Ok

* OK [MYRIGHTS "acdilrsw"] ACL

6 OK [READ-ONLY] Ok

* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)

* OK [PERMANENTFLAGS ()] No permanent flags permitted

* 0 EXISTS

* 0 RECENT

* OK [UIDVALIDITY 1274193355] Ok

* OK [MYRIGHTS "acdilrsw"] ACL

7 OK [READ-ONLY] Ok

* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)

* OK [PERMANENTFLAGS ()] No permanent flags permitted

* 1 EXISTS

* 0 RECENT

* OK [UIDVALIDITY 1274181471] Ok

* OK [MYRIGHTS "acdilrsw"] ACL

8 OK [READ-ONLY] Ok

* BYE [ALERT] Fatal error: No such file or directory

- Peer has closed the GnuTLS connection

Process *nnimap* finished


What's the fatal error about?

*nnimap mail.hcoop.net nil  *nntpd**<2>:
29 OK LOGIN Ok.


*imap log*:
23:07:58 1 CAPABILITY

23:07:58 2 LOGIN "XXXXXXXXXXXXXXXXX" "XXXXXXXXXXXXXXXXXXXXXX"

23:08:00 3 LIST "" "*"

...
23:08:00 6 EXAMINE "INBOX.list.gnu-emacs-sources"

...
23:08:00 9 EXAMINE "INBOX.list.gnu-emacs-help"

...
23:08:00 25 EXAMINE "INBOX.list.ding.gnus.org"

23:08:00 26 EXAMINE "INBOX.list.debbugs.gnu.org"

23:08:00 27 EXAMINE "INBOX"

23:08:01 28 CAPABILITY

23:08:01 29 LOGIN "XXXXXXXXXXXXXXXX" "XXXXXXXXXXXXXXXXXXXXX"


*gnus trace*:
23:07:55 (nnimap "mail.hcoop.net")
23:08:00 (nnimap "mail.hcoop.net")
23:08:02 (nndoc "gnus-help" (nndoc-address
"/usr/share/emacs/24.0.50/etc/gnus-tut.txt") (nndoc-article-type mbox))

What's the problem? Is this an hcoop.net misconfig?
--
JJ





^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fatal error: No such file... closed GnuTLS connection, two nnimap processes
  2010-10-06 19:23 Fatal error: No such file... closed GnuTLS connection, two nnimap processes JJ
@ 2010-10-07 20:13 ` Lars Magne Ingebrigtsen
  2010-10-10 18:54   ` JJ
  2010-10-11 18:24 ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-07 20:13 UTC (permalink / raw)
  To: ding

JJ <ding_gnus.org@sumou.com> writes:

> * BYE [ALERT] Fatal error: No such file or directory
>
> - Peer has closed the GnuTLS connection
>
> Process *nnimap* finished
>
> What's the fatal error about?

It's an error message from your server, so it's not something Gnus
output. 

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fatal error: No such file... closed GnuTLS connection, two nnimap processes
  2010-10-07 20:13 ` Lars Magne Ingebrigtsen
@ 2010-10-10 18:54   ` JJ
  2010-10-10 20:46     ` Lars Magne Ingebrigtsen
  2010-10-11 13:02     ` Ted Zlatanov
  0 siblings, 2 replies; 10+ messages in thread
From: JJ @ 2010-10-10 18:54 UTC (permalink / raw)
  To: ding

> It's an error message from your server, so it's not something Gnus
> output.

I'm not too familiar with IMAP, is there some verbosity setting I can set,
to trace which IMAP command the server is responding to with the "No such
file" error, so that I may trace what's wrong in my server setup? I'd like
to use No Gnus, however would like to keep my old mail etc. and not have
to set up everything from scratch on the mail server side...
--
JJ




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fatal error: No such file... closed GnuTLS connection, two nnimap processes
  2010-10-10 18:54   ` JJ
@ 2010-10-10 20:46     ` Lars Magne Ingebrigtsen
  2010-10-11 13:02     ` Ted Zlatanov
  1 sibling, 0 replies; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-10 20:46 UTC (permalink / raw)
  To: ding

"JJ" <ding_gnus.org@sumou.com> writes:

> I'm not too familiar with IMAP, is there some verbosity setting I can set,
> to trace which IMAP command the server is responding to with the "No such
> file" error, so that I may trace what's wrong in my server setup? I'd like
> to use No Gnus, however would like to keep my old mail etc. and not have
> to set up everything from scratch on the mail server side...

Your conversation with the server ends with:

* BYE [ALERT] Fatal error: No such file or directory

I have no idea where to begin debugging that.  Anybody?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fatal error: No such file... closed GnuTLS connection, two nnimap processes
  2010-10-10 18:54   ` JJ
  2010-10-10 20:46     ` Lars Magne Ingebrigtsen
@ 2010-10-11 13:02     ` Ted Zlatanov
  1 sibling, 0 replies; 10+ messages in thread
From: Ted Zlatanov @ 2010-10-11 13:02 UTC (permalink / raw)
  To: ding

On Sun, 10 Oct 2010 14:54:48 -0400 (EDT) "JJ" <ding_gnus.org@sumou.com> wrote: 

>> It's an error message from your server, so it's not something Gnus
>> output.

J> I'm not too familiar with IMAP, is there some verbosity setting I can set,
J> to trace which IMAP command the server is responding to with the "No such
J> file" error, so that I may trace what's wrong in my server setup? I'd like
J> to use No Gnus, however would like to keep my old mail etc. and not have
J> to set up everything from scratch on the mail server side...

You can run some IMAP servers from the command line (at least Courier)
and they'll authenticate as you.  So then you can just feed them IMAP
commands (and you can find the sequence of commands that trigger the
error from your log).  I don't know if that will work for you but hope so.

Ted





^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fatal error: No such file... closed GnuTLS connection, two nnimap processes
  2010-10-06 19:23 Fatal error: No such file... closed GnuTLS connection, two nnimap processes JJ
  2010-10-07 20:13 ` Lars Magne Ingebrigtsen
@ 2010-10-11 18:24 ` Lars Magne Ingebrigtsen
  2010-10-12  1:25   ` JJ
  1 sibling, 1 reply; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-11 18:24 UTC (permalink / raw)
  To: ding

JJ <ding_gnus.org@sumou.com> writes:

> * BYE [ALERT] Fatal error: No such file or directory
>
> - Peer has closed the GnuTLS connection

What Emacs version are you using?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fatal error: No such file... closed GnuTLS connection, two nnimap processes
  2010-10-11 18:24 ` Lars Magne Ingebrigtsen
@ 2010-10-12  1:25   ` JJ
  2010-10-12 12:36     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 10+ messages in thread
From: JJ @ 2010-10-12  1:25 UTC (permalink / raw)
  To: ding

> What Emacs version are you using?

GNU Emacs 24.0.50.1~bzr99756

It's the same with the latest bzr pull though.

I set up a clean testing IMAP mailbox on hcoop.net to see if it could be
some existing IMAP mailbox misconfig.

Now the Inbox is empty and there's no other folders, I have not sent a
single message to/from this account.

I get the same errors with this setup.

*imap log*
=====
07:11:54 1 CAPABILITY

07:12:11 2 LOGIN "XXX" "XXX"

07:12:11 3 LIST "" "*"

07:12:12 4 EXAMINE "INBOX"

07:12:14 5 CAPABILITY

07:12:14 6 LOGIN "XXX" "XXX"

07:12:14 7 LIST "" "*"

07:12:14 8 SELECT "INBOX"

07:12:14 9 UID FETCH 1:* FLAGS
=====

*nnimap mail.hcoop.net nil *nntpd**
=====
* LIST (\Unmarked \HasNoChildren) "." "INBOX"

3 OK LIST completed

* BYE [ALERT] Fatal error: No such file or directory

- Peer has closed the GnuTLS connection

Process *nnimap* finished
=====

*nnimap mail.hcoop.net nil *nntpd**<2>
=====
* BYE [ALERT] Fatal error: No such file or directory

- Peer has closed the GnuTLS connection

Process *nnimap*<1> finished
=====

*Messages*
=====
Reading /home/jj/.newsrc.eld...
Reading active file via nnnil...done
Reading active file from mail.hcoop.net via nnimap...
Opening nnimap server on mail.hcoop.net...
Opening TLS connection to `mail.hcoop.net'...
Opening TLS connection with `gnutls-cli --insecure -p imaps
mail.hcoop.net'...done
Opening TLS connection to `mail.hcoop.net'...done
Do you want to save this password in ~/.authinfo.gpg? (y or n)
Opening nnimap server on mail.hcoop.net...done
Reading active file from mail.hcoop.net via nnimap...done
Generating the cache active file...done
Opening nnimap server on mail.hcoop.net...
Opening TLS connection to `mail.hcoop.net'...
Opening TLS connection with `gnutls-cli --insecure -p imaps
mail.hcoop.net'...done
Opening TLS connection to `mail.hcoop.net'...done
Opening nnimap server on mail.hcoop.net...done
No new newsgroups
Checking new news...
nnimap read 0k [14 times]
Reading active file via nndraft...done
Checking new news...done
Quit
=====

How can I debug this to see what's generating the fail to see what's wrong
with hcoop's setup? hcoop admin told me the traces don't reveal anything
descriptive to him, i.e. no idea which command is generating the Fatal
error
--
JJ




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fatal error: No such file... closed GnuTLS connection, two nnimap processes
  2010-10-12  1:25   ` JJ
@ 2010-10-12 12:36     ` Lars Magne Ingebrigtsen
  2010-10-13 15:34       ` JJ
  0 siblings, 1 reply; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-12 12:36 UTC (permalink / raw)
  To: ding

"JJ" <ding_gnus.org@sumou.com> writes:

> 3 OK LIST completed
> * BYE [ALERT] Fatal error: No such file or directory
>
> - Peer has closed the GnuTLS connection

Thinking about this a bit more, I think the message may be coming from
setting errno to -1 somewhere, because that's the "No such file or
directory" error, I think.

And gnutls.c returns -1 here and there, but should probably set errno to
something...

Anyway, the means that the problem is that the IMAP server is saying
"* BYE" and closing the connection.  Why would it be doing that?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fatal error: No such file... closed GnuTLS connection, two nnimap processes
  2010-10-12 12:36     ` Lars Magne Ingebrigtsen
@ 2010-10-13 15:34       ` JJ
  2010-10-13 18:27         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 10+ messages in thread
From: JJ @ 2010-10-13 15:34 UTC (permalink / raw)
  To: ding

> Anyway, the means that the problem is that the IMAP server is saying
> "* BYE" and closing the connection.  Why would it be doing that?

I've opened a bug about this on hcoop and the admin seems to thinks it's a
problem with Gnus after the recent changes.

Is there any way that Gnus would be forcing a hangup?

I.e. is there a way I can get a full trace of the sessing with Gnu Emacs
Gnus, since it doesn't have this problem? I.e. why is the server not
closing the connection there, as it's the same Gnus init setup etc.?
--
JJ




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Fatal error: No such file... closed GnuTLS connection, two nnimap processes
  2010-10-13 15:34       ` JJ
@ 2010-10-13 18:27         ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 10+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-13 18:27 UTC (permalink / raw)
  To: ding

"JJ" <ding_gnus.org@sumou.com> writes:

> Is there any way that Gnus would be forcing a hangup?

Gnus never hangs up the connection unless you request a shutdown/sleep.

> I.e. is there a way I can get a full trace of the sessing with Gnu Emacs
> Gnus, since it doesn't have this problem? I.e. why is the server not
> closing the connection there, as it's the same Gnus init setup etc.?

The *imap log* buffer has all the commands Gnus sends to the IMAP server.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-10-13 18:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-06 19:23 Fatal error: No such file... closed GnuTLS connection, two nnimap processes JJ
2010-10-07 20:13 ` Lars Magne Ingebrigtsen
2010-10-10 18:54   ` JJ
2010-10-10 20:46     ` Lars Magne Ingebrigtsen
2010-10-11 13:02     ` Ted Zlatanov
2010-10-11 18:24 ` Lars Magne Ingebrigtsen
2010-10-12  1:25   ` JJ
2010-10-12 12:36     ` Lars Magne Ingebrigtsen
2010-10-13 15:34       ` JJ
2010-10-13 18:27         ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).