#8891 FreeIPA server in debug mode fails to run because time.perf_counter_ns is Python 3.7+
Closed: fixed 2 years ago by rcritten. Opened 2 years ago by fcami.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 8): Bug 1974822

Description of problem:

When running the IPA server in debug mode, I am seeing "Internal Server Error"
messages when running IPA commands.

ipa: ERROR: cannot connect to 'https://ipa-server-hostname/ipa/session/json':
Internal Server Error

Looking at the logs:

module 'time' has no attribute 'perf_counter_ns'

Version-Release number of selected component (if applicable):
ipa-server-4.9.3-1.module+el8.5.0+10565+ae980a94.x86_64


How reproducible:
always

Steps to Reproduce:
1.  ipa-server-install
2.  echo -e '[global]\ndebug=True' >> /etc/ipa/server.conf
3.  systemctl restart httpd
4.  ipa user-find

Actual results:
Internal Server Error

Expected results:
list users

Additional info:

Metadata Update from @fcami:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1974822

2 years ago

Metadata Update from @fcami:
- Issue assigned to fcami

2 years ago

Metadata Update from @fcami:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/5852

2 years ago

master:

  • 675b5d2 paths: add IPA_SERVER_CONF
  • 69497f4 ipatests: smoke test for server debug mode.
  • 06791db rpcserver.py: perf_counter_ns is Python 3.7+

ipa-4-9:

  • e713c22 paths: add IPA_SERVER_CONF
  • ee4be29 ipatests: smoke test for server debug mode.
  • 1539c73 rpcserver.py: perf_counter_ns is Python 3.7+

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata