subscribing to any list is not possible
Hello, after i solved the qcluster error with a new installation i have still an error with subscribing. It is not possible to subscribe to any list via email or web-interface. The mass subcribtion as admin via the web-interface is possible and the unsubscribing also. But i can not get any error messages in any log file, nothing. Also the django users are fine, django users can subscribe without a problem. But subscribing to any list is not possible via the web-interface, with the error message "A Server Error occured please conntact the Administrator",also subscribing via email is not possible(mail.log is fine the mail is delivered), but there is no additionally error message in any log file. System: ubuntu 20.04.01 Mailman Core Version GNU Mailman 3.2.2 (La Villa Strangiato) Mailman Core API Version 3.0 Mailman Core Python Version 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
Hello again, cause of testing with the new installation, the mailman log file gives me an error:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/mailman/app/workflow.py", line 69, in __next__ return step() File "/usr/lib/python3/dist-packages/mailman/app/subscriptions.py", line 331, in _step_send_confirmation self._set_token(TokenOwner.subscriber) File "/usr/lib/python3/dist-packages/mailman/app/subscriptions.py", line 157, in _set_token self.token = pendings.add(pendable, timedelta(days=3650)) File "/usr/lib/python3/dist-packages/mailman/database/transaction.py", line 85, in wrapper return function(args[0], config.db.store, *args[1:], **kws) File "/usr/lib/python3/dist-packages/mailman/model/pending.py", line 91, in add token = token_factory.new() File "/usr/lib/python3/dist-packages/mailman/utilities/uid.py", line 79, in new return self._next_unpredictable_id() File "/usr/lib/python3/dist-packages/mailman/utilities/uid.py", line 155, in _next_unpredictable_id x = random.random() + right_now % 1.0 + time.clock() % 1.0 AttributeError: module 'time' has no attribute 'clock' Jan 13 09:23:29 2021 (1263) REST request handler error: Traceback (most recent call last): File "/usr/lib/python3.8/wsgiref/handlers.py", line 137, in run self.result = application(self.environ, self.start_response) File "/usr/lib/python3/dist-packages/mailman/database/transaction.py", line 50, in wrapper rtn = function(*args, **kws) File "/usr/lib/python3/dist-packages/mailman/rest/wsgiapp.py", line 218, in __call__ return super().__call__(environ, start_response) File "falcon/api.py", line 248, in falcon.api.API.__call__ File "falcon/api.py", line 244, in falcon.api.API.__call__ File "/usr/lib/python3/dist-packages/mailman/rest/members.py", line 262, in on_post token, token_owner, member = registrar.register( File "/usr/lib/python3/dist-packages/mailman/app/subscriptions.py", line 520, in register list(workflow) File "/usr/lib/python3/dist-packages/mailman/app/workflow.py", line 69, in __next__ return step() File "/usr/lib/python3/dist-packages/mailman/app/subscriptions.py", line 331, in _step_send_confirmation self._set_token(TokenOwner.subscriber) File "/usr/lib/python3/dist-packages/mailman/app/subscriptions.py", line 157, in _set_token self.token = pendings.add(pendable, timedelta(days=3650)) File "/usr/lib/python3/dist-packages/mailman/database/transaction.py", line 85, in wrapper return function(args[0], config.db.store, *args[1:], **kws) File "/usr/lib/python3/dist-packages/mailman/model/pending.py", line 91, in add token = token_factory.new() File "/usr/lib/python3/dist-packages/mailman/utilities/uid.py", line 79, in new return self._next_unpredictable_id() File "/usr/lib/python3/dist-packages/mailman/utilities/uid.py", line 155, in _next_unpredictable_id x = random.random() + right_now % 1.0 + time.clock() % 1.0 AttributeError: module 'time' has no attribute 'clock'
i found this: This bug has been already fixed in upstream: https://gitlab.com/mailman/mailman/-/commit/ea05bdd0f74ba06d85adad1f7d190a62... i will try to patch it.
Hello again, to try patch is good idea, but why my files are more different than the patch file lines? Should i rather copie the whole file? Should it not so, that all python files are the same doesn't matter on which system? Example: in cli_members.py: def add_members(mlist, infp): but into the patch file it is -> def add_members(mlist, add_infp): but this line is not a patch line and should be the same or not? this is confusing Why the files are more different than the patch lines?
Hello again, I import the patch lines, which where possible to import and for the first the error disappered. It is possible to subscribe to any list now, what should be so. Thanks for u help
r.woithe@callassoftware.com writes:
to try patch is good idea, but why my files are more different than the patch file lines?
You have a different version from the version the patch was created on.
Should i rather copie the whole file?
No. The patches are generally very local changes which are easy to understand. If you copy a whole file, you are likely to run into internal API changes, such as new functions or additional arguments. These changes typically do cross file boundaries.
Example: in cli_members.py: def add_members(mlist, infp): but into the patch file it is -> def add_members(mlist, add_infp): but this line is not a patch line and should be the same or not?
That depends on whether the patch lines use "infp". If they do, you almost certainly need to change them too.
I didn't make the patch so I can't help you with the details, but I did want to warn against trying to copy files when patches don't match.
Steve
participants (2)
-
r.woithe@callassoftware.com
-
Stephen J. Turnbull