Internal Server Error - Latin-1 Codec Error in Webgui (Fresh Install)

Hi,

i tried today 3 times fresh install (with and without updates while setup) to use primary dc.

If i open the webgui portal and click on any button after login with admin i get this “internal Server Error”

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/tornado/web.py", line 1595, in _execute
    result = yield result
  File "/usr/lib/python3/dist-packages/tornado/gen.py", line 1133, in run
    value = future.result()
  File "/usr/lib/python3/dist-packages/univention/management/console/resources.py", line 734, in get
    headers = self.get_request_header(session, methodname, umcp_command)
  File "/usr/lib/python3/dist-packages/univention/management/console/resources.py", line 794, in get_request_header
    headers['Authorization'] = 'basic ' + base64.b64encode(('%s:%s' % (session.user.username, session.get_umc_password())).encode('ISO8859-1')).decode('ASCII')
UnicodeEncodeError: 'latin-1' codec can't encode character '\u20ac' in position 17: ordinal not in range(256)

No idea, how i can solve it.

tried with http and https. no chance to use the portal or management gui.

Need help.

Thanks

Hi,

i tried diagnostic in terminal.

i got:

root@primary:~# univention-run-diagnostic-checks
Executing following checks: ['00_check_server_password', '01_ssh_connection', '02_certificate_check', '03_check_notifier_replication', '04_saml_certificate_check', '05_check_ldap_master', '10_gateway', '11_nameserver', '12_proxy', '20_check_nameservers', '21_check_join_status', '22_kdc_service', '23_check_update_sites', '30_disk_usage', '31_file_permissions', '32_security_limits', '40_samba_tool_dbcheck', '41_samba_tool_showrepl', '43_connectors4_rejects', '44_well_known_sid_check', '45_heimdal_on_samba4_dc', '46_kerberos_ddns_update', '50_check_ucr_templates', '51_hostname_check', '52_mail_acl_sync', '53_package_status', '54_sources_list_check', '55_user_migration', '56_univention_types', '57_univention_server_role_windows', '58_check_memberOf', '59_ldap_server_name', '60_old_schema_registration', '61_notifier_protocol_version', '62_check_slapschema', '63_proof_uniqueMembers', '64_check_ucr_types', '65_check_repository_config', '66_udm_country_remap_from_st_to_c', '67_postgresql_version', '69_check_app_listener_queue']

You can find the logging messages of the diagnostic modules at /var/log/univention/management-console-module-diagnostic.log

ran 00_check_server_password successfully.

ran 01_ssh_connection successfully.

ran 02_certificate_check successfully.

ran 03_check_notifier_replication successfully.

ran 04_saml_certificate_check successfully.

ran 05_check_ldap_master successfully.

ran 10_gateway successfully.

ran 11_nameserver successfully.

ran 12_proxy successfully.

ran 20_check_nameservers successfully.

ran 21_check_join_status successfully.

ran 22_kdc_service successfully.

ran 23_check_update_sites successfully.

ran 30_disk_usage successfully.

ran 31_file_permissions successfully.

ran 32_security_limits successfully.

ran 40_samba_tool_dbcheck successfully.

ran 41_samba_tool_showrepl successfully.

ran 43_connectors4_rejects successfully.

ran 44_well_known_sid_check successfully.

ran 45_heimdal_on_samba4_dc successfully.

ran 46_kerberos_ddns_update successfully.

ran 50_check_ucr_templates successfully.

ran 51_hostname_check successfully.

ran 52_mail_acl_sync successfully.

ran 53_package_status successfully.

ran 54_sources_list_check successfully.

ran 55_user_migration successfully.

ran 56_univention_types successfully.

ran 57_univention_server_role_windows successfully.

ran 58_check_memberOf successfully.

ran 59_ldap_server_name successfully.

ran 60_old_schema_registration successfully.

ran 61_notifier_protocol_version successfully.

ran 62_check_slapschema successfully.

ran 63_proof_uniqueMembers successfully.

ran 64_check_ucr_types successfully.

ran 65_check_repository_config successfully.

##################################################### Start 66_udm_country_remap_from_st_to_c ######################################################
## Check failed: 66_udm_country_remap_from_st_to_c - Kontrolliere, ob der UDM-Eigenschaft "country" "c" anstelle von "st" zugeordnet werden kann. ##
Die Benutzereigenschaft "country" (Land)  ist derzeit fälschlicherweise dem LDAP-Attribut "st" in UDM zugewiesen, welches ein Bundesland repräsentiert. Das korrekte LDAP-Attribut "c" repräsentiert ein Land. Die Migration wird sämtliche LDAP Daten kontrollieren, die vorhandenen Werte von Benutzern und Benutzervorlagen verschieben und eine domänenweite UCR-Richtlinie zum Ändern der Eigenschaften in UDM installieren. Wenn dieses Verhalten nicht erwünscht ist kann dieser Test durch setzen der UCR-Variable "diagnostic/check/disable/66_udm_country_remap_from_st_to_c" auf "true" deaktiviert werden.
Sie können `/usr/share/univention-directory-manager-tools/udm-remap-country-from-st-to-c` ausführen um zum neuen Format zu migrieren.
Das Script würde folgende Änderungen auf dem System anwenden:
Creating UCR policy (via univention-directory-manager policies/registry create --ignore_exists --position cn=config-registry,cn=policies,dc=REMOVED,dc=local --set name=map-country-to-st --set 'registry=directory/manager/web/modules/users/user/map-country-to-st false' )
Referencing UCR policy to all computers (via univention-directory-manager container/dc modify --dn dc=heideruh,dc=local --policy-reference cn=map-country-to-st,cn=config-registry,cn=policies,dc=REMOVED,dc=local )
Set UCR variable to apply the new mapping (via ucr set directory/manager/web/modules/users/user/map-country-to-st=false)
Referencing UCR policy to all computers (via univention-directory-manager container/dc modify --dn dc=REMOVED,dc=local --policy-reference cn=map-country-to-st,cn=config-registry,cn=policies,dc=REMOVED,dc=local )
###################################################### End 66_udm_country_remap_from_st_to_c #######################################################

ran 67_postgresql_version successfully.

ran 69_check_app_listener_queue successfully.

i will try the recommendations now

now i execute: /usr/share/univention-directory-manager-tools/udm-remap-country-from-st-to-c
and it ran fine, reboot… but it didnt help:
image

need fast help please

Did you use in the username or password? Do try to change it (or any other phonetic characters)

Mastodon