Self-Service/Passwordreset crashes UMC

Hello,

lately, when trying to reset a user password via self-service, there is “some” error.
I say “lately” because it was in fact working.
After that I installed the Jitsi App and set up SAML. I don’t know exactly when it stopped working since I didn’t test it after each step.

On the frontend it looks like this after “next” is pressed:
passwordreset-whoops

Shortly after the umc completely hangs and needs to be restarted.

I’ve tried

ucr set umc/module/debug/level=4

and looked into /var/log/univention/management-console-module-passwordreset.log:

02.07.21 15:27:00.224  DEBUG_INIT
02.07.21 15:27:00.337  ADMIN       ( INFO    ) : admin.syntax.import_syntax_files: importing '/usr/lib/python2.7/dist-packages/univention/admin/syntax.d/univention-virtual-machine-manager-schema.py'
02.07.21 15:27:00.338  ADMIN       ( INFO    ) : admin.syntax.import_syntax_files: importing '/usr/lib/python2.7/dist-packages/univention/admin/syntax.d/example.py'
02.07.21 15:27:00.338  ADMIN       ( INFO    ) : admin.syntax.import_syntax_files: importing '/usr/lib/python2.7/dist-packages/univention/admin/syntax.d/samlserviceprovider.py'
02.07.21 15:27:00.338  ADMIN       ( INFO    ) : admin.syntax.import_syntax_files: importing '/usr/lib/python2.7/dist-packages/univention/admin/syntax.d/app_syntax.py'
02.07.21 15:27:00.338  ADMIN       ( INFO    ) : Warning: still importing code from /usr/lib/pymodules/python2.7. Migration to dh_python is necessary!
02.07.21 15:27:00.338  ADMIN       ( INFO    ) : admin.syntax.import_syntax_files: importing '/usr/lib/pymodules/python2.7/univention/admin/syntax.d/__init__.py'
02.07.21 15:27:00.338  ADMIN       ( INFO    ) : admin.hook.import_hook_files: importing '/usr/lib/python2.7/dist-packages/univention/admin/hooks.d/__init__.py'
02.07.21 15:27:00.338  ADMIN       ( INFO    ) : Warning: still importing code from /usr/lib/pymodules/python2.7. Migration to dh_python is necessary!
02.07.21 15:27:00.338  ADMIN       ( INFO    ) : admin.hook.import_hook_files: importing '/usr/lib/pymodules/python2.7/univention/admin/hooks.d/__init__.py'
02.07.21 15:27:00.728  MODULE      ( PROCESS ) : Loading python module.
02.07.21 15:27:00.770  MODULE      ( PROCESS ) : Imported python module.
02.07.21 15:27:00.770  MODULE      ( PROCESS ) : Module instance created.
02.07.21 15:27:00.770  MODULE      ( PROCESS ) : Module socket initialized.
02.07.21 15:27:00.770  MAIN        ( INFO    ) : Initialising server process
02.07.21 15:27:00.770  MAIN        ( INFO    ) : Using a UNIX socket
02.07.21 15:27:00.770  SSL         ( INFO    ) : Server listening to UNIX connections
02.07.21 15:27:00.781  MAIN        ( INFO    ) : Incoming connection from
02.07.21 15:27:00.783  PARSER      ( INFO    ) : UMCP REQUEST 162523242078179-0 parsed successfully
02.07.21 15:27:00.783  MODULE      ( INFO    ) : Received request 162523242078179-0
02.07.21 15:27:00.783  PROTOCOL    ( INFO    ) : Received UMCP SET REQUEST 162523242078179-0
02.07.21 15:27:00.783  MAIN        ( INFO    ) : Setting locale u'en_US.UTF-8'
02.07.21 15:27:00.783  MODULE      ( PROCESS ) : Setting user LDAP DN u'uid=rtemp,cn=users,dc=redacted,dc=redacted'
02.07.21 15:27:00.783  MODULE      ( PROCESS ) : Setting auth type to u'SAML'
02.07.21 15:27:00.783  MODULE      ( PROCESS ) : Initializing module.
02.07.21 15:27:00.786  MODULE      ( PROCESS ) : get_plugins(): Loaded sending plugin class 'SendEmail' for sending method 'email'.
02.07.21 15:27:00.791  MODULE      ( PROCESS ) : get_plugins(): Plugin class 'SendWithExternal' for sending method 'None' is disabled.
02.07.21 15:27:00.791  MODULE      ( PROCESS ) : get_plugins(): Loaded sending plugin class 'VerifyEmail' for sending method 'verify_email'.
02.07.21 15:27:00.796  MODULE      ( PROCESS ) : get_plugins(): Plugin class 'SendSMS' for sending method 'mobile' is disabled.
02.07.21 15:27:00.796  MODULE      ( PROCESS ) : get_plugins(): plugin class 'VerifyEmail' for sending method 'verify_email': udm_property: 'PasswordRecoveryEmailVerified' token_length: '64'
02.07.21 15:27:00.796  MODULE      ( PROCESS ) : get_plugins(): plugin class 'SendEmail' for sending method 'email': udm_property: 'PasswordRecoveryEmail' token_length: '64'
02.07.21 15:27:00.796  PROTOCOL    ( INFO    ) : Sending UMCP RESPONSE 162523242078179-0
02.07.21 15:27:00.797  PARSER      ( INFO    ) : UMCP REQUEST 162523241973020-2091 parsed successfully
02.07.21 15:27:00.797  MODULE      ( INFO    ) : Received request 162523241973020-2091
02.07.21 15:27:00.797  PROTOCOL    ( INFO    ) : Received UMCP COMMAND REQUEST 162523241973020-2091
02.07.21 15:27:00.797  MODULE      ( INFO    ) : Executing [u'passwordreset/get_reset_methods']
02.07.21 15:27:00.797  MAIN        ( INFO    ) : Setting locale u'en_US'
02.07.21 15:27:01.569  DEBUG_INIT
02.07.21 15:27:01.683  ADMIN       ( INFO    ) : admin.syntax.import_syntax_files: importing '/usr/lib/python2.7/dist-packages/univention/admin/syntax.d/univention-virtual-machine-manager-schema.py'
02.07.21 15:27:01.684  ADMIN       ( INFO    ) : admin.syntax.import_syntax_files: importing '/usr/lib/python2.7/dist-packages/univention/admin/syntax.d/example.py'
02.07.21 15:27:01.684  ADMIN       ( INFO    ) : admin.syntax.import_syntax_files: importing '/usr/lib/python2.7/dist-packages/univention/admin/syntax.d/samlserviceprovider.py'
02.07.21 15:27:01.684  ADMIN       ( INFO    ) : admin.syntax.import_syntax_files: importing '/usr/lib/python2.7/dist-packages/univention/admin/syntax.d/app_syntax.py'
02.07.21 15:27:01.684  ADMIN       ( INFO    ) : Warning: still importing code from /usr/lib/pymodules/python2.7. Migration to dh_python is necessary!
02.07.21 15:27:01.684  ADMIN       ( INFO    ) : admin.syntax.import_syntax_files: importing '/usr/lib/pymodules/python2.7/univention/admin/syntax.d/__init__.py'
02.07.21 15:27:01.685  ADMIN       ( INFO    ) : admin.hook.import_hook_files: importing '/usr/lib/python2.7/dist-packages/univention/admin/hooks.d/__init__.py'
02.07.21 15:27:01.685  ADMIN       ( INFO    ) : Warning: still importing code from /usr/lib/pymodules/python2.7. Migration to dh_python is necessary!
02.07.21 15:27:01.685  ADMIN       ( INFO    ) : admin.hook.import_hook_files: importing '/usr/lib/pymodules/python2.7/univention/admin/hooks.d/__init__.py'
02.07.21 15:27:02.200  MODULE      ( PROCESS ) : Loading python module.
02.07.21 15:27:02.241  MODULE      ( PROCESS ) : Imported python module.
02.07.21 15:27:02.241  MODULE      ( PROCESS ) : Module instance created.
02.07.21 15:27:02.241  MODULE      ( PROCESS ) : Module socket initialized.
02.07.21 15:27:02.241  MAIN        ( INFO    ) : Initialising server process
02.07.21 15:27:02.241  MAIN        ( INFO    ) : Using a UNIX socket
02.07.21 15:27:02.241  SSL         ( INFO    ) : Server listening to UNIX connections
02.07.21 15:27:02.285  MAIN        ( INFO    ) : Incoming connection from
02.07.21 15:27:02.286  PARSER      ( INFO    ) : UMCP REQUEST 162523242228566-1 parsed successfully
02.07.21 15:27:02.286  MODULE      ( INFO    ) : Received request 162523242228566-1
02.07.21 15:27:02.286  PROTOCOL    ( INFO    ) : Received UMCP SET REQUEST 162523242228566-1
02.07.21 15:27:02.286  MAIN        ( INFO    ) : Setting locale u'en_US.UTF-8'
02.07.21 15:27:02.287  MODULE      ( PROCESS ) : Setting user LDAP DN u'cn=dcm,cn=dc,cn=computers,dc=redacted,dc=redacted'
02.07.21 15:27:02.287  MODULE      ( PROCESS ) : Setting auth type to None
02.07.21 15:27:02.287  MODULE      ( PROCESS ) : Initializing module.
02.07.21 15:27:02.290  MODULE      ( PROCESS ) : get_plugins(): Loaded sending plugin class 'SendEmail' for sending method 'email'.
02.07.21 15:27:02.295  MODULE      ( PROCESS ) : get_plugins(): Plugin class 'SendWithExternal' for sending method 'None' is disabled.
02.07.21 15:27:02.295  MODULE      ( PROCESS ) : get_plugins(): Loaded sending plugin class 'VerifyEmail' for sending method 'verify_email'.
02.07.21 15:27:02.300  MODULE      ( PROCESS ) : get_plugins(): Plugin class 'SendSMS' for sending method 'mobile' is disabled.
02.07.21 15:27:02.301  MODULE      ( PROCESS ) : get_plugins(): plugin class 'VerifyEmail' for sending method 'verify_email': udm_property: 'PasswordRecoveryEmailVerified' token_length: '64'
02.07.21 15:27:02.301  MODULE      ( PROCESS ) : get_plugins(): plugin class 'SendEmail' for sending method 'email': udm_property: 'PasswordRecoveryEmail' token_length: '64'
02.07.21 15:27:02.301  PROTOCOL    ( INFO    ) : Sending UMCP RESPONSE 162523242228566-1
02.07.21 15:27:02.301  PARSER      ( INFO    ) : UMCP REQUEST 162523242104640-2093 parsed successfully
02.07.21 15:27:02.301  MODULE      ( INFO    ) : Received request 162523242104640-2093
02.07.21 15:27:02.301  PROTOCOL    ( INFO    ) : Received UMCP COMMAND REQUEST 162523242104640-2093
02.07.21 15:27:02.301  MODULE      ( INFO    ) : Executing [u'passwordreset/get_reset_methods']
02.07.21 15:27:02.301  MAIN        ( INFO    ) : Setting locale u'en_US'
02.07.21 15:27:03.079  DEBUG_INIT
[...]

As far as I understand, the module crashes and gets restarted numerous times (I’ve only included one restart here) for no obvious reason.

Looking at /var/log/univention/management-console-server.log: (same timespan)

management-console-server.log.1.gz:02.07.21 15:27:00.863  LOCALE      ( WARN    ) : Could not find translation file: 'umc-core.mo'
management-console-server.log.1.gz:02.07.21 15:27:00.982  MODULE      ( PROCESS ) : Setting auth type to None
management-console-server.log.1.gz:02.07.21 15:27:01.018  LOCALE      ( WARN    ) : Could not find translation file: 'umc-core.mo'
management-console-server.log.1.gz:02.07.21 15:27:01.126  MAIN        ( PROCESS ) : running: ['/usr/bin/python2.7', '/usr/sbin/univention-management-console-module', '-m', 'passwordreset', '-s', '/var/run/univention-management-console/9255-1625232421126.socket', '-d', '4', '-l', 'en_US.UTF-8']
management-console-server.log.1.gz:02.07.21 15:27:02.377  LOCALE      ( WARN    ) : Could not find translation file: 'umc-core.mo'
management-console-server.log.1.gz:02.07.21 15:27:02.499  MODULE      ( PROCESS ) : Setting auth type to None
management-console-server.log.1.gz:02.07.21 15:27:02.557  LOCALE      ( WARN    ) : Could not find translation file: 'umc-core.mo'
management-console-server.log.1.gz:02.07.21 15:27:02.666  MAIN        ( PROCESS ) : running: ['/usr/bin/python2.7', '/usr/sbin/univention-management-console-module', '-m', 'passwordreset', '-s', '/var/run/univention-management-console/9255-1625232422665.socket', '-d', '4', '-l', 'en_US.UTF-8']
management-console-server.log.1.gz:02.07.21 15:27:03.808  LOCALE      ( WARN    ) : Could not find translation file: 'umc-core.mo'
management-console-server.log.1.gz:02.07.21 15:27:03.923  MODULE      ( PROCESS ) : Setting auth type to None
management-console-server.log.1.gz:02.07.21 15:27:03.973  LOCALE      ( WARN    ) : Could not find translation file: 'umc-core.mo'

These are about the only “facts” that I could gather.

Installed UCS is 4.4-8 errata 974, everything running on the DC master.

Can anyone kindly help me to trace this issue please?
Thank you!

(edit: typo)

Solved!

The Problem was the wrongly-set UCR-Setting umc/self-service/passwordreset/email/webserver_address.
It pointed to the external DNS-Name of the server, but in fact it should have pointed to the internal DNS name.

1 Like
Mastodon