how to restart GUI/middleware services?

ikke

Contributor
Joined
Apr 22, 2012
Messages
124
Hi,

I see couple of python processes have been core dumped. After this the GUI just says:
"Connecting to NAS... Make sure the NAS system is powered on and connected to the network. "

What services do I need to restart to spin it back up? Django, nginx and middlewared seems to be running.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
It could be that you need to flush the browser cache and try again. We have seen that be the cause of this error.
 

ikke

Contributor
Joined
Apr 22, 2012
Messages
124
Thanks for the tip. Two different devices, and both chrome and FF on both devices give the same page. I start to believe it's the freenas.
 

Lumares

Cadet
Joined
Mar 22, 2017
Messages
5
Ok, thanks for your reply.
Did a reinstall but still problems, but different now.
Will do some more trouble shooting.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
Did you find a solution?
 

DaveY

Contributor
Joined
Dec 1, 2014
Messages
141
Anyone find a fix? Just ran into the same issue on 12.0-U1 Couldn't connect to GUI, then SSH hung, but all of the NAS services (NFS, SMB, etc...) still worked. Left it for 24 hours hoping it resolves itself. Finally did a hard reboot.
 

Heracles

Wizard
Joined
Feb 2, 2018
Messages
1,401
Hi,

Here, I do get blocked on that page and with this message when I try to open my NAS from my iPad. No matter Chrome or Safari, neither can pass it. On a computer, to flush the cache / switch to Incognito mode is enough whenever that happen.
 

jasonreid

Cadet
Joined
Feb 1, 2021
Messages
1
Hi we had the same issue, looks like now in TrueNAS Core you need to bounce the middlewared service - did this on one of our larger systems and worked with no adverse effects.

If when attempting to access the TrueNAS Core management UI you just see...
"Connecting to NAS... Make sure the NAS system is powered on and connected to the network. "

The most likely issue is the middleware daemon has experienced a crash and may need to be restarted.

SSH and login to the TrueNAS core device as root.
From the CLI check if the middleware is running
service middlewared status

If the service is running, or hung, stop the service
service middlewared stop

Once the service has stopped, restart the middlewared service
service middlewared start
Note. This may take 30-60 seconds to start.
 

jordrok

Cadet
Joined
Mar 19, 2021
Messages
1
Hi we had the same issue, looks like now in TrueNAS Core you need to bounce the middlewared service - did this on one of our larger systems and worked with no adverse effects.

If when attempting to access the TrueNAS Core management UI you just see...
"Connecting to NAS... Make sure the NAS system is powered on and connected to the network. "

The most likely issue is the middleware daemon has experienced a crash and may need to be restarted.

SSH and login to the TrueNAS core device as root.
From the CLI check if the middleware is running
service middlewared status

If the service is running, or hung, stop the service
service middlewared stop

Once the service has stopped, restart the middlewared service
service middlewared start
Note. This may take 30-60 seconds to start.
I was greeted by the same login page as OP and this solved my issue. Thanks!
 

balanga

Patron
Joined
Jul 10, 2014
Messages
271
Hi we had the same issue, looks like now in TrueNAS Core you need to bounce the middlewared service - did this on one of our larger systems and worked with no adverse effects.

If when attempting to access the TrueNAS Core management UI you just see...
"Connecting to NAS... Make sure the NAS system is powered on and connected to the network. "

The most likely issue is the middleware daemon has experienced a crash and may need to be restarted.

SSH and login to the TrueNAS core device as root.
From the CLI check if the middleware is running
service middlewared status

If the service is running, or hung, stop the service
service middlewared stop

Once the service has stopped, restart the middlewared service
service middlewared start
Note. This may take 30-60 seconds to start.
I have been unable to start my system properly after an update to 12.0.

Following this advice I tried restarting middlewared and got:-

Middleware startup is idle for more than 240 seconds
#############################################
MIDDLEWARED FAILED TO START. SYSTEM WILL NOT BEHAVE CORRECTLY!
#############################################

Anyone know what to do now?
 

balanga

Patron
Joined
Jul 10, 2014
Messages
271
This was my solution:-

 
Top