Hello All,


Version: IPAv4.4

OS: RHEL 7.3


Having a python import issue during ipa-server-install here, and the internets 
are failing me. Please note that the urls and server names have been 
abstracted. During the install run, I get the following:


Forwarding 'schema' to json server 'https://ipaserver.domain.com/ipa/json'

Traceback (most recent call last):

  File "/usr/sbin/ipa-client-install", line 3128, in <module>


  File "/usr/sbin/ipa-client-install", line 3109, in main

    rval = install(options, env, fstore, statestore)

  File "/usr/sbin/ipa-client-install", line 2818, in install


  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 707, in 


  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 422, in 

    getattr(self, name)()

  File "/usr/lib/python2.7/site-packages/ipalib/plugable.py", line 585, in 

    for package in self.packages:

  File "/usr/lib/python2.7/site-packages/ipalib/__init__.py", line 919, in 


  File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/__init__.py", 
line 118, in get_package

    plugins = schema.get_package(server_info, client)

  File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", 
line 543, in get_package

    schema = Schema(client)

  File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", 
line 387, in __init__

    fingerprint, ttl = self._fetch(client, ignore_cache=read_failed)

  File "/usr/lib/python2.7/site-packages/ipaclient/remote_plugins/schema.py", 
line 426, in _fetch

    schema = client.forward(u'schema', **kwargs)['result']

  File "/usr/lib/python2.7/site-packages/ipalib/rpc.py", line 1033, in forward

    raise NetworkError(uri=server, error=e.errmsg)

ipalib.errors.NetworkError: cannot connect to 
''https://ipaserver.domain.com/ipa/json: Internal Server Error

ipa.ipapython.install.cli.install_tool(Server): ERROR    Configuration of 
client side components failed!

ipa.ipapython.install.cli.install_tool(Server): ERROR    The ipa-server-install 
command failed. See /var/log/ipaserver-install.log for more information


The install log doesn’t really tell me whole lot, save for a full stacktrace 
when running “ipa-client-install”:


2017-02-15T20:40:12Z DEBUG args=/usr/sbin/ipa-client-install --on-master 
--unattended --domain domain.com --server ipaserver.domain.com --realm 
REALM.COM --hostname ipaserver.domain.com

2017-02-15T20:40:13Z DEBUG Process finished, return code=1

2017-02-15T20:40:13Z DEBUG   File 
"/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 171, in execute

    return_value = self.run()

  File "/usr/lib/python2.7/site-packages/ipapython/install/cli.py", line 318, 
in run





However, in the httpd logs I see the following:


[Wed Feb 15 14:40:13.488496 2017] [wsgi:error] [pid 39142] [remote] mod_wsgi (pid=39142): Target WSGI script 
'/usr/share/ipa/wsgi.py' cannot be loaded as Python module.

[Wed Feb 15 14:40:13.488546 2017] [wsgi:error] [pid 39142] [remote] mod_wsgi (pid=39142): Exception occurred processing WSGI 
script '/usr/share/ipa/wsgi.py'.

[Wed Feb 15 14:40:13.488638 2017] [wsgi:error] [pid 39142] [remote] Traceback (most recent call last):

[Wed Feb 15 14:40:13.488664 2017] [wsgi:error] [pid 39142] [remote]   File "/usr/share/ipa/wsgi.py", line 26, in <module>

[Wed Feb 15 14:40:13.488674 2017] [wsgi:error] [pid 39142] [remote]     from ipalib import api

[Wed Feb 15 14:40:13.488691 2017] [wsgi:error] [pid 39142] [remote] ImportError: No module named 'ipalib'


Along with other import errors. However, I have confirmed I am able to import 
these global modules:


[root@720941-ipa ~]# python

Python 2.7.5 (default, Aug  2 2016, 04:20:16)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> from ipalib import api

>>> api

<ipalib.API object at 0x1846650>


I can also run the wsgi script directly without issue:


[root@720941-ipa ~]# python /usr/share/ipa/wsgi.py

ipa: INFO: *** PROCESS START ***


Can someone point me in the right direction here? Thank you in advance for your 



Ryan Hutchison, RHCE/CCNA

Enterprise Support Architect

Rackspace Hosting

Direct: (210) 312-8157

Mobile: (210) 452-4349


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Manage your subscription for the Freeipa-users mailing list:
Go to http://freeipa.org for more info on the project

Reply via email to