After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 714853 - Proxy protocol 'http' is not supported.
Proxy protocol 'http' is not supported.
Status: RESOLVED DUPLICATE of bug 733876
Product: geary
Classification: Other
Component: engine
master
Other All
: Normal normal
: ---
Assigned To: Geary Maintainers
Geary Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-07-03 02:30 UTC by Geary Maintainers
Modified: 2018-04-12 02:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
geary.log (1.12 KB, text/x-log)
2013-07-03 14:30 UTC, Geary Maintainers
Details

Description Charles Lindsay 2013-11-21 23:12:57 UTC


---- Reported by geary-maint@gnome.bugs 2013-07-03 07:30:00 -0700 ----

Original Redmine bug id: 7194
Original URL: http://redmine.yorba.org/issues/7194
Searchable id: yorba-bug-7194
Original author: Bryan Hamon
Original description:

When trying to add an account (Gmail or IMAP) the log shows an error that
Proxy protocol 'http' is not supported.



---- Additional Comments From geary-maint@gnome.bugs 2013-09-04 17:55:00 -0700 ----

### History

####

#1

Updated by Jim Nelson 5 months ago

  * **Status** changed from _Open_ to _Need Information_

Can you give a link or more information on the proxy you want Geary to work
with? When I think of IMAP proxies, I think of gateways that speak IMAP (not
HTTP).

####

#2

Updated by Bryan Hamon 5 months ago

I'm not specifically using an IMAP proxy. All our internet traffic goes
through a proxy but our mail server is behind the proxy. If I try a Gmail
account then everything would be going through an HTTP proxy.

####

#3

Updated by Eric Gregory 5 months ago

I'm confused as to how an HTTP proxy would be responsible for handling
IMAP/SMTP traffic. Could you elaborate on your setup?

####

#4

Updated by Bryan Hamon 5 months ago

I have global proxy settings setup with exceptions for local resources (the
IMAP server being one of them) This is a copy of my /etc/environment settings.
The HTTP proxy error comes from the geary log file when I try adding the
account

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
/usr/local/games"

http_proxy="http://10.0.0.1:80/"

https_proxy="https://10.0.0.1:80/"

ftp_proxy="ftp://10.0.0.1:80/"

socks_proxy="socks://10.0.0.1:80/"

no_proxy="127.0.0.1,localhost,*10.*"

HTTP_PROXY="http://10.0.0.1:80/"

HTTPS_PROXY="https://10.0.0.1:80/"

FTP_PROXY="ftp://10.0.0.1:80/"

SOCKS_PROXY="socks://10.0.0.1:80/"

NO_PROXY="127.0.0.1,localhost,*10.*"

####

#5

Updated by Jim Nelson 5 months ago

I take it then that you can't with Geary connect to Gmail simply by creating a
Gmail account (the default setting when creating a new account, no fields to
enter servers or ports or anything).

####

#6

Updated by Bryan Hamon 5 months ago

no it does not work either, the log file originally attached is actually from
my attempt to setup a Gmail account

####

#7

Updated by Jim Nelson 5 months ago

  * **Category** set to _engine_
  * **Status** changed from _Need Information_ to _Open_
  * **Assignee** set to _Jim Nelson_
  * **Target version** set to _0.4.0_

I'm not guru enough about SOCKS and IMAP, but I suspect what's going on here
is that the proxy expects the client to use HTTP CONNECT to tunnel Geary's
IMAP connection and GIO doesn't support that (yet). It's possible GIO 2.37.1
provide this support, but I need more information from the devs before I can
confirm this: https://bugzilla.gnome.org/show_bug.cgi?id=699359#c8

####

#8

Updated by Jim Nelson 5 months ago

  * **Status** changed from _Open_ to _Need Information_

I followed up on this with one of the GNOME developers and don't have answers,
but some clues.

Eliminating some variables would help here. If you go to System Settings ->
Network -> Network proxy, I assume the settings there mirror the ones you
supplied in an earlier comment. (If not, please let me know what they do say.)

Can you remote the HTTP/HTTPS/FTP settings (clear them out) and run Geary
again? There's a question whether or not GIO is using the HTTP/HTTPS proxy
instead of the SOCKS proxy.

####

#9

Updated by Bryan Hamon 4 months ago

okay I cleared the proxy settings (removing them from /etc/environment) and
this is the debug info that I get:

    
    [deb] 09:35:25 libmessagingmenu.vala:30: Registered messaging-menu indicator  
     [deb] 09:35:25 unity-launcher.vala:44: set unity launcher entry count to 0  
     [deb] 09:35:25 geary-controller.vala:690: No accounts found.  
     [deb] 09:35:25 conversation-web-view.vala:216: Loading new message viewer style from /home/bryanh/.config/geary/user-message.css...  
     [deb] 09:40:01 imap-client-session.vala:1162: [ClientSession:0000/imap.gmail.com/default:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_UNCONNECTED [GEARY_IMAP_CLIENT_SESSION_STATE_CONNECTING]] Connecting send error, dropping client connection: Could not connect to imap.gmail.com: Network is unreachable  
     [deb] 09:40:01 geary-engine.vala:223: Error connecting to IMAP server: Could not connect to imap.gmail.com: Network is unreachable

Without the proxy I have no access to the outside world ... all traffic goes
through my proxy.

####

#10

Updated by Jim Nelson 4 months ago

Just to be clear, I'm only asking that you clear the HTTP/HTTPS/FTP settings,
_not_ the SOCKS_PROXY setting. Did you do that?

####

#11

Updated by Bryan Hamon 4 months ago

Yup sorry about that, tried it again with only the SOCKS setting and the same
debug info appeared.

####

#12

Updated by Jim Nelson 4 months ago

Which did you see? The "Network is unreachable" error or "Proxy protocol
'http' is not supported" error?

####

#13

Updated by Bryan Hamon 4 months ago

[deb] 13:53:31 libmessagingmenu.vala:30: Registered messaging-menu indicator

[deb] 13:53:31 unity-launcher.vala:44: set unity launcher entry count to 0

[deb] 13:53:31 geary-controller.vala:690: No accounts found.

[deb] 13:53:31 conversation-web-view.vala:216: Loading new message viewer
style from /home/bryanh/.config/geary/user-message.css...

[deb] 13:57:59 imap-client-session.vala:1162: [ClientSession:0000/imap.gmail.c
om/default:993/GEARY_IMAP_CLIENT_CONNECTION_STATE_UNCONNECTED
[GEARY_IMAP_CLIENT_SESSION_STATE_CONNECTING]] Connecting send error, dropping
client connection: Could not connect to imap.gmail.com: Network is unreachable

[deb] 13:57:59 geary-engine.vala:223: Error connecting to IMAP server: Could
not connect to imap.gmail.com: Network is unreachable

That is the debug info.

####

#14

Updated by Jim Nelson 4 months ago

I'm not exactly sure what the problem is, but I don't know that it's anything
we can do in Geary. GIO and the libraries it relies upon should deal with
SOCKS transparently and make sure the connections Geary needs are made
properly. I do wonder if your SOCKS server is set up properly for non-HTTP
traffic; that was one of the possibilities suggested by one of the GIO
maintainers I spoke with recently.

####

#15

Updated by Jim Nelson 3 months ago

  * **Assignee** deleted (<strike>_Jim Nelson_</strike>)

####

#16

Updated by Jim Nelson 3 months ago

  * **Target version** changed from _0.4.0_ to _0.5.0_



--- Bug imported by chaz@yorba.org 2013-11-21 23:12 UTC  ---

This bug was previously known as _bug_ 7194 at http://redmine.yorba.org/show_bug.cgi?id=7194
Imported an attachment (id=261167)

Unknown milestone "unknown in product geary. 
   Setting to default milestone for this product, "---".
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.
Resolution set on an open status.
   Dropping resolution 

Comment 1 Milan Crha 2015-04-30 06:24:24 UTC
You might be interested in bug #733876.
Comment 2 Michael Gratton 2018-04-12 02:06:28 UTC
Thanks Milan!

*** This bug has been marked as a duplicate of bug 733876 ***