407 while accessing http://android.googlesource.com/platform/manifest/info/refs

845 views
Skip to first unread message

Raj Chinna

unread,
Apr 11, 2012, 9:29:53 AM4/11/12
to repo-d...@googlegroups.com
Hi,

I am trying to sync to repo from behind my org proxy. I have confgirured all possible proxy settings required for repo sync.

1. http_proxy variable in .bashrc file.
2. --global proxy settings in git.

In ~/.bashrc I have configured it like this..
export http_proxy=http://domain\\user:pa...@myorg.com:8080

In ~/.gitconfig it shows like this
[http]
    proxy = http://domain\\user:pa...@myorg.com:8080


But, when I try to sync to repo I always get 407 (proxy auth missing) error message like following,

android@android-server:~/sources/ics$ repo sync
error: The requested URL returned error: 407 while accessing http://android.googlesource.com/platform/manifest/info/refs


Can someone guide me to get this working? Do I need to set proxy anywhere else to configure repo?

Thanks,
Rajendra

Magnus Bäck

unread,
Apr 11, 2012, 11:01:24 AM4/11/12
to repo-d...@googlegroups.com
On Wednesday, April 11, 2012 at 09:29 EDT,
Raj Chinna <rajendr...@gmail.com> wrote:

> I am trying to sync to repo from behind my org proxy. I have
> confgirured all possible proxy settings required for repo sync.
>
> 1. http_proxy variable in .bashrc file.
> 2. --global proxy settings in git.
>
> In ~/.bashrc I have configured it like this..
>

> > *export http_proxy=http://domain\\user:pa...@myorg.com:8080*


> >
>
> In ~/.gitconfig it shows like this
>

> > *[http]
> > proxy = http://domain\\user:pa...@myorg.com:8080*

I think the backslash in the username in your problem, or possibly
that your proxy requires NTLM authentication. You can use Wireshark or
similar to see what exactly is sent to the proxy and try replacing the
backslashes with its URL-encoded equivalent (%5C).

> But, when I try to sync to repo I always get 407 (proxy auth missing)
> error message like following,
>

> *android@android-server:~/sources/ics$ repo sync


> > error: The requested URL returned error: 407 while accessing

> > http://android.googlesource.com/platform/manifest/info/refs*


> >
>
> Can someone guide me to get this working? Do I need to set proxy
> anywhere else to configure repo?

See below for a couple of suggestions.

http://superuser.com/questions/395167/configuring-linux-to-use-windows-proxy

--
Magnus Bäck
ba...@google.com

Raj Chinna

unread,
Apr 11, 2012, 1:52:30 PM4/11/12
to repo-d...@googlegroups.com

Thanks a lot  Magnus  for the quick reply. 

I figured out the exact reason for this... The problem here I found is that the password had a $ symbol and that caused the problem...

When you give your password like this test$345 it sends the password as test45... so, that problem solved.... :) So, the passwords like this should be given with test\$345....

For your info, I am tying it in Ubuntu not in windows.... 

On Wednesday, April 11, 2012 8:31:24 PM UTC+5:30, Magnus Bäck wrote:
On Wednesday, April 11, 2012 at 09:29 EDT,
     Raj Chinna <rajendr...@gmail.com> wrote:

> I am trying to sync to repo from behind my org proxy. I have
> confgirured all possible proxy settings required for repo sync.
>
> 1. http_proxy variable in .bashrc file.
> 2. --global proxy settings in git.
>
> In ~/.bashrc I have configured it like this..
>
> > *export http_proxy=http://domain\\user:pa...@myorg.com:8080*
> >
>
> In ~/.gitconfig it shows like this
>
> > *[http]

> >     proxy = http://domain\\user:pass@myorg.com:8080*

Magnus Bäck

unread,
Apr 11, 2012, 3:04:14 PM4/11/12
to repo-d...@googlegroups.com
On Wednesday, April 11, 2012 at 13:52 EDT,
Raj Chinna <rajendr...@gmail.com> wrote:

> I figured out the exact reason for this... The problem here I found is
> that the password had a $ symbol and that caused the problem...
>
> When you give your password like this test$345 it sends the password
> as test45... so, that problem solved.... :) So, the passwords like
> this should be given with test\$345....

Yes, or the http_proxy variable assignment should be enclosed in single
quotes to avoid the variable expansion.

> For your info, I am tying it in Ubuntu not in windows....

Of course, but the domain\username login name suggested that your proxy
server runs Windows.

--
Magnus Bäck
ba...@google.com

Reply all
Reply to author
Forward
0 new messages