-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using S3 django storages backend requires USE_TZ=False #363
Comments
Yeah, so what I'm wondering is if you push the files to S3 for the first time with I'd like to rule that out, since this isn't isn't unique to Nautobot since the functionality is coming from |
agreed, I'll work on getting a slightly less complex setup to reproduce this and maybe we can dig deeper there |
I have a clean install on an AWS instance and was able to reproduce the issue, so none of the other overhead I was dealing with before. In this case I am testing 1.0.0b4 with Python 3.8.5 on Ubuntu 20.04. I can confirm if |
@FragmentedPacket found the solution! For AWS we need to add |
I can fix the code as well. Waiting on Jathan to give thumbs on code fix, but glad we found the issue. |
Environment
When configuring django-storages to use s3:
nautobot-server collectstatic fails with the following stack trace:
Setting
USE_TZ=False
resolves the issue but comes with its own set of issues. It looks like the files are correctly getting published to S3. I am unsure if this happens on the first collectstatic or only subsequent collectstatic runs.Steps to Reproduce
Expected Behavior
Collect Static publishes the files to S3 and exits successfully.
Observed Behavior
Files are published but the command fails.
The text was updated successfully, but these errors were encountered: