Provisioning fails with: RuntimeError: Error retrieving unattended/provision: Net::HTTPNotFound

Problem:
Provisioning fails with:
RuntimeError: Error retrieving unattended/provision for {“token”=>“8161ae0b-05b3-4818-a0a3-5567e3af0a6d”, “url”=>“http://foremansp.mydomain.com:8000”} from foremansp.mdomain.com: Net::HTTPNotFound

Expected outcome:
Provision succeed

Foreman and Proxy versions:
foreman 2.0.1 / katello 3.15

Foreman and Proxy plugin versions:

Distribution and version:
Centos 7.8

Other relevant data:

The token has expired or someone switched the host from build mode.

Hi,

I am creating a virtual machine and i got this error when the VM is booting (pxe), first build and no visible lag that could cause the tocken to expire. It´s strange that at this time the tocken is already expired. If that´s the case is there anyway to change the expiration time?

Thanks for you reply.

Administer - Setting - Provisioning - Token Duration

Normally it’s I think 4 hours…

Thanks Izap.

I have found out where to change it just no know, anyway this was an issue with dhcp configuration. DHCP was enabled in the foreman proxy features and got no errors refreshing them but I got this fixed only after running foreman-installer again to reconfigure dhcp.

Thanks again.

Even we too facing the same issue. If you don’t mine, would you please share the steps? Thanks, Shanmu