#3277 services.list erorr on pure client install
Closed None Opened 11 years ago by rcritten.

I installed just ipa-python and ipa-client from a GIT build and saw an error during install related to missing services.list and a better error on uninstall:

# ipa-client-install --uninstall -U
messagebus failed to start: [Errno 2] No such file or directory: '/var/run/ipa/services.list'
certmonger failed to start: [Errno 2] No such file or directory: '/var/run/ipa/services.list'
certmonger failed to stop: [Errno 2] No such file or directory: '/var/run/ipa/services.list'
Unenrolling client from IPA server
Removing Kerberos service principals from /etc/krb5.keytab
Disabling client Kerberos and LDAP configurations
Redundant SSSD configuration file /etc/sssd/sssd.conf was moved to /etc/sssd/sssd.conf.deleted
Restoring client configuration files
nscd daemon is not installed, skip configuration
nslcd daemon is not installed, skip configuration
Traceback (most recent call last):
  File "/usr/sbin/ipa-client-install", line 2281, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-client-install", line 2258, in main
    return uninstall(options, env)
  File "/usr/sbin/ipa-client-install", line 558, in uninstall
    ipaservices.knownservices.ntpd.stop()
  File "/usr/lib/python2.7/site-packages/ipapython/platform/systemd.py", line 94, in stop
    super(SystemdService, self).stop(instance_name)
  File "/usr/lib/python2.7/site-packages/ipapython/platform/base.py", line 177, in stop
    f = open(SVC_LIST_FILE, 'w')
IOError: [Errno 2] No such file or directory: '/var/run/ipa/services.list'

During install I got it during:

2012-11-28T19:25:19Z DEBUG args=/bin/systemctl is-active messagebus.service
2012-11-28T19:25:19Z DEBUG Process finished, return code=0
2012-11-28T19:25:19Z DEBUG stdout=active

2012-11-28T19:25:19Z DEBUG stderr=
2012-11-28T19:25:19Z ERROR messagebus failed to start: [Errno 2] No such file or directory: '/var/run/ipa/services.list'

I guess we need to know the context of where the service start is coming from and only update services.list when done as a server.

This also fixes running ipactl stop followed by ipactl status. It was throwing an exception because the list file couldn't be opened.

Metadata Update from @rcritten:
- Issue assigned to rcritten
- Issue set to the milestone: FreeIPA 3.0.2

7 years ago

attachment
freeipa-rcrit-1074-service-list.patch

Hello. How to download and use it?

Why do you need to manually apply this? It is in every release for the last ten years, freeipa-3.1.0+.

Metadata Update from @rcritten:
- Issue close_status updated to: None (was: Fixed)
- Issue set to the milestone: None (was: FreeIPA 3.0.2)

a year ago

I don't know which one release is it, but I got this error in ubuntu 14 during ipaclient install.

The raw patch is at https://pagure.io/freeipa/raw/62e7053a12fdfc38ac7ed212529c716428c7d92b

You'll have to apply the patch manually because the patch is for the source tree, not installed packages. The file locations won't match what is in the patch.

Running ipa-client-install --version will tell you what version of it but it sounds like it is ancient. Ubuntu 14.04 has been EOL for more than 3 years now.

The raw patch is at https://pagure.io/freeipa/raw/62e7053a12fdfc38ac7ed212529c716428c7d92b

You'll have to apply the patch manually because the patch is for the source tree, not installed packages. The file locations won't match what is in the patch.

Thank you for this file. But I don't understand how to apply it manually. =)

Running ipa-client-install --version will tell you what version of it but it sounds like it is ancient. Ubuntu 14.04 has been EOL for more than 3 years now.

3.3.4

The patch is already included in 3.3.4. You must be seeing a different problem. I'd suggest you create a post on the freeipa-users mailing list. Just understand that neither the OS you are using nor the version of IPA are supported any more.

Login to comment on this ticket.

Metadata