Ubuntu 22.04 remote execution issues

Hi All

Since the latest version of ubuntu i have found remote execution of puppet run once task fails every time on every managed host.

There seems to be no error or anything.

1: rex login:
2: exit status: 1

What does this actually mean and where do i start looking for where it has broken.

I have checked the credentials on the remote host work. i can ssh from foreman server to the client machine using the stored credentials and i can sudo up using these credentials.

I can also create a script with the commands foreman execute and it works fine

I am at a loss as to what is actually wrong.

Please bump the log level to DEBUG in /etc/foreman-proxy/settings.yaml, restart foreman-proxy service, run a job again and then post contents of /var/log/foreman-proxy/proxy.log