WebApp Error: <class 'kallithea.lib.vcs.exceptions.NodeError'>: Only DirNode and its subclasses may be initialized with empty path

Tim Downey timothy.downey at gmail.com
Mon Sep 8 09:43:47 EDT 2014


Hi folks,

I'm in the process of migrating my Rhodecode over to Kallithea.  I've set
up the new Kallithea system and cloned my repos, but haven't yet cut my
users over.  I got this error message a few times over the weekend, but
it's not clear to me what it means.

It's possible that it has been happening all along on my Rhodecode server,
but I wouldn't have known since I apparently didn't have email configured
properly.

Can anyone shed light on this?  See below for the full error:

Module kallithea.controllers.files:*2* in diff_2way

Module kallithea.lib.auth:*776* in __wrapper

<<                       % (user, reason, loc)
                   )
                   return func(*fargs, **fkwargs)
               else:
                   log.warning('user %s authenticating with:%s NOT
authenticated on func: %s: '

>>  return func(*fargs, **fkwargs)

Module kallithea.controllers.files:*2* in diff_2way

Module kallithea.lib.auth:*835* in __wrapper

<<          if self.check_permissions():
                   log.debug('Permission granted for %s %s' % (cls, self.
user))
                   return func(*fargs, **fkwargs)

               else:

>>  return func(*fargs, **fkwargs)

Module kallithea.controllers.files:*732* in diff_2way

<<              else:
                       c.changeset_1 = EmptyChangeset(repo=c.
db_repo_scm_instance)
                       node1 = FileNode(f_path, '', changeset=c.changeset_1)

                   if diff2 not in ['', None, 'None', '0' * 12, '0' * 40]:

>>  node1 = FileNode(f_path, '', changeset=c.changeset_1)

Module kallithea.lib.vcs.nodes:*259* in __init__

<<          if content and changeset:
                   raise NodeError("Cannot use both content and changeset")
               super(FileNode, self).__init__(path, kind=NodeKind.FILE)
               self.changeset = changeset
               self._content = content

>>  super(FileNode, self).__init__(path, kind=NodeKind.FILE)

Module kallithea.lib.vcs.nodes:*106* in __init__

<<          self.path = safe_str(path.rstrip('/'))  # we store paths as str
               if path == '' and kind != NodeKind.DIR:
                   raise NodeError("Only DirNode and its subclasses may be "
                                   "initialized with empty path")
               self.kind = kind

>>  raise NodeError("Only DirNode and its subclasses may be "

*NodeError: Only DirNode and its subclasses may be initialized with empty
path*

*CGI Variables*

CONTENT_TYPE

'; charset="utf-8"'

HTTP_CONNECTION

'Keep-Alive'

HTTP_HOST

'localhost:5000'

HTTP_VIA

'1.1 kallithea'

HTTP_X_FORWARDED_FOR

'51.16.6.192'

HTTP_X_FORWARDED_HOST

'10.2.131.31'

HTTP_X_FORWARDED_SERVER

'kallithea'

PATH_INFO

'/lms/diff-2way/'

REMOTE_ADDR

'127.0.0.1'

REQUEST_METHOD

'GET'

SERVER_NAME

'localhost'

SERVER_PORT

'5000'

SERVER_PROTOCOL

'HTTP/1.1'

SERVER_SOFTWARE

'waitress'



*WSGI Variables*

application

<beaker.middleware.SessionMiddleware object at 0x3babed0>

beaker.get_session

<bound method SessionMiddleware._get_session of
<beaker.middleware.SessionMiddleware object at 0x3babed0>>

beaker.session

{'_accessed_time': 1410069869.389491, '_creation_time': 1410069869.389491}

paste.registry

<paste.registry.Registry object at 0x7f4aeda6dd10>

paste.throw_errors

True

pylons.action_method

<bound method FilesController.diff_2way of
<kallithea.controllers.files.FilesController object at 0x7f4aed01f290>>

pylons.controller

<kallithea.controllers.files.FilesController object at 0x7f4aed01f290>

pylons.environ_config

{'session': 'beaker.session', 'cache': 'beaker.cache'}

pylons.pylons

<pylons.util.PylonsContext object at 0x7f4aed01f090>

pylons.routes_dict

{'action': u'diff_2way', 'controller': u'files', 'revision': u'tip',
'f_path': '', 'repo_name': u'lms'}

routes.route

<routes.route.Route object at 0x374ae10>

routes.url

<routes.util.URLGenerator object at 0x7f4af9278210>

webob._parsed_query_vars

(GET([]), '')

webob.adhoc_attrs

{'user': <AuthUser('id:1[default] ip:51.16.6.192 auth:True')>, 'language':
'en-us'}

wsgi process

'Multithreaded'

wsgi.file_wrapper

<class 'waitress.buffers.ReadOnlyFileBasedBuffer'>

wsgiorg.routing_args

(<routes.util.URLGenerator object at 0x7f4af9278210>, {'action':
u'diff_2way', 'controller': u'files', 'revision': u'tip', 'f_path': '',
'repo_name': u'lms'})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20140908/696589c0/attachment.html>


More information about the kallithea-general mailing list