← Back to team overview

sloecode-dev team mailing list archive

Re: error when trying my first push or branch

 

Hi Guy,

On 5 January 2012 17:45, Guy K. Kloss <guy.kloss@xxxxxxxxx> wrote:

>
> The server's log /var/log/sloecode/smartserver.log says:
>
> 2012-01-05 17:30:54+1300 [SSHService ssh-userauth on
> TimeoutProtocol,6,156.62.70.135] gkloss trying auth publickey
> 2012-01-05 17:30:54+1300 [SSHService ssh-userauth on
> TimeoutProtocol,6,156.62.70.135] [Failure instance: Traceback: <class
> 'xmlrpclib.ProtocolError'>: <ProtocolError for localhost/xmlrpc: 404 Not
> Found>
>
>
> /usr/lib/python2.6/dist-packages/sloecode/sshserver/auth.py:246:auth_publickey
>        /usr/lib/python2.6/dist-packages/twisted/cred/portal.py:115:login
>
>
> /usr/lib/python2.6/dist-packages/twisted/internet/defer.py:125:maybeDeferred
>
>
> /usr/lib/python2.6/dist-packages/twisted/conch/checkers.py:92:requestAvatarId
>        --- <exception caught here> ---
>
>
> /usr/lib/python2.6/dist-packages/twisted/internet/defer.py:125:maybeDeferred
>
> /usr/lib/python2.6/dist-packages/sloecode/sshserver/auth.py:267:checkKey
>
>
> /usr/lib/python2.6/dist-packages/sloecode/sshserver/auth.py:113:lookupUserDetails
>        /usr/lib/python2.6/xmlrpclib.py:1199:__call__
>        /usr/lib/python2.6/xmlrpclib.py:1489:__request
>        /usr/lib/python2.6/xmlrpclib.py:1243:request
>        ]
> 2012-01-05 17:30:54+1300 [SSHService ssh-userauth on
> TimeoutProtocol,6,156.62.70.135] gkloss failed auth publickey
> 2012-01-05 17:30:54+1300 [SSHService ssh-userauth on
> TimeoutProtocol,6,156.62.70.135] unauthorized login: unable to get avatar
> id
> 2012-01-05 17:30:54+1300 [TimeoutProtocol,6,156.62.70.135] connection lost
>
>
>
The bzr smart server talks to the main web-app via an XMLRPC interface. It
looks to me like the XMLRPC communication isn't working for some reason.
What happens when you try and point a web browser at the /xmlrpc url? You
won't get anything useful in the browser, but it might help narrow down the
issue. YTou can test the interface easily from a python terminal:


In [1]: import xmlrpclib
In [2]: s = xmlrpclib.Server('http://localhost:5000/xmlrpc')
In [3]: s.getKeysForUser('admin')
Out[3]: {'admin': []}

I've fixed a few of your other bugs today - they'll be in the daily builds
PPA when trunk is next built (usually with in 24 hours). If you're using
the stable PPA then you'll need to wait until we release 1.1 ;)

-- 
Thomi Richards

Follow ups

References