1. Sebastian Sebastian
  2. scm-manager
  3. Issues

Issues

Issue #424 resolved

Hg push fails with 'URLError' object has no attribute 'read'

Sebastian Sebastian
repo owner created an issue

In some cases "hg push" fails with the following exception:

  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'

For more informations have a look at 0qf1Gz3teekJ.

Comments (9)

  1. matt_linn

    I pulled the war file from the zip file and deployed. Now I am getting the following on push

    Client: C:\Projects\Deploy_Util>hg push http://mercurial/hg/deployutil/main pushing to http://mercurial/hg/deployutil/main searching for changes remote: adding changesets remote: adding manifests remote: adding file changes remote: added 2 changesets with 137 changes to 137 files remote: ERROR: <urlopen error [Errno -2] Name or service not known>transaction abort! remote: rollback completed

    Server: 13:38:29.179 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - could not find user send unauthorized 13:38:29.186 [http-bio-80-exec-10] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - found basic authorization header, start authentication 13:38:29.186 [http-bio-80-exec-10] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - try to authenticate user mlinn 13:38:29.186 [http-bio-80-exec-10] DEBUG sonia.scm.web.security.ChainAuthenticatonManager - authenticate mlinn via cache 13:38:29.186 [http-bio-80-exec-10] DEBUG sonia.scm.security.ScmRealm - user mlinn is member of Account Operators, PD Deployment Team, ccDev, PD Users, Corp_ITPD, authenticated, ClearCase, ProductDevelopment 13:38:29.190 [http-bio-80-exec-10] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - user mlinn successfully authenticated 13:38:29.190 [http-bio-80-exec-10] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.RepositoryManagerProvider 13:38:29.190 [http-bio-80-exec-10] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.RepositoryManagerProvider@3eeb5ad to event bus, async = true 13:38:29.190 [http-bio-80-exec-10] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.DefaultRepositoryProvider 13:38:29.190 [http-bio-80-exec-10] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.DefaultRepositoryProvider@2cd972df to event bus, async = true 13:38:29.191 [http-bio-80-exec-10] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.194 [http-bio-80-exec-10] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.195 [http-bio-80-exec-10] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.196 [http-bio-80-exec-10] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.196 [http-bio-80-exec-10] TRACE sonia.scm.web.filter.PermissionFilter - read access to repository deployutil/main for user mlinn granted 13:38:29.196 [http-bio-80-exec-10] TRACE sonia.scm.repository.RepositoryRequestListenerUtil - no repository request listener defined 13:38:29.197 [http-bio-80-exec-10] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - execute cgi: /usr/bin/python /data/scm.home/lib/python/hgweb.py 13:38:29.197 [http-bio-80-exec-10] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Environment: TERM=xterm HTTP_USER_AGENT=mercurial/proto-1.0 CONTENT_TYPE= 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_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.33-SNAPSHOT SERVER_NAME=mercurial PWD=/ SCM_CREDENTIALS=(is set) REPO_NAME=deployutil/main SCRIPT_FILENAME=/usr/tomcat/apache-tomcat-7.0.42/mercurial/ROOT/hg SERVER_PROTOCOL=HTTP/1.1 =/usr/java/jdk1.7.0_25/bin/java NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat REQUEST_METHOD=GET 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=capabilities AUTH_TYPE=BASIC GATEWAY_INTERFACE=CGI/1.1 SCM_REPOSITORY_PATH=/data/scm.home/repositories/hg/deployutil/main CONTENT_LENGTH=-1 13:38:29.289 [http-bio-80-exec-10] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Status: 200 Script output follows 13:38:29.289 [http-bio-80-exec-10] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - CGI returned with status 200 13:38:29.289 [http-bio-80-exec-10] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Type: application/mercurial-0.1 13:38:29.289 [http-bio-80-exec-10] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Length: 130 13:38:29.303 [http-bio-80-exec-10] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - handle status code 0 with statusCodeHandler, there are 130 bytes written to outputstream 13:38:29.303 [http-bio-80-exec-10] DEBUG sonia.scm.web.HgCGIExceptionHandler - mercurial process ends successfully 13:38:29.315 [http-bio-80-exec-10] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - could not find user send unauthorized 13:38:29.319 [http-bio-80-exec-6] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - found basic authorization header, start authentication 13:38:29.320 [http-bio-80-exec-6] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - try to authenticate user mlinn 13:38:29.320 [http-bio-80-exec-6] DEBUG sonia.scm.web.security.ChainAuthenticatonManager - authenticate mlinn via cache 13:38:29.320 [http-bio-80-exec-6] DEBUG sonia.scm.security.ScmRealm - user mlinn is member of Account Operators, PD Deployment Team, ccDev, PD Users, Corp_ITPD, authenticated, ClearCase, ProductDevelopment 13:38:29.321 [http-bio-80-exec-6] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - user mlinn successfully authenticated 13:38:29.321 [http-bio-80-exec-6] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.RepositoryManagerProvider 13:38:29.321 [http-bio-80-exec-6] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.RepositoryManagerProvider@272f294f to event bus, async = true 13:38:29.322 [http-bio-80-exec-6] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.DefaultRepositoryProvider 13:38:29.322 [http-bio-80-exec-6] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.DefaultRepositoryProvider@94115a2 to event bus, async = true 13:38:29.325 [http-bio-80-exec-6] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.326 [http-bio-80-exec-6] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.327 [http-bio-80-exec-6] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.327 [http-bio-80-exec-6] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.328 [http-bio-80-exec-6] TRACE sonia.scm.web.filter.PermissionFilter - read access to repository deployutil/main for user mlinn granted 13:38:29.328 [http-bio-80-exec-6] TRACE sonia.scm.repository.RepositoryRequestListenerUtil - no repository request listener defined 13:38:29.329 [http-bio-80-exec-6] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - execute cgi: /usr/bin/python /data/scm.home/lib/python/hgweb.py 13:38:29.329 [http-bio-80-exec-6] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Environment: TERM=xterm HTTP_USER_AGENT=mercurial/proto-1.0 CONTENT_TYPE= 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.33-SNAPSHOT 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=GET 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=batch AUTH_TYPE=BASIC GATEWAY_INTERFACE=CGI/1.1 HTTP_X_HGARG_1=cmds=heads+%3Bknown+nodes%3Da3633510e3fcda1facc87cea4b5c1e208c6b30c8 SCM_REPOSITORY_PATH=/data/scm.home/repositories/hg/deployutil/main CONTENT_LENGTH=-1 13:38:29.420 [http-bio-80-exec-6] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Status: 200 Script output follows 13:38:29.421 [http-bio-80-exec-6] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - CGI returned with status 200 13:38:29.421 [http-bio-80-exec-6] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Type: application/mercurial-0.1 13:38:29.421 [http-bio-80-exec-6] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Length: 43 13:38:29.434 [http-bio-80-exec-6] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - handle status code 0 with statusCodeHandler, there are 43 bytes written to outputstream 13:38:29.434 [http-bio-80-exec-6] DEBUG sonia.scm.web.HgCGIExceptionHandler - mercurial process ends successfully 13:38:29.436 [http-bio-80-exec-6] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - could not find user send unauthorized 13:38:29.441 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - found basic authorization header, start authentication 13:38:29.441 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - try to authenticate user mlinn 13:38:29.441 [http-bio-80-exec-2] DEBUG sonia.scm.web.security.ChainAuthenticatonManager - authenticate mlinn via cache 13:38:29.441 [http-bio-80-exec-2] DEBUG sonia.scm.security.ScmRealm - user mlinn is member of Account Operators, PD Deployment Team, ccDev, PD Users, Corp_ITPD, authenticated, ClearCase, ProductDevelopment 13:38:29.443 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - user mlinn successfully authenticated 13:38:29.444 [http-bio-80-exec-2] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.RepositoryManagerProvider 13:38:29.444 [http-bio-80-exec-2] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.RepositoryManagerProvider@32b19645 to event bus, async = true 13:38:29.444 [http-bio-80-exec-2] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.DefaultRepositoryProvider 13:38:29.444 [http-bio-80-exec-2] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.DefaultRepositoryProvider@2900a603 to event bus, async = true 13:38:29.446 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.447 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.448 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.450 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.450 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.PermissionFilter - read access to repository deployutil/main for user mlinn granted 13:38:29.450 [http-bio-80-exec-2] TRACE sonia.scm.repository.RepositoryRequestListenerUtil - no repository request listener defined 13:38:29.450 [http-bio-80-exec-2] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - execute cgi: /usr/bin/python /data/scm.home/lib/python/hgweb.py 13:38:29.451 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Environment: TERM=xterm HTTP_USER_AGENT=mercurial/proto-1.0 CONTENT_TYPE= 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.33-SNAPSHOT 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=GET 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=known AUTH_TYPE=BASIC GATEWAY_INTERFACE=CGI/1.1 HTTP_X_HGARG_1=nodes=5bc6b8dd6b613636dcdd0d33cc2a84f00b64a8b2 SCM_REPOSITORY_PATH=/data/scm.home/repositories/hg/deployutil/main CONTENT_LENGTH=-1 13:38:29.545 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Status: 200 Script output follows 13:38:29.545 [http-bio-80-exec-2] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - CGI returned with status 200 13:38:29.545 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Type: application/mercurial-0.1 13:38:29.546 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Length: 1 13:38:29.559 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - handle status code 0 with statusCodeHandler, there are 1 bytes written to outputstream 13:38:29.559 [http-bio-80-exec-2] DEBUG sonia.scm.web.HgCGIExceptionHandler - mercurial process ends successfully 13:38:29.678 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - could not find user send unauthorized 13:38:29.691 [http-bio-80-exec-1] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - found basic authorization header, start authentication 13:38:29.691 [http-bio-80-exec-1] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - try to authenticate user mlinn 13:38:29.692 [http-bio-80-exec-1] DEBUG sonia.scm.web.security.ChainAuthenticatonManager - authenticate mlinn via cache 13:38:29.692 [http-bio-80-exec-1] DEBUG sonia.scm.security.ScmRealm - user mlinn is member of Account Operators, PD Deployment Team, ccDev, PD Users, Corp_ITPD, authenticated, ClearCase, ProductDevelopment 13:38:29.693 [http-bio-80-exec-1] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - user mlinn successfully authenticated 13:38:29.693 [http-bio-80-exec-1] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.RepositoryManagerProvider 13:38:29.693 [http-bio-80-exec-1] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.RepositoryManagerProvider@766138a6 to event bus, async = true 13:38:29.693 [http-bio-80-exec-1] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.DefaultRepositoryProvider 13:38:29.693 [http-bio-80-exec-1] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.DefaultRepositoryProvider@68ce5701 to event bus, async = true 13:38:29.694 [http-bio-80-exec-1] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.695 [http-bio-80-exec-1] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.696 [http-bio-80-exec-1] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.697 [http-bio-80-exec-1] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:29.698 [http-bio-80-exec-1] TRACE sonia.scm.web.filter.PermissionFilter - write access to repository deployutil/main for user mlinn granted 13:38:29.698 [http-bio-80-exec-1] TRACE sonia.scm.repository.RepositoryRequestListenerUtil - no repository request listener defined 13:38:29.699 [http-bio-80-exec-1] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - execute cgi: /usr/bin/python /data/scm.home/lib/python/hgweb.py 13:38:29.700 [http-bio-80-exec-1] 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.33-SNAPSHOT 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 13:38:30.138 [http-bio-80-exec-1] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Status: 200 Script output follows 13:38:30.139 [http-bio-80-exec-1] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - CGI returned with status 200 13:38:30.139 [http-bio-80-exec-1] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Type: application/mercurial-0.1 13:38:30.139 [http-bio-80-exec-1] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Length: 203 13:38:30.153 [Thread-33] WARN sonia.scm.web.cgi.DefaultCGIExecutor - abort: pretxnchangegroup.scm hook failed

    13:38:30.154 [http-bio-80-exec-1] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - handle status code 0 with statusCodeHandler, there are 203 bytes written to outputstream 13:38:30.154 [http-bio-80-exec-1] DEBUG sonia.scm.web.HgCGIExceptionHandler - mercurial process ends successfully 13:38:30.159 [http-bio-80-exec-1] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - could not find user send unauthorized 13:38:30.163 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - found basic authorization header, start authentication 13:38:30.163 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - try to authenticate user mlinn 13:38:30.163 [http-bio-80-exec-2] DEBUG sonia.scm.web.security.ChainAuthenticatonManager - authenticate mlinn via cache 13:38:30.163 [http-bio-80-exec-2] DEBUG sonia.scm.security.ScmRealm - user mlinn is member of Account Operators, PD Deployment Team, ccDev, PD Users, Corp_ITPD, authenticated, ClearCase, ProductDevelopment 13:38:30.164 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - user mlinn successfully authenticated 13:38:30.164 [http-bio-80-exec-2] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.RepositoryManagerProvider 13:38:30.164 [http-bio-80-exec-2] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.RepositoryManagerProvider@350b97ae to event bus, async = true 13:38:30.165 [http-bio-80-exec-2] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.DefaultRepositoryProvider 13:38:30.165 [http-bio-80-exec-2] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.DefaultRepositoryProvider@c133bb7 to event bus, async = true 13:38:30.166 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:30.167 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:30.168 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:30.169 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:30.170 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.PermissionFilter - read access to repository deployutil/main for user mlinn granted 13:38:30.170 [http-bio-80-exec-2] TRACE sonia.scm.repository.RepositoryRequestListenerUtil - no repository request listener defined 13:38:30.170 [http-bio-80-exec-2] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - execute cgi: /usr/bin/python /data/scm.home/lib/python/hgweb.py 13:38:30.170 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Environment: TERM=xterm HTTP_USER_AGENT=mercurial/proto-1.0 CONTENT_TYPE= 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.33-SNAPSHOT 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=GET 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=listkeys AUTH_TYPE=BASIC GATEWAY_INTERFACE=CGI/1.1 HTTP_X_HGARG_1=namespace=phases SCM_REPOSITORY_PATH=/data/scm.home/repositories/hg/deployutil/main CONTENT_LENGTH=-1 13:38:30.266 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Status: 200 Script output follows 13:38:30.266 [http-bio-80-exec-2] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - CGI returned with status 200 13:38:30.267 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Type: application/mercurial-0.1 13:38:30.267 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Length: 15 13:38:30.280 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - handle status code 0 with statusCodeHandler, there are 15 bytes written to outputstream 13:38:30.281 [http-bio-80-exec-2] DEBUG sonia.scm.web.HgCGIExceptionHandler - mercurial process ends successfully 13:38:30.285 [http-bio-80-exec-6] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - could not find user send unauthorized 13:38:30.291 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - found basic authorization header, start authentication 13:38:30.291 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - try to authenticate user mlinn 13:38:30.291 [http-bio-80-exec-2] DEBUG sonia.scm.web.security.ChainAuthenticatonManager - authenticate mlinn via cache 13:38:30.291 [http-bio-80-exec-2] DEBUG sonia.scm.security.ScmRealm - user mlinn is member of Account Operators, PD Deployment Team, ccDev, PD Users, Corp_ITPD, authenticated, ClearCase, ProductDevelopment 13:38:30.293 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.BasicAuthenticationFilter - user mlinn successfully authenticated 13:38:30.293 [http-bio-80-exec-2] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.RepositoryManagerProvider 13:38:30.293 [http-bio-80-exec-2] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.RepositoryManagerProvider@4c1e13d2 to event bus, async = true 13:38:30.293 [http-bio-80-exec-2] TRACE sonia.scm.ScmEventBusModule - register subscriber class sonia.scm.repository.DefaultRepositoryProvider 13:38:30.293 [http-bio-80-exec-2] DEBUG sonia.scm.event.GuavaScmEventBus - register sonia.scm.repository.DefaultRepositoryProvider@4aa76708 to event bus, async = true 13:38:30.294 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:30.295 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:30.296 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:30.297 [http-bio-80-exec-2] TRACE sonia.scm.security.AuthorizationCollector - retrieve AuthorizationInfo for user mlinn from cache 13:38:30.297 [http-bio-80-exec-2] TRACE sonia.scm.web.filter.PermissionFilter - read access to repository deployutil/main for user mlinn granted 13:38:30.297 [http-bio-80-exec-2] TRACE sonia.scm.repository.RepositoryRequestListenerUtil - no repository request listener defined 13:38:30.297 [http-bio-80-exec-2] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - execute cgi: /usr/bin/python /data/scm.home/lib/python/hgweb.py 13:38:30.298 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Environment: TERM=xterm HTTP_USER_AGENT=mercurial/proto-1.0 CONTENT_TYPE= 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.33-SNAPSHOT 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=GET 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=listkeys AUTH_TYPE=BASIC GATEWAY_INTERFACE=CGI/1.1 HTTP_X_HGARG_1=namespace=bookmarks SCM_REPOSITORY_PATH=/data/scm.home/repositories/hg/deployutil/main CONTENT_LENGTH=-1 13:38:30.390 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Status: 200 Script output follows 13:38:30.391 [http-bio-80-exec-2] DEBUG sonia.scm.web.cgi.DefaultCGIExecutor - CGI returned with status 200 13:38:30.391 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Type: application/mercurial-0.1 13:38:30.391 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - Content-Length: 0 13:38:30.405 [http-bio-80-exec-2] TRACE sonia.scm.web.cgi.DefaultCGIExecutor - handle status code 0 with statusCodeHandler, there are 0 bytes written to outputstream 13:38:30.405 [http-bio-80-exec-2] DEBUG sonia.scm.web.HgCGIExceptionHandler - mercurial process ends successfully

  2. Sebastian Sebastian reporter

    The log above show the following environment property:

    SCM_URL=http://mercurial
    

    Have you replaced the value or it is the real value? Could you run a wget from your server against this url? Or better the following python code?

    import os, urllib, urllib2
    
    # use the url from SCM_URL
    url = "http://mercurial"
    
    try:
      proxy_handler = urllib2.ProxyHandler({})
      opener = urllib2.build_opener(proxy_handler)
      req = urllib2.Request(url)
      conn = opener.open(req)
      if conn.code >= 200 and conn.code < 300:
        print "success:"
        print conn.read()
    except urllib2.URLError, e:
      print str(e)
      if hasattr(e, "read"):
        print e.read()
    
  3. matt_linn

    I do not have a proxy in front of this server. The system name is MRL-MERCURIAL. Tomcat has a virtual host with an alias of mercurial. The tomcat installation runs multiple applications, all aliased to various names

  4. Log in to comment