Delete host fails with "malformed format string" error


I am unable to delete hosts from my Foreman server. From the web console, the delete appears to succeed, but the host is not actually deleted.

/var/log/foreman/production.log shows the error:

Deactivating node in PuppetDB task failed with the following error: malformed format string - %(

Expected outcome:

Host is deleted.

Foreman and Proxy versions:

Foreman 3.5.1

Foreman and Proxy plugin versions:

rubygem-puppetdb_foreman 6.0.1

Distribution and version:

Alma Linux 8.7

1 Like

I’m having the same issue, did you ever figure out a resolution?


Same here on Foreman 3.6.1 on Debian 11
Puppet related Plugins:

Name Value Description
puppetdb_enabled No Integration with PuppetDB, enabled will deactivate a host in PuppetDB when it’s deleted in Foreman
puppetdb_address Foreman will send PuppetDB requests to this address
puppetdb_ssl_ca_file /etc/puppetlabs/puppet/ssl/certs/ca.pem Foreman will send PuppetDB requests with this CA file
puppetdb_ssl_certificate /etc/puppetlabs/puppet/ssl/certs/ Foreman will send PuppetDB requests with this certificate file
puppetdb_ssl_private_key /etc/puppetlabs/puppet/ssl/private_keys/ Foreman will send PuppetDB requests with this key file
PuppetDB API Version v4: PuppetDB 4 - 7 Foreman will use this PuppetDB API version

On my setup the puppetdb gets configured via the offizial puppetdb module from the Forge but runs on a separeted host:

My temporary workaround was to disable the deletion in the Settings with “puppetdb_enabled => no” so hosts can be deleted at all, but this is not a solution :smiley:

I also can add a full stracktrace if needed :slight_smile:

Thanks for the help!