Cannot push to shared server

Nick Gamroth thebeekeeper at gmail.com
Wed Apr 28 10:41:30 CDT 2010


Well, disregard that last message.  It looks like I've got something
working, but not quite perfect.

I can clone from the server with:
 hg clone http://***:***@thebeekeeper.net/hg/repos/x
To push however, I have to use:
 hg push --verbose http://****:****@thebeekeeper.net/hg/hgwebdir.cgi/x

Seems to me like either my .htaccessor my hgweb.config is no good, .
I'm guessing .htaccess because when I try and look at the web
interface I have to put hgwebdir.cgi in the URL, but I don't think
that should be the case.

Anyways, I know this isn't an apache list, but I'll post my .htaccess
and maybe somebody can give me a hint:
Options +ExecCGI
RewriteEngine On
RewriteBase /home2/thebeeke/public_html/hg
RewriteRule ^/(.*) /hgwebdir.cgi/$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) hgwebdir.cgi/$1 [QSA,L]
AuthUserFile /home2/thebeeke/etc/hg-basic-auth
AuthName "HG Repositories"
AuthType Basic
Require valid-user



On Wed, Apr 28, 2010 at 9:18 AM, Nick Gamroth <thebeekeeper at gmail.com> wrote:
> On Tue, Apr 27, 2010 at 11:24 PM, Matt Mackall <mpm at selenic.com> wrote:
>> On Tue, 2010-04-27 at 21:49 -0500, Nick Gamroth wrote:
>>> Hi,
>>> I've installed mercurial on a shared host (bluehost) using these
>>> instructions: http://gttools.com/bluehost-setup/mercurial-and-trac-setup-on-bluehost/
>>
>> We don't know anything about trac here.
>
> Should have been more clear; I'm not worried about Trac at all.
>>
>>> I can create repositories on the server from the shell, and I can even
>>> clone them on my local machine.  I am not able to push changes back to
>>> the server however.
>>>
>>> Here is all the information I get:
>>>
>>>
>>> eper at ubuntu:/host/temp/f/PROJECT$ hg --verbose push
>>> http://****:****@thebeekeeper.net/hg/repos/PROJECT
>>> Not trusting file /host/temp/f/PROJECT/.hg/hgrc from untrusted user
>>> root, group root
>>> Not trusting file /host/temp/f/PROJECT/.hg/hgrc from untrusted user
>>> root, group root
>>> real URL is http://thebeekeeper.net/hg/repos/PROJECT/
>>> (falling back to static-http)
>>
>> Whatever's on the other end gave us an answer we weren't expecting when
>> we said hello. Check your server logs for errors. But pushing over plain
>> http is not advised.
>>
>
> Ok, here is my server log when I issue a hg push:
>  - myusername [28/Apr/2010:08:03:30 -0600] "GET
> /hg/repos/CBOARD/.hg/store/00changelog.i HTTP/1.1" 206 1410 "-"
> "mercurial/proto-1.0"
>  - - [28/Apr/2010:08:05:58 -0600] "GET
> /hg/repos/CBOARD?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between
> HTTP/1.1" 401 467 "-" "mercurial/proto-1.0"
>  - myusername [28/Apr/2010:08:05:58 -0600] "GET
> /hg/repos/CBOARD?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between
> HTTP/1.1" 301 934 "-" "mercurial/proto-1.0"
>  - myusername [28/Apr/2010:08:05:58 -0600] "GET
> /hg/repos/CBOARD/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between
> HTTP/1.1" 200 749 "-" "mercurial/proto-1.0"
>  - - [28/Apr/2010:08:05:59 -0600] "GET /hg/repos/CBOARD/.hg/requires
> HTTP/1.1" 401 467 "-" "mercurial/proto-1.0"
>  - myusername [28/Apr/2010:08:05:59 -0600] "GET
> /hg/repos/CBOARD/.hg/requires HTTP/1.1" 206 382 "-"
> "mercurial/proto-1.0"
>  - - [28/Apr/2010:08:05:59 -0600] "GET
> /hg/repos/CBOARD/.hg/store/00manifest.i HTTP/1.1" 401 467 "-"
> "mercurial/proto-1.0"
>  - myusername [28/Apr/2010:08:05:59 -0600] "GET
> /hg/repos/CBOARD/.hg/store/00manifest.i HTTP/1.1" 206 3122 "-"
> "mercurial/proto-1.0"
>  - - [28/Apr/2010:08:05:59 -0600] "GET
> /hg/repos/CBOARD/.hg/store/00changelog.i HTTP/1.1" 401 467 "-"
> "mercurial/proto-1.0"
>  - myusername [28/Apr/2010:08:05:59 -0600] "GET
> /hg/repos/CBOARD/.hg/store/00changelog.i HTTP/1.1" 206 1391 "-"
> "mercurial/proto-1.0"
>
> I don't really see any errors there.  I didn't know how to specify
> plain http, but I thought doing
> hg push https://***:***@thebeekeeper.net/hg/repos/CBOARD
> might help.  I get the same error, and the log looks almost the same:
>
>  - myusername [28/Apr/2010:08:06:45 -0600] "GET
> /~thebeeke/hg/repos/CBOARD/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between
> HTTP/1.1" 200 842 "-" "mercurial/proto-1.0"
>  - - [28/Apr/2010:08:06:45 -0600] "GET /hg/repos/CBOARD/.hg/requires
> HTTP/1.1" 301 2515 "-" "mercurial/proto-1.0"
>  - - [28/Apr/2010:08:06:45 -0600] "GET
> /~thebeeke/hg/repos/CBOARD/.hg/requires HTTP/1.1" 401 5001 "-"
> "mercurial/proto-1.0"
>  - myusername [28/Apr/2010:08:06:45 -0600] "GET
> /~thebeeke/hg/repos/CBOARD/.hg/requires HTTP/1.1" 206 2452 "-"
> "mercurial/proto-1.0"
>  - - [28/Apr/2010:08:06:46 -0600] "GET
> /hg/repos/CBOARD/.hg/store/00manifest.i HTTP/1.1" 301 521 "-"
> "mercurial/proto-1.0"
>  - - [28/Apr/2010:08:06:46 -0600] "GET
> /~thebeeke/hg/repos/CBOARD/.hg/store/00manifest.i HTTP/1.1" 401 5033
> "-" "mercurial/proto-1.0"
>  - myusername [28/Apr/2010:08:06:46 -0600] "GET
> /~thebeeke/hg/repos/CBOARD/.hg/store/00manifest.i HTTP/1.1" 206 5204
> "-" "mercurial/proto-1.0"
>  - - [28/Apr/2010:08:06:46 -0600] "GET
> /hg/repos/CBOARD/.hg/store/00changelog.i HTTP/1.1" 301 521 "-"
> "mercurial/proto-1.0"
>  - - [28/Apr/2010:08:06:46 -0600] "GET
> /~thebeeke/hg/repos/CBOARD/.hg/store/00changelog.i HTTP/1.1" 401 5033
> "-" "mercurial/proto-1.0"
>  - myusername [28/Apr/2010:08:06:47 -0600] "GET
> /~thebeeke/hg/repos/CBOARD/.hg/store/00changelog.i HTTP/1.1" 206 3476
> "-" "mercurial/proto-1.0"
>
> Nothing there sticks out to me as a problem.
>
> Thanks for the help!
> Nick
>
>
>
>> --
>> http://selenic.com : development and support for Mercurial and Linux
>>
>>
>>
>
>
>
> --
> ~+~+~+~+~+~+~
> thebeekeeper.net
>



-- 
~+~+~+~+~+~+~
thebeekeeper.net


More information about the Mercurial mailing list