is there a way to restart the webgui?


Can0n

Recommended Posts

  • 1 year later...

I was having the same problem wit hthe GUI locking up after an NFS server went down that my unraid box connected to.  Fixed it with:

 

/etc/rc.d/rc.nginx restart
/etc/rc.d/rc.nginx reload
/etc/rc.d/rc.php-fpm restart
/etc/rc.d/rc.php-fpm reload

 

Edited by 0x00000111
  • Thanks 7
  • Upvote 2
Link to comment

Of all the times that unraid has hung on me over the years, whether it was the GUI that froze or the dockers that froze or a file transfer that hung or the command prompt that froze, when things like 'reboot' and 'init 0' and 'poweroff' and stopping everything by hand didn't work, the only thing that I have ever been able to do do fix a hung server is to temporarily put the ON/OFF device on the front of the server in the OFF position.

 

And then cancel the subsequent parity check.

 

 

Link to comment
  • 1 year later...

I have run into an issue where the nginx configuration is malformed ... maybe due to having dual IPs?

 

from /etc/nginx/conf.d/servers.conf:

#
# Redirect http requests to https
# ex: http://tower.local -> https://hash.unraid.net
#
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    return 302 https://10-0-1-100
10-0-1-101.[ID].myunraid.net$request_uri;
}

...

#
# Port settings for https using CA-signed cert
# ex: https://lan-ip.hash.myunraid.net
# ex: https://wan-ip.hash.myunraid.net
# ex: https://hash.unraid.net
# ex: https://www.hash.unraid.net
#
server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name 10-0-1-100
10-0-1-101.[ID].myunraid.net [external-IP].[ID].myunraid.net;
    # Ok to use concatenated pem files; nginx will do the right thing.
    ssl_certificate         /boot/config/ssl/certs/certificate_bundle.pem;
    ssl_certificate_key     /boot/config/ssl/certs/certificate_bundle.pem;
    ssl_trusted_certificate /boot/config/ssl/certs/certificate_bundle.pem;
    #
    # Enable OCSP stapling
    #
    ssl_stapling on;
    ssl_stapling_verify on;
    #
    location ~ /wsproxy/443/ { return 403; }
    include /etc/nginx/conf.d/locations.conf;
}

 

note how there are line breaks on the server name and the return directives ... my server has two NICs with IPs: 10.0.1.100 and 10.0.1.101 (10Gbe & 1Gbe) it seems this is tripping up the generated nginx configuration ... 

 

editing the nginx file manually doesnt' seem to work, as when I try to start nginx after, it overwrites it.

Link to comment

more specifically it looks like the issue is from this line in /etc/rc.d/rc.nginx:

 

IP4=$(grep 'IPADDR:0' /var/local/emhttp/network.ini | cut -d'"' -f2)

 

it returns the two IP addresses... 

 

could be solved with:

 

IP4=$(grep -m 1 'IPADDR:0' /var/local/emhttp/network.ini | cut -d'"' -f2)

 

  • Like 1
  • Thanks 2
Link to comment
54 minutes ago, Ahmad said:

more specifically it looks like the issue is from this line in /etc/rc.d/rc.nginx:

 

IP4=$(grep 'IPADDR:0' /var/local/emhttp/network.ini | cut -d'"' -f2)

 

it returns the two IP addresses... 

 

could be solved with:

 

IP4=$(grep -m 1 'IPADDR:0' /var/local/emhttp/network.ini | cut -d'"' -f2)

 

 

Indeed the original command can produce one or more results depending on the number of IPv4 addresses defined.

We need only the first one, which is assigned to interface eth0.

Your solution is correct, will make an update.

 

  • Like 2
  • Upvote 1
Link to comment
  • 1 month later...
  • 9 months later...

@bonienl

Good day, when starting unraid in "Unraid OS GUI Mode" the system performs as expected and I get a GUI directly from my graphics card. Subsequently if I start a vm using that card, then the vm takes over and works as expected.

 

Once I shutdown the vm the card output doesn't revert to "Unraid OS GUI Mode". 

 

Is there a command or any other way to recover "Unraid OS GUI Mode" without a server restart?

Thank you.

Link to comment

Good day, when starting unraid in "Unraid OS GUI Mode" the system performs as expected and I get a GUI directly from my graphics card. Subsequently if I start a vm using that card, then the vm takes over and works as expected.

 

Once I shutdown the vm the card output doesn't revert to "Unraid OS GUI Mode". 

 

Is there a command or any other way to recover "Unraid OS GUI Mode" without a server restart?

Thank you.

Link to comment
  • 7 months later...
On 10/8/2020 at 2:41 AM, 0x00000111 said:

I was having the same problem wit hthe GUI locking up after an NFS server went down that my unraid box connected to.  Fixed it with:

 

/etc/rc.d/rc.nginx restart
/etc/rc.d/rc.nginx reload
/etc/rc.d/rc.php-fpm restart
/etc/rc.d/rc.php-fpm reload

 

This worked for me despite what other people were saying about it not working on versions after 6.4.

 

I'm on 6.11.5 and the gui would give me nginx 502/500 errors. This fixes it without having to reboot

Link to comment
  • 5 weeks later...

I know this is an old thread, but nothing here worked for me.

 

What worked for me on unraid 6.12.3:

 

Check nginx processes (should return process list):

netstat -tulpn | grep nginx

 

netstat should return something like (show nginx running on 80 and 443):

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp      512      0 192.168.22.18:80        0.0.0.0:*               LISTEN      8803/nginx: master
tcp        0      0 127.0.0.1:443           0.0.0.0:*               LISTEN      8803/nginx: master
tcp        0      0 127.0.0.1:80            0.0.0.0:*               LISTEN      8803/nginx: master

 

kill nginx proxesses (actually is kill process on 80 and 443):

sudo fuser -k 80/tcp
sudo fuser -k 443/tcp

 

 Check nginx processes again (should be blank):

netstat -tulpn | grep nginx

 

start nginx processes:

/etc/rc.d/rc.nginx start

 

Maybe this helps someone.

Edited by KptnKMan
  • Like 1
  • Upvote 1
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.