preoutgoing.pull_logger hook raised an exception: 'username'

Issue #510 resolved
Former user created an issue

When trying to pull changes from a remote location from the Admin Panel of a repository I'm getting the the error "An error occurred during pull from remote location" + exception in the logs:

ulling from http://192.168.208.40:8080/repos/1422/Harvest/bSpec/
searching for changes
error: preoutgoing.pull_logger hook raised an exception: 'username'
2012-07-30 16:17:22.201 ERROR [rhodecode.model.scm] Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/RhodeCode-1.3.6-py2.6.egg/rhodecode/model/scm.py", line 358, in pull_changes
repo.pull(clone_uri)
File "/usr/local/lib/python2.6/dist-packages/RhodeCode-1.3.6-py2.6.egg/rhodecode/lib/vcs/backends/hg/repository.py", line 468, in pull
pull(self.baseui, self._repo, url)
File "/usr/local/lib/python2.6/dist-packages/mercurial-2.2.3-py2.6-linux-i686.egg/mercurial/commands.py", line 4459, in pull
modheads = repo.pull(other, heads=revs, force=opts.get('force'))
File "/usr/local/lib/python2.6/dist-packages/mercurial-2.2.3-py2.6-linux-i686.egg/mercurial/localrepo.py", line 1560, in pull
heads=heads or rheads)
File "/usr/local/lib/python2.6/dist-packages/mercurial-2.2.3-py2.6-linux-i686.egg/mercurial/localrepo.py", line 1819, in getbundle
discovery.outgoing(cl, common, heads))
File "/usr/local/lib/python2.6/dist-packages/mercurial-2.2.3-py2.6-linux-i686.egg/mercurial/localrepo.py", line 1799, in getlocalbundle
source)
File "/usr/local/lib/python2.6/dist-packages/mercurial-2.2.3-py2.6-linux-i686.egg/mercurial/localrepo.py", line 1834, in _changegroupsubset
return self._changegroup(csets, source)
File "/usr/local/lib/python2.6/dist-packages/mercurial-2.2.3-py2.6-linux-i686.egg/mercurial/localrepo.py", line 1948, in _changegroup
self.hook('preoutgoing', throw=True, source=source)
File "/usr/local/lib/python2.6/dist-packages/mercurial-2.2.3-py2.6-linux-i686.egg/mercurial/localrepo.py", line 271, in hook
return hook.hook(self.ui, self,

Comments (5)

  1. Adam Dawidziuk

    Sorry for the messed-up copy/paste (actually BitBucket should be sorry, but anyways...)

    pulling from http://192.168.208.40:8080/repos/1422/Harvest/bSpec

    searching for changes

    error: preoutgoing.pull_logger hook raised an exception: 'username' 2012-07-30 16:17:22.201 ERROR [rhodecode.model.scm] Traceback (most recent call last):

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

    File "/usr/local/lib/python2.6/dist-packages/mercurial-2.2.3-py2.6-linux-i686.egg/mercurial/hook.py", line 176, in hook r = _pythonhook(ui, repo, name, hname, hookfn, args, throw) or r

    File "/usr/local/lib/python2.6/dist-packages/mercurial-2.2.3-py2.6-linux-i686.egg/mercurial/hook.py", line 75, in _pythonhook r = obj(ui=ui, repo=repo, hooktype=name, args)

    File "/usr/local/lib/python2.6/dist-packages/RhodeCode-1.3.6-py2.6.egg/rhodecode/lib/hooks.py", line 93, in log_pull_action username = extras['username']

    KeyError: 'username'

  2. Adam Dawidziuk

    Haven't tried APIs, only Web UI. On the other hand pulling/pushing between those repositories using hg frontend works as usual. I will gladly do some more testing if you're willing to provide some guidelines.

  3. Marcin Kuzminski repo owner

    That should be now fixed in beta branch, hooks will fallback to another method of extracting extra info if initial one fails

  4. Log in to comment