Error: No checker for twisted.cred.credentials.IAnonymous

Bug #1733209 reported by LarryE
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyBridge
New
Undecided
Unassigned

Bug Description

On:
evansl@lje-OptiPlex-9020:~/dwnlds/pybridge/launchpad/pybridge$ uname -a
Linux lje-OptiPlex-9020 4.4.0-98-generic #121-Ubuntu SMP Tue Oct 10 14:24:03 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

After starting the server, then the client, the connection to server
fails with error in Summary.

Here's output from terminal window:
--{--cut here--
evansl@lje-OptiPlex-9020:~/dwnlds/pybridge/launchpad/pybridge/bin$ ./pybridge&
[2] 5238
evansl@lje-OptiPlex-9020:~/dwnlds/pybridge/launchpad/pybridge/bin$ pythonpath= /home/evansl/dwnlds/pybridge/launchpad/pybridge
2017-11-19 03:42:44-0600 [-] Log opened.
2017-11-19 03:42:56-0600 [-] Starting factory <twisted.spread.pb.PBClientFactory instance at 0x7f2534018f38>
2017-11-19 03:42:56-0600 [Broker,0,127.0.0.1] Login failed for player1: User account does not exist on server
2017-11-19 03:42:56-0600 [Broker,0,127.0.0.1] Peer will receive following PB traceback:
2017-11-19 03:42:56-0600 [Broker,0,127.0.0.1] Unhandled Error
 Traceback (most recent call last):
 Failure: twisted.cred.error.UnauthorizedLogin: User account does not exist on server

2017-11-19 03:42:56-0600 [Broker,client] 'Error: User account does not exist on server'
2017-11-19 03:42:56-0600 [Broker,client] Lost connection to server
2017-11-19 03:42:56-0600 [-] Stopping factory <twisted.spread.pb.PBClientFactory instance at 0x7f2534018f38>
2017-11-19 03:43:07-0600 [-] Starting factory <twisted.spread.pb.PBClientFactory instance at 0x7f2534018f38>
2017-11-19 03:43:07-0600 [Broker,1,127.0.0.1] Peer will receive following PB traceback:
2017-11-19 03:43:07-0600 [Broker,1,127.0.0.1] Unhandled Error
 Traceback (most recent call last):
 Failure: twisted.cred.error.UnhandledCredentials: No checker for twisted.cred.credentials.IAnonymous

2017-11-19 03:43:07-0600 [Broker,client] 'Error: No checker for twisted.cred.credentials.IAnonymous'
2017-11-19 03:43:07-0600 [Broker,client] Lost connection to server
2017-11-19 03:43:07-0600 [-] Stopping factory <twisted.spread.pb.PBClientFactory instance at 0x7f2534018f38>

--}--cut here--

Revision history for this message
LarryE (cppljevans) wrote :

The problem disappears if, in pybridge/network/client.py in register function,
the assignment to anon is changed from:

  anon = credentials.Anonymous()

to:

  anon = credentials.UsernamePassword('', '')

which is apparently the way it is on the sourceforge repository.

HTH.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.