TrueNAS Core 12.0 - HTTPS Redirect Rookie Mistake

Heffy

Dabbler
Joined
Jul 8, 2016
Messages
18
Hi All,

I set the https redirect checkbox on the System/General Web GUI page without exact knowledge of all the other pre requisite steps. This broke my Web GUI into TrueNAS!

Could anyone give me the the exact command string to uncheck https through either the box's command line or an SSH terminal that I have set up on the NAS box?


Thank you in advance

Asus Motherboard, 16 Gb Ram, 1 - 240 Gb SSD boot drive, mix of 3 and 4 Tb WD-Red NAS Hard Drives in ZFS Z2 configuration, TrueNAS 12.0 U1.x on FreeBSD
 

tfjad

Dabbler
Joined
Nov 1, 2016
Messages
12
To clear the HTTPS Redirect checkbox in the GUI, log in with SSH and run the following command (as root):
Code:
sqlite3 /data/freenas-v1.db "update system_settings set stg_guihttpsredirect=0"
 

Heffy

Dabbler
Joined
Jul 8, 2016
Messages
18
Thank you @tfjad but this did not work for me. I was skeptical at running
Code:
sqlite3 /data/freenas-v1.db "update system_settings set stg_guihttpsredirect=0"
because of the "freenas-v1.db" as I wasn't sure that would be correct for TrueNAS Core 12.0.

The conversation about IOS in the thread put me off, but as I wasn't getting answers in here, I thought I didn't have too much to lose.

I found the answer in this thread relating to the issue and the answer from @Samuel Tai which I modified slightly for this version.

Code:
curl --basic -u root -k -X PUT "https://<your TrueNAS IP>/api/v2.0/system/general" -H "accept: */*" -H "Content-Type: application/json" -d '{"ui_httpsredirect":false}'
 

calperin

Cadet
Joined
Jan 5, 2013
Messages
5
Finally this works for me:

sudo curl --basic -u root -k -X PUT "https://<Your TrueNAS IP/api/v2.0/system/general" -H "accept: */*" -H "Content-Type: application/json" -d '{"ui_httpsredirect":false}'

and Reboot the unit.
 
Top