No new configuration applied, no error

I’ve been running foreman with puppet for several years, with excellent results, now, with a fresh install of foreman and puppet I’ve got into a very strange trouble. After install foreman and configure some custom made classes to my hosts everything is fine, but after a few weeks, hosts stops aplying new configurations for example, a parameter change, manifest or template changes.

I haven’t been able to see any error, both in client neither in server, puppetserver, foreman-proxy and foreman logs shows no error, client shows the tipical:

# /opt/puppetlabs/bin/puppet agent -t --server
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for servidor.lledoner.coop
Info: Applying configuration version '1651423804'
Notice: Applied catalog in 0.06 seconds
# puppetserver.log

Puppet Compiled catalog for servidor.lledoner.coop in environment production in 0.02 seconds
# foreman production.log

2022-05-01T18:55:37 [I|app|f66b5f92] Started POST "/api/config_reports" for 172.26.7.34 at 2022-05-01 18:55:37 +0200
2022-05-01T18:55:37 [I|app|f66b5f92] Processing by Api::V2::ConfigReportsController#create as JSON
2022-05-01T18:55:37 [I|app|f66b5f92]   Parameters: {"config_report"=>"[FILTERED]", "apiv"=>"v2"}
2022-05-01T18:55:37 [I|app|f66b5f92] Scanning report with: Foreman::PuppetReportScanner
2022-05-01T18:55:37 [I|app|f66b5f92] Imported report for servidor.lledoner.coop in 43.3 ms, status refreshed in 29.7 ms
2022-05-01T18:55:37 [I|app|f66b5f92]   Rendering api/v2/config_reports/create.json.rabl
2022-05-01T18:55:37 [I|app|f66b5f92]   Rendered api/v2/config_reports/create.json.rabl (Duration: 1.9ms | Allocations: 1072)
2022-05-01T18:55:37 [I|app|f66b5f92] Completed 201 Created in 87ms (Views: 3.1ms | ActiveRecord: 28.6ms | Allocations: 33004)

Puppet YAML inside foreman is correct and shows the new configuration data, reports are fine, facts also correct. It’s just when I change any configuration in host, it doesn’t notice that it’s parameters, manifests or templates are changed.

Foreman and Proxy versions:
OS: Debian Linux 11

Foreman 3.2.0
puppetserver version: 6.19.0

puppet agent version: 6.25.1

Any help would be very appreciated, I really don’t know where to look to see what is causing this strange behaviour.

Many thanks in advance.

I found the problem, for some reason this lines gave dissapeared from /etc/puppetlabs/puppet/puppet.conf

[server]
node_terminus = exec
external_nodes = /etc/puppetlabs/puppet/node.rb

Now it works again!