Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

JCR Repository Enable Failure

Help
2012-03-14
2012-12-15
  • My new JCR application runs in Windows 2003, when I configure the Repository Maintenance, there is a server error when I enable the checkbox of Enable. I disable the checkbox, save success.Why?

     
  • John Dickson
    John Dickson
    2012-03-15

    Hi

    Please post all log messages from attempting to configure the repository.

    Cheers ……………………………. JD

     
  • The information shows in console is:

    Error - <type 'exceptions.ImportError'>: No module named pysvn
    URL: http://10.10.30.5:5000/admin/repositories/update
    sys.path: [
        'D:\\Python27\\Scripts',
        'D:\\Python27\\lib\\site-packages\\jcr-0.7.2.1.egg',
        'D:\\Python27\\lib\\site-packages\\pygments-1.5-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\authkit-0.4.5-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\sqlalchemy-0.4.8-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\pylons-0.9.7-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\tempita-0.5.1-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\webtest-1.3.3-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\weberror-0.10.3-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\webob-0.9.6.1-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\mako-0.6.2-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\nose-1.1.2-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\decorator-3.3.2-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\simplejson-2.4.0-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\formencode-1.2.4-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\pastescript-1.7.5-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\pastedeploy-1.5.0-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\paste-1.7.5.1-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\beaker-1.6.3-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\webhelpers-1.3-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\routes-1.10.3-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\elementtree-1.2.7_20070827_preview-py2.6-
    win32.egg',
        'D:\\Python27\\lib\\site-packages\\python_openid-2.2.5-py2.6.egg',
        'D:\\Python27\\lib\\site-packages\\markupsafe-0.15-py2.6.egg',
        'D:\\Python27\\python26.zip',
        'D:\\Python27\\DLLs',
        'D:\\Python27\\lib',
        'D:\\Python27\\lib\\plat-win',
        'D:\\Python27\\lib\\lib-tk',
        'D:\\Python27',
        'D:\\Python27\\lib\\site-packages']
    File 'D:\\Python27\\lib\\site-packages\\weberror-0.10.3-py2.6.egg\\weberror\\err
    ormiddleware.py', line 162 in __call__
      app_iter = self.application(environ, sr_checker)
    File 'D:\\Python27\\lib\\site-packages\\authkit-0.4.5-py2.6.egg\\authkit\\authen
    ticate\\__init__.py', line 331 in __call__
      return self.app(environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\authkit-0.4.5-py2.6.egg\\authkit\\authen
    ticate\\cookie.py', line 480 in __call__
      return self.app(environ, cookie_setting_start_response)
    File 'D:\\Python27\\lib\\site-packages\\authkit-0.4.5-py2.6.egg\\authkit\\authen
    ticate\\forward.py', line 27 in __call__
      app_iter = self.application(environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\paste-1.7.5.1-py2.6.egg\\paste\\recursiv
    e.py', line 84 in __call__
      return self.application(environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\authkit-0.4.5-py2.6.egg\\authkit\\authen
    ticate\\multi.py', line 87 in __call__
      app_iter = app(environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\authkit-0.4.5-py2.6.egg\\authkit\\authen
    ticate\\multi.py', line 55 in app
      return self.default(environ, find)
    File 'D:\\Python27\\lib\\site-packages\\authkit-0.4.5-py2.6.egg\\authkit\\authen
    ticate\\__init__.py', line 321 in __call__
      return self.app(environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\authkit-0.4.5-py2.6.egg\\authkit\\authen
    ticate\\__init__.py', line 425 in __call__
      return self.application(environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\beaker-1.6.3-py2.6.egg\\beaker\\middlewa
    re.py', line 73 in __call__
      return self.app(environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\beaker-1.6.3-py2.6.egg\\beaker\\middlewa
    re.py', line 155 in __call__
      return self.wrap_app(environ, session_start_response)
    File 'D:\\Python27\\lib\\site-packages\\routes-1.10.3-py2.6.egg\\routes\\middlew
    are.py', line 130 in __call__
      response = self.app(environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\pylons-0.9.7-py2.6.egg\\pylons\\wsgiapp.
    py', line 125 in __call__
      response = self.dispatch(controller, environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\pylons-0.9.7-py2.6.egg\\pylons\\wsgiapp.
    py', line 324 in dispatch
      return controller(environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\jcr-0.7.2.1.egg\\jcr\\lib\\base.py', lin
    e 124 in __call__
      return WSGIController.__call__(self, environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\pylons-0.9.7-py2.6.egg\\pylons\\controll
    ers\\core.py', line 221 in __call__
      response = self._dispatch_call()
    File 'D:\\Python27\\lib\\site-packages\\pylons-0.9.7-py2.6.egg\\pylons\\controll
    ers\\core.py', line 172 in _dispatch_call
      response = self._inspect_call(func)
    File 'D:\\Python27\\lib\\site-packages\\pylons-0.9.7-py2.6.egg\\pylons\\controll
    ers\\core.py', line 107 in _inspect_call
      result = self._perform_call(func, args)
    File 'D:\\Python27\\lib\\site-packages\\pylons-0.9.7-py2.6.egg\\pylons\\controll
    ers\\core.py', line 60 in _perform_call
      return func(**args)
    File '<string>', line 2 in update
    File 'D:\\Python27\\lib\\site-packages\\authkit-0.4.5-py2.6.egg\\authkit\\author
    ize\\pylons_adaptors.py', line 36 in validate
      return permission.check(app, request.environ, self.start_response)
    File 'D:\\Python27\\lib\\site-packages\\authkit-0.4.5-py2.6.egg\\authkit\\permis
    sions.py', line 188 in check
      return app(environ, start_response)
    File 'D:\\Python27\\lib\\site-packages\\authkit-0.4.5-py2.6.egg\\authkit\\author
    ize\\pylons_adaptors.py', line 35 in app
      return func(self, *args, **kwargs)
    File '<string>', line 2 in update
    File 'D:\\Python27\\lib\\site-packages\\pylons-0.9.7-py2.6.egg\\pylons\\decorato
    rs\\__init__.py', line 135 in wrapper
      self.form_result = schema.to_python(decoded, state)
    File 'D:\\Python27\\lib\\site-packages\\formencode-1.2.4-py2.6.egg\\formencode\\
    api.py', line 419 in to_python
      value = tp(value, state)
    File 'D:\\Python27\\lib\\site-packages\\formencode-1.2.4-py2.6.egg\\formencode\\
    schema.py', line 199 in _to_python
      new = validator.to_python(new, state)
    File 'D:\\Python27\\lib\\site-packages\\formencode-1.2.4-py2.6.egg\\formencode\\
    api.py', line 422 in to_python
      vp(value, state)
    File 'D:\\Python27\\lib\\site-packages\\jcr-0.7.2.1.egg\\jcr\\controllers\\admin
    \\repositories.py', line 25 in validate_python
      vcs.validatePathInRepository(repository, '/')
    File 'D:\\Python27\\lib\\site-packages\\jcr-0.7.2.1.egg\\jcr\\model\\vcs\\svn.py
    ', line 292 in validatePathInRepository
      conn = _getConnection(repository)
    File 'D:\\Python27\\lib\\site-packages\\jcr-0.7.2.1.egg\\jcr\\model\\vcs\\svn.py
    ', line 44 in _getConnection
      import pysvn
    ImportError: No module named pysvn
    CGI Variables
    -------------
      AUTH_TYPE: 'cookie'
      CONTENT_LENGTH: '-1'
      CONTENT_TYPE: 'application/x-www-form-urlencoded'
      HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
      HTTP_ACCEPT_CHARSET: 'GBK,utf-8;q=0.7,*;q=0.3'
      HTTP_ACCEPT_ENCODING: 'gzip,deflate,sdch'
      HTTP_ACCEPT_LANGUAGE: 'zh-CN,zh;q=0.8'
      HTTP_CACHE_CONTROL: 'max-age=0'
      HTTP_CONNECTION: 'keep-alive'
      HTTP_COOKIE: 'jcr=d5f558160f27144a6c9151a708fffc04b83281dc0d8d1410b30c4d3d8ceb
    b1e46cfb497c; authkit=6397aef0f596c9ae7cc88ef4ac831eb94f668895admin!'
      HTTP_HOST: '10.10.30.5:5000'
      HTTP_ORIGIN: 'http://10.10.30.5:5000'
      HTTP_REFERER: 'http://10.10.30.5:5000/admin/repositories/edit/1'
      HTTP_USER_AGENT: 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.11 (KHTML, like
     Gecko) Chrome/17.0.963.79 Safari/535.11'
      PATH_INFO: '/admin/repositories/update'
      REMOTE_ADDR: '192.168.19.33'
      REMOTE_USER: 'admin'
      REMOTE_USER_TOKENS: ['']
      REQUEST_METHOD: 'POST'
      SERVER_NAME: '0.0.0.0'
      SERVER_PORT: '5000'
      SERVER_PROTOCOL: 'HTTP/1.1'
    WSGI Variables
    --------------
      application: <authkit.authenticate.AddDictToEnviron object at 0x01C3ED50>
      authkit.authenticate: True
      authkit.config: {'setup.method': 'forward, cookie', 'cookie.secret': 'sOmE9143
    2134SeccrRttt', 'forward.signinpath': '/login', 'setup.enable': True, 'cookie.si
    gnoutpath': '/logout/'}
      authkit.intercept: ['401']
      beaker.cache: <beaker.cache.CacheManager object at 0x01C3E910>
      beaker.get_session: <bound method SessionMiddleware._get_session of <beaker.mi
    ddleware.SessionMiddleware object at 0x01C3E8B0>>
      beaker.session: {'authenticatedUser': <jcr.model.systemuser.SystemUser object
    at 0x03B3F310>, '_creation_time': 1332119701.062, '_accessed_time': 1332119979.7
    34, 'sortMP': <jcr.lib.toggles.ProjectListSortOrder object at 0x03B3F990>, 'sort
    SU': <jcr.lib.toggles.SystemUserListSortOrder object at 0x03B3FA30>}
      paste.auth_tkt.logout_user: <function logout_user at 0x03B0A930>
      paste.auth_tkt.set_user: <function set_user at 0x03B0A6B0>
      paste.auth_tkt.timestamp: 1332119701
      paste.cookies: (<SimpleCookie: authkit='6397aef0f596c9ae7cc88ef4ac831eb94f6688
    95admin!' jcr='d5f558160f27144a6c9151a708fffc04b83281dc0d8d1410b30c4d3d8cebb1e46
    cfb497c'>, 'jcr=d5f558160f27144a6c9151a708fffc04b83281dc0d8d1410b30c4d3d8cebb1e4
    6cfb497c; authkit=6397aef0f596c9ae7cc88ef4ac831eb94f668895admin!')
      paste.expected_exceptions: [<class 'paste.httpexceptions.HTTPException'>, <cla
    ss 'webob.exc.HTTPException'>]
      paste.httpexceptions: <authkit.authenticate.HTTPExceptionHandler object at 0x0
    1C3E990>
      paste.httpserver.thread_pool: <paste.httpserver.ThreadPool object at 0x01D316F
    0>
      paste.recursive.forward: <paste.recursive.Forwarder from />
      paste.recursive.include: <paste.recursive.Includer from />
      paste.recursive.include_app_iter: <paste.recursive.IncluderAppIter from />
      paste.recursive.script_name: ''
      paste.registry: <paste.registry.Registry object at 0x00F0D290>
      paste.throw_errors: True
      pylons.action_method: <bound method RepositoriesController.update of <jcr.cont
    rollers.admin.repositories.RepositoriesController object at 0x03B3F270>>
      pylons.controller: <jcr.controllers.admin.repositories.RepositoriesController
    object at 0x03B3F270>
      pylons.environ_config: {'session': 'beaker.session', 'cache': 'beaker.cache'}
      pylons.pylons: <pylons.util.PylonsContext object at 0x03B3F190>
      pylons.routes_dict: {'action': u'update', 'controller': u'admin/repositories',
     'id': None}
      routes.route: <routes.route.Route object at 0x01BD2A50>
      routes.url: <routes.util.URLGenerator object at 0x03B35290>
      webob._parsed_post_vars: (MultiDict([('repositoryId', '1'), ('name', 'archives
    _beta'), ('vcsType', 'SVN'), ('url', 'http://10.10.10.16:8001/svn/etl'), ('repos
    itoryUserName', '***'), ('password', '***'), ('repeatPassword', '***
    '), ('enabled', '1'), ('submit', 'Save')]), <FakeCGIBody at 0x3b35170 viewing M
    ultiDict([('re...e')])>)
      webob._parsed_query_vars: (MultiDict([]), '')
      webob.adhoc_attrs: {'errors': 'ignore', 'language': 'en-us'}
      wsgi process: 'Multithreaded'
      wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x03B35290>, {'acti
    on': u'update', 'controller': u'admin/repositories', 'id': None})
    ------------------------------------------------------------
    
     
  • John Dickson
    John Dickson
    2012-03-19

    Hi

    This is saying that the pysvn module (the library which JCR uses to talk to your Subversion repository) isn't available in the Python path.  And the path listing confirms this.

    You need to follow the instructions in http://jcodereview.sourceforge.net/html/setup/install.html to install pysvn.  Note the link to tigris.org, which should have binaries available for you to use on Windows.

    Cheers ………………………. JD

     
  • I see. Thank u.