HG: Pushing changes fails with Error 404

Issue #87 resolved
Daniel Mohni
created an issue

I converted a svn repo to mercurial and now tried to push a change make on my local clone using Netbeans.

I currently use scm-webapp-2011122901.war as I had problems with svn:tagging with 1.10 (issue #83)

Everything is on OSX, scm-manager is setup as a virtual server on a glassfish instance proxies by apache.

out put from netbeans console shows this: {{{

!java

Mercurial Push

INFO Pushing To: http://mohnid@scm.mohni.info/hg/jUDDFlib ... INFO Changesets to push: changeset : 19:9b0973731f87 tags : tip author : daniel@mohni.net date : Tue Jan 03 20:55:07 CET 2012 summary : - modified <scm> stuff to point to mercurial repo...

pushing to http://mohnid:***@scm.mohni.info/hg/jUDDFlib searching for changes remote: adding changesets remote: adding manifests remote: adding file changes remote: added 1 changesets with 2 changes to 2 files remote: scm-hook failed with error code 404 remote: transaction abort! remote: rollback completed INFO Pushed To: http://mohnid@scm.mohni.info/hg/jUDDFlib INFO From: jUDDF Library - /Users/Shared/NetBeansProjects/hg/jUDDFlib INFO: End of Mercurial Push }}}

In the server log I found this entries:

{{{

!java

21:43:42.539 [http-thread-pool-9080(3)] INFO sonia.scm.web.filter.PermissionFilter - write access to repository jUDDFlib for user anonymous denied 21:43:42.739 [Thread-70] WARN sonia.scm.web.cgi.DefaultCGIExecutor - abort: pretxnchangegroup.scm hook failed

20:21:25.084 [http-thread-pool-9080(1)] INFO sonia.scm.web.filter.PermissionFilter - write access to repository jUDDFlib for user anonymous denied 20:21:25.275 [Thread-99] WARN sonia.scm.web.cgi.DefaultCGIExecutor - abort: pretxnchangegroup.scm hook failed

20:32:59.731 [http-thread-pool-9080(2)] INFO sonia.scm.web.filter.PermissionFilter - write access to repository jUDDFlib for user anonymous denied 20:32:59.921 [Thread-115] WARN sonia.scm.web.cgi.DefaultCGIExecutor - abort: pretxnchangegroup.scm hook failed

20:57:16.181 [http-thread-pool-9080(2)] INFO sonia.scm.web.filter.PermissionFilter - write access to repository jUDDFlib for user anonymous denied 20:57:16.370 [Thread-162] WARN sonia.scm.web.cgi.DefaultCGIExecutor - abort: pretxnchangegroup.scm hook failed

}}}

The repo is public with one user (mohnid) configured as owner. I did not configure the Phyton Search Path in the Mercurial Configuration.

Comments (2)

  1. Daniel Mohni reporter

    I already had the correct base url set, but did not enable 'force base url'.

    Enabling 'force base url' corrected this problem, now I could push to the remote repository

    Thanks for pointing me to the right direction

  2. Log in to comment