
Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Image Download Fails With 504 Gateway Timeout
Problem
When attempting to download an image from Image service, the operation fails with a 504 Gateway Time-out error.
Environment
Image Service
Private Cloud Director Virtualization - v2025.4 and Higher
Self-Hosted Private Cloud Director Virtualization - v2025.4 and Higher
Cause
The active Image Library node was not using the shared NFS mount for the image directory; instead, it was using local storage.
As a result, when an image stored on the shared NFS was requested via the API endpoint on the image library node, failed to retrieve the image, leading to the 504 timeout error.
Diagnostics
Verify the image status and ID:
Check the Image service endpoint configuration:
Confirm that the IP-Address mentioned in the IMAGE-ENDPOINT-URL should belong to the correct Image Library node
Confirm if the image file exists:
Image not found locally. However, the image found on another Image Library node.
Check the mount status of the "images" directory on the Image node:
/etc/fstab has no NFS entry for the image directory. Whereas the other Image Library node has the NFS entry.
The below glance-api log is visible only to Self-Hosted PCD-V environments. For SaaS environments, reach out to the Platform9 support team for further assistance.
Log confirmation from
glance-apilog:
Resolution
Perform the following steps on the Image Library node:
New image creation will be halted during this procedure. Perform during a maintenance window.
Stop Image Library API service to prevent new image operations:
Backup the existing local image directory:
Create a new directory for NFS mount and set correct permissions:
Update
/etc/fstabwith the correct NFS share entry:
Mount all file systems:
Verify that the mount is active:
Sync old local images (if any) to the NFS mount:
Restart the Image Library service:
Validate image access:
Attempt to download the image again:
(Optional) After validation, remove the old directory to free up space:
Additional Information
Ensure all Image Library nodes are configured consistently with the same NFS mount points for
/var/lib/glance/imagesand/opt/data/instances.This issue commonly occurs after a node rebuild or reconfiguration, where
/etc/fstabentries may have been lost or skipped.