Skip to content
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

Build problem with 1.25.0 #615

Closed
SuperSandro2000 opened this issue Mar 5, 2022 · 5 comments
Closed

Build problem with 1.25.0 #615

SuperSandro2000 opened this issue Mar 5, 2022 · 5 comments

Comments

@SuperSandro2000
Copy link
Contributor

I am facing some build issues which is fixed on the latest master.

Compressing... CommandError: An error occurred during rendering integrations/add_spike.html: [Errno 2] No such file or directory: '/app/static-collected/CACHE/js/output.b4ba48ed4f66.js'

I think tagging a new version would be already enough to fix this because it works on latest master.

@SuperSandro2000 SuperSandro2000 changed the title Build problem for 1.25.0 Build problem with 1.25.0 Mar 5, 2022
@cuu508
Copy link
Member

cuu508 commented Mar 5, 2022

For the failing build, what is your installed django-compressor version (what does pip freeze say?)?

@cuu508
Copy link
Member

cuu508 commented Mar 7, 2022

Ah, I can reproduce it:

$ export DEBUG=True
$ ./manage.py compress --force
CommandError: An error occurred during rendering integrations/webhook_form.html: [Errno 2] No such file or directory: '/home/cepe/Downloads/healthchecks-1.25.0/static-collected/CACHE/js/output.b4ba48ed4f66.js'

I suspect it's a bug in django-compressor, it is non-deterministic, and it could resurface again. There's a potentially related bug being worked on (django-compressor/django-compressor#1099). Once that's fixed, I'll check if I can still reproduce this one.

@SuperSandro2000
Copy link
Contributor Author

For the failing build, what is your installed django-compressor version (what does pip freeze say?)?

I am building in docker and basically cloning the project and then do pip install -r requirements.txt which means I would have django-compressor==3.0.

Ah, I can reproduce it

Great! Thank you so much.

@cuu508
Copy link
Member

cuu508 commented Mar 7, 2022

This might work as a workaround – replace https://github.com/SuperSandro2000/docker-images/blob/master/healthchecks/Dockerfile#L95 with

&& DEBUG=False /app/manage.py compress

@SuperSandro2000
Copy link
Contributor Author

That did the trick for now. Thanks

SuperSandro2000 added a commit to SuperSandro2000/docker-images that referenced this issue Mar 7, 2022
@cuu508 cuu508 closed this as completed in 156fc32 Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants