Run changegroup hook from an http clone
durwin
durwin at mgtsciences.com
Tue Oct 1 17:44:27 UTC 2013
> On 30 Sep 2013, at 3:22 PM, durwin wrote:
>
> > I have 2 repositories I require to be in sync. Both on Fedora 19. One
> > repository is accessed by ssh only, the other is access by http only
> > (ssh is not prevented in second one). Syncing the two works when using
> > ssh, but I have a problem getting sync successfully when second
> > repository is pushed to using http. To reduce the set of variables I
> > am running apache as 'hguser', this is the same user name used for
> > repositories. I have ssl keys so no login is required. Syncing works
> > when second one is pushed to using ssh but it must sync when pushed
> > using http. In fact it *does* sync, but the command line says
> > 'searching for changes' and never returns. I must press control-c and
> > of course that leaves a lock file. I have tried using 'command | at
> > now' but that gives me a message in /var/log/message of 'atd[1945]:
> > Cannot make/remove an entry for the specified session'. Any suggestion
> > is appreciated.
>
> The place to start when debugging pushes over HTTP is your web server's (Apache's) error log (n.b. *not* the access log).
>
> Does your changegroup hook run successfully from the command line when logged in as hguser?
When running the http push with debugging I get this. It still fails to return to a command line prompt. I swear it completed successfully the first time I ran it this morning. But that was the only time (if it did indeed complete).
$ hg --debug -vvv push
pushing to https://repository.mgtsciences.com/test-hg/
using https://repository.mgtsciences.com/test-hg/
sending capabilities command
using auth.mgtsciences.* for authentication
repository.mgtsciences.com certificate matched fingerprint 92:8b:83:d4:52:e8:c9:1b:f6:a3:5d:df:b5:f5:73:30:97:c0:44:72
using auth.mgtsciences.* for authentication
http auth: user durwin, password ********
using auth.mgtsciences.* for authentication
repository.mgtsciences.com certificate matched fingerprint 92:8b:83:d4:52:e8:c9:1b:f6:a3:5d:df:b5:f5:73:30:97:c0:44:72
query 1; heads
sending batch command
using auth.mgtsciences.* for authentication
http auth: user durwin, password ********
using auth.mgtsciences.* for authentication
repository.mgtsciences.com certificate matched fingerprint 92:8b:83:d4:52:e8:c9:1b:f6:a3:5d:df:b5:f5:73:30:97:c0:44:72
searching for changes
all remote heads known locally
sending branchmap command
using auth.mgtsciences.* for authentication
http auth: user durwin, password ********
using auth.mgtsciences.* for authentication
repository.mgtsciences.com certificate matched fingerprint 92:8b:83:d4:52:e8:c9:1b:f6:a3:5d:df:b5:f5:73:30:97:c0:44:72
sending branchmap command
using auth.mgtsciences.* for authentication
http auth: user durwin, password ********
using auth.mgtsciences.* for authentication
repository.mgtsciences.com certificate matched fingerprint 92:8b:83:d4:52:e8:c9:1b:f6:a3:5d:df:b5:f5:73:30:97:c0:44:72
preparing listkeys for "bookmarks"
sending listkeys command
using auth.mgtsciences.* for authentication
http auth: user durwin, password ********
using auth.mgtsciences.* for authentication
repository.mgtsciences.com certificate matched fingerprint 92:8b:83:d4:52:e8:c9:1b:f6:a3:5d:df:b5:f5:73:30:97:c0:44:72
1 changesets found
list of changesets:
689cfeb5f4b0095ad85466d30467e2de6e8d4df7
bundling: 1/1 changesets (100.00%)
bundling: 1/1 manifests (100.00%)
bundling: files/file1 1/1 files (100.00%)
sending unbundle command
sending 298 bytes
using auth.mgtsciences.* for authentication
sending: 0 kb
sending: 0 kb
http auth: user durwin, password ********
using auth.mgtsciences.* for authentication
repository.mgtsciences.com certificate matched fingerprint 92:8b:83:d4:52:e8:c9:1b:f6:a3:5d:df:b5:f5:73:30:97:c0:44:72
sending: 0 kb
sending: 0 kb
>
> pacem in terris / ??? / ?????? / ????????? / ??
> Kevin R. Bullock
More information about the Mercurial
mailing list