CPU load not showing (nginx issue?)


Recommended Posts

Hey all,

 

Odd problem that I can't seem to troubleshoot. I have letsencrypt setup so that outside of my network I can access the unRAID web GUI from admin.domain.tld.

 

When I'm on the network, and I access directly the server IP, the CPU loads update and show the current CPU load.

 

When I'm using the admin.domain.tld address, everything works, except the CPU usage doesn't show/update. See screenshot attached - memory shows (but does not update, obviously) but CPU usage doesn't even load.

 

Here's the relevant bit of my nginx config (with the actual IP). I've added all the proxy_set_header lines from Googling but they're not helping.

 

server {
	listen 443 ssl;
	# listen 80;

	root /config/www;
	index index.html index.htm index.php;

	server_name admin.*;

	ssl_certificate /config/keys/letsencrypt/fullchain.pem;
	ssl_certificate_key /config/keys/letsencrypt/privkey.pem;
	ssl_dhparam /config/nginx/dhparams.pem;
	ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
	ssl_prefer_server_ciphers on;

	client_max_body_size 0;

	location / {
		auth_basic "Restricted";
		auth_basic_user_file /config/nginx/.htpasswd;
		include /config/nginx/proxy.conf;
		proxy_set_header	Host $host;
		proxy_set_header	X-Real-IP $remote_addr;
		proxy_set_header	X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header	X-Forwarded-Proto $scheme;
		proxy_pass http://192.168.1.IP:8080;	
	}
}

Any ideas?

 

Thanks!

mhDe6HqAP9f.png

Link to comment

This won't solve your issue with the function of the WebGUI via LE/NGINX, but it will allow you to accomplish effectively the same thing:

 

I just setup an OpenVPN-AS server docker on my machine, and I use jbrodriguez's ControlR app. I get fairly full control of the server via the app, and if there's anything I can't do via the app, I can just open the web browser on my phone and connect to the server via its internal IP address, since I'm VPNed in.

 

It would get you the same result, but by a different method. Just a though...

Link to comment
  • 1 month later...

For anyone who cares, I think I fixed this! I think it may be due to nginx not working with Websockets by default.

 

I added these lines to the site config:

 

    		proxy_set_header Upgrade $http_upgrade;
    		proxy_set_header Connection "Upgrade";

And it worked.

 

E.g., this is the location settings for my unRAID proxy:

 

	location / {
		auth_basic "Restricted";
		auth_basic_user_file /config/nginx/.htpasswd;
		include /config/nginx/proxy.conf;
		proxy_set_header	Host $host;
		proxy_set_header	X-Real-IP $remote_addr;
		proxy_set_header	X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header	X-Forwarded-Proto $scheme;
		proxy_pass http://192.168.1.106:8080;	
    	proxy_set_header Upgrade $http_upgrade;
    	proxy_set_header Connection "Upgrade";
	}

And now the CPU stats update in real time!

 

Fingers crossed this is the fix.

  • Like 2
Link to comment
  • 8 months later...
On 1/13/2018 at 8:56 AM, atl-far-east said:

For anyone who cares, I think I fixed this! I think it may be due to nginx not working with Websockets by default.

 

I added these lines to the site config:

 


    		proxy_set_header Upgrade $http_upgrade;
    		proxy_set_header Connection "Upgrade";

And it worked.

 

E.g., this is the location settings for my unRAID proxy:

 


	location / {
		auth_basic "Restricted";
		auth_basic_user_file /config/nginx/.htpasswd;
		include /config/nginx/proxy.conf;
		proxy_set_header	Host $host;
		proxy_set_header	X-Real-IP $remote_addr;
		proxy_set_header	X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header	X-Forwarded-Proto $scheme;
		proxy_pass http://192.168.1.106:8080;	
    	proxy_set_header Upgrade $http_upgrade;
    	proxy_set_header Connection "Upgrade";
	}

And now the CPU stats update in real time!

 

Fingers crossed this is the fix.

man thank you very much, mine now work to after adding thus lines, it was drive me crazy :) , again thank you

  • Like 1
Link to comment
  • 8 months later...
  • 2 years later...
On 1/13/2018 at 2:56 PM, atl-far-east said:

For anyone who cares, I think I fixed this! I think it may be due to nginx not working with Websockets by default.

 

I added these lines to the site config:

 


    		proxy_set_header Upgrade $http_upgrade;
    		proxy_set_header Connection "Upgrade";

And it worked.

 

E.g., this is the location settings for my unRAID proxy:

 


	location / {
		auth_basic "Restricted";
		auth_basic_user_file /config/nginx/.htpasswd;
		include /config/nginx/proxy.conf;
		proxy_set_header	Host $host;
		proxy_set_header	X-Real-IP $remote_addr;
		proxy_set_header	X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header	X-Forwarded-Proto $scheme;
		proxy_pass http://192.168.1.106:8080;	
    	proxy_set_header Upgrade $http_upgrade;
    	proxy_set_header Connection "Upgrade";
	}

And now the CPU stats update in real time!

 

Fingers crossed this is the fix.

Can you tell me in which file i have to put in these lines and where this is located, please?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.