GUI no longer allowing NFS export

Joined
Mar 14, 2023
Messages
7
Hi everyone,

Running TrueNAS SCALE 22.12.1.

I need to add an additional NFS export, but when I do so with the GUI, it flashes quickly and then just remains at the "submit" screen. The cursor remains in the "busy" mode so I can't click on anything new in the window. The behavior is the same in Firefox and Chrome.

Strange issue. I've run this version for a few weeks now without issue, but I haven't had to add an export so I can't say whether this export item was created in the 12.1 release or if it existed before. (I think it's probably specific to me, as I can't find any other reports of this in 22.12.1).

When I go in and try to hand-edit the /etc/exports file, it seems to overwrite my changes after a reboot anyway, and it doesn't appear in the GUI.

The GUI DOES work to delete an existing NFS share, but when I do that and try to re-add the share I've just deleted (which was in place and working), it does the same thing.

I took a look through the syslog and errorlog and I can't see anything which is obviously wrong. Does anyone have an idea where I might be able to go to troubleshoot this, please? I did try just rebooting the system to see if that fixed a GUI glitch, but no dice.

Thanks a ton for your help - very much appreciated.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I was able to do it on a 22.12.1 system just now.

I guess in trying different browsers you've already eliminated cached items, but maybe shift-refresh if you had accessed it previously in those browsers.

Not sure what else to suggest, but confirm it's just you at this point.
 
Joined
Mar 14, 2023
Messages
7
I was able to do it on a 22.12.1 system just now.

I guess in trying different browsers you've already eliminated cached items, but maybe shift-refresh if you had accessed it previously in those browsers.

Not sure what else to suggest, but confirm it's just you at this point.
Thanks for that - I did try the shift-refresh as well, but no success.

Do you happen to know where (which log) I might be able to trace the interaction from the GUI? I'm basically trying to chase down what went wrong when the GUI sent the command back to the OS - or, alternatively, if the GUI has stopped sending that command to the OS, to be able to look for it in a log and confirm that it isn't there.

Hoping it's there and it's throwing an error that just isn't making it back to the GUI. I just can't find any reference to it.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Do you happen to know where (which log) I might be able to trace the interaction from the GUI?
The GUI works via the middleware, so /var/log/middlewared.log is it.
 
Joined
Mar 14, 2023
Messages
7
Wow. Nothing in that file for the interaction at all. There is a sporadic error about closing transport, but nothing really beyond that. Should there be something in the log that indicates a trigger was sent from the GUI, etc? Or is that "cannot write to closing transport" potentially a clue?

(Current time on my PC is 10:40am on 3/14, and I last tried the NFS export from the GUI at approx. 10:20am).

1678804696661.png
 
Joined
Mar 14, 2023
Messages
7
I suppose if it helps jog anyone's memory: I can manually add the share to /etc/exports and export it - it will work then, but it won't survive a reboot. When I add the line in manually and re-export, it doesn't show up in the GUI either (which I think is probably expected behavior).

There's some kind of "thing" happening with JUST the NFS export part of the GUI. I can create/delete CIFS shares, no problem. I can delete NFS shares, no problem. When I try and add an NFS share - even if it's a working NFS share that I just deleted for test purposes, so known to be good - it flashes the blue progress bar for a micro-second, greys out the "Save" button, and that's totally it.

If anyone can lend a hand to point me at a way of troubleshooting this, I'd really appreciate it. I'm kinda stuck. :(
 
Joined
Mar 14, 2023
Messages
7
Update: I deleted ALL of my NFS mounts, and I can now add them back in. So - I've got a workaround going.

I'd love to diagnose this a bit further if there's someone who can point me in the direction of the relevant log facilities / database. I'm not sure whether I've discovered a small bug or not, but I'd love to do a little digging if it helps someone else out.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I'd recommend taking/downloading a config backup (unzip the downloaded file and find the freenas-v1.db file).

Then use something like this to open it: https://sqlitebrowser.org/dl/

Go nuts looking at whatever you want (since it's not the live system).

I would suggest starting with the sharing_nfs_share table.
 
Top