a month ago
Project ID:determined-vitality
Service Name:marketplace_project
Hello Railway Team,
I am experiencing a critical issue where my deployed Django application is unable to upload media files to any external storage service. The uploads are failing silently without crashing the app.
The Core Problem: When I try to upload an image from my Django admin, the request completes without any visible errors, but the file never arrives at the external storage provider. The application then incorrectly saves a local file path to the database instead of the external URL.
This is not a simple code or configuration error. I have spent the last two days performing exhaustive debugging, and all evidence points to a platform-level issue.
Here is a summary of the debugging steps we have already taken:
Ruled Out Specific Service Issues: The exact same silent failure has happened with two different providers: Cloudinary (using
django-cloudinary-storage
) and Backblaze B2 (usingdjango-storages
andboto3
). The failure is provider-agnostic.Ruled Out Code & Settings Issues: We created custom Django management commands (
check_cloudinary_settings
andcheck_b2_settings
) and ran them inside the live container usingrailway run
. The output from these commands 100% confirmed that mysettings.py
is loading the correctDEFAULT_FILE_STORAGE
and all API credentials and settings from Railway's environment variables. The application code is correctly configured.Ruled Out Credential & Permission Issues: We have deleted and regenerated all API keys and secrets for both Cloudinary and Backblaze B2 multiple times. We have also meticulously checked all bucket settings, permissions, and CORS rules on the provider side.
Ruled Out Library Version Conflicts: We have pinned specific, known-good versions of
boto3
anddjango-storages
inrequirements.txt
to eliminate any possibility of a versioning bug causing a silent failure.
2 Replies
a month ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
a month ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • about 1 month ago
a month ago
can I add some log during the upload? I'm uploading file from railway to R2 (using nodejs) without any particular issue