Gnus development mailing list
 help / color / mirror / Atom feed
* Re: POP SSL conexion failed
       [not found] <m2wt3qbops.fsf@sl392.st-edmunds.cam.ac.uk>
@ 2007-01-19  1:19 ` Leo
  2007-02-01  0:08   ` Leo
                     ` (2 more replies)
  2007-10-18 20:58 ` Leo
  1 sibling, 3 replies; 13+ messages in thread
From: Leo @ 2007-01-19  1:19 UTC (permalink / raw)
  Cc: ding

On 2007-01-13, Leo said:

> I am getting this error a few times a day. Any ideas?

A backtrace:

,----
| Debugger entered--Lisp error: (error "POP SSL connexion failed")
|   signal(error ("POP SSL connexion failed"))
|   error("POP SSL connexion failed")
|   pop3-open-server("pop.gmail.com" 995)
|   pop3-movemail("~/.emacs-mail-crash-box")
|   mail-source-fetch-pop((pop :server "pop.gmail.com" :port 995 :user "sdl.web@gmail.com" :password "******" :stream ssl) #[(file orig-file) "Â\bÃÄ\b	š?…\x0f

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

* Re: POP SSL conexion failed
  2007-01-19  1:19 ` POP SSL conexion failed Leo
@ 2007-02-01  0:08   ` Leo
  2007-03-25  9:31   ` Leo
  2007-09-18 19:33   ` POP SSL conexion failed Leo
  2 siblings, 0 replies; 13+ messages in thread
From: Leo @ 2007-02-01  0:08 UTC (permalink / raw)
  To: info-gnus-english; +Cc: ding

On 2007-01-19, Leo said:

> On 2007-01-13, Leo said:
>
>> I am getting this error a few times a day. Any ideas?
>
> A backtrace:
>
> ,----
> | Debugger entered--Lisp error: (error "POP SSL connexion failed")
> |   signal(error ("POP SSL connexion failed"))
> |   error("POP SSL connexion failed")
> |   pop3-open-server("pop.gmail.com" 995)
> |   pop3-movemail("~/.emacs-mail-crash-box")
> |   mail-source-fetch-pop((pop :server "pop.gmail.com" :port 995 :user "sdl.web@gmail.com" :password "******" :stream ssl) #[(file orig-file) "Â\bÃÄ\b	.?..

Help!

Is someone else seeing this error?

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

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

* Re: POP SSL conexion failed
  2007-01-19  1:19 ` POP SSL conexion failed Leo
  2007-02-01  0:08   ` Leo
@ 2007-03-25  9:31   ` Leo
  2007-09-15 21:53     ` Fatal error: A TLS packet with unexpected length was received (was: POP SSL conexion failed) Leo
  2007-09-18 19:33   ` POP SSL conexion failed Leo
  2 siblings, 1 reply; 13+ messages in thread
From: Leo @ 2007-03-25  9:31 UTC (permalink / raw)
  To: info-gnus-english; +Cc: ding

On 2007-01-19, Leo said:

> On 2007-01-13, Leo said:
>
>> I am getting this error a few times a day. Any ideas?
>
> A backtrace:
>
> ,----
> | Debugger entered--Lisp error: (error "POP SSL connexion failed")
> |   signal(error ("POP SSL connexion failed"))
> |   error("POP SSL connexion failed")
> |   pop3-open-server("pop.gmail.com" 995)
> |   pop3-movemail("~/.emacs-mail-crash-box")
> |   mail-source-fetch-pop((pop :server "pop.gmail.com" :port 995 :user "sdl.web@gmail.com" :password "******" :stream ssl) #[(file orig-file) "Â\bÃÄ\b	š?…\x0f

Comments?

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

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

* Fatal error: A TLS packet with unexpected length was received (was: POP SSL conexion failed)
  2007-03-25  9:31   ` Leo
@ 2007-09-15 21:53     ` Leo
  2007-09-15 22:36       ` Fatal error: A TLS packet with unexpected length was received Elias Oltmanns
  0 siblings, 1 reply; 13+ messages in thread
From: Leo @ 2007-09-15 21:53 UTC (permalink / raw)
  To: info-gnus-english; +Cc: ding


---- " trace of POP session to pop.gmail.com" ----

Resolving 'pop.gmail.com'...
Connecting to '72.14.205.109:995'...
- Certificate type: X.509
 - Got a certificate list of 1 certificates.

 - Certificate[0] info:
 # The hostname in the certificate matches 'pop.gmail.com'.
 # valid since: Tue Nov 15 21:22:44 GMT 2005
 # expires at: Fri Nov 16 21:22:44 GMT 2007
 # fingerprint: 59:51:61:89:CD:DD:B2:35:94:BB:44:97:A0:39:D5:B4
 # Subject's DN: C=US,ST=California,L=Mountain View,O=Google Inc.,CN=pop.gmail.com
 # Issuer's DN: C=US,O=Equifax,OU=Equifax Secure Certificate Authority


- Peer's certificate issuer is unknown
- Peer's certificate is NOT trusted
- Version: TLS 1.0
- Key Exchange: RSA
- Cipher: 3DES 168 CBC
- MAC: SHA
- Compression: NULL
- Handshake was completed

- Simple Client Mode:

+OK Gpop ready for requests from 131.111.223.122 e10pf2134124qbe
*** Fatal error: A TLS packet with unexpected length was received.
*** Server has terminated the connection abnormally.

Process POP finished

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

>>>                                                  I use GNU Emacs
>>>                               http://www.gnu.org/software/emacs/

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

* Re: Fatal error: A TLS packet with unexpected length was received
  2007-09-15 21:53     ` Fatal error: A TLS packet with unexpected length was received (was: POP SSL conexion failed) Leo
@ 2007-09-15 22:36       ` Elias Oltmanns
  2007-09-15 23:33         ` Leo
  0 siblings, 1 reply; 13+ messages in thread
From: Elias Oltmanns @ 2007-09-15 22:36 UTC (permalink / raw)
  To: ding

Leo <sdl.web@gmail.com> wrote:
> ---- " trace of POP session to pop.gmail.com" ----
[...]
> +OK Gpop ready for requests from 131.111.223.122 e10pf2134124qbe
> *** Fatal error: A TLS packet with unexpected length was received.
> *** Server has terminated the connection abnormally.
>
> Process POP finished

I don't quite see how this could possibly be caused by gnus. Isn't this
rather a gnutls-cli issue or am I missing something?

Regards,

Elias




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

* Re: Fatal error: A TLS packet with unexpected length was received
  2007-09-15 22:36       ` Fatal error: A TLS packet with unexpected length was received Elias Oltmanns
@ 2007-09-15 23:33         ` Leo
  2007-09-24 13:41           ` Simon Josefsson
  0 siblings, 1 reply; 13+ messages in thread
From: Leo @ 2007-09-15 23:33 UTC (permalink / raw)
  To: ding

On 2007-09-15 23:36 +0100, Elias Oltmanns wrote:
> Leo <sdl.web@gmail.com> wrote:
>> ---- " trace of POP session to pop.gmail.com" ----
> [...]
>> +OK Gpop ready for requests from 131.111.223.122 e10pf2134124qbe
>> *** Fatal error: A TLS packet with unexpected length was received.
>> *** Server has terminated the connection abnormally.
>>
>> Process POP finished
>
> I don't quite see how this could possibly be caused by gnus. Isn't this
> rather a gnutls-cli issue or am I missing something?
>
> Regards,
>
> Elias

It looks like it is caused by gnutls-cli.

However, I explicitly setting tls-program to ("openssl s_client -connect
%h:%p -no_ssl2") but then the following message is displayed in echo
area FOREVER:

  Retrieving message 1 of 1 from pop.gmail.com...

I have to type "C-g" to free Emacs from freeze.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

>>>                                                  I use GNU Emacs
>>>                               http://www.gnu.org/software/emacs/




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

* Re: POP SSL conexion failed
  2007-01-19  1:19 ` POP SSL conexion failed Leo
  2007-02-01  0:08   ` Leo
  2007-03-25  9:31   ` Leo
@ 2007-09-18 19:33   ` Leo
  2007-09-18 20:27     ` Leo
  2 siblings, 1 reply; 13+ messages in thread
From: Leo @ 2007-09-18 19:33 UTC (permalink / raw)
  To: info-gnus-english; +Cc: ding

On 2007-01-19 01:19 +0000, Leo wrote:
> On 2007-01-13, Leo said:
>
>> I am getting this error a few times a day. Any ideas?
>
> A backtrace:
>
> ,----
> | Debugger entered--Lisp error: (error "POP SSL connexion failed")
> |   signal(error ("POP SSL connexion failed"))
> |   error("POP SSL connexion failed")
> |   pop3-open-server("pop.gmail.com" 995)
> |   pop3-movemail("~/.emacs-mail-crash-box")
> |   mail-source-fetch-pop((pop :server "pop.gmail.com" :port 995 :user "sdl.web@gmail.com" :password "******" :stream ssl) #[(file orig-file) "Â\bÃÄ\b	š?…\x0f

It looks like this is a bug in GNUTLS.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

                                                 I use GNU Emacs  <=
                              http://www.gnu.org/software/emacs/  <=

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

* Re: POP SSL conexion failed
  2007-09-18 19:33   ` POP SSL conexion failed Leo
@ 2007-09-18 20:27     ` Leo
  0 siblings, 0 replies; 13+ messages in thread
From: Leo @ 2007-09-18 20:27 UTC (permalink / raw)
  To: info-gnus-english; +Cc: ding

On 2007-09-18 20:33 +0100, Leo wrote:
> On 2007-01-19 01:19 +0000, Leo wrote:
>> On 2007-01-13, Leo said:
>>
>>> I am getting this error a few times a day. Any ideas?
[...]
> It looks like this is a bug in GNUTLS.

I spoke too soon. After upgrading Gnutls to 1.6.3 this problem still
occurs. It looks like a bug in tls.el.

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

                                                 I use GNU Emacs  <=
                              http://www.gnu.org/software/emacs/  <=

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

* Re: Fatal error: A TLS packet with unexpected length was received
  2007-09-15 23:33         ` Leo
@ 2007-09-24 13:41           ` Simon Josefsson
  2007-09-24 14:30             ` Leo
  0 siblings, 1 reply; 13+ messages in thread
From: Simon Josefsson @ 2007-09-24 13:41 UTC (permalink / raw)
  To: Leo; +Cc: ding

Leo <sdl.web@gmail.com> writes:

> On 2007-09-15 23:36 +0100, Elias Oltmanns wrote:
>> Leo <sdl.web@gmail.com> wrote:
>>> ---- " trace of POP session to pop.gmail.com" ----
>> [...]
>>> +OK Gpop ready for requests from 131.111.223.122 e10pf2134124qbe
>>> *** Fatal error: A TLS packet with unexpected length was received.
>>> *** Server has terminated the connection abnormally.
>>>
>>> Process POP finished
>>
>> I don't quite see how this could possibly be caused by gnus. Isn't this
>> rather a gnutls-cli issue or am I missing something?
>>
>> Regards,
>>
>> Elias
>
> It looks like it is caused by gnutls-cli.
>
> However, I explicitly setting tls-program to ("openssl s_client -connect
> %h:%p -no_ssl2") but then the following message is displayed in echo
> area FOREVER:
>
>   Retrieving message 1 of 1 from pop.gmail.com...
>
> I have to type "C-g" to free Emacs from freeze.

Does (setq tls-process-connection-type t) help, when you use OpenSSL?

When you use gnutls-cli, it looks like a problem with pop.gmail.com, I
got the same problem.

/Simon



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

* Re: Fatal error: A TLS packet with unexpected length was received
  2007-09-24 13:41           ` Simon Josefsson
@ 2007-09-24 14:30             ` Leo
  2007-09-25 14:41               ` Simon Josefsson
  0 siblings, 1 reply; 13+ messages in thread
From: Leo @ 2007-09-24 14:30 UTC (permalink / raw)
  To: ding

On 2007-09-24 14:41 +0100, Simon Josefsson wrote:
> Does (setq tls-process-connection-type t) help, when you use OpenSSL?

After setting this to t and using openssl, it doesn't retrieve any new
emails. I tried to "M-g" on the group 5 times and Gnus always says no new
email. But as soon as i set it to nil, I can see there is one new email.

>
> When you use gnutls-cli, it looks like a problem with pop.gmail.com, I
> got the same problem.

which version of gnutls-cli are you using?

> /Simon

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

                                                 I use GNU Emacs  <=
                              http://www.gnu.org/software/emacs/  <=




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

* Re: Fatal error: A TLS packet with unexpected length was received
  2007-09-24 14:30             ` Leo
@ 2007-09-25 14:41               ` Simon Josefsson
  0 siblings, 0 replies; 13+ messages in thread
From: Simon Josefsson @ 2007-09-25 14:41 UTC (permalink / raw)
  To: Leo; +Cc: ding

Leo <sdl.web@gmail.com> writes:

>> When you use gnutls-cli, it looks like a problem with pop.gmail.com, I
>> got the same problem.
>
> which version of gnutls-cli are you using?

The latest, 2.1.1.  I don't rule out a problem with GnuTLS, but at least
pop.gmail.com doesn't terminate the TLS connection according to the
protocol spec so there is at least one problem with pop.gmail.com.

/Simon



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

* Re: POP SSL conexion failed
       [not found] <m2wt3qbops.fsf@sl392.st-edmunds.cam.ac.uk>
  2007-01-19  1:19 ` POP SSL conexion failed Leo
@ 2007-10-18 20:58 ` Leo
  2007-11-14 20:40   ` Leo
  1 sibling, 1 reply; 13+ messages in thread
From: Leo @ 2007-10-18 20:58 UTC (permalink / raw)
  To: ding

On 2007-01-13 21:29 +0000, Leo wrote:
> I am getting this error a few times a day. Any ideas?
>
> It never occurred when using pop.el with SSL support¹.

I wonder if someone could look at this bug. Gnus can not reliably
retrieve emails from pop server.

I hope the following backtrace is of use.

Debugger entered--Lisp error: (error "POP SSL connexion failed")
  signal(error ("POP SSL connexion failed"))
  error("POP SSL connexion failed")
  (if (looking-at "\\+OK") (progn (delete-region ... ...) nil) (pop3-quit process) (error "POP SSL connexion failed"))
  (progn (pop3-accept-process-output process) (goto-char (point-max)) (forward-line -1) (if (looking-at "\\+OK") (progn ... nil) (pop3-quit process) (error "POP SSL connexion failed")))
  (if (memq (process-status process) (quote ...)) (progn (pop3-accept-process-output process) (goto-char ...) (forward-line -1) (if ... ... ... ...)))
  (when (memq (process-status process) (quote ...)) (pop3-accept-process-output process) (goto-char (point-max)) (forward-line -1) (if (looking-at "\\+OK") (progn ... nil) (pop3-quit process) (error "POP SSL connexion failed")))
  (while (when (memq ... ...) (pop3-accept-process-output process) (goto-char ...) (forward-line -1) (if ... ... ... ...)))
  (progn (while (when ... ... ... ... ...)) process)
  (if process (progn (while ...) process))
  (when process (while (when ... ... ... ... ...)) process)
  (let ((process ...)) (when process (while ...) process))
  (cond ((or ... ...) (if ... ...) (let ... ...)) ((eq pop3-stream-type ...) (if ... ...) (let ... ... ... process)) (t (open-network-stream "POP" ... mailhost port)))
  (setq process (cond (... ... ...) (... ... ...) (t ...)))
  (save-excursion (set-buffer (get-buffer-create ...)) (erase-buffer) (setq pop3-read-point (point-min)) (setq process (cond ... ... ...)) (let (...) (setq pop3-timestamp ...)) process)
  (let ((coding-system-for-read ...) (coding-system-for-write ...) process) (save-excursion (set-buffer ...) (erase-buffer) (setq pop3-read-point ...) (setq process ...) (let ... ...) process))
  pop3-open-server("pop.gmail.com" 995)
  pop3-movemail("~/.emacs-mail-crash-box")
  (save-excursion (pop3-movemail mail-source-crash-box))
  (if (or debug-on-quit debug-on-error) (save-excursion (pop3-movemail mail-source-crash-box)) (condition-case err (save-excursion ...) (error ... ...)))
  (let ((pop3-password password) (pop3-maildrop user) (pop3-mailhost server) (pop3-port port) (pop3-authentication-scheme ...) (pop3-stream-type stream)) (if (or debug-on-quit debug-on-error) (save-excursion ...) (condition-case err ... ...)))
  (cond (program (mail-source-fetch-with-program ...)) (function (funcall function mail-source-crash-box)) (t (require ...) (let ... ...)))
  (setq result (cond (program ...) (function ...) (t ... ...)))
  (let ((from ...) (mail-source-string ...) result) (when (eq authentication ...) (setq password ...)) (when server (setenv "MAILHOST" server)) (setq result (cond ... ... ...)) (if result (progn ... ...) (setq mail-source-password-cache ...) 0))
  (let ((stream nil) (authentication nil) (password nil) (function nil) (program nil) (user nil) (port nil) (server nil) (postscript nil) (prescript-delay nil) (prescript nil)) (mail-source-set-1 source) (mail-source-run-script prescript (format-spec-mak\x04e 112 password 116 mail-source-crash-box 115 server 80 port 117 user) prescript-delay) (let (... ... result) (when ... ...) (when server ...) (setq result ...) (if result ... ... 0)))
  (mail-source-bind (pop source) (mail-source-run-script prescript (format-spec-make 112 password 116 mail-source-crash-box 115 server 80 port 117 user) prescript-delay) (let (... ... result) (when ... ...) (when server ...) (setq result ...) (if result \x04... ... 0)))
  mail-source-fetch-pop((pop :server "pop.gmail.com" :port 995 :user "sdl.web@googlemail.com" :password "pw100") #[(file orig-file) "Â\bÃÄ\b	.?...Å	Æ\"Ç%." [file orig-file nnmail-split-incoming nnml-save-mail nil nnmail-get-split-group (pop :server "pop.gm\x04ail.com" :port 995 :user "sdl.web@googlemail.com" :password "pw100") nnml-active-number] 7])
  funcall(mail-source-fetch-pop (pop :server "pop.gmail.com" :port 995 :user "sdl.web@googlemail.com" :password "pw100") #[(file orig-file) "Â\bÃÄ\b	.?...Å	Æ\"Ç%." [file orig-file nnmail-split-incoming nnml-save-mail nil nnmail-get-split-group (pop :server\x04 "pop.gmail.com" :port 995 :user "sdl.web@googlemail.com" :password "pw100") nnml-active-number] 7])
  (if (or debug-on-quit debug-on-error) (funcall function source callback) (condition-case err (funcall function source callback) (error ... 0)))
  (+ found (if (or debug-on-quit debug-on-error) (funcall function source callback) (condition-case err ... ...)))
  (let ((function ...) (found 0)) (unless function (error "%S is an invalid mail source specification" source)) (when (file-exists-p mail-source-crash-box) (message "Processing mail from %s..." mail-source-crash-box) (setq found ...) (mail-source-delete-\x04crash-box)) (+ found (if ... ... ...)))
  (save-excursion (let (... ...) (unless function ...) (when ... ... ... ...) (+ found ...)))
  (if (or mail-source-plugged plugged) (save-excursion (let ... ... ... ...)))
  (let ((plugged nil)) (mail-source-set-common-1 source) (if (or mail-source-plugged plugged) (save-excursion ...)))
  (mail-source-bind-common source (if (or mail-source-plugged plugged) (save-excursion ...)))
  mail-source-fetch((pop :server "pop.gmail.com" :port 995 :user "sdl.web@googlemail.com" :password "pw100") #[(file orig-file) "Â\bÃÄ\b	.?...Å	Æ\"Ç%." [file orig-file nnmail-split-incoming nnml-save-mail nil nnmail-get-split-group (pop :server "pop.gmail.\x04com" :port 995 :user "sdl.web@googlemail.com" :password "pw100") nnml-active-number] 7])
  nnmail-get-new-mail(nnml nnml-save-nov "/home/leo/GNUS/Mail" nil)
  nnml-request-scan(nil "")
  gnus-request-scan(nil (nnml ""))
  gnus-read-active-file-1((nnml "") nil)
  gnus-read-active-file()
  gnus-group-get-new-news(nil)
  call-interactively(gnus-group-get-new-news)

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

       Use the most powerful email client -- http://gnus.org/




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

* Re: POP SSL conexion failed
  2007-10-18 20:58 ` Leo
@ 2007-11-14 20:40   ` Leo
  0 siblings, 0 replies; 13+ messages in thread
From: Leo @ 2007-11-14 20:40 UTC (permalink / raw)
  To: ding

On 2007-10-18 21:58 +0100, Leo wrote:
> On 2007-01-13 21:29 +0000, Leo wrote:
>> I am getting this error a few times a day. Any ideas?
>>
>> It never occurred when using pop.el with SSL support¹.
>
> I wonder if someone could look at this bug. Gnus can not reliably
> retrieve emails from pop server.

For the record, a patch to fix this is in:

Xref: news.gmane.org gmane.emacs.gnus.general:65648
Archived-At: <http://permalink.gmane.org/gmane.emacs.gnus.general/65648>

Bye,
-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

          Use the best OS -- http://www.fedoraproject.org/




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

end of thread, other threads:[~2007-11-14 20:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m2wt3qbops.fsf@sl392.st-edmunds.cam.ac.uk>
2007-01-19  1:19 ` POP SSL conexion failed Leo
2007-02-01  0:08   ` Leo
2007-03-25  9:31   ` Leo
2007-09-15 21:53     ` Fatal error: A TLS packet with unexpected length was received (was: POP SSL conexion failed) Leo
2007-09-15 22:36       ` Fatal error: A TLS packet with unexpected length was received Elias Oltmanns
2007-09-15 23:33         ` Leo
2007-09-24 13:41           ` Simon Josefsson
2007-09-24 14:30             ` Leo
2007-09-25 14:41               ` Simon Josefsson
2007-09-18 19:33   ` POP SSL conexion failed Leo
2007-09-18 20:27     ` Leo
2007-10-18 20:58 ` Leo
2007-11-14 20:40   ` Leo

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).