Run changegroup hook from an http clone

durwin durwin at mgtsciences.com
Tue Oct 1 13:52:48 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?
Would the changegroup hook run when executing hg push in hg user clone?  Doesn't the push command do the work?
Running hg push from hguser login does sync with other repository.  As stated, it does in fact run when pushed from http clone.  Checking ougoing in hguser login shows it pushed.  But from http clone, the command line prompt fails to return.  It says 'searching for changes' and does not return.

The hg-error_log shows;

[Tue Oct 01 07:39:05.432465 2013] [:info] [pid 3657] mod_wsgi (pid=3657): Create interpreter 'repository.mgtsciences.com|'.
[Tue Oct 01 07:39:05.712507 2013] [:info] [pid 3658] mod_wsgi (pid=3658): Create interpreter 'repository.mgtsciences.com|'.
[Tue Oct 01 07:39:05.919227 2013] [:info] [pid 3564] mod_wsgi (pid=3564): Create interpreter 'repository.mgtsciences.com|'.
[Tue Oct 01 07:39:06.303445 2013] [:error] [pid 3580] listing keys for "bookmarks"
[Tue Oct 01 07:39:06.645284 2013] [:info] [pid 3676] mod_wsgi (pid=3676): Initializing Python.
[Tue Oct 01 07:39:06.709299 2013] [:info] [pid 3676] mod_wsgi (pid=3676): Attach interpreter ''.
[Tue Oct 01 07:39:07.646761 2013] [:info] [pid 3691] mod_wsgi (pid=3691): Initializing Python.
[Tue Oct 01 07:39:07.657527 2013] [:info] [pid 3692] mod_wsgi (pid=3692): Initializing Python.
[Tue Oct 01 07:39:07.711160 2013] [:info] [pid 3691] mod_wsgi (pid=3691): Attach interpreter ''.
[Tue Oct 01 07:39:07.715556 2013] [:info] [pid 3692] mod_wsgi (pid=3692): Attach interpreter ''.
[Tue Oct 01 07:39:13.653100 2013] [:info] [pid 2316] mod_wsgi (pid=2316): Destroying interpreters.
[Tue Oct 01 07:39:13.653247 2013] [:info] [pid 2316] mod_wsgi (pid=2316): Destroy interpreter 'repository.mgtsciences.com|'.
[Tue Oct 01 07:39:13.660885 2013] [:info] [pid 2316] mod_wsgi (pid=2316): Cleanup interpreter ''.
[Tue Oct 01 07:39:13.665229 2013] [:info] [pid 2316] mod_wsgi (pid=2316): Terminating Python.
[Tue Oct 01 07:39:13.672268 2013] [:info] [pid 2316] mod_wsgi (pid=2316): Python has shutdown.
[Tue Oct 01 07:39:14.655044 2013] [:info] [pid 2334] mod_wsgi (pid=2334): Destroying interpreters.
[Tue Oct 01 07:39:14.655166 2013] [:info] [pid 2334] mod_wsgi (pid=2334): Destroy interpreter 'repository.mgtsciences.com|'.
[Tue Oct 01 07:39:14.662973 2013] [:info] [pid 2334] mod_wsgi (pid=2334): Cleanup interpreter ''.
[Tue Oct 01 07:39:14.667146 2013] [:info] [pid 2334] mod_wsgi (pid=2334): Terminating Python.
[Tue Oct 01 07:39:14.674255 2013] [:info] [pid 2334] mod_wsgi (pid=2334): Python has shutdown.


And the ssl-error_log literaly shows nothing.  No errors.
> 
> pacem in terris / ??? / ?????? / ????????? / ??
> Kevin R. Bullock





More information about the Mercurial mailing list