(SOLVED!) Extend Web GUI token timeout (23.10-RC.1)

Kasazn

Explorer
Joined
Apr 17, 2021
Messages
60
Can anyone help me with extending the web UI timeout limit? I used to use these commands and it worked before on previous versions of SCALE.


sed -i 's/auth.generate_token",\[300/auth.generate_token",\[129600/g' /usr/share/truenas/webui/*.js


https://tomschlick.com/blog/2022/06/28/extend-truenas-web-ui-session-timeout/

Appreciate if anyone can guide me as I'd like to leave my session open without having to relogin every 5 minutes as my PC and ZFS pool are all encrypted and secure.
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
We have an option to set that now:

 

Kasazn

Explorer
Joined
Apr 17, 2021
Messages
60
My bad for failing to read the changelogs! Appreciate the help! Thanks!
 

Trevor68

Contributor
Joined
Oct 15, 2021
Messages
130
um, where do we find that???
 

Kasazn

Explorer
Joined
Apr 17, 2021
Messages
60
um, where do we find that???

System Settings > Advanced > Sessions

1696675341115.png


1696675506340.png


EDIT: Attached snip for future readers of this forum thread.
 
Last edited:

Trevor68

Contributor
Joined
Oct 15, 2021
Messages
130
nice, doubled mine
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
1696570046455.png

Err - where is the configure button?
I am on TrueNAS-SCALE-22.12.4
 

Trevor68

Contributor
Joined
Oct 15, 2021
Messages
130
I imagine you get one once you update to Cobia
 

Kasazn

Explorer
Joined
Apr 17, 2021
Messages
60

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
Oops
 

VanDuncan

Cadet
Joined
Feb 23, 2023
Messages
3
From what I could gather from the following link, the maximum is a around 20 hours:
The default lifetime setting is 300 seconds, or five minutes.
The minimum value allowed is 30 seconds.
The maximum is 2147482 seconds, or 20 hours, 31 minutes, and 22 seconds.

But there must be a typo because 20 hours is 72000 sec
Anyway, I tried with 72000, and some values under, but it still doesn't work.
It seems to extend the timeout above the default 5 minutes, but I'm still not sure what the new real max is.
 

Brandito

Explorer
Joined
May 6, 2023
Messages
72
From what I could gather from the following link, the maximum is a around 20 hours:


But there must be a typo because 20 hours is 72000 sec
Anyway, I tried with 72000, and some values under, but it still doesn't work.
It seems to extend the timeout above the default 5 minutes, but I'm still not sure what the new real max is.
I found the same issue, even set to the max, which should be ~25 days, I get logged out after a few hours max. In bluefin I used the command
Code:
sed -i 's/auth.generate_token",\[300/auth.generate_token",\[129600/g' /usr/share/truenas/webui/*.js
and it worked great. It's nice to see the option baked in now, however it doesn't seem to actually work, and now neither does the original work around.
 

Imran

Dabbler
Joined
Nov 4, 2015
Messages
15
I found the same issue, even set to the max, which should be ~25 days, I get logged out after a few hours max. In bluefin I used the command
Code:
sed -i 's/auth.generate_token",\[300/auth.generate_token",\[129600/g' /usr/share/truenas/webui/*.js
and it worked great. It's nice to see the option baked in now, however it doesn't seem to actually work, and now neither does the original work around.
Same here. It doesn't work for me either. Did you find a workaround?
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
We have an option to set that now:

I'm guessing this is only available on SCALE and not on CORE?
 

vampirebyte

Dabbler
Joined
Nov 28, 2022
Messages
20
From what I could gather from the following link, the maximum is a around 20 hours:


But there must be a typo because 20 hours is 72000 sec
Anyway, I tried with 72000, and some values under, but it still doesn't work.
It seems to extend the timeout above the default 5 minutes, but I'm still not sure what the new real max is.
indeed confusing, the max value validation in the field seems to be completely wrong. If I enter for example 86400, 24 hours, I get an empty time in the GUI:

Screenshot 2024-01-11 at 19.30.03.png
Screenshot 2024-01-11 at 19.33.20.png


Should we fill a bug... somewhere?
 

vampirebyte

Dabbler
Joined
Nov 28, 2022
Messages
20

stergio

Dabbler
Joined
Jun 30, 2023
Messages
11
Hey all, Great find - the timeout has been bugging me since upgrading to Cobia recently. This is nothing compared to Bluefin that had a hoard of other issues I could not deal with anymore - story for another thread.

Question - Even though the time out is not displayed in the GUI - does the timeout when set to 24hrs (86400 seconds) work, and it is just not displayed on the GUI? Just upgraded to TrueNAS-SCALE-23.10.0 and tinkered with this setting - I guess we will see.
 
Top