Note that there are some explanatory texts on larger screens.

plurals
  1. POMultiprocessing Remote Server and Socket Errors
    primarykey
    data
    text
    <p>I'm using the multiprocessing module to create a remote queue and I'm getting a socket error: "[Errno 10061] No connection could be made because the target machine actively refused it"</p> <p>My Server Code is very basic:</p> <pre><code>from multiprocessing.managers import BaseManager import Queue queue = Queue.Queue() class QueueManager(BaseManager): pass QueueManager.register('get_queue', callable=lambda:queue) m = QueueManager(address=('127.0.0.1', 50000), authkey='test') s = m.get_server() s.serve_forever() </code></pre> <p>All I need my server to do is to hold a job, and just pass the let the workers query the queue and pull the jobs to process.</p> <p>My client is accessing the machine as such to put a job into the queue:</p> <pre><code>import uuid from multiprocessing.managers import BaseManager class QueueManager(BaseManager): pass QueueManager.register('get_queue') m = QueueManager(address=('machine ip', 50000), authkey='test') m.connect() queue = m.get_queue() queue.put(r"%s" % uuid.uuid4().get_hex()) queue.put(r%s" % uuid.uuid4().get_hex()) </code></pre> <p>It call the get() to get an item in the queue.</p> <p>When I try to access the remote queue, I get the following error: "[Errno 10061] No connection could be made because the target machine actively refused it" as I mentioned above. If I run the code on the same machine it works fine, but when I distribute it among many machine, the clients cannot hit the server.</p> <p>I can ping the machine just fine, so my first thought was to disable the firewall. I did that an still get the socket error.</p> <p>I'm using right now Windows 7 for development.</p> <p>Any suggestions?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload