Foreman-proxy "Error while retrieving puppet classes for 'xxx' environment"

Hello,
for last almost week I am dealing with issues related to upgrade of foreman and foreman-proxy.

Problem:
Start of foreman-proxy and environment/class related operations do not work correctly.

Expected outcome:
Start of foreman-proxy with no errors, successful import of classes/environments

Foreman and Proxy versions:
foreman 1.22.0-1
foreman-proxy 1.22.0-1
Foreman and Proxy plugin versions:
foreman_bootdisk 14.0.0
foreman_discovery 14.0.1
foreman_hooks 0.3.14
foreman_memcache 0.1.0
foreman_setup 6.0.0
puppetdb_foreman 5.0.0

(cant find any more info about plugins)
Other relevant data:
Logs and configs can be found at Bug #27726: Error while retrieving puppet classes for 'xxx' environment - Smart Proxy - Foreman

hi,
does this error still exist when you create a directory named “your_environmet” (e.g. “development” or “production” in “/etc/puppetlabs/code/environments/” ?

Hello, unfortunately yes. They are present all time:

root@xxx /etc/puppetlabs/code # ls
environments hiera modules
root@xxx /etc/puppetlabs/code/environments # ls
common master production stein