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

Issue

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.

Version/Release/Distribution

freeipa-server-4.6.90.pre2-3.fc28.x86_64
freeipa-client-4.6.90.pre2-3.fc28.x86_64
package ipa-server is not installed
package ipa-client is not installed
389-ds-base-1.4.0.10-2.fc28.x86_64
pki-ca-10.6.1-3.fc28.noarch
krb5-server-1.16.1-7.fc28.x86_64

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 \
--log-file=[path]

install.log


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__
    **kwargs)
  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__
    prop.validate(value)
  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

5 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

5 years ago

master:

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

ipa-4-6:

  • 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)

5 years ago

Login to comment on this ticket.

Metadata
Attachments 1
Attached 5 years ago View Comment