Slackbot
11/09/2022, 3:31 PMtuxmea
11/09/2022, 3:33 PMtuxmea
11/09/2022, 3:34 PMroot@primary:/etc/puppetlabs/puppet# puppet code deploy -t /root/.puppetlabs/deploy_token production --wait
2022/11/09 15:33:16 ERROR - [POST /deploys][500] The deploys job failed to sync before the sync timeout was exceeded.
{
"errored-deploys": [],
"timeout": 300,
"unsynced-deploys": [
{
"deploy-signature": "26eaff99e4d60cdf9794f2aa82f5a489fc66ded2",
"environment": "production",
"file-sync": {
"code-commit": "3393d57e49f377dfb16fd4e2892cbf52810640dd",
"environment-commit": "904b2390e212c1485d9a2b8b48259022c8f7ab66"
},
"id": 5,
"status": "complete",
"sync-clients-status": {
"<compiler.fqdn>": {
"cause": null,
"status": "error"
}
}
}
]
}tuxmea
11/09/2022, 3:55 PMtuxmea
11/09/2022, 3:55 PMroot@primary:/etc/puppetlabs/puppet# puppet infrastructure provision compiler <compiler.fqdn> --dns-alt-names <lb fqdn>
Provisioning compiler on <compiler fqdn>. This may take several minutes.
Running enterprise_tasks::provision_compiler plan.
Starting: plan enterprise_tasks::provision_compiler
Starting: task enterprise_tasks::test_connect on <primary>
Finished: task enterprise_tasks::test_connect with 0 failures in 0.06 sec
Verify_node: <primary> verified to have the primary role.
Starting: task enterprise_tasks::check_pp_auth_role_rule on <primary fqdn>
Finished: task enterprise_tasks::check_pp_auth_role_rule with 0 failures in 1.28 sec
Starting: plan enterprise_tasks::is_subject_alt_names_allowed
Starting: task enterprise_tasks::get_conf_values on <primary fqdn>
Finished: task enterprise_tasks::get_conf_values with 0 failures in 0.35 sec
Finished: plan enterprise_tasks::is_subject_alt_names_allowed in 0.59 sec
Starting: command /opt/puppetlabs/bin/puppet config print certname --section agent on <primary fqdn>
Finished: command /opt/puppetlabs/bin/puppet config print certname --section agent with 0 failures in 1.19 sec
Starting: task enterprise_tasks::test_connect on <compiler fqdn>,<primary fqdn>
Finished: task enterprise_tasks::test_connect with 0 failures in 0.05 sec
Starting: task enterprise_tasks::disable_agent on <primary fqdn>
Finished: task enterprise_tasks::disable_agent with 1 failures in 1 min, 0 sec
Errors in task enterprise_tasks::disable_agent:
<primary fqdn>:
Message:
Kind:
Details:
nil
Starting: task enterprise_tasks::enable_agent on <primary fqdn>
Finished: task enterprise_tasks::enable_agent with 1 failures in 0
Error: Request to https://<primary fqdn>:8143/orchestrator/v1/plan_jobs/5 failed after 0.001 seconds: Failed to open TCP connection to <primary fqdn>:8143 (Connection refused - connect(2) for "<primary fqdn>" port 8143)
Wrapped exception:
Failed to open TCP connection to <primary fqdn>:8143 (Connection refused - connect(2) for "<primary fqdn>" port 8143)
Error: Try 'puppet infrastructure help provision' for usagecsharpsteen
11/09/2022, 4:03 PM<compiler.fqdn> encountered an error that prevented it from completing the deployment. If all pe-puppet-server and pe-orchestration-services processes fail to ACK a deployment as completed within the sync timeout (default 300 seconds), then the deployment is marked as failed with sync timeout was exceeded. puppetserver.log on the errored compiler would be the spot to check for further details.
That second error from provision compiler seems like pe-orchestration-services restarted on the primary in the middle of the operation --- that's the usual reason for a connection refused on port 8143.tuxmea
11/09/2022, 4:03 PMtuxmea
11/09/2022, 4:22 PMcsharpsteen
11/09/2022, 4:27 PMtuxmea
11/09/2022, 4:29 PMpuppet infra statustuxmea
11/09/2022, 4:29 PMtuxmea
11/09/2022, 4:29 PMtuxmea
11/09/2022, 4:41 PMfile_sync_enabled to true? https://puppet.com/docs/pe/2021.7/filesync_about.html#enabling_or_disabling_file_synctuxmea
11/09/2022, 4:50 PMfile_sync_enabled parameter from "automatic" to true on the PE Compiler node grouptuxmea
11/09/2022, 4:50 PMcsharpsteen
11/09/2022, 4:55 PMcode_manager_auto_configure to true?tuxmea
11/09/2022, 4:56 PMcsharpsteen
11/09/2022, 4:58 PMfile_sync_enabled were needed with Code Manger enabled in its default auto-configuration.tuxmea
11/09/2022, 4:58 PMcsharpsteen
11/09/2022, 5:01 PMcode_manager_auto_configre in pe.conf as part of install --- which routes through Hiera.csharpsteen
11/09/2022, 5:03 PMcode_manager_auto_configure as a Classifier parameter if done as part of install --- which would push the setting through both configuration pathways.tuxmea
11/09/2022, 5:07 PMtuxmea
11/09/2022, 5:08 PM