freewso / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

error on client connect #433

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Everything works perfectly fine, even benchmarking --but there is allways an 
exception. I tried to read all the "Issus" reported, but the fixes i've found 
did not fix the problem for me. When i try to connect my other computers to the 
main node, it fails with a loop every 2 seconds. To the first guy who comes up 
with the solution for this problem gets a Pepsi Max in mail from Norway.

Config #1 (NODE):
--------------------------------------------------------------------------------
----
default_storage = mysql://user:password@localhost/mydb
limit_ncpus = 2
rpc_announce = true
rpc_announce_broadcast = false
rpc_knownclients = 22.222.22.222 33.333.33.333
rpc_server = true
workunit_size = 50000

Config #2 (Kali):
--------------------------------------------------------------------------------
----
default_storage = mysql://user:password@localhost/mydb
limit_ncpus = 2
rpc_announce = true
rpc_announce_broadcast = false
rpc_knownclients = 22.222.22.222
rpc_server = true
workunit_size = 50000

Config #3 (BT5):
--------------------------------------------------------------------------------
----
default_storage = mysql://user:password@localhost/mydb
limit_ncpus = 2
rpc_announce = true
rpc_announce_broadcast = false
rpc_knownclients = 33.333.33.333
rpc_server = true
workunit_size = 50000

Output:
--------------------------------------------------------------------------------
----
Serving 1 active clients; 0 PMKs/s; 0.0 TTS Exception in thread Thread-14:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/dist-packages/cpyrit/network.py", line 50, in run
    self.server.gather(self.client.uuid, 5000)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: "<class 'cpyrit.storage.StorageError'>:Not a PAW2-buffer.">

Original issue reported on code.google.com by christianbremvaag@gmail.com on 5 Jun 2013 at 10:27

GoogleCodeExporter commented 8 years ago
Tried updating libxml and libxslt to latest git snapshot, then i got this 
output without touching anything else but './configure ;make ;make install':

Output:
--------------------------------------------------------------------------------
-------
Serving 1 active clients; 0 PMKs/s; 0.0 TTS Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 117, in initFromArgv
    func(self, **options)
  File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 881, in serve
    server.addClient(addr)
  File "/usr/local/lib/python2.7/dist-packages/cpyrit/network.py", line 140, in addClient
    client = NetworkClient(srv_addr, self.enqueue, known_uuids)
  File "/usr/local/lib/python2.7/dist-packages/cpyrit/network.py", line 68, in __init__
    self.srv_uuid, self.uuid = self.server.register(";".join(known_uuids))
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1292, in single_request
    self.send_content(h, request_body)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1439, in send_content
    connection.endheaders(request_body)
  File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 791, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 772, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 571, in create_connection
    raise err
socket.error: [Errno 111] Connection refused

Original comment by christianbremvaag@gmail.com on 5 Jun 2013 at 10:48

GoogleCodeExporter commented 8 years ago
same issue

Original comment by Walther....@gmail.com on 10 Apr 2015 at 12:26