tch-nginx-gui icon indicating copy to clipboard operation
tch-nginx-gui copied to clipboard

Remote assistance not working after reboot (Again?)

Open lorenzocanalelc opened this issue 4 years ago • 11 comments

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

lorenzocanalelc avatar Dec 19 '20 13:12 lorenzocanalelc

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

FrancYescO avatar Dec 19 '20 17:12 FrancYescO

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...

lorenzocanalelc avatar Dec 19 '20 18:12 lorenzocanalelc

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?

lorenzocanalelc avatar Dec 20 '20 14:12 lorenzocanalelc

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"

FrancYescO avatar Dec 20 '20 19:12 FrancYescO

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'

lorenzocanalelc avatar Dec 20 '20 19:12 lorenzocanalelc

root@DGA4130:~# uci get web.state_remote.enabled
uci: Entry not found

FrancYescO avatar Dec 20 '20 19:12 FrancYescO

Did you enable remote access before? Because the entry for me appeared only after enabling it on the GUI

lorenzocanalelc avatar Dec 20 '20 19:12 lorenzocanalelc

yep actually i have it enabled

FrancYescO avatar Dec 20 '20 19:12 FrancYescO

probably it depends on firmware... do you have the uci show web.remote.active?

FrancYescO avatar Dec 20 '20 19:12 FrancYescO

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

lorenzocanalelc avatar Dec 20 '20 19:12 lorenzocanalelc

DBC167C5-8486-49FF-A46D-15F0C72CC30E As said

EDIT: Maybe I should mention I have permanent access with a fixed password

lorenzocanalelc avatar Dec 20 '20 19:12 lorenzocanalelc