#7612 ipa-server-install: 'str' object has no attribute 'decode'
Closed: fixed 2 years ago Opened 2 years ago by cdsinfra.


ipa-server-install terminates with an error.
Manually commenting out l. 480 in /usr/lib/python3.6/site-packages/ipaserver/install/dns.py allows it to continue.

Steps to Reproduce

  1. Run ipa-server-install (with parameters in my case

Actual behavior

The installation fails with this message:

ipapython.admintool: ERROR 'str' object has no attribute 'decode'
ipapython.admintool: ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information

Expected behavior

The installation succeeds.


package ipa-server is not installed
package ipa-client is not installed

Additional info:

Installation log attached.
Sanitised version of the parameters I ran the installer with:

ipa-server-install \
--ds-password='[password]' \
--admin-password='[password]' \
--ip-address=[ip] \
--ip-address=[ip] \
--ip-address=[ip] \
--domain=[domain] \
--realm=[realm] \
--hostname=[host] \
--setup-adtrust \
--setup-kra \
--setup-dns \
--idstart=200000 \
--no-ui-redirect \
--mkhomedir \
--no-ntp \
--allow-zone-overlap \
--auto-reverse \
--zonemgr=dns@[domain] \
--no-forwarders \


The uploaded log file is not accessible.

I'm experiencing the same when trying to install with--zonemgr=me@example.org:

2018-07-02T14:16:35Z DEBUG Logging to /var/log/ipaserver-install.log
2018-07-02T14:16:35Z INFO Checking DNS domain server.armandoneto.local, please wait ...
2018-07-02T14:16:35Z DEBUG   File "/usr/lib/python3.6/site-packages/ipapython/admintool.py", line 178, in execute
    return_value = self.run()
  File "/usr/lib/python3.6/site-packages/ipapython/install/cli.py", line 300, in run
    cfgr = transformed_cls(**kwargs)
  File "/usr/lib/python3.6/site-packages/ipapython/install/common.py", line 94, in __init__
  File "/usr/lib/python3.6/site-packages/ipaserver/install/server/__init__.py", line 595, in __init__
    super(ServerMasterInstall, self).__init__(**kwargs)
  File "/usr/lib/python3.6/site-packages/ipaserver/install/server/__init__.py", line 339, in __init__
    super(ServerInstallInterface, self).__init__(**kwargs)
  File "/usr/lib/python3.6/site-packages/ipaclient/install/client.py", line 3571, in __init__
    super(ClientInstallInterface, self).__init__(**kwargs)
  File "/usr/lib/python3.6/site-packages/ipapython/install/core.py", line 314, in __init__
  File "/usr/lib/python3.6/site-packages/ipapython/install/core.py", line 145, in validate
    func(self.outer, value)
  File "/usr/lib/python3.6/site-packages/ipaserver/install/dns.py", line 480, in zonemgr
    value = value.decode(encoding)

2018-07-02T14:16:35Z DEBUG The ipa-server-install command failed, exception: AttributeError: 'str' object has no attribute 'decode'
2018-07-02T14:16:35Z ERROR 'str' object has no attribute 'decode'
2018-07-02T14:16:35Z ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information

Metadata Update from @abiagion:
- Issue assigned to abiagion

2 years ago

My log is identical to abiagon's.

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

2 years ago


  • e8d33cc ipa-server-install: fix zonemgr argument validator


  • 226d91e ipa-server-install: fix zonemgr argument validator

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

2 years ago

Login to comment on this ticket.

Attachments 1
Attached 2 years ago View Comment