authentication failure

Adrian Klaver adrian.klaver at aklaver.com
Mon Sep 14 14:09:50 UTC 2015


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



More information about the Mercurial mailing list