← Back to team overview

freeipa team mailing list archive

[Bug 1543230] Re: After installing freeipa-server-trust-ad ipa tries to start smb.service which doesn't exist

 

You don't need anything really but a virtual machine. I would actually
hope that you give it a try. I have been trying to set up a free ipa
server based on Ubuntu 15.10/16.04 and it has been a uphill battle all
the way. So match so that I am thinking about giving up and rolling it
in a docker container or just installing a CentOS server. I'm not saying
this as a threat but just to get my level of frustration across.

Steps:
1.) Install freeipa server:
sudo apt-get install freeipa-server

2.) configure ipa:
sudo ipa-server-install

2.a)
Opt to install DNS server

3.)
Dns will not work because AppArmor blocks bind9 from reading the freeipa domain. ← easy fix.
Also you will hit this bug: https://bugs.launchpad.net/ubuntu/+source/certmonger/+bug/1509484

4.)
Install freeipa-server-trust-ad
and run ipa-adtrust-install

I'm not sure what options I set exactly, but it shouldn't matter to
match. Is there a log file created by the installer somewhere?

-- 
You received this bug notification because you are a member of FreeIPA,
which is subscribed to freeipa in Ubuntu.
https://bugs.launchpad.net/bugs/1543230

Title:
  After installing freeipa-server-trust-ad ipa tries to start
  smb.service which doesn't exist

Status in freeipa package in Ubuntu:
  Triaged

Bug description:
  Installing freeipa-server-trust-ad (and running ipa-adtrust-install) will degrade the ipa server and brake the enter system, including dns server (bind9).  The reason is that ipactl tries to start samba by explicitly calling systemctl start 'smb.service'.
  Calling systemctl start 'smb.service' however results in:

  
  Failed to start smb.service: Unit smb.service failed to load: No such file or directory.

  debug output of "ipactl -d start":

  [...]

  ipa: DEBUG: stderr=
  Starting pki-tomcatd Service
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/bin/systemctl' 'start' 'pki-tomcatd.service'
  ipa: DEBUG: Process finished, return code=0
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/bin/systemctl' 'is-active' 'pki-tomcatd.service'
  ipa: DEBUG: Process finished, return code=0
  ipa: DEBUG: stdout=active

  ipa: DEBUG: stderr=
  Starting smb Service
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/bin/systemctl' 'start' 'smb.service'
  Failed to start smb.service: Unit smb.service failed to load: No such file or directory.
  ipa: DEBUG: Process finished, return code=6
  Failed to start smb Service
  Shutting down
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/usr/sbin/service' 'krb5-kdc' 'stop' ''
  ipa: DEBUG: Process finished, return code=0
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/usr/sbin/service' 'krb5-admin-server' 'stop' ''
  ipa: DEBUG: Process finished, return code=0
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/usr/sbin/service' 'bind9' 'stop' ''
  ipa: DEBUG: Process finished, return code=0
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/bin/systemctl' 'stop' 'ipa_memcached.service'
  ipa: DEBUG: Process finished, return code=0
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/usr/sbin/service' 'apache2' 'stop' ''
  ipa: DEBUG: Process finished, return code=0
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/bin/systemctl' 'stop' 'pki-tomcatd.service'
  ipa: DEBUG: Process finished, return code=0
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/bin/systemctl' 'stop' 'smb.service'
  Failed to stop smb.service: Unit smb.service not loaded.
  ipa: DEBUG: Process finished, return code=5
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/bin/systemctl' 'stop' 'winbind.service'
  ipa: DEBUG: Process finished, return code=0
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/bin/systemctl' 'stop' 'ipa-otpd.socket' '--ignore-dependencies'
  ipa: DEBUG: Process finished, return code=0
  ipa: DEBUG: Starting external process
  ipa: DEBUG: args='/bin/systemctl' 'stop' 'dirsrv@##########.service'
  ipa: DEBUG: Process finished, return code=0
  ipa: DEBUG:   File "/usr/lib/python2.7/dist-packages/ipaserver/install/installutils.py", line 642, in run_script
      return_value = main_function()

    File "/usr/sbin/ipactl", line 505, in main
      ipa_start(options)

    File "/usr/sbin/ipactl", line 273, in ipa_start
      raise IpactlError("Aborting ipactl")

  ipa: DEBUG: The ipactl command failed, exception: IpactlError: Aborting ipactl
  Aborting ipactl

  
  This also affects 15.10! I updated to 16.04 to see if it was fixed already.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: freeipa-server-trust-ad 4.1.4-1
  ProcVersionSignature: Ubuntu 4.4.0-2.16-generic 4.4.0
  Uname: Linux 4.4.0-2-generic x86_64
  ApportVersion: 2.19.4-0ubuntu2
  Architecture: amd64
  Date: Mon Feb  8 18:25:11 2016
  InstallationDate: Installed on 2016-01-19 (20 days ago)
  InstallationMedia: Ubuntu-Server 15.10 "Wily Werewolf" - Release amd64 (20151021)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SourcePackage: freeipa
  UpgradeStatus: Upgraded to xenial on 2016-02-05 (3 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freeipa/+bug/1543230/+subscriptions


References