authentication failure

Kemin Zhou kmzhou4 at yahoo.com
Mon Sep 14 17:27:13 UTC 2015


So what is running at http://localhost/hg/proj?    hgweb.cgi under apache2    I looked at the source code in mercurial, and could not get any clue.    There is no apache2 error message when this happened.  

In other words what Web server is serving up the repo?    I am using the apache2.  Very strange.  I am using Ubuntu which uses sudo.   When I start the apache2 server, I got 5 processes with slight different uid.  This could be   the source of the trouble.  root     12013     1  0 Sep13 ?        00:00:02 /usr/sbin/apache2 -k startwww-data 12016 12013  0 Sep13 ?        00:00:00 /usr/sbin/apache2 -k startkzhou    12017 12013  0 Sep13 ?        00:00:02 /usr/sbin/apache2 -k startwww-data 12018 12013  0 Sep13 ?        00:00:19 /usr/sbin/apache2 -k startwww-data 12019 12013  0 Sep13 ?        00:00:18 /usr/sbin/apache2 -k start

Also, how was it setup?
in the /etc/apache2 directoryI have the apache2.conf fileI used the <Location /hg>AuthType BasicRequire valid-user 
 ScriptAlias /hg /usr/lib/cgi-bin/hgweb.cgi
 Kemin Zhou 858 771-3269
 
      From: Adrian Klaver <adrian.klaver at aklaver.com>
 To: Kemin Zhou <kmzhou4 at yahoo.com>; Matt Mackall <mpm at selenic.com> 
Cc: "mercurial at selenic.com" <mercurial at selenic.com> 
 Sent: Monday, September 14, 2015 7:09 AM
 Subject: Re: authentication failure
   
On 09/13/2015 04:03 PM, Kemin Zhou wrote:
> Adrian,
>
> I am doing a test push from the local host to isolate internet related
> problems:
>  hg --version
> Mercurial Distributed SCM (version 3.5.1+0-0dda3692ec9b)
> (see http://mercurial.selenic.com for more information)
>
>
>  hg --debug push
> pushing to http://localhost/hg/proj

So what is running at http://localhost/hg/proj?

In other words what Web server is serving up the repo?

Also, how was it setup?

> using http://localhost/hg/proj
> sending capabilities command
> http authorization required for http://localhost/hg/proj
> realm: Orpara_SRC
> user: kzhou
> password: xxxx
> http auth: user kzhou, password *******
> query 1; heads
> sending batch command
> searching for changes
> all remote heads known locally
> preparing listkeys for "phases"
> sending listkeys command
> received listkey for "phases": 15 bytes
> checking for updated bookmarks
> preparing listkeys for "bookmarks"
> sending listkeys command
> received listkey for "bookmarks": 0 bytes
> sending branchmap command
> sending branchmap command
> preparing listkeys for "bookmarks"
> sending listkeys command
> received listkey for "bookmarks": 0 bytes
> 1 changesets found
> list of changesets:
> a894af7d50854fe0051f354214609ad65a735e58
> bundle2-output-bundle: "HG20", 4 parts total
> bundle2-output-part: "replycaps" 155 bytes payload
> bundle2-output-part: "check:heads" streamed payload
> bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
> bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
> sending unbundle command
> sending 930 bytes
> abort: authorization failed
>
> Kemin Zhou 858 771-3269
>
>    ------------------------------------------------------------------------
>    *From:* Adrian Klaver <adrian.klaver at aklaver.com>
>    *To:* Kemin Zhou <kmzhou4 at yahoo.com>; Matt Mackall <mpm at selenic.com>
>    *Cc:* "mercurial at selenic.com" <mercurial at selenic.com>
>    *Sent:* Sunday, September 13, 2015 1:35 PM
>    *Subject:* Re: authentication failure
>
>    On 09/13/2015 01:19 PM, Kemin Zhou via Mercurial wrote:
>      > Matt,
>      >
>      > Thanks for responding.
>      > Here is my exact session:
>      > $hg push
>      > pushing to http://myserver.com/hg/proj
>      > http authorization required for hppt://myserver.com/hg/proj
>      > realm: source_code
>      > user: kz
>      > password: xxxxxx
>      > searching for changes
>      > abort: authorization failed
>      >
>      > I search the mercurial source code tree and only find such codes
>      > in the test suit
>      > And in three files in the source tree.  It must be a very simple
>    mistake
>      > somewhere on my settings.
>      >
>      > I don't see any error logs in apache2 for the above. So it must
>      > be a crash inside the mercurial code.
>      >
>      > Is there a log file for mercurial on the server side that I can use
>      > for tracing the progression of this failure?
>
>    Off hand I would say:
>
>    hg --debug  push 1>debug.txt
>
>    From
>
>    hg help -v
>
>
>
>
>
>      >
>      > Kemin Zhou 858 771-3269
>      >
>      >
>    ------------------------------------------------------------------------
>      >    *From:* Matt Mackall <mpm at selenic.com <mailto:mpm at selenic.com>>
>      >    *To:* Kemin Zhou <kmzhou4 at yahoo.com <mailto:kmzhou4 at yahoo.com>>
>      >    *Cc:* "mercurial at selenic.com <mailto:mercurial at selenic.com>"
>    <mercurial at selenic.com <mailto:mercurial at selenic.com>>
>      >    *Sent:* Saturday, September 12, 2015 7:10 PM
>      >    *Subject:* Re: authentication failure
>      >
>      >    On Thu, 2015-09-10 at 18:31 +0000, Kemin Zhou via Mercurial wrote:
>      >
>      >
>      >
>      >      > I have read all the posts related to this failure.I got proper
>      >    permission and ownership for the repository.All configuration
>    files
>      >    done correctly:allow_push = properUserName or * both
>    triedpush_ssl =
>      >    false  in the hgrc file.
>      >      > All other functionality worked for the hgweb.
>      >
>      >
>      >    You may have a trust issue:
>      >
>      > https://mercurial.selenic.com/wiki/Trust
>      >
>      >    --
>      >    Mathematics is the supreme nostalgia of our time.
>
>      >
>      >
>      >
>      >
>      >
>      >
>      > _______________________________________________
>      > Mercurial mailing list
>      > Mercurial at selenic.com <mailto:Mercurial at selenic.com>
>      > https://selenic.com/mailman/listinfo/mercurial
>      >
>
>
>    --
>    Adrian Klaver
>    adrian.klaver at aklaver.com <mailto:adrian.klaver at aklaver.com>


>
>
>


-- 
Adrian Klaver
adrian.klaver at aklaver.com


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20150914/05145e90/attachment-0002.html>


More information about the Mercurial mailing list