tch-nginx-gui
tch-nginx-gui copied to clipboard
Remote assistance not working after reboot (Again?)
NB: Before submitting an issue, check if there is one already open that suits the problem you are having! Same as #299 but that issue is now close so I decided to open up a new one
Device Model/Firmware: Tg789vac V2 Firmware UNO 17.2.0278 GUI Version: 9.6.66-e8758d63
DebugHelper2020-12-19-1340.tar.gz
(Also just saying, wouldn't it better to avoid inserting the ifconfig and routing in the DebugHeper since they contain sensible datas (IP address specifically))
Description of problem, HOW TO REPRODUCE, Media/Photos: After a reboot the remote assistance doesn't work until giving at least a "curl localhost" see #299
Also, just for your information the same option was working perfectly on the DGA4130 AGTEF2.2.1
i already checked about this thing in the past, and probably this can happen totally random if during the startup nginx is still not ready to response requests as the "official" way of enabling it is to just issue a request to localhost... https://github.com/FrancYescO/tch_firmware_extracted/blob/vbnt-l_16.3.7190-2761003-20170907085601-501361d1f0abcd3206e49f0897c4a6cca07a114d/etc/init.d/ra
Yes, thanks for the input, because the problem it's in that service, but it's not the time, in my case the if was wrong this
if [ ! -z $(uci show web | grep "web.state_.*\.enabled=1")
Didn't work, but this
if [ ! -z $(uci show web | grep "web.state_.*\.enabled='1'")
Did work, because for same reason my web state file it's:
web.state_remote.enabled='1'
I don't understand how the original file can work on other devices...
I Just checked and it seems that also on my DGA4132 AGTHP 2.2.1 I have the same problem but I probably didn't noticed it because I always access at least once on LAN... Did the original ra script work for you?
this if is totally broken and also nosense as from what i can see there are no "web.state_" paths, problably these where here is some old firmware and they never fixed the script
problably we should just replace it with something like $(uci get web.remote.active) = "1"
I disagree with you on this, because the rest of the If is valid when remote access is enable, this how the fixed grep looks on my device with the line fixed
root@modemtim:~# uci show web | grep "web.state_.*\.enabled='1'"
web.state_remote.enabled='1'
root@DGA4130:~# uci get web.state_remote.enabled
uci: Entry not found
Did you enable remote access before? Because the entry for me appeared only after enabling it on the GUI
yep actually i have it enabled
probably it depends on firmware... do you have the uci show web.remote.active
?
I don’t know then why it is there on my DGA4132 and on the Tg789vac v2 (Both with a clean configuration) anyway, your fix should also work because I have that entry too also on mine
As said
EDIT: Maybe I should mention I have permanent access with a fixed password