hgweb,py error pushing a repository

319 views
Skip to first unread message

Matt Linn

unread,
Aug 8, 2013, 8:45:34 AM8/8/13
to scmma...@googlegroups.com

I am trying to set a Mercurial server using SCM-Manager.

 

My Environment:

 

CentOS 6.4 64bit

Oracle JAVA jdk1.7.0_25

SCM-Manager 1.32

Mercurial 2.6.3

Python 2.6.6

 

I created a new repository and tried pushing.  The client received this error message

pushing to http://mercurial/hg/deployutil/main

searching for changes

abort: remote error:

Mercurial/Python process ends with return code 1

 

The server listed this message

08:38:28.469 [http-bio-80-exec-5] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Environment:

  TERM=xterm

  HTTP_USER_AGENT=mercurial/proto-1.0

  HTTP_CONTENT_TYPE=application/mercurial-0.1

  CONTENT_TYPE=application/mercurial-0.1

  PATH_TRANSLATED=/usr/tomcat/apache-tomcat-7.0.42/mercurial/ROOT/deployutil/main

  HTTP_AUTHORIZATION=(is set)

  SHLVL=2

  JAVA_HOME=/usr/java/jdk1.7.0_25

  HTTP_VARY=X-HgArg-1

  HTTP_ACCEPT=application/mercurial-0.1

  XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt

  PYTHONPATH=/data/mercurial-2.6.3:/data/scm.home/lib/python

  HTTP_ACCEPT_ENCODING=identity

  SERVER_SOFTWARE=scm-manager/1.32

  SERVER_NAME=mercurial

  PWD=/

  SCM_CREDENTIALS=(is set)

  SCRIPT_FILENAME=/usr/tomcat/apache-tomcat-7.0.42/mercurial/ROOT/hg

  REPO_NAME=deployutil/main

  SERVER_PROTOCOL=HTTP/1.1

  _=/usr/java/jdk1.7.0_25/bin/java

  NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat

  REQUEST_METHOD=POST

  SCM_CHALLENGE=(is set)

  HTTPS=OFF

  SERVER_PORT=80

  SCRIPT_NAME=/hg

  REMOTE_ADDR=172.18.132.116

  PATH=/usr/java/jdk1.7.0_25/bin:/sbin:/usr/sbin:/bin:/usr/bin

  SCM_URL=http://mercurial

  REMOTE_HOST=172.18.132.116

  HTTP_HOST=mercurial

  REMOTE_USER=mlinn

  PATH_INFO=/deployutil/main

  QUERY_STRING=cmd=unbundle

  AUTH_TYPE=BASIC

  GATEWAY_INTERFACE=CGI/1.1

  HTTP_CONTENT_LENGTH=426458

  HTTP_X_HGARG_1=heads=686173686564+6768033e216468247bd031a0a2d9876d79818f8f

  SCM_REPOSITORY_PATH=/data/scm.home/repositories/hg/deployutil/main

  CONTENT_LENGTH=426458

08:38:28.946 [Thread-9] WARN  sonia.scm.web.cgi.DefaultCGIExecutor - Traceback (most recent call last):

  File "/data/scm.home/lib/python/hgweb.py", line 42, in <module>

    wsgicgi.launch(application)

  File "/data/mercurial-2.6.3/mercurial/hgweb/wsgicgi.py", line 76, in launch

    content = application(environ, start_response)

  File "/data/mercurial-2.6.3/mercurial/hgweb/hgweb_mod.py", line 134, in __call__

    return self.run_wsgi(req)

  File "/data/mercurial-2.6.3/mercurial/hgweb/hgweb_mod.py", line 170, in run_wsgi

    return protocol.call(self.repo, req, cmd)

  File "/data/mercurial-2.6.3/mercurial/hgweb/protocol.py", line 76, in call

    rsp = wireproto.dispatch(repo, p, cmd)

  File "/data/mercurial-2.6.3/mercurial/wireproto.py", line 351, in dispatch

    return func(repo, proto, *args)

  File "/data/mercurial-2.6.3/mercurial/wireproto.py", line 627, in unbundle

    r = repo.addchangegroup(gen, 'serve', proto._client())

  File "/data/mercurial-2.6.3/mercurial/localrepo.py", line 58, in wrapper

    return orig(repo.unfiltered(), *args, **kwargs)

  File "/data/mercurial-2.6.3/mercurial/localrepo.py", line 2377, in addchangegroup

    url=url, pending=p)

  File "/data/mercurial-2.6.3/mercurial/localrepo.py", line 422, in hook

    return hook.hook(self.ui, self, name, throw, **args)

  File "/data/mercurial-2.6.3/mercurial/hook.py", line 198, in hook

    r = _pythonhook(ui, repo, name, hname, hookfn, args, throw) or r

  File "/data/mercurial-2.6.3/mercurial/hook.py", line 81, in _pythonhook

    r = obj(ui=ui, repo=repo, hooktype=name, **args)

  File "/data/scm.home/lib/python/scmhooks.py", line 77, in callback

    abort = callHookUrl(ui, repo, hooktype, node)

  File "/data/scm.home/lib/python/scmhooks.py", line 62, in callHookUrl

    msg = e.read();

AttributeError: 'URLError' object has no attribute 'read'

 

Any help would be greatly appreciated

 

Matt Linn

Production Engineer II

 

MModal-EMail

 

matt...@mmodal.com

www.mmodal.com

 

This electronic mail transmission contains confidential information intended only for the person(s) named. Any use, distribution, copying or disclosure by another person is strictly prohibited. If you are not the intended recipient of this e-mail, promptly delete it and all attachments.

 

 

Sebastian Sdorra

unread,
Aug 8, 2013, 9:55:19 AM8/8/13
to scmma...@googlegroups.com
Hi,
I've created a issue:


Could you please test the version attached to the issue?

Sebastian



2013/8/8 Matt Linn <matt...@mmodal.com>

--
You received this message because you are subscribed to the Google Groups "scmmanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scmmanager+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

image001.png

Matt Linn

unread,
Aug 8, 2013, 12:05:37 PM8/8/13
to scmma...@googlegroups.com
I am using a WAR deployment.  Is it possible to get a WAR?

Matt Linn
Production Engineer II 

MModal-EMail

Reply all
Reply to author
Forward
0 new messages