Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

295
Vistas
GET js chunk 404'd on all but one chunk

I'm running a react frontend with django backend on aws lightsail (bitnami apache server). Everything had been working fine until I changed some frontend code and reran npm run build on the server. It completed successfully and I see the chunks in the correct static folder. All of them are there.

When I access the website, it loads one of the chunks and then 404's on the rest. The built css chunks are all there, too. I've restarted the apache server a couple times for good measure but have the same problem.

Any idea what could be happening?

edit: additional info. Here are access logs from a time of trying to get it

x.x.x.x - - [04/Jul/2021:18:42:34 +0000] "GET / HTTP/1.1" 200 1112
x.x.x.x - - [04/Jul/2021:18:42:34 +0000] "GET /static/css/2.7d304944.chunk.css HTTP/1.1" 200 8438
x.x.x.x - - [04/Jul/2021:18:42:34 +0000] "GET /static/css/main.48dce226.chunk.css HTTP/1.1" 200 18320
x.x.x.x - - [04/Jul/2021:18:42:34 +0000] "GET /static/js/main.e6e67397.chunk.js HTTP/1.1" 404 196
x.x.x.x - - [04/Jul/2021:18:42:34 +0000] "GET /static/css/2.7d304944.chunk.css.map HTTP/1.1" 200 12167
x.x.x.x - - [04/Jul/2021:18:42:34 +0000] "GET /static/css/main.48dce226.chunk.css.map HTTP/1.1" 200 39165
x.x.x.x - - [04/Jul/2021:18:42:34 +0000] "GET /static/js/2.fc4ff571.chunk.js.map HTTP/1.1" 200 288868
x.x.x.x - - [04/Jul/2021:18:42:37 +0000] "GET /manifest.json HTTP/1.1" 200 1112

And here is the folder opened in cyberduck showing they are all there. enter image description here

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I found the solution. The step I was missing in the process was that I needed to run python manage.py collectstatic --noinput after rebuilding the js.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda