"Could not load puppet gem" error while running facter command on Puppet Server

Problem:

Whatever facter command I run , I got below error from my puppetserver.
Issue not seen on puppet agents

	[root@laselainfpup01p production]# facter -p os

[2024-10-02 16:28:33.122534 ] ERROR Facter - Could not load puppet gem, got cannot load such file – puppet

Expected outcome:

No error

Foreman and Proxy versions:
Foreman Version : 3.7
Foreman_puppet : 6.0.0

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

[root@laselainfpup01p production]# facter -p os
[2024-10-02 16:28:33.122534 ] ERROR Facter - Could not load puppet gem, got cannot load such file – puppet
{
architecture => “x86_64”,
distro => {
codename => “Ootpa”,
description => “Red Hat Enterprise Linux release 8.8 (Ootpa)”,
id => “RedHatEnterprise”,
release => {
full => “8.8”,
major => “8”,
minor => “8”
}
},
family => “RedHat”,
hardware => “x86_64”,
name => “RedHat”,
release => {
full => “8.8”,
major => “8”,
minor => “8”
},
selinux => {
config_mode => “permissive”,
config_policy => “targeted”,
current_mode => “permissive”,
enabled => true,
enforced => false,
policy_version => “33”
}
}
[root@laselainfpup01p production]# facter -p os.release
[2024-10-02 16:28:40.371174 ] ERROR Facter - Could not load puppet gem, got cannot load such file – puppet
{
full => “8.8”,
major => “8”,
minor => “8”
}
[root@laselainfpup01p production]# facter -p fqdn
[2024-10-02 16:28:49.220195 ] ERROR Facter - Could not load puppet gem, got cannot load such file – puppet
laselainfpup01p.tosa.thales
[root@laselainfpup01p production]#