This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: multiprocessing AuthenticationError "digest sent was rejected"
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: Soon Jeffrey, ZackerySpytz, arp11, xiang.zhang
Priority: normal Keywords:

Created on 2017-05-22 20:24 by Soon Jeffrey, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg294178 - (view) Author: Soon Jeffrey (Soon Jeffrey) Date: 2017-05-22 20:24
This is codes I run:

class TopicManager(SyncManager):
    pass

Server side:
m = TopicManager(address=('', 50000), authkey='12345')
s = m.get_server()
s.serve_forever()

client side:
m = TopicManager(address=('eng-g9-018', 50000), authkey='12345')
m.connect()

When I use Python2.7.5, m.connect() can connect to server.
But when I use Python2.7.13, m.connect() throws out AuthenticationError "digest sent was rejected"

Searched and multiprocessing.current_process().authkey = "12345" doesn't   help.
msg294190 - (view) Author: Alex Perry (arp11) * Date: 2017-05-22 21:37
The docstring for the class points out that the `multiprocessing.Manager()` function creates started instances of the SyncManager class. You should probably follow that advice, it calls start() for you.
msg305621 - (view) Author: Xiang Zhang (xiang.zhang) * (Python committer) Date: 2017-11-06 07:10
I can't reproduce the failure with 2.7.13 but I do encounter the same failure just now, much same as yours, 2.7.5 and 2.7.13.  I'd like to describe my situation.

I have one client process started by 2.7.13(I build it from source) and one server process started by the system Python 2.7.5.  I then get the same error as yours, failing at connect() and the authkey doesn't matter.

The reason I find is that the system Python is patched by the OS vendor, changing the default MD5 algorithm to SHA256.  So they can't communicate.  Patching the source or syncing the version works for me.
msg375780 - (view) Author: Zackery Spytz (ZackerySpytz) * (Python triager) Date: 2020-08-22 05:13
Python 2.7 is no longer supported, so I think this issue should be closed.
History
Date User Action Args
2022-04-11 14:58:46adminsetgithub: 74619
2020-08-26 01:17:28xiang.zhangsetstatus: open -> closed
resolution: out of date
stage: test needed -> resolved
2020-08-22 05:13:34ZackerySpytzsetnosy: + ZackerySpytz
messages: + msg375780
2017-11-06 07:10:12xiang.zhangsetnosy: + xiang.zhang
messages: + msg305621

components: + Library (Lib)
stage: test needed
2017-05-22 21:37:40arp11setnosy: + arp11
messages: + msg294190
2017-05-22 20:24:15Soon Jeffreycreate