There is an issue with installation of freeipa-server. It fails during installation with error of starting the service at the end. Error code for server is: [TEST]root@dogtag-01:~# systemctl status ipa.service ▒ ipa.service - Identity, Policy, Audit Loaded: loaded (/lib/systemd/system/ipa.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2020-11-11 22:38:28 CET; 1min 34s ago Process: 25594 ExecStart=/usr/sbin/ipactl start (code=exited, status=1/FAILURE) Main PID: 25594 (code=exited, status=1/FAILURE)
Nov 11 22:38:28 dogtag-01.tc.eco.atman.pl systemd[1]: Starting Identity, Policy, Audit... Nov 11 22:38:28 dogtag-01.tc.eco.atman.pl ipactl[25594]: Unexpected error Nov 11 22:38:28 dogtag-01.tc.eco.atman.pl ipactl[25594]: SystemEncodingError: System encoding must be UTF-8, 'ANSI_X3.4-1968' is not supported. Set LC_ALL="C.UTF-8", or LC_ALL="" and LC_CTYPE="C.UTF-8". Nov 11 22:38:28 dogtag-01.tc.eco.atman.pl systemd[1]: ipa.service: Main process exited, code=exited, status=1/FAILURE Nov 11 22:38:28 dogtag-01.tc.eco.atman.pl systemd[1]: ipa.service: Failed with result 'exit-code'. Nov 11 22:38:28 dogtag-01.tc.eco.atman.pl systemd[1]: Failed to start Identity, Policy, Audit.
SystemEncodingError: System encoding must be UTF-8, 'ANSI_X3.4-1968' is not supported. Set LC_ALL="C.UTF-8", or LC_ALL="" and LC_CTYPE="C.UTF-8".
Error is visible as: SystemEncodingError: System encoding must be UTF-8, 'ANSI_X3.4-1968' is not supported. Set LC_ALL="C.UTF-8", or LC_ALL="" and LC_CTYPE="C.UTF-8".
Unfortunately when I changed default python to python3 it fails during ipa-custodia setup, so there is no option. Unfortunately I cannot change locales by: update-locale LANG=en_US.UTF-8 and reconfigure locales, as python is using standard C locale which fails with ANSI, even if all locales are setup correctly as UTF-8
No fails like that
Version is: 4.7.0~pre1+git20180411
This looks like Debian or Ubuntu environment issue. FreeIPA upstream has no involvement in Debian/Ubuntu packaging and cannot influence that environment. You need to work with your distribution vendor with that.
On top of this, 4.7 version series are not supported by FreeIPA upstream anymore.
Any chance you could upgrade the environment to something more modern?
Unfortunately it's the newest package for ubuntu 18.04 LTS in this repository. Before I was hitting this issue: https://pagure.io/freeipa/issue/7528 but I fixed it by replacing ipa-httpd-pwdreader with fix provided. I can try but I'm not fully sure if that fix is there, as per this ticket: https://pagure.io/freeipa/issue/7646
Is a newer version fully compatibile with python3 or in the other hand I will face such issue once again as I see in upstream...
As I said, there is nothing we (upstream) can do here. Please work with your downstream vendor.
FreeIPA 4.8+ is all python3.
Metadata Update from @abbra: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.