On Sep 22, 2023, at 19:35, Rob Crittenden via FreeIPA-users
<freeipa-users(a)lists.fedorahosted.org> wrote:
Francis Augusto Medeiros-Logeay via FreeIPA-users wrote:
> Hi,
>
> I have a FreeIPA on a VM that I use for testing. I had to take a pause on my work
with it, and after a few months, when I turn on the machine, FreeIPA won’t start. I get
this error:
>
> [Fri Sep 22 18:31:03.162384 2023] [wsgi:error] [pid 2433:tid 2433]
ModuleNotFoundError: No module named 'ipaserver.plugins.'
> [Fri Sep 22 18:31:03.183566 2023] [wsgi:error] [pid 2434:tid 2434] ipa: ERROR: Failed
to start IPA: No module named 'ipaserver.plugins.'
> [Fri Sep 22 18:31:03.183611 2023] [wsgi:error] [pid 2434:tid 2434] mod_wsgi
(pid=2434): Failed to exec Python script file '/usr/share/ipa/wsgi.py'.
> [Fri Sep 22 18:31:03.183634 2023] [wsgi:error] [pid 2434:tid 2434] mod_wsgi
(pid=2434): Exception occurred processing WSGI script '/usr/share/ipa/wsgi.py'.
> [Fri Sep 22 18:31:03.184501 2023] [wsgi:error] [pid 2434:tid 2434] Traceback (most
recent call last):
> [Fri Sep 22 18:31:03.184797 2023] [wsgi:error] [pid 2434:tid 2434] File
"/usr/share/ipa/wsgi.py", line 28, in <module>
> [Fri Sep 22 18:31:03.184805 2023] [wsgi:error] [pid 2434:tid 2434] application =
create_application()
> [Fri Sep 22 18:31:03.184810 2023] [wsgi:error] [pid 2434:tid 2434]
^^^^^^^^^^^^^^^^^^^^
> [Fri Sep 22 18:31:03.184819 2023] [wsgi:error] [pid 2434:tid 2434] File
"/usr/lib/python3.11/site-packages/ipaserver/wsgi.py", line 51, in
create_application
> [Fri Sep 22 18:31:03.184824 2023] [wsgi:error] [pid 2434:tid 2434]
api.finalize()
> [Fri Sep 22 18:31:03.184831 2023] [wsgi:error] [pid 2434:tid 2434] File
"/usr/lib/python3.11/site-packages/ipalib/plugable.py", line 753, in finalize
> [Fri Sep 22 18:31:03.184836 2023] [wsgi:error] [pid 2434:tid 2434]
self.__do_if_not_done('load_plugins')
> [Fri Sep 22 18:31:03.184844 2023] [wsgi:error] [pid 2434:tid 2434] File
"/usr/lib/python3.11/site-packages/ipalib/plugable.py", line 432, in
__do_if_not_done
> [Fri Sep 22 18:31:03.184849 2023] [wsgi:error] [pid 2434:tid 2434] getattr(self,
name)()
> [Fri Sep 22 18:31:03.184856 2023] [wsgi:error] [pid 2434:tid 2434] File
"/usr/lib/python3.11/site-packages/ipalib/plugable.py", line 633, in
load_plugins
> [Fri Sep 22 18:31:03.184860 2023] [wsgi:error] [pid 2434:tid 2434]
self.add_package(package)
> [Fri Sep 22 18:31:03.184867 2023] [wsgi:error] [pid 2434:tid 2434] File
"/usr/lib/python3.11/site-packages/ipalib/plugable.py", line 660, in
add_package
> [Fri Sep 22 18:31:03.184872 2023] [wsgi:error] [pid 2434:tid 2434] module =
importlib.import_module(name)
> [Fri Sep 22 18:31:03.184876 2023] [wsgi:error] [pid 2434:tid 2434]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [Fri Sep 22 18:31:03.184890 2023] [wsgi:error] [pid 2434:tid 2434] File
"/usr/lib64/python3.11/importlib/__init__.py", line 126, in import_module
> [Fri Sep 22 18:31:03.184894 2023] [wsgi:error] [pid 2434:tid 2434] return
_bootstrap._gcd_import(name[level:], package, level)
> [Fri Sep 22 18:31:03.184898 2023] [wsgi:error] [pid 2434:tid 2434]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [Fri Sep 22 18:31:03.184905 2023] [wsgi:error] [pid 2434:tid 2434] File
"<frozen importlib._bootstrap>", line 1204, in _gcd_import
> [Fri Sep 22 18:31:03.184912 2023] [wsgi:error] [pid 2434:tid 2434] File
"<frozen importlib._bootstrap>", line 1176, in _find_and_load
> [Fri Sep 22 18:31:03.184918 2023] [wsgi:error] [pid 2434:tid 2434] File
"<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
> [Fri Sep 22 18:31:03.184925 2023] [wsgi:error] [pid 2434:tid 2434] File
"<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
> [Fri Sep 22 18:31:03.184931 2023] [wsgi:error] [pid 2434:tid 2434] File
"<frozen importlib._bootstrap>", line 1204, in _gcd_import
> [Fri Sep 22 18:31:03.184942 2023] [wsgi:error] [pid 2434:tid 2434] File
"<frozen importlib._bootstrap>", line 1176, in _find_and_load
> [Fri Sep 22 18:31:03.184948 2023] [wsgi:error] [pid 2434:tid 2434] File
"<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
> [Fri Sep 22 18:31:03.184964 2023] [wsgi:error] [pid 2434:tid 2434]
ModuleNotFoundError: No module named 'ipaserver.plugins.’
>
> This is weird, can you help me to get it back to a usable state?
It's hard to say exactly with no version or distro information but it
sure like whole packages may be missing, or the contents removed.
python3-ipaserver in particular.
Sorry, my bad.
It is a Fedora release 37.
If you're on an rpm-based distro I'd start with rpm -V -a to validate
all system packages. IPA may not be alone. I don't know what the
equivalent is with apt.
It is missing the __pycache__ folders, according the the command
missing /usr/lib/python3.11/site-packages/ipaserver/plugins/__pycache__
(And lots of files under the __pycache__ folder.
Or you can try reinstalling the python3-ipaserver package, e.g. dnf
reinstall python3-ipaserver.
I did, but it still complains about some files missing from that folder. It also complains
about a plugin I thought I removed (missing
/usr/lib/python3.11/site-packages/ipaserver/plugins/mailserver.py)
If more than just this package are messed up validating all packages
will help avoid a whack-a-mole situation where fixing one problem
reveals another.
I can't explain how an entire directory disappeared but you might want
to check the filesystem as well.
It’s been so long since I touched this, that maybe I should just reinstall the whole thing
on calm day. At least I got the js and the py files of my plugin, plus some ldifs. :D
Best,
Francis
rob
_______________________________________________
FreeIPA-users mailing list -- freeipa-users(a)lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-leave(a)lists.fedorahosted.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedoraho...
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue