Application.css and application.js net :: ERR_CONTENT_LENGTH_MISMATCH

I just upgraded my nginx from 1.4.2 (/ usr / local) to 1.4.7 (yum) on AWS EC2. Now I have a couple of errors on the client side:

GET https://subdomain.mysite.com/assets/application.css net::ERR_CONTENT_LENGTH_MISMATCH 
GET https://subdomain.mysite.com/assets/application.js net::ERR_CONTENT_LENGTH_MISMATCH 

I am at a loss, and Google did not help much. Any ideas on where to start? All help was appreciated. Is there a problem switching from manual installation to yum installation?

+4
source share
3 answers

I can confirm the answer 1 solves the main problem (I am a new SE user, so I can not promote it yet). Here are the details for search engines:

From /var/log/nginx/error.log

2014/04/30 08:07:48 [crit] 35135#0: *116437 open() "/var/lib/nginx/proxy/7/09/0000001097" failed (13: Permission denied) while reading upstream

- , , nginx ( nginx config www-data /etc/nginx/nginx.conf).

chown -R correct_user:root /var/lib/nginx/proxy. , rm -rf 'd /var/lib/nginx/proxy , nginx correct_user .

eric-francis ! .

+9
tail -f /usr/local/var/log/nginx/error.log

- :

"/usr/local/var/run/nginx/proxy_temp/9/04/0000000049" (13: )

:

sudo nginx -s stop
sudo rm -rf /usr/local/var/run/nginx/*
+7

, . , .

/usr/share/nginx/log/error-appname.log

, , , ( /etc/nginx/nginx.conf), , -. nobody.

u+rx (nginx ) .

nobody nginx /var/lib/nginx/tmp/proxy. chown nobody /var/lib/nginx /proxy nobody .

+3

Source: https://habr.com/ru/post/1538344/


All Articles