question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Static file not being loaded in web server in docker-compose

See original GitHub issue

Apache Airflow version: apache/airflow:master-python3.8

Environment:

Cloud provider or hardware configuration: OS (e.g. from /etc/os-release): Mac OS 10.16.5 Kernel (e.g. uname -a): Darwin Kernel Version 19.6.0

Browser: Google Chrome Version 89.0.4389.90

What happened: I am having an issue with running apache/airflow:master-python3.8 with docker-compose. The log of the webserver says Please make sure to build the frontend in static/ directory and restart the server when it is running. Due to static files not being loaded, login and dags are not working.

What you expected to happen: static files being loaded correctly.

How to reproduce it: My docker-compose is based on the official example. https://github.com/apache/airflow/blob/master/docs/apache-airflow/start/docker-compose.yaml

Anything else we need to know: It used to work until 2 days ago when the new docker image was released. Login prompt looks like this. Screenshot 2021-03-24 at 21 54 16

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
potiukcommented, Mar 25, 2021

Found it . My fault, sorry. Fixed in upcoming #14995

0reactions
potiukcommented, Mar 25, 2021

Thank you @potiuk , is this fix going to be released as the same tag apache/airflow:master-python3.8 after your PR is merged?

Should be there in ~ 20 minutes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Static files not loading docker-compose, django, nginx
When I run docker-compose up all working good. I've got problem with static file after reboot. All containers starts, but on static files...
Read more >
Compose file version 2 reference - Docker Documentation
Service configuration reference . The Compose file is a YAML file defining services, networks and volumes. The default path for a Compose...
Read more >
5. Configure static file serving - Divio Documentation
When running with a production server like uWSGI, you need to configure static file serving explicitly. There are multiple ways to do this,...
Read more >
nginx not serving static files after adding app to docker-compose
Checking the logs of nginx and nginx-proxy with docker logs couldn't get any relevant data about what is wrong. upstream my_app{ server django: ......
Read more >
Dockerizing Django with Postgres, Gunicorn, and Traefik
docker -compose exec web python manage.py migrate --noinput ... The static files are not being loaded correctly. This is expected.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found