Issue 30434: multiprocessing AuthenticationError "digest sent was rejected" (original) (raw)

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:46 admin set github: 74619
2020-08-26 01:17:28 xiang.zhang set status: open -> closedresolution: out of datestage: test needed -> resolved
2020-08-22 05:13:34 ZackerySpytz set nosy: + ZackerySpytzmessages: +
2017-11-06 07:10:12 xiang.zhang set nosy: + xiang.zhangmessages: + components: + Library (Lib)stage: test needed
2017-05-22 21:37:40 arp11 set nosy: + arp11messages: +
2017-05-22 20:24:15 Soon Jeffrey create