nutanix.Redhat: Error uploading CD disk:error while uploading image: failed to upload image file to Objects: operation error S3: PutObject, exceeded maximum number of attempts, 3, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: Service Unavailable
It looks like the Nutanix v1.3.0 plugin is hitting a 503 ServiceUnavailable when trying to PutObject to S3 during the build. That error usually points to an issue on the S3 side or a network hiccup rather than a Packer bug. Here’s a friendly checklist you can run through:
- Check the S3 endpoint & region – Make sure the bucket URL in your template matches the region your credentials are scoped for. A mismatch can cause temporary 503s.
- Validate credentials – Run
aws sts get-caller-identity(or your equivalent) to confirm that the access key/secret are still valid and haves3:PutObjectpermissions on the target bucket. - Bucket policy / ACL – A restrictive policy can reject uploads. Ensure the bucket allows writes from your IAM role/account.
- Network / VPC endpoints – If you’re inside a VPC that uses an S3 gateway endpoint, double‑check that the route table and security group allow traffic. A brief outage or throttling on the endpoint can trigger 503s.
- Retry count – The plugin defaults to 3 attempts. You can increase this via the
packerenvironment variablePACKER_HTTP_TIMEOUTor by addingmax_retriesin the builder (if supported) to give S3 a bit more breathing room. - Test a manual upload – Try
aws s3 cpor thes3cmdtool against the same bucket to see if the problem reproduces outside of Packer. - Plugin / Packer version – v1.3.0 of the Nutanix plugin is fairly recent, but a bug could still exist. Check the Nutanix plugin changelog for any known S3‑related regressions, and consider upgrading to the latest patch.
If you run through those checks and still hit the same 503, the next step is to enable verbose logging (packer build -debug ...) and look for any networking timeouts or back‑off messages. Those logs often point directly at the root cause.
1 Like