What version of IPA? Are you using Fedora?

$ rpm -q freeipa-server freeipa-client ipa-server ipa-client 389-ds-base


On 01/23/2018 02:09 AM, Matt . via FreeIPA-users wrote:
On a fresh installed IPA server where I do a backup and restore right after 
installation I get:

a bytes-like object is required, not 'str'
The ipa-restore command failed. See /var/log/iparestore.log for more information

2018-01-23T04:05:29Z DEBUG stderr=
2018-01-23T04:05:29Z DEBUG Creating log directories for dogtag
2018-01-23T04:05:29Z INFO Restoring from userRoot in MY-DOMAIN-TLD
2018-01-23T04:05:29Z DEBUG   File 
"/usr/lib/python3.6/site-packages/ipapython/admintool.py", line 174, in execute
     return_value = self.run()
   File "/usr/lib/python3.6/site-packages/ipaserver/install/ipa_restore.py", 
line 396, in run
     self.ldif2db(instance, backend, online=options.online)
   File "/usr/lib/python3.6/site-packages/ipaserver/install/ipa_restore.py", 
line 554, in ldif2db
     ldif_parser.parse()
   File "/usr/lib64/python3.6/site-packages/ldif.py", line 470, in parse
     return self.parse_entry_records() # parse()
   File "/usr/lib64/python3.6/site-packages/ldif.py", line 460, in 
parse_entry_records
     self.handle(dn,entry)
   File "/usr/lib/python3.6/site-packages/ipaserver/install/ipa_restore.py", 
line 130, in handle
     self.writer.unparse(dn, entry)
   File "/usr/lib64/python3.6/site-packages/ldif.py", line 210, in unparse
     self._unparseAttrTypeandValue('dn', dn)
   File "/usr/lib64/python3.6/site-packages/ldif.py", line 158, in 
_unparseAttrTypeandValue
     self._unfold_lines(': '.join([attr_type, attr_value.decode('ascii')]))
   File "/usr/lib64/python3.6/site-packages/ldif.py", line 121, in _unfold_lines
     self._output_file.write(line)

2018-01-23T04:05:29Z DEBUG The ipa-restore command failed, exception: 
TypeError: a bytes-like object is required, not 'str'
2018-01-23T04:05:29Z ERROR a bytes-like object is required, not 'str'
2018-01-23T04:05:29Z ERROR The ipa-restore command failed. See 
/var/log/iparestore.log for more information

What goes wrong here ?

_______________________________________________
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org

_______________________________________________
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org

Reply via email to