I’m currently running Label Studio version 1.19.0 on Google Cloud. The setup uses Cloud Run for hosting, along with Cloud SQL and Cloud Storage buckets. Cloud Run is behind a Load Balancer. Below is the relevant configuration for Label Studio:
DJANGO_DB = default
POSTGRE_NAME = label-studio
POSTGRE_HOST = <host>
POSTGRE_USER = <user>
POSTGRE_PASSWORD = <pass>
STORAGE_TYPE = gcs
STORAGE_GCS_BUCKET_NAME = <bucketName>
STORAGE_GCS_PROJECT_ID = <projId>
STORAGE_GCS_FOLDER = label-studio-media
USE_ENFORCE_CSRF_CHECKS = false
Videos that I import are correctly stored in the designated Cloud Storage bucket and folder. However, Label Studio is unable to retrieve and play them automatically.
I can confirm that:
-
Label Studio signs and provides a valid URL for the video.
-
The
X-Accel-Redirectheader is generated correctly and matches the expected Nginx template. -
If I manually construct the
$download_urlusing the same template, the video plays correctly in the browser, which rules out any codec issues.
Despite this, Label Studio fails to play the videos directly in the UI.
I have also tried setting USE_NGINX_FOR_UPLOADS and USE_NGINX_FOR_EXPORT_DOWNLOADS to both true and false, but the issue persists.
Thank you!
