Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
341 stars 52 forks source link

Empty xdsl graphics tg800vac 16.3 GUI Version [ 8.8.77 ] #308

Closed Janaue closed 5 years ago

Janaue commented 5 years ago

Device Model: tg800vac firmware 16.3 Gui Version: GUI Version [ 8.8.77 ]

Description of problem: the 3 graphics for xdsl are empty of data [only the axis are printed]

[DSLStats display the graphics well]

How to reproduce (if possible): autoflashgui with firmware 16.3 install https://github.com/Ansuel/tch-nginx-gui reboot no tiles are shown so must install: https://github.com/kevdagoat/tch-nginx-gui-LITE

Media/Photos (if possible): sshot-184

I copied the newest file here https://raw.githubusercontent.com/Ansuel/tch-nginx-gui/master/decompressed/gui_file/www/docroot/modals/diagnostics-xdsl-graphics-modal.lp into /www/docroot/modals then commands

/etc/init.d/transformer restart /etc/init.d/nginx restart

but the graphics are still empty

kevdagoat commented 5 years ago

Don’t install my patch, you will break it.

Try this:

  1. Go to gateway and press “Remove GUI”
  2. Run the installation commands but rather than /etc/init.d/rootdevice force use /etc/init.d/rootdevice debug
  3. Post the output

On 28 Oct 2018, at 6:16 pm, Janaue notifications@github.com wrote:

Device Model: tg800vac firmware 16.3 Gui Version: GUI Version [ 8.8.77 ]

Description of problem: the 3 graphics for xdsl are empty of data [only the axis are printed]

How to reproduce (if possible): autoflashgui with firmware 16.3 install https://github.com/Ansuel/tch-nginx-gui reboot no tiles are shown so must install: https://github.com/kevdagoat/tch-nginx-gui-LITE

Media/Photos (if possible):

I copied the newest file here https://raw.githubusercontent.com/Ansuel/tch-nginx-gui/master/decompressed/gui_file/www/docroot/modals/diagnostics-xdsl-graphics-modal.lp into /www/docroot/modals then commands

/etc/init.d/transformer restart /etc/init.d/nginx restart

but the graphics are still empty

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Janaue commented 5 years ago

hi, this is the log after I reset the modem with the physical reset button, then I just install the ansuel GUI

the URL http://10.0.0.138/stats.lp works, but the URl http://10.0.0.138/cards.lp is empty of tiles

new 28.txt new 28.txt

scotty03 commented 5 years ago

Download the latest dev release as both those issues are fixed........xdsl graph and cards missing https://repository.ilpuntotecnico.com/files/Ansuel/AGTEF/GUI_dev.tar.bz2

Janaue commented 5 years ago

Yes I just tried this dev version GUI Version [ 8.9.25 ] 2018 and the graphs are still empty. I did: physical reset get back to 16.3 telstra apply the dev GUI set up my PPP connection =>the graphs are empty, but DSLSTATS show the graphs

scotty03 commented 5 years ago

I am running tg800 16.3 clean install and all graphs are Woking and all cards are viewable. Delete your bank1 folder in the overlay folder before flashing firmware onto bank1 from bank2

On Mon, 29 Oct 2018 at 20:06, Janaue notifications@github.com wrote:

Yes I just tried this dev version GUI Version [ 8.9.25 ] 2018 and the graphs are still empty. I did: physical reset get back to 16.3 telstra apply the dev GUI set up my PPP connection =>the graphs are empty, but DSLSTATS show the graphs

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Ansuel/tch-nginx-gui/issues/308#issuecomment-433844359, or mute the thread https://github.com/notifications/unsubscribe-auth/AqR-0kBcogcmO_KWRx_SdqbQq0vq4onYks5upswIgaJpZM4X94nX .

Janaue commented 5 years ago

I did like you said: -remove root via the GUI -autoflashgui with 16.3 to get to bank2 -delete overlay/bank1 -autoflashgui with 16.3 to get to bank1 -install the dev GUI Version [ 8.9.25 ] 2018 -enter my details for the ADSL PPP connection -still empty graphs

Janaue commented 5 years ago

can you copy your working diagnostics-xdsl-graphics-modal.lp from /www/docroot/modals . i will copy it and restart the gui.

scotty03 commented 5 years ago

diagnostics-xdsl-graphics-modal.lp attached diagnostics-xdsl-graphics-modal.zip

Ansuel commented 5 years ago

i need this output transformer-cli get rpc.xdslctl.

Janaue commented 5 years ago

i need this output transformer-cli get rpc.xdslctl.

I tried this command in putty, but it says no found

root@mygateway:~# transformer-cli get rpc.xdslctl. -ash: transformer-cli: not found

without ''-cli'''in command, it returns nothing

root@mygateway:~# transformer get rpc.xdsl.dslversion root@mygateway:~#

on GUI Version [ 8.9.42 ] 2018

kevdagoat commented 5 years ago

It’s a Telstra modem isn’t it :)

Sent from my iPhone

On 2 Nov 2018, at 5:31 pm, Janaue notifications@github.com wrote:

i need this output transformer-cli get rpc.xdslctl.

I tried this command in putty, but it says no found

root@mygateway:~# transformer-cli get rpc.xdslctl. -ash: transformer-cli: not found

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Janaue commented 5 years ago

They have a special command? do you have an output of transformer-cli get rpc.xdslctl with yours?

flywire commented 5 years ago

Telstra TG799vac GUI Version [ 8.9.52 ] 2018 Software Version 17.2.0261-7021006-20180717060049-820-RA

/etc/init.d/rootdevice debug output There is something about Stopping nginx and transformer (Roll back edit for full log)

...
root@mygateway:~# /etc/init.d/rootdevice debug
Root Script: Rooting in progress...
Root Script: Extracting telnet_support-specificTG789/tg799.tar.bz2 ...
Root Script: Disable watchdog
Root Script: Start rooting
Root Script: Stopping nginx and transformer
Command failed: Not found
Root Script: Checking if we are on TIM configuration
...
root@mygateway:~#
Ansuel commented 5 years ago

it's just an utility that print data directly without using lua code...

actually only agtef and agthp have this utility... will add this to new dev as it's portable and not version specific

Ansuel commented 5 years ago

@Janaue can you redo this commad with latest gui?

transformer-cli get rpc.xdslctl.

Janaue commented 5 years ago

With GUI Version [ 8.9.56 ] 2018 , I get the message ''Internal Server Error occured, please contact administrator'''in xdsl graphics for the command

root@mygateway:~# transformer-cli get rpc.xdslctl. ERROR invalid path rpc.xdslctl. root@mygateway:~# transformer-cli get rpc.xdslctl ERROR invalid exact path rpc.xdslctl

Janaue commented 5 years ago

I have not rebooted the router though

Janaue commented 5 years ago

I have rebooted and it is the same

Ansuel commented 5 years ago

@Janaue can you try

transformer-cli get rpc.

Janaue commented 5 years ago

yes all the parameters are shown. I search for xdslctl in it but there is nothing transformer-cli get rpc.txt

Ansuel commented 5 years ago

check if /usr/share/transformer/mappings/rpc/xdslctl exist

@Janaue

Janaue commented 5 years ago

there is no file xdslctl, but a file xdslctl.map xdslctl.map.txt

@Ansuel

Ansuel commented 5 years ago

do one thing /etc/init.d/transformer restart wait 1 minute and then do a logread and pot here the output

Janaue commented 5 years ago

after updating to GUI Version [ 8.9.58 ] 2018, I stil get

'Internal Server Error occured, please contact administrator'''in xdsl graphics

so at 08h04m30s, I did /etc/init.d/transformer restart wait 1 minute and this is the log


Wed Nov 14 08:04:24 2018 auth.info login[24982]: root login on 'pts/1'
Wed Nov 14 08:04:34 2018 auth.info login[25006]: root login on 'pts/1'
Wed Nov 14 08:04:40 2018 daemon.err procd: Failed to removed pidfile: /var/run/transformer.pid: 2 - No such file or directory
Wed Nov 14 08:04:41 2018 daemon.err transformer: /usr/share/transformer/mappings/bbf/DownloadDiagnostics.map ignored (...are/transformer/mappings/bbf/DownloadDiagnostics.map:269: attempt to call field 'clear_tr143_results' (a nil value))
Wed Nov 14 08:04:41 2018 daemon.err transformer: /usr/share/transformer/mappings/bbf/UploadDiagnostics.map ignored (...share/transformer/mappings/bbf/UploadDiagnostics.map:276: attempt to call field 'clear_tr143_results' (a nil value))
Wed Nov 14 08:04:42 2018 daemon.err nginx: 2018/11/14 08:04:42 [error] 17699#0: *29 lua entry thread aborted: runtime error: /www/docroot/ajax/cpuload.lua:11: attempt to index a nil value
stack traceback:
coroutine 0:
    /www/docroot/ajax/cpuload.lua:11: in function 'content'
    /usr/lib/lua/web/web.lua:249: in function 'process'
    content_by_lua(nginx.conf:109):4: in function <content_by_lua(nginx.conf:109):1>, client: 10.0.0.91, server: localhost, request: "POST /ajax/cpuload.lua HTTP/1.1", host: "10.0.0.138"Wed Nov 14 08:04:43 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/LANDevice.WLANConfiguration.map ignored (...sformer/mappings/igd/LANDevice.WLANConfiguration.map:664: 'InternetGatewayDevice.LANDevice.{i}.WLANConfiguration.{i}.InsecureOOBAccessEnabled': no setter)
Wed Nov 14 08:04:43 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/LANInterfaces.WLANConfiguration.map ignored (...mer/mappings/igd/LANInterfaces.WLANConfiguration.map:588: 'InternetGatewayDevice.LANInterfaces.WLANConfiguration.{i}.InsecureOOBAccessEnabled': no setter)
Wed Nov 14 08:04:43 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/WANDevice.WANConnectionDevice.WANIPConnection.map ignored (...gd/WANDevice.WANConnectionDevice.WANIPConnection.map:245: attempt to call field 'SetConnectionList' (a nil value))
Wed Nov 14 08:04:43 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/WANDevice.WANConnectionDevice.WANPPPConnection.map ignored (...d/WANDevice.WANConnectionDevice.WANPPPConnection.map:393: attempt to call field 'SetConnectionList' (a nil value))
Wed Nov 14 08:04:43 2018 daemon.err transformer: /usr/share/transformer/mappings/rpc/pumadocsis.map ignored (/usr/share/transformer/mappings/rpc/pumadocsis.map:23: Not able to locate the ubus daemon)
Wed Nov 14 08:04:44 2018 daemon.err transformer: /usr/share/transformer/mappings/rpc/xdslctl.map ignored (/usr/share/transformer/mappings/rpc/xdslctl.map:376: attempt to index a nil value)
Wed Nov 14 08:04:44 2018 auth.info login[25058]: root login on 'pts/1'
Wed Nov 14 08:04:54 2018 auth.info login[25082]: root login on 'pts/1'
Wed Nov 14 08:05:00 2018 cron.info crond[3116]: USER root pid 25101 cmd /usr/bin/thermalProtection
Wed Nov 14 08:05:04 2018 auth.info login[25108]: root login on 'pts/1'
Wed Nov 14 08:05:14 2018 auth.info login[25132]: root login on 'pts/1'
Wed Nov 14 08:05:24 2018 auth.info login[25156]: root login on 'pts/1'
Wed Nov 14 08:05:27 2018 daemon.err odhcp6c[25812]: Failed to send DHCPV6 message to ff02::1:2 (Operation not permitted)
Wed Nov 14 08:05:34 2018 auth.info login[25180]: root login on 'pts/1'
Wed Nov 14 08:05:44 2018 auth.info login[25204]: root login on 'pts/1'
Ansuel commented 5 years ago

@Janaue can you try with latest dev ?

Janaue commented 5 years ago

@Ansuel so on GUI Version [ 8.9.64 ] 2018 , I still get Internal Server Error occured, please contact administrator

root@mygateway:~# transformer-cli get rpc.xdslctl. ERROR invalid path rpc.xdslctl.

at 8h45h01 I l command /etc/init.d/transformer restart and at 8h47h15 I try to see the graphics


Sun Nov 18 08:44:04 2018 user.debug mmpbxd[6029]: [SIPDEV_APN]    :E: resetAPNConnection:120 - Could not connected to Apple Push Notification Service: could not initialize ssl connection (18)
Sun Nov 18 08:44:04 2018 user.debug mmpbxd[6029]: [SIPDEV_APN]    :I: resetAPNConnection:126 - apn connection started apn mode 0 ret=13.
Sun Nov 18 08:44:37 2018 daemon.notice transformer: [mobiled] (WaitingForDevice) runs WaitingForDevice-Main.check(timeout, 1, PlatformConfigure)
Sun Nov 18 08:45:00 2018 cron.info crond[3152]: USER root pid 10058 cmd /usr/bin/thermalProtection
Sun Nov 18 08:45:03 2018 daemon.err procd: Failed to removed pidfile: /var/run/transformer.pid: 2 - No such file or directory
Sun Nov 18 08:45:04 2018 daemon.err transformer: /usr/share/transformer/mappings/bbf/DownloadDiagnostics.map ignored (...are/transformer/mappings/bbf/DownloadDiagnostics.map:269: attempt to call field 'clear_tr143_results' (a nil value))
Sun Nov 18 08:45:04 2018 daemon.err transformer: /usr/share/transformer/mappings/bbf/UploadDiagnostics.map ignored (...share/transformer/mappings/bbf/UploadDiagnostics.map:276: attempt to call field 'clear_tr143_results' (a nil value))
Sun Nov 18 08:45:05 2018 daemon.err nginx: 2018/11/18 08:45:05 [error] 5242#0: *22 lua entry thread aborted: runtime error: /www/docroot/ajax/cpuload.lua:11: attempt to index a nil value
stack traceback:
coroutine 0:
    /www/docroot/ajax/cpuload.lua:11: in function 'content'
    /usr/lib/lua/web/web.lua:249: in function 'process'
    content_by_lua(nginx.conf:109):4: in function <content_by_lua(nginx.conf:109):1>, client: 10.0.0.91, server: localhost, request: "POST /ajax/cpuload.lua HTTP/1.1", host: "10.0.0.138",Sun Nov 18 08:45:05 2018 user.debug mmpbxd[6029]: [SIPDEV_APN]    :E: resetAPNConnection:120 - Could not connected to Apple Push Notification Service: could not initialize ssl connection (18)
Sun Nov 18 08:45:05 2018 user.debug mmpbxd[6029]: [SIPDEV_APN]    :I: resetAPNConnection:126 - apn connection started apn mode 0 ret=13.
Sun Nov 18 08:45:06 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/LANDevice.WLANConfiguration.map ignored (...sformer/mappings/igd/LANDevice.WLANConfiguration.map:664: 'InternetGatewayDevice.LANDevice.{i}.WLANConfiguration.{i}.InsecureOOBAccessEnabled': no setter)
Sun Nov 18 08:45:06 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/LANInterfaces.WLANConfiguration.map ignored (...mer/mappings/igd/LANInterfaces.WLANConfiguration.map:588: 'InternetGatewayDevice.LANInterfaces.WLANConfiguration.{i}.InsecureOOBAccessEnabled': no setter)
Sun Nov 18 08:45:06 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/WANDevice.WANConnectionDevice.WANIPConnection.map ignored (...gd/WANDevice.WANConnectionDevice.WANIPConnection.map:245: attempt to call field 'SetConnectionList' (a nil value))
Sun Nov 18 08:45:06 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/WANDevice.WANConnectionDevice.WANPPPConnection.map ignored (...d/WANDevice.WANConnectionDevice.WANPPPConnection.map:393: attempt to call field 'SetConnectionList' (a nil value))
Sun Nov 18 08:45:06 2018 daemon.err transformer: /usr/share/transformer/mappings/rpc/pumadocsis.map ignored (/usr/share/transformer/mappings/rpc/pumadocsis.map:23: Not able to locate the ubus daemon)
Sun Nov 18 08:45:07 2018 daemon.err transformer: /usr/share/transformer/mappings/rpc/xdslctl.map ignored (/usr/share/transformer/mappings/rpc/xdslctl.map:114: attempt to index a nil value)
Sun Nov 18 08:45:37 2018 daemon.notice transformer: [mobiled] (WaitingForDevice) runs WaitingForDevice-Main.check(timeout, 1, PlatformConfigure)
Sun Nov 18 08:46:00 2018 cron.info crond[3152]: USER root pid 10176 cmd /sbin/trafficmon.lua
Sun Nov 18 08:46:05 2018 user.debug mmpbxd[6029]: [SIPDEV_APN]    :E: resetAPNConnection:120 - Could not connected to Apple Push Notification Service: could not initialize ssl connection (18)
Sun Nov 18 08:46:05 2018 user.debug mmpbxd[6029]: [SIPDEV_APN]    :I: resetAPNConnection:126 - apn connection started apn mode 0 ret=13.
Sun Nov 18 08:46:37 2018 daemon.notice transformer: [mobiled] (WaitingForDevice) runs WaitingForDevice-Main.check(timeout, 1, PlatformConfigure)
Sun Nov 18 08:47:06 2018 user.debug mmpbxd[6029]: [SIPDEV_APN]    :E: resetAPNConnection:120 - Could not connected to Apple Push Notification Service: could not initialize ssl connection (18)
Sun Nov 18 08:47:06 2018 user.debug mmpbxd[6029]: [SIPDEV_APN]    :I: resetAPNConnection:126 - apn connection started apn mode 0 ret=13.
Sun Nov 18 08:47:12 2018 daemon.err nginx: 2018/11/18 08:47:12 [error] 5242#0: *19 lua entry thread aborted: runtime error: [string "/modals/diagnostics-xdsl-graphics-modal.lp"]:36: attempt to index a nil value
stack traceback:
coroutine 0:
    [string "/modals/diagnostics-xdsl-graphics-modal.lp"]:36: in function 'content'
    /usr/lib/lua/web/web.lua:249: in function 'process'
    content_by_lua(nginx.conf:109):4: in function <content_by_lua(nginx.conf:109):1>, client: 10.0.0.91, server: localhost, request: "GET /Sun Nov 18 08:47:37 2018 daemon.notice transformer: [mobiled] (WaitingForDevice) runs WaitingForDevice-Main.check(timeout, 1, PlatformConfigure)
Sun Nov 18 08:48:00 2018 cron.info crond[3152]: USER root pid 10354 cmd /sbin/trafficmon.lua
Sun Nov 18 08:48:07 2018 user.debug mmpbxd[6029]: [SIPDEV_APN]    :E: resetAPNConnection:120 - Could not connected to Apple Push Notification Service: could not initialize ssl connection (18)
Sun Nov 18 08:48:07 2018 user.debug mmpbxd[6029]: [SIPDEV_APN]    :I: resetAPNConnection:126 - apn connection started apn mode 0 ret=13.

so when I attempt to see the graphics, the log has

Sun Nov 18 09:00:05 2018 daemon.err nginx: 2018/11/18 09:00:05 [error] 5242#0: *79 lua entry thread aborted: runtime error: [string "/modals/diagnostics-xdsl-graphics-modal.lp"]:36: attempt to index a nil value
stack traceback:
coroutine 0:
    [string "/modals/diagnostics-xdsl-graphics-modal.lp"]:36: in function 'content'
    /usr/lib/lua/web/web.lua:249: in function 'process'
    content_by_lua(nginx.conf:109):4: in function <content_by_lua(nginx.conf:109):1>, client: 10.0.0.91, server: localhost, request: "GET /Sun Nov 18 09:00:06 2018 auth.info login[14340]: root login on 'pts/0'
Sun Nov 18 09:00:16 2018 auth.info login[14365]: root login on 'pts/0'
Ansuel commented 5 years ago

can you post here your xdslctl.map

it's too strange o.o

Janaue commented 5 years ago

xdslctl.map.txt

--
--
--   Custom Gui for Technicolor Modem: utility script and modified gui for the Technicolor Modem
--                                     interface based on OpenWrt
--
--    Copyright (C) 2018  Christian Marangi <ansuelsmth@gmail.com>
--
--    This file is part of Custom Gui for Technicolor Modem.
--    
--    Custom Gui for Technicolor Modem is free software: you can redistribute it and/or modify
--    it under the terms of the GNU General Public License as published by
--    the Free Software Foundation, either version 3 of the License, or
--    (at your option) any later version.
--    
--    Custom Gui for Technicolor Modem is distributed in the hope that it will be useful,
--    but WITHOUT ANY WARRANTY; without even the implied warranty of
--    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--    GNU General Public License for more details.
--    
--    You should have received a copy of the GNU General Public License
--    along with Custom Gui for Technicolor Modem.  If not, see <http://www.gnu.org/licenses/>.
--
--

local format, concat, popen = string.format , table.concat , io.popen
local tonumber, tostring = tonumber , tostring
local register = register;

local xdslctl_ = {
    objectType = {
        name = 'rpc.xdslctl.',
        access = 'readOnly',
        minEntries = 1,
        maxEntries = 1,
        parameters = {}
    }
}

local string_table = {access = "readOnly",type = "string"}
local int_table = {access = "readOnly",type = "int"}

for _ , type in pairs{ "Hlog" , "Bits", "SNR", "QLN" } do
    xdslctl_.objectType.parameters[type.."ScanBand"] = string_table
    for _, band in pairs{ "Ds" , "Us"} do
        for _ , number in pairs{"1","2","3","4"} do
            if ( band == "Ds" ) and ( number == "3" ) then
                xdslctl_.objectType.parameters[type..band..number.."Split1"] = string_table
                xdslctl_.objectType.parameters[type..band..number.."Split2"] = string_table
            else
                xdslctl_.objectType.parameters[type..band..number] = string_table
            end
            for _ , type in pairs{"Initial","Final","ScannedBand"} do
                xdslctl_.objectType.parameters[band..number..type] = int_table
            end
        end
        xdslctl_.objectType.parameters[band.."BandNumber"] = int_table
    end
end

for _, type in pairs{"Chipset","Version","VersionRaw"} do
    xdslctl_.objectType.parameters["Dslam"..type] = string_table
end
for _, type in pairs{"Mode","Profile"} do
    xdslctl_.objectType.parameters["Dsl"..type] = string_table
end

local cache = {}

local function xdslmode(dtype)
    local showdatacmd = ("xdslctl info --show")
    local showdata = popen(showdatacmd, 'r')
    local showline
    local result
    for showline in showdata:lines() do
        if dtype:match("mode") then
            if showline:match("Mode") then
                result = (showline:gsub("Mode:%s+",""))
                break
            end
        elseif dtype:match("profile") then
            if showline:match("Profile") then
                result = (showline:gsub("VDSL2 Profile:%s+Profile ",""))
                if result:match("BrcmPriv1") then --Fix 35b line with wrong name
                    result = "35b"
                end
                break
            end
        end
    end
    showdata:close()

    return result or ""
end

local function pbParams_find(bandtype)
    local cmd = ("xdslctl info --pbParams")
    local pbfile = popen(cmd, 'r')
    local pbstring = ""
    for pbline in pbfile:lines() do
        if pbline:match("Medley Phase %(Final%) Band Plan") then
            if ( bandtype == "Ds" ) then
                pbfile:read("*l")
            end
            pbstring = pbfile:read("*l")
            break
        elseif pbline:match("VDSL Port Details") then
            break
        end
    end

    pbfile:close()

    if ( bandtype == "Us" ) then
        local First_US_band = tonumber((pbstring:match("%([0-9]+,"):gsub("%(",""):gsub(",","")))
        local Us_band_num = select(2, pbstring:gsub("%(", ""))
        if ( Us_band_num == 3 ) and ( First_US_band > 100 ) then
            pbstring = pbstring:gsub(":",": (0,32)") --handle strange case when onu disable US0
        end 
    end

    return pbstring
end

local function parase_pbParams(bandtype,dtype)
    local pbstring = cache["pbLine" .. bandtype] or pbParams_find(bandtype) or ""
    pbstring = pbstring:gsub('[\n\r]+', '')
    local bandlist = {}
    local bandnumber = 0
    for band in pbstring:gmatch("%((.-)%)") do
        if dtype == "BandNumber" then
            bandnumber = bandnumber +1
        else
            bandlist[#bandlist+1] = band
        end
    end

    if dtype == "BandNumber" then
        return tostring(bandnumber)
    else
        cache["pbBand"..bandtype] = bandlist
        return
    end
end

if not cache["dslmode"] then
    cache["dslmode"] = xdslmode("mode")
end

if not cache["dslmode"]:match("ADSL") then
    cache["pbLineUs"] = pbParams_find("Us")
    cache["pbLineDs"] = pbParams_find("Ds")
    parase_pbParams("Us")
    parase_pbParams("Ds")
end

local function xdslband(band_request,dtype,bandtype)

    local dslmode = cache["dslmode"] or xdslmode("mode")

    local result = "0"
    local band

    local cachebandstring = bandtype .. band_request .. dtype

    if not dslmode:match("ADSL") then
        local pbBand = cache["pbBand"..bandtype][band_request]
        if dtype == "Initial" and pbBand then
            result = pbBand:match("(.-)%,")
        elseif dtype == "Final" and pbBand then
            result = pbBand:match("%,(%d*)")
        end
    else
        if band_request == 1 then
            if bandtype == "Us" then
                if dtype == "Initial" then
                    result = "6"
                elseif dtype == "Final" then
                    result = "31"
                end
            else
                if dtype == "Initial" then
                    result = "33"
                elseif dtype == "Final" then
                    result = "512"
                end
            end
        end
    end

    if result == "0" and dtype == "Final" then result = "-1" end
    cache[cachebandstring] = result
    return result
end

local function xdslctlget(dtype,request,band,bandtype,split)
    local data = {}
    local lineread = 0
    local line
    local scannedband = 0

    local bandstart, bandend

    if bandtype == "Us" and band == 1 then
        bandstart = 0
    elseif bandtype == "Ds" and band == 1 then
        bandstart = tonumber(cache["Us" .. 1 .. "Final"] or xdslband(1,"Final","Us"))+1
    elseif bandtype == "Us" and band == 2 then
        bandstart = tonumber(cache["Ds" .. 1 .. "Final"] or xdslband(1,"Final","Ds"))+1
        if xdslband(2,"Final","Us") == 0 then --We don't have Us2, execpt we are in no VDSL
            bandend = 512 --Max bit for ADSL2+
        end
    elseif bandtype == "Ds" and band == 2 then
        bandstart = tonumber(cache["Us" .. 2 .. "Final"] or xdslband(2,"Final","Us"))+1
    elseif bandtype == "Us" and band == 3 then
        bandstart = tonumber(cache["Ds" .. 2 .. "Final"] or xdslband(2,"Final","Ds"))+1
    elseif bandtype == "Us" and band == 4 then
        bandstart = tonumber(cache["Us" .. 3 .. "Final"] or xdslband(3,"Final","Us"))+1
    elseif bandtype == "Ds" and band == 3 then
        if tonumber(cache["Us" .. 4 .. "Final"] or xdslband(4,"Final","Us")) == -1 then --The Us4 band is not present!
            bandstart = tonumber(cache["Us" .. 3 .. "Final"] or xdslband(3,"Final","Us"))+1 --Take the Us3 to start
        else
            bandstart = tonumber(cache["Us" .. 4 .. "Final"] or xdslband(4,"Final","Us"))+1
        end
        bandend = tonumber(cache[bandtype .. band .. "Final"] or xdslband(band,"Final",bandtype))
        if bandend > 4096 then --We are on 35b mode
            if split == 1 then
                bandend = bandstart+(math.floor((8192-bandstart)/2))
            elseif split == 2 then
                bandstart = bandstart+(math.floor((8192-bandstart)/2))+1
                bandend = 8192 --Max bit for 35b
            end
        else
            if split == 2 then
                bandstart = 0
                bandend = -1
            end
        end
    elseif bandtype == "Ds" and band == 4 then
        bandstart = tonumber(cache["Ds" .. 3 .. "Final"] or xdslband(3,"Final","Ds"))+1
    end

    if not bandstart then
        bandstart = tonumber(cache[bandtype .. band .. "Initial"] or xdslband(band,"Initial",bandtype)) or 0
    end

    if not bandend then
        bandend = tonumber(cache[bandtype .. band .. "Final"] or xdslband(band,"Final",bandtype)) or -1
    end

    local cmd = "xdslctl info --" .. request

    local infofile = popen(cmd,"r")

    for line in infofile:lines() do
        if lineread>=(bandstart+8) and lineread<=(bandend+8) then
            if not ( dtype == "scanband" ) then
                if lineread>(bandend+8) then
                    break
                end
                if dtype == "data" then
                    if request == "Hlog" then
                        line = line:gsub("(.*)-",""):sub(1, -4) or 0 
                        if ( tonumber(line*-1) > -96 ) then 
                            data[#data+1] = format("-%s,",line)
                        else
                            data[#data+1] = "NaN,"
                        end
                    elseif request == "QLN" then
                        line = line:gsub("(.*)-",""):sub(1, -4) or 0
                        if ( tonumber(line*-1) > -160 ) then 
                            data[#data+1] = format("-%s,",line)
                        else
                            data[#data+1] = "NaN,"
                        end
                    elseif request == "SNR" then
                        line = line:sub(-8):gsub("%s*",""):sub(1, -3) or 0
                        if ( tonumber(line) > 0 ) then 
                            data[#data+1] = format("%s,",line)
                        else
                            data[#data+1] = "NaN,"
                        end
                    elseif request == "Bits" then
                        line = line:sub(-2):gsub("%s*","") or 0
                        if ( tonumber(line) > 0 ) then 
                            data[#data+1] = format("%s,",line)
                        else
                            data[#data+1] = "NaN,"
                        end
                    end
                elseif dtype == "scannedband" then
                    scannedband=scannedband+1
                end
            end
        end
        lineread=lineread+1
    end
    infofile:close()

    if dtype == "data" then
        return concat(data) or ""
    elseif dtype == "scanband" then
        return tostring(lineread-8)
    elseif dtype == "scannedband" then
        return tostring(scannedband)
    end
end

local function xdslctlDslamInfo(itype)
    local cmd = "xdslctl info --vendor"
    local result = ""
    local chipset 

    local vendor_info = popen(cmd)

    for line in vendor_info:lines() do
        if line:match("ChipSet Vendor Id") then
            chipset = line:gsub(".*:%s+",""):gsub(":.*","")
            if itype == "chipset" then
                result = chipset
                break
            end
        end
        if line:match("ChipSet VersionNumber") and ( itype == "version" or itype == "version_raw" ) then
            result = line:gsub(".*:%s+","")
            if ( itype == "version_raw" ) then
                break
            end
            if result:sub(0,2) == "0x" then
                if chipset:match("BDCM") then
                    result = result:gsub("(.*)x","")
                    result = tonumber(result:sub(0,2),16) .. "." .. tonumber(result:sub(3,4),16)
                elseif chipset:match("IFTN") then
                    result = result:gsub("(.*)x","")
                    result = tonumber(result:sub(0,1),16) .. "." .. tonumber(result:sub(2,3),16) .. "." .. tonumber(result:sub(4,4),16)
                end
            end
            break
        end
    end
    vendor_info:close()

    return result
end

local function get(mapping, paramName, key)
    if paramName == "HlogScanBand" then
        return xdslctlget("scanband","Hlog",0,"Ds")
    elseif paramName:match("Hlog") then
        local band = tonumber(paramName:sub(7,7))
        local bandtype = paramName:sub(5,6)
        if paramName:match("Split1") then
            return xdslctlget("data","Hlog",band,bandtype,1)
        elseif paramName:match("Split2") then
            return xdslctlget("data","Hlog",band,bandtype,2)
        end
        return xdslctlget("data","Hlog",band,bandtype)
    elseif paramName == "BitsScanBand" then
        return xdslctlget("scanband","Bits",0,"Ds")
    elseif paramName:match("Bits") then
        local band = tonumber(paramName:sub(7,7))
        local bandtype = paramName:sub(5,6)
        if paramName:match("Split1") then
            return xdslctlget("data","Bits",band,bandtype,1)
        elseif paramName:match("Split2") then
            return xdslctlget("data","Bits",band,bandtype,2)
        end
        return xdslctlget("data","Bits",band,bandtype)
    elseif paramName == "QLNScanBand" then
        return xdslctlget("scanband","QLN",0,"Ds")
    elseif paramName:match("QLN") then
        local band = tonumber(paramName:sub(6,6))
        local bandtype = paramName:sub(4,5) 
        if paramName:match("Split1") then
            return xdslctlget("data","QLN",band,bandtype,1)
        elseif paramName:match("Split2") then
            return xdslctlget("data","QLN",band,bandtype,2)
        end
        return xdslctlget("data","QLN",band,bandtype)
    elseif paramName == "SNRScanBand" then
        return xdslctlget("scanband","SNR",0,"Ds")
    elseif paramName:match("SNR") then
        local band = tonumber(paramName:sub(6,6))
        local bandtype = paramName:sub(4,5) 
        if paramName:match("Split1") then
            return xdslctlget("data","SNR",band,bandtype,1)
        elseif paramName:match("Split2") then
            return xdslctlget("data","SNR",band,bandtype,2)
        end
        return xdslctlget("data","SNR",band,bandtype)
    elseif paramName:match("Final") then
        local band = tonumber(paramName:sub(3,3))
        local bandtype = paramName:sub(1,2)
        return xdslband(band,"Final",bandtype)
    elseif paramName:match("Initial") then
        local band = tonumber(paramName:sub(3,3))
        local bandtype = paramName:sub(1,2)
        return xdslband(band,"Initial",bandtype)
    elseif paramName:match("BandNumber") then
        local bandtype = paramName:sub(1,2)
        return parase_pbParams(bandtype,"BandNumber")
    elseif paramName:match("ScannedBand") then
        local band = tonumber(paramName:sub(3,3))
        local bandtype = paramName:sub(1,2)
        return xdslctlget("scannedband","SNR",band,bandtype)
    elseif paramName == "DslamChipset" then
        return xdslctlDslamInfo("chipset")
    elseif paramName == "DslamVersion" then
        return xdslctlDslamInfo("version")
    elseif paramName == "DslamVersionRaw" then
        return xdslctlDslamInfo("version_raw")
    elseif paramName == "DslMode" then
        return xdslmode("mode")
    elseif paramName == "DslProfile" then
        return xdslmode("profile")
    end
end

xdslctl_.get = get

register(xdslctl_)
Ansuel commented 5 years ago

@Janaue need more info

do this command xdslctl info --vendor

also tell me your connection type (adsl xdsl) pls

Janaue commented 5 years ago

@Ansuel

root@mygateway:~# xdslctl info --vendor xdslctl: ADSL driver and PHY status Status: Showtime Last Retrain Reason: 0 Last initialization procedure status: 0 Max: Upstream rate = 924 Kbps, Downstream rate = 2688 Kbps Channel: INTR, Upstream rate = 800 Kbps, Downstream rate = 2432 Kbps

ChipSet Vendor Id: ALCB:0x0000 ChipSet VersionNumber: 0x0000 ChipSet SerialNumber: root@mygateway:~#

My connection is the usual ADSLv1. From DSLstats

xdslctl info --stats xdslctl: ADSL driver and PHY status Status: Showtime Last Retrain Reason: 0 Last initialization procedure status: 0 Max: Upstream rate = 924 Kbps, Downstream rate = 2688 Kbps Channel: INTR, Upstream rate = 800 Kbps, Downstream rate = 2432 Kbps

Link Power State: L0 Mode: G.DMT Annex A TPS-TC: ATM Mode(0x0) Trellis: OFF Line Status: No Defect Training Status: Showtime

DSLstats prints the QLN, HLOG easily, so it is the lack of graphics on the GUI must come from a bad command. Here is the DSLstats config

sshot-173

for instance for QLN

xdslctl info --QLN xdslctl: ADSL driver and PHY status Status: Showtime Last Retrain Reason: 0 Last initialization procedure status: 0 Max: Upstream rate = 924 Kbps, Downstream rate = 2688 Kbps Channel: INTR, Upstream rate = 800 Kbps, Downstream rate = 2432 Kbps

Tone number QLN

for Bits

xdslctl info --Bits xdslctl: ADSL driver and PHY status Status: Showtime Last Retrain Reason: 0 Last initialization procedure status: 0 Max: Upstream rate = 924 Kbps, Downstream rate = 2688 Kbps Channel: INTR, Upstream rate = 800 Kbps, Downstream rate = 2432 Kbps

Tone number Bit Allocation 0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 7 8 8

Ansuel commented 5 years ago

try latest dev...

Janaue commented 5 years ago

so on GUI Version [ 8.9.65 ] 2018

Internal Server Error occured, please contact administrator

/etc/init.d/transformer restart and after I try to see the graphics

Sat Nov 24 16:08:21 2018 auth.info login[6317]: root login on 'pts/1'
Sat Nov 24 16:08:26 2018 daemon.err procd: Failed to removed pidfile: /var/run/transformer.pid: 2 - No such file or directory
Sat Nov 24 16:08:26 2018 daemon.err transformer: /usr/share/transformer/mappings/bbf/DownloadDiagnostics.map ignored (...are/transformer/mappings/bbf/DownloadDiagnostics.map:269: attempt to call field 'clear_tr143_results' (a nil value))
Sat Nov 24 16:08:26 2018 daemon.err transformer: /usr/share/transformer/mappings/bbf/UploadDiagnostics.map ignored (...share/transformer/mappings/bbf/UploadDiagnostics.map:276: attempt to call field 'clear_tr143_results' (a nil value))
Sat Nov 24 16:08:26 2018 daemon.err nginx: 2018/11/24 16:08:26 [error] 4186#0: *27 lua entry thread aborted: runtime error: /www/docroot/ajax/cpuload.lua:11: attempt to index a nil value
stack traceback:
coroutine 0:
    /www/docroot/ajax/cpuload.lua:11: in function 'content'
    /usr/lib/lua/web/web.lua:249: in function 'process'
    content_by_lua(nginx.conf:109):4: in function <content_by_lua(nginx.conf:109):1>, client: 10.0.0.91, server: localhost, request: "POST /ajax/cpuload.lua HTTP/1.1", host: "10.0.0.138",Sat Nov 24 16:08:29 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/LANDevice.WLANConfiguration.map ignored (...sformer/mappings/igd/LANDevice.WLANConfiguration.map:664: 'InternetGatewayDevice.LANDevice.{i}.WLANConfiguration.{i}.InsecureOOBAccessEnabled': no setter)
Sat Nov 24 16:08:29 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/LANInterfaces.WLANConfiguration.map ignored (...mer/mappings/igd/LANInterfaces.WLANConfiguration.map:588: 'InternetGatewayDevice.LANInterfaces.WLANConfiguration.{i}.InsecureOOBAccessEnabled': no setter)
Sat Nov 24 16:08:29 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/WANDevice.WANConnectionDevice.WANIPConnection.map ignored (...gd/WANDevice.WANConnectionDevice.WANIPConnection.map:245: attempt to call field 'SetConnectionList' (a nil value))
Sat Nov 24 16:08:29 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/WANDevice.WANConnectionDevice.WANPPPConnection.map ignored (...d/WANDevice.WANConnectionDevice.WANPPPConnection.map:393: attempt to call field 'SetConnectionList' (a nil value))
Sat Nov 24 16:08:29 2018 daemon.err transformer: /usr/share/transformer/mappings/rpc/pumadocsis.map ignored (/usr/share/transformer/mappings/rpc/pumadocsis.map:23: Not able to locate the ubus daemon)
Sat Nov 24 16:08:29 2018 daemon.err transformer: /usr/share/transformer/mappings/rpc/xdslctl.map ignored (/usr/share/transformer/mappings/rpc/xdslctl.map:114: attempt to index a nil value)
Sat Nov 24 16:08:31 2018 auth.info login[6370]: root login on 'pts/1'
Sat Nov 24 16:08:41 2018 auth.info login[6395]: root login on 'pts/1'
Sat Nov 24 16:08:51 2018 auth.info login[6420]: root login on 'pts/1'
Sat Nov 24 16:09:01 2018 auth.info login[6445]: root login on 'pts/1'
Sat Nov 24 16:09:10 2018 authpriv.info dropbear[5980]: Exit (root): Exited normally
Sat Nov 24 16:09:11 2018 auth.info login[6470]: root login on 'pts/1'
Sat Nov 24 16:09:21 2018 auth.info login[6496]: root login on 'pts/1'
Sat Nov 24 16:09:31 2018 auth.info login[6521]: root login on 'pts/1'
Sat Nov 24 16:09:41 2018 auth.info login[6554]: root login on 'pts/1'
Sat Nov 24 16:09:51 2018 auth.info login[6579]: root login on 'pts/1'
Sat Nov 24 16:10:00 2018 cron.info crond[3184]: USER root pid 6604 cmd /usr/bin/thermalProtection
Sat Nov 24 16:10:00 2018 cron.info crond[3184]: USER root pid 6605 cmd /sbin/trafficmon.lua
Sat Nov 24 16:10:01 2018 auth.info login[6608]: root login on 'pts/1'
Sat Nov 24 16:10:11 2018 auth.info login[6633]: root login on 'pts/1'
Sat Nov 24 16:10:16 2018 daemon.err nginx: 2018/11/24 16:10:16 [error] 4186#0: *32 lua entry thread aborted: runtime error: [string "/modals/diagnostics-xdsl-graphics-modal.lp"]:36: attempt to index a nil value
stack traceback:
coroutine 0:
    [string "/modals/diagnostics-xdsl-graphics-modal.lp"]:36: in function 'content'
    /usr/lib/lua/web/web.lua:249: in function 'process'
    content_by_lua(nginx.conf:109):4: in function <content_by_lua(nginx.conf:109):1>, client: 10.0.0.91, server: localhost, request: "GET /Sat Nov 24 16:10:21 2018 auth.info login[6658]: root login on 'pts/1'
Sat Nov 24 16:10:31 2018 auth.info login[6683]: root login on 'pts/1'
Ansuel commented 5 years ago

give me output of this command

xdslctl info --show

Janaue commented 5 years ago
root@mygateway:~# xdslctl info --show
xdslctl: ADSL driver and PHY status
Status: Showtime
Last Retrain Reason:    0
Last initialization procedure status:   0
Max:    Upstream rate = 920 Kbps, Downstream rate = 2684 Kbps
Channel:        INTR, Upstream rate = 800 Kbps, Downstream rate = 2432 Kbps

Link Power State:       L0
Mode:                   G.DMT Annex A
TPS-TC:                 ATM Mode(0x0)
Trellis:                OFF
Line Status:            No Defect
Training Status:        Showtime
                Down            Up
SNR (dB):        3.6             7.0
Attn(dB):        57.0            31.5
Pwr(dBm):        17.2            11.9
                        G.dmt framing
K:              77(0)           26
R:              14              16
S:              2.0000          8.0000
D:              8               2

                        Counters
                        Bearer 0
SF:             10539936                10539910
SFErr:          497             19
RS:             358357816               89588232
RSCorr:         1414351         325
RSUnCorr:       1545            0

                        Bearer 0
HEC:            969             8
OCD:            7               0
LCD:            7               0
Total Cells:    1027743062              0
Data Cells:     147129337               0
Drop Cells:     0
Bit Errors:     67753           0

ES:             306             0
SES:            0               0
UAS:            14              14
AS:             178987

                        Bearer 0
INP:            0.50            0.50
INPRein:        0.00            0.00
delay:          4               4
PER:            0.00            0.00
OR:             32.00           32.00
AgR:            2454.41 828.76

Bitswap:        13553/13553             0/0
Ansuel commented 5 years ago

THAT'S WHY ! G.DMT Annex A ok... i know the problem now...

Ansuel commented 5 years ago

try latest dev it

Janaue commented 5 years ago

on 8.9.68

Internal Server Error occured, please contact administrator

/etc/init.d/transformer restart and after I try to see the graphics

ts/1'
Sat Nov 24 17:26:41 2018 auth.info login[20167]: root login on 'pts/1'
Sat Nov 24 17:26:48 2018 daemon.err procd: Failed to removed pidfile: /var/run/transformer.pid: 2 - No such file or directory
Sat Nov 24 17:26:49 2018 daemon.err transformer: /usr/share/transformer/mappings/bbf/DownloadDiagnostics.map ignored (...are/transformer/mappings/bbf/DownloadDiagnostics.map:269: attempt to call field 'clear_tr143_results' (a nil value))
Sat Nov 24 17:26:49 2018 daemon.err transformer: /usr/share/transformer/mappings/bbf/UploadDiagnostics.map ignored (...share/transformer/mappings/bbf/UploadDiagnostics.map:276: attempt to call field 'clear_tr143_results' (a nil value))
Sat Nov 24 17:26:51 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/LANDevice.WLANConfiguration.map ignored (...sformer/mappings/igd/LANDevice.WLANConfiguration.map:664: 'InternetGatewayDevice.LANDevice.{i}.WLANConfiguration.{i}.InsecureOOBAccessEnabled': no setter)
Sat Nov 24 17:26:51 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/LANInterfaces.WLANConfiguration.map ignored (...mer/mappings/igd/LANInterfaces.WLANConfiguration.map:588: 'InternetGatewayDevice.LANInterfaces.WLANConfiguration.{i}.InsecureOOBAccessEnabled': no setter)
Sat Nov 24 17:26:51 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/WANDevice.WANConnectionDevice.WANIPConnection.map ignored (...gd/WANDevice.WANConnectionDevice.WANIPConnection.map:245: attempt to call field 'SetConnectionList' (a nil value))
Sat Nov 24 17:26:51 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/WANDevice.WANConnectionDevice.WANPPPConnection.map ignored (...d/WANDevice.WANConnectionDevice.WANPPPConnection.map:393: attempt to call field 'SetConnectionList' (a nil value))
Sat Nov 24 17:26:51 2018 auth.info login[20221]: root login on 'pts/1'
Sat Nov 24 17:26:51 2018 daemon.err transformer: /usr/share/transformer/mappings/rpc/pumadocsis.map ignored (/usr/share/transformer/mappings/rpc/pumadocsis.map:23: Not able to locate the ubus daemon)
Sat Nov 24 17:26:52 2018 daemon.err transformer: /usr/share/transformer/mappings/rpc/xdslctl.map ignored (/usr/share/transformer/mappings/rpc/xdslctl.map:150: attempt to index global 'dslmode' (a nil value))
Sat Nov 24 17:27:01 2018 auth.info login[20248]: root login on 'pts/1'
Sat Nov 24 17:27:11 2018 auth.info login[20273]: root login on 'pts/1'
Sat Nov 24 17:27:21 2018 auth.info login[20298]: root login on 'pts/1'
Sat Nov 24 17:27:31 2018 auth.info login[20323]: root login on 'pts/1'
Sat Nov 24 17:27:41 2018 auth.info login[20348]: root login on 'pts/1'
Sat Nov 24 17:27:51 2018 auth.info login[20373]: root login on 'pts/1'
Sat Nov 24 17:28:00 2018 cron.info crond[3184]: USER root pid 20398 cmd /sbin/trafficmon.lua
Sat Nov 24 17:28:01 2018 auth.info login[20400]: root login on 'pts/1'
Sat Nov 24 17:28:11 2018 auth.info login[20425]: root login on 'pts/1'
Sat Nov 24 17:28:21 2018 auth.info login[20450]: root login on 'pts/1'
Sat Nov 24 17:28:31 2018 auth.info login[20475]: root login on 'pts/1'
Sat Nov 24 17:28:41 2018 auth.info login[20500]: root login on 'pts/1'
Sat Nov 24 17:28:51 2018 auth.info login[20525]: root login on 'pts/1'
Sat Nov 24 17:29:01 2018 auth.info login[20550]: root login on 'pts/1'
Sat Nov 24 17:29:11 2018 auth.info login[20575]: root login on 'pts/1'
Sat Nov 24 17:29:21 2018 auth.info login[20600]: root login on 'pts/1'
Sat Nov 24 17:29:31 2018 auth.info login[20625]: root login on 'pts/1'
Sat Nov 24 17:29:32 2018 daemon.err nginx: 2018/11/24 17:29:32 [error] 18236#0: *34 lua entry thread aborted: runtime error: [string "/modals/diagnostics-xdsl-graphics-modal.lp"]:36: attempt to index a nil value
stack traceback:
coroutine 0:
    [string "/modals/diagnostics-xdsl-graphics-modal.lp"]:36: in function 'content'
    /usr/lib/lua/web/web.lua:249: in function 'process'
    content_by_lua(nginx.conf:109):4: in function <content_by_lua(nginx.conf:109):1>, client: 10.0.0.91, server: localhost, request: "GET Sat Nov 24 17:29:41 2018 auth.info login[20650]: root login on 'pts/1'
Sat Nov 24 17:29:51 2018 auth.info login[20679]: root login on 'pts/1'
Sat Nov 24 17:30:00 2018 cron.info crond[3184]: USER root pid 20704 cmd /usr/bin/thermalProtection
Sat Nov 24 17:30:00 2018 cron.info crond[3184]: USER root pid 20705 cmd /sbin/trafficmon.lua
Sat Nov 24 17:30:01 2018 auth.info login[20708]: root login on 'pts/1'
Janaue commented 5 years ago

root@mygateway:~# transformer-cli get rpc.xdslctl. ERROR invalid path rpc.xdslctl.

Ansuel commented 5 years ago

try this version... now it should be solved...

Janaue commented 5 years ago

yes it is okey. How can I change the color of points to see them better? current color of point = orange current color of background = white

Ansuel commented 5 years ago

can you post a screen ?

Janaue commented 5 years ago

sshot-174 sshot-176 sshot-177 sshot-178

on 8.9.70

Janaue commented 5 years ago

@Ansuel

this is the log on 8.9.70

/etc/init.d/transformer restart and after I try to see the graphics

Sat Nov 24 18:47:01 2018 auth.info login[32171]: root login on 'pts/1'
Sat Nov 24 18:47:05 2018 daemon.err procd: Failed to removed pidfile: /var/run/transformer.pid: 2 - No such file or directory
Sat Nov 24 18:47:06 2018 daemon.err transformer: /usr/share/transformer/mappings/bbf/DownloadDiagnostics.map ignored (...are/transformer/mappings/bbf/DownloadDiagnostics.map:269: attempt to call field 'clear_tr143_results' (a nil value))
Sat Nov 24 18:47:06 2018 daemon.err nginx: 2018/11/24 18:47:06 [error] 30013#0: *39 lua entry thread aborted: runtime error: /www/docroot/ajax/cpuload.lua:11: attempt to index a nil value
stack traceback:
coroutine 0:
    /www/docroot/ajax/cpuload.lua:11: in function 'content'
    /usr/lib/lua/web/web.lua:249: in function 'process'
    content_by_lua(nginx.conf:109):4: in function <content_by_lua(nginx.conf:109):1>, client: 10.0.0.91, server: localhost, request: "POST /ajax/cpuload.lua HTTP/1.1", host: "10.0.0.138"Sat Nov 24 18:47:06 2018 daemon.err transformer: /usr/share/transformer/mappings/bbf/UploadDiagnostics.map ignored (...share/transformer/mappings/bbf/UploadDiagnostics.map:276: attempt to call field 'clear_tr143_results' (a nil value))
Sat Nov 24 18:47:08 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/LANDevice.WLANConfiguration.map ignored (...sformer/mappings/igd/LANDevice.WLANConfiguration.map:664: 'InternetGatewayDevice.LANDevice.{i}.WLANConfiguration.{i}.InsecureOOBAccessEnabled': no setter)
Sat Nov 24 18:47:08 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/LANInterfaces.WLANConfiguration.map ignored (...mer/mappings/igd/LANInterfaces.WLANConfiguration.map:588: 'InternetGatewayDevice.LANInterfaces.WLANConfiguration.{i}.InsecureOOBAccessEnabled': no setter)
Sat Nov 24 18:47:08 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/WANDevice.WANConnectionDevice.WANIPConnection.map ignored (...gd/WANDevice.WANConnectionDevice.WANIPConnection.map:245: attempt to call field 'SetConnectionList' (a nil value))
Sat Nov 24 18:47:08 2018 daemon.err transformer: /usr/share/transformer/mappings/igd/WANDevice.WANConnectionDevice.WANPPPConnection.map ignored (...d/WANDevice.WANConnectionDevice.WANPPPConnection.map:393: attempt to call field 'SetConnectionList' (a nil value))
Sat Nov 24 18:47:08 2018 daemon.err transformer: /usr/share/transformer/mappings/rpc/pumadocsis.map ignored (/usr/share/transformer/mappings/rpc/pumadocsis.map:23: Not able to locate the ubus daemon)
Sat Nov 24 18:47:11 2018 auth.info login[32221]: root login on 'pts/1'
Sat Nov 24 18:47:21 2018 auth.info login[32252]: root login on 'pts/1'
Sat Nov 24 18:47:31 2018 auth.info login[32272]: root login on 'pts/1'
Sat Nov 24 18:47:41 2018 auth.info login[32303]: root login on 'pts/1'
Sat Nov 24 18:47:51 2018 auth.info login[32323]: root login on 'pts/1'
Sat Nov 24 18:48:00 2018 cron.info crond[3184]: USER root pid 32348 cmd /sbin/trafficmon.lua
Sat Nov 24 18:48:01 2018 auth.info login[32355]: root login on 'pts/1'
Sat Nov 24 18:48:05 2018 daemon.err transformer: [truncated] getter(rpc.xdslctl., UsBandNumber) threw an error: /usr/share/transformer/mappings/rpc/xdslctl.map:114: attempt to index a nil value
stack traceback:
    /usr/share/transformer/mappings/rpc/xdslctl.map:114: in function 'pbParams_find'
    /usr/share/transformer/mappings/rpc/xdslctl.map:125: in function </usr/share/transformer/mappings/rpc/xdslctl.map:124>
    (tail call): ?
    [C]: in function 'xpcall'
    /usr/lib/lua/transformer/navigation.lua:157: in functiSat Nov 24 18:48:11 2018 auth.info login[32468]: root login on 'pts/1'
Sat Nov 24 18:48:21 2018 auth.info login[32488]: root login on 'pts/1'