Jeremy Tourville via FreeIPA-users wrote:
> ipa-ldap-updater filename.update (where filename is the acutal name of my
> file)
>
> Here is a debug file, I am not really sure how to interpret it though.
The line number isn't relevant as each line is parsed and passed through
the templater to replace any $VARIABLE values.
The message suggests that there is a stray $ in the line at column 30
but that's in the middle of some of the lines and way past others, and
the only $ in the data you posted is $SUFFIX.
Mayb you have a special character that isn't being displayed in the
file. od -c would show you.
Or you can comment out all the lines and keep running the updater while
uncommenting one line at a time until the error occurs so you can at
least see where it is blowing up.
rob
>
> [root@gsil-ipa01 ~]# ipa-ldap-updater satellitebdn.update --debug
> ipalib.sysrestore: DEBUG: Loading StateFile from
> '/var/lib/ipa/sysrestore/sysrestore.state'
> ipalib.sysrestore: DEBUG: Loading StateFile from
> '/var/lib/ipa/sysrestore/sysrestore.state'
> ipapython.admintool: DEBUG: Logging to /var/log/ipaupgrade.log
> ipapython.admintool: DEBUG: ipa-ldap-updater was invoked with arguments
> ['satellitebdn.update'] and options: {'verbose': True, 'quiet': False,
> 'log_file': None, 'upgrade': False, 'schema_files': None}
> ipapython.admintool: DEBUG: IPA version 4.9.10-9.module+el8.7.0+1119+c1de6b59
> ipapython.admintool: DEBUG: IPA platform rhel
> ipapython.admintool: DEBUG: IPA os-release Rocky Linux 8.7 (Green Obsidian)
> ipalib.plugable: DEBUG: importing all plugin modules in ipaserver.plugins...
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.aci
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.automember
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.automount
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.baseldap
> ipalib.plugable: DEBUG: ipaserver.plugins.baseldap is not a valid plugin
> module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.baseuser
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.batch
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.ca
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.caacl
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.cert
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.certmap
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.certprofile
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.config
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.delegation
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.dns
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.dnsserver
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.dogtag
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.domainlevel
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.group
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hbac
> ipalib.plugable: DEBUG: ipaserver.plugins.hbac is not a valid plugin module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hbacrule
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hbacsvc
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hbacsvcgroup
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hbactest
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.host
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hostgroup
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.idp
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.idrange
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.idviews
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.internal
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.join
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.krbtpolicy
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.ldap2
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.location
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.migration
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.misc
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.netgroup
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.otp
> ipalib.plugable: DEBUG: ipaserver.plugins.otp is not a valid plugin module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.otpconfig
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.otptoken
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.passwd
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.permission
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.ping
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.pkinit
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.privilege
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.pwpolicy
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.rabase
> ipalib.plugable: DEBUG: ipaserver.plugins.rabase is not a valid plugin module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.radiusproxy
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.realmdomains
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.role
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.schema
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.selfservice
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.plugins.selinuxusermap
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.server
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.serverrole
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.serverroles
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.service
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.plugins.servicedelegation
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.session
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.stageuser
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.subid
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.sudo
> ipalib.plugable: DEBUG: ipaserver.plugins.sudo is not a valid plugin module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.sudocmd
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.sudocmdgroup
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.sudorule
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.topology
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.trust
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.user
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.vault
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.virtual
> ipalib.plugable: DEBUG: ipaserver.plugins.virtual is not a valid plugin module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.whoami
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.xmlserver
> ipalib.plugable: DEBUG: importing all plugin modules in
> ipaserver.install.plugins...
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.adtrust
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.ca_renewal_master
> ipalib.plugable: DEBUG: importing plugin module ipaserver.install.plugins.dns
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.fix_kra_people_entry
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.fix_replica_agreements
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.rename_managed
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_ca_topology
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_changelog_maxage
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_dna_shared_config
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_fix_duplicate_cacrt_in_ldap
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_idranges
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_ldap_server_list
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_managed_permissions
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_nis
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_pacs
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_passsync
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_pwpolicy
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_ra_cert_store
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_referint
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_services
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_unhashed_password
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_uniqueness
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.upload_cacrt
> ipalib.backend: DEBUG: Created connection context.ldap2_140553401448208
> ipalib.plugable: DEBUG: importing all plugin modules in ipaserver.plugins...
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.aci
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.automember
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.automount
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.baseldap
> ipalib.plugable: DEBUG: ipaserver.plugins.baseldap is not a valid plugin
> module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.baseuser
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.batch
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.ca
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.caacl
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.cert
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.certmap
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.certprofile
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.config
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.delegation
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.dns
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.dnsserver
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.dogtag
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.domainlevel
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.group
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hbac
> ipalib.plugable: DEBUG: ipaserver.plugins.hbac is not a valid plugin module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hbacrule
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hbacsvc
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hbacsvcgroup
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hbactest
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.host
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.hostgroup
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.idp
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.idrange
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.idviews
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.internal
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.join
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.krbtpolicy
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.ldap2
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.location
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.migration
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.misc
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.netgroup
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.otp
> ipalib.plugable: DEBUG: ipaserver.plugins.otp is not a valid plugin module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.otpconfig
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.otptoken
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.passwd
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.permission
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.ping
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.pkinit
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.privilege
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.pwpolicy
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.rabase
> ipalib.plugable: DEBUG: ipaserver.plugins.rabase is not a valid plugin module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.radiusproxy
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.realmdomains
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.role
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.schema
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.selfservice
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.plugins.selinuxusermap
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.server
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.serverrole
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.serverroles
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.service
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.plugins.servicedelegation
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.session
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.stageuser
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.subid
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.sudo
> ipalib.plugable: DEBUG: ipaserver.plugins.sudo is not a valid plugin module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.sudocmd
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.sudocmdgroup
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.sudorule
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.topology
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.trust
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.user
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.vault
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.virtual
> ipalib.plugable: DEBUG: ipaserver.plugins.virtual is not a valid plugin module
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.whoami
> ipalib.plugable: DEBUG: importing plugin module ipaserver.plugins.xmlserver
> ipalib.plugable: DEBUG: importing all plugin modules in
> ipaserver.install.plugins...
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.adtrust
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.ca_renewal_master
> ipalib.plugable: DEBUG: importing plugin module ipaserver.install.plugins.dns
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.fix_kra_people_entry
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.fix_replica_agreements
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.rename_managed
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_ca_topology
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_changelog_maxage
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_dna_shared_config
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_fix_duplicate_cacrt_in_ldap
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_idranges
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_ldap_server_list
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_managed_permissions
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_nis
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_pacs
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_passsync
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_pwpolicy
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_ra_cert_store
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_referint
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_services
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_unhashed_password
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.update_uniqueness
> ipalib.plugable: DEBUG: importing plugin module
> ipaserver.install.plugins.upload_cacrt
> ipalib.backend: DEBUG: Created connection context.ldap2_140553391142280
> ipalib.frontend: DEBUG: raw: idrange_show('idm.x.x_id_range', version='2.251')
> ipalib.frontend: DEBUG: idrange_show('idm.x.x_id_range', rights=False,
> all=False, raw=False, version='2.251')
> ipapython.ipaldap: DEBUG: flushing ldapi://%2Frun%2Fslapd-idm-x-x.socket from
> SchemaCache
> ipapython.ipaldap: DEBUG: retrieving schema for SchemaCache
> url=ldapi://%2Frun%2Fslapd-idm-x-x.socket
> conn=<ldap.ldapobject.SimpleLDAPObject object at 0x7fd522613748>
> ipaserver.install.ldapupdate: DEBUG: Parsing update file 'satellitebdn.update'
> ipalib.backend: DEBUG: Destroyed connection context.ldap2_140553391142280
> ipapython.admintool: DEBUG: File
> "/usr/lib/python3.6/site-packages/ipapython/admintool.py", line 180, in
> execute
> return_value = self.run()
> File
> "/usr/lib/python3.6/site-packages/ipaserver/install/ipa_ldap_updater.py",
> line 150, in run
> modified = ld.update(self.files) or modified
> File "/usr/lib/python3.6/site-packages/ipaserver/install/ldapupdate.py",
> line 997, in update
> self.parse_update_file(f, data, all_updates)
> File "/usr/lib/python3.6/site-packages/ipaserver/install/ldapupdate.py",
> line 566, in parse_update_file
> emit_item(logical_line)
> File "/usr/lib/python3.6/site-packages/ipaserver/install/ldapupdate.py",
> line 416, in emit_item
> logical_line = self._template_str(logical_line)
> File "/usr/lib/python3.6/site-packages/ipaserver/install/ldapupdate.py",
> line 379, in _template_str
> return ipautil.template_str(s, self.sub_dict)
> File "/usr/lib/python3.6/site-packages/ipapython/ipautil.py", line 308, in
> template_str
> val = string.Template(txt).substitute(vars)
> File "/usr/lib64/python3.6/string.py", line 130, in substitute
> return self.pattern.sub(convert, self.template)
> File "/usr/lib64/python3.6/string.py", line 127, in convert
> self._invalid(mo)
> File "/usr/lib64/python3.6/string.py", line 103, in _invalid
> (lineno, colno))
>
> ipapython.admintool: DEBUG: The ipa-ldap-updater command failed, exception:
> ValueError: Invalid placeholder in string: line 1, col 30
> ipapython.admintool: ERROR: Unexpected error - see /var/log/ipaupgrade.log
> for details:
> ValueError: Invalid placeholder in string: line 1, col 30
> ipapython.admintool: ERROR: The ipa-ldap-updater command failed. See
> /var/log/ipaupgrade.log for more information
> _______________________________________________
> FreeIPA-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedorahosted.org/archives/list/[email protected]
> Do not reply to spam, report it:
> https://pagure.io/fedora-infrastructure/new_issue
>
_______________________________________________
FreeIPA-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedorahosted.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue