Ansuel / tch-nginx-gui

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

"invalid instance" when opening Wizard #118

Closed FrancYescO closed 5 years ago

FrancYescO commented 6 years ago

Tiscali 16.3 - GUI 8.7.2 Just open wizard and i'll get "Invalid instance" https://i.imgur.com/rsOtVbT.png

Ansuel commented 6 years ago

i need the network file... in config

FrancYescO commented 6 years ago

taken from a backup from another Tiscali modem but is pretty the same with just the censored values changed: network.zip

ps. pay attention that i was using "assist" user (with remote assistance) that seems have no permission also for change via GUI the PPPoE credentials

Ansuel commented 6 years ago

O think it's just some problem with the different configuration of the modem

Il Lun 27 Ago 2018, 21:02 Francesco M notifications@github.com ha scritto:

taken from a backup from another Tiscali modem but is pretty the same with just the censored values changed: network.zip https://github.com/Ansuel/tch-nginx-gui/files/2325243/network.zip

ps. pay attention that i was using "assist" user (with remote assistance) that seems have no permission also for change via GUI the PPPoE credentials

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

flywire commented 5 years ago

Same issue in initial image. TG800vac version 8.7.24.

Edit: If I go next and then back the "invalid instance" page one error is gone.

FrancYescO commented 5 years ago

Replacing https://github.com/Ansuel/tch-nginx-gui/blob/f75c53cd6727307687c967fe05311dfcb84abb81/decompressed/gui_file/www/wizard-cards/001_broadband.lp#L39 with:

local wan_atm_uci_path = "uci.xtm.atmdevice.@atm_8_35."
local wan_atm_uci_ipoe_path = "uci.xtm.atmdevice.@atm_8_35."

But this is probably a Tiscali firmware requirement. Seems we should find a way to autodetect the atm interface name to be compatible on all devices/software variants

This solved at least the first page wizard issue, https://github.com/Ansuel/tch-nginx-gui/issues/97 this still happen.

Ansuel commented 5 years ago

I personally tested #97 and k can insert empty value...

Il Sab 1 Set 2018, 10:11 Francesco M notifications@github.com ha scritto:

Replacing

https://github.com/Ansuel/tch-nginx-gui/blob/f75c53cd6727307687c967fe05311dfcb84abb81/decompressed/gui_file/www/wizard-cards/001_broadband.lp#L39 with:

local wan_atm_uci_path = "uci.xtm.atmdevice.@atm_8_35." local wan_atm_uci_ipoe_path = "uci.xtm.atmdevice.@atm_8_35."

But this is probably a Tiscali firmware requirement. Seems we should find a way to autodetect the atm interface name to be compatible on all devices/software variants

This solved at least the first page wizard issue, #97 https://github.com/Ansuel/tch-nginx-gui/issues/97 this still happen.

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

Ansuel commented 5 years ago

The real problem is the custom implementation of the Tiscali firmware

Il Sab 1 Set 2018, 11:02 Ansuel Smith ansuelsmth@gmail.com ha scritto:

I personally tested #97 and k can insert empty value...

Il Sab 1 Set 2018, 10:11 Francesco M notifications@github.com ha scritto:

Replacing

https://github.com/Ansuel/tch-nginx-gui/blob/f75c53cd6727307687c967fe05311dfcb84abb81/decompressed/gui_file/www/wizard-cards/001_broadband.lp#L39 with:

local wan_atm_uci_path = "uci.xtm.atmdevice.@atm_8_35." local wan_atm_uci_ipoe_path = "uci.xtm.atmdevice.@atm_8_35."

But this is probably a Tiscali firmware requirement. Seems we should find a way to autodetect the atm interface name to be compatible on all devices/software variants

This solved at least the first page wizard issue, #97 https://github.com/Ansuel/tch-nginx-gui/issues/97 this still happen.

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

FrancYescO commented 5 years ago

yes but as @flywire on Telstra probably he have something different than atm_8_35 ... we need an "autoget" of this interface name

and if i remember good i was having this error also on UNO firmare

Ansuel commented 5 years ago

It's not so easy I can put a check for the different configuration but it would not work so well as any difference would cause problems...

flywire commented 5 years ago

Curious that problem disappears after going to page 2 then back to page 1.

Maybe this will help from my config file:

[xtm] xtm.ptm0=ptmdevice xtm.ptm0.priority='low' xtm.atm_8_35=atmdevice xtm.atm_8_35.enc='llc' xtm.atm_8_35.vpi='8' xtm.atm_8_35.ulp='eth' xtm.atm_8_35.path='fast' xtm.atm_8_35.vci='35'

FrancYescO commented 5 years ago

So seems at least Telstra is using the same interface name..

As a fast solution the check with a list of known interface names seems usable

Ansuel commented 5 years ago

can someone try this new version ?

flywire commented 5 years ago

Same error page 1 and 2.

FrancYescO commented 5 years ago

Page 1 Seems now Working on Tiscali Firmware (16.3) but it will not correctly read the VLAN status as at the moment of opening the wizard is ON and setted on VLAN 835, but wizard show the switch OFF (and putting ON will autoset VLAN 835)

Still broken on UNO firmware (17.2)

For the Page 2 i made a PR https://github.com/Ansuel/tch-nginx-gui/pull/149 that easily fix

Ansuel commented 5 years ago

can you give me the network of the uno firmware

FrancYescO commented 5 years ago

network.zip

Ansuel commented 5 years ago

sorry the xtm config file...

FrancYescO commented 5 years ago

config ptmdevice 'ptm0'
    option priority 'low'

config atmdevice 'atm0'
    option ulp 'ppp'
    option vpi '0'
    option vci '38'
    option path 'fast'
    option enc 'vcmux'
Ansuel commented 5 years ago

then i think the problem is in another value...

FrancYescO commented 5 years ago

probably we need a dummy connection for eth or some dummy datas on interfaces... il try to get exactly what is missing do you have some tips to speedup my search?

FrancYescO commented 5 years ago

The issue seems to be uci.network.device.@waneth4.vid...

FrancYescO commented 5 years ago

And there are 2 values ppp_username and ppp_password that are duplicate of wan_ppp_user_name and wan_ppp_password and should be removed, than i think we need, on rootscript, a check to add a placeholder for a waneth4 if missing (on UNO firmware) and we are ready to go

@flywire how is your wan ETH device named? could you post your /etc/config/network and xtm files?

flywire commented 5 years ago

/etc/config/network

config interface 'loopback'
    option ipaddr '127.0.0.1'
    option proto 'static'
    option netmask '255.0.0.0'
    option ifname 'lo'

config globals 'globals'
    option ula_prefix 'fd0d:b168:15e7::/48'
    option default_ps '0'

config interface 'lan'
    option ipaddr '10.0.0.138'
    option netmask '255.255.255.0'
    list pppoerelay ''
    option proto 'static'
    option ip6hint '0'
    option ip6assign '64'
    option type 'bridge'
    option force_link '0'
    option ifname 'eth0 eth1 eth2 eth3'

config interface 'Guest1'
    option ipaddr '192.168.2.126'
    option ip6hint '1'
    option netmask '255.255.255.128'
    option ifname 'wl0_1'
    option ip6assign '64'
    option force_link '0'
    option proto 'static'

config interface 'Guest1_5GHz'
    option ipaddr '192.168.2.254'
    option ip6hint '2'
    option netmask '255.255.255.128'
    option ifname 'wl1_1'
    option ip6assign '64'
    option force_link '0'
    option proto 'static'

config switch 'bcmsw'
    option qosimppauseenable '0'
    option enable_vlan '0'
    option reset '1'

config interface 'ppp'
    option keepalive '4,20'
    option iface6rd '0'
    option username 'home@example.com'
    option metric '10'
    option graceful_restart '1'
    option proto 'pppoe'
    option auto '0'
    option ifname 'atm_8_35'

config interface 'ipoe'
    option reqopts '1 3 6 43 51 58 59'
    option ipv6 '1'
    option neighgcstaletime '2400'
    option iface6rd '0'
    option neighreachabletime '1200000'
    option vendorid 'technicolor'
    option metric '1'
    option release '1'
    option proto 'dhcp'
    option auto '0'

config interface 'wan6'
    option reqaddress 'none'
    option reqopts '23 25'
    option iface_464xlat '0'
    option noslaaconly '1'
    option proto 'dhcpv6'
    option ifname 'eth4'

config interface 'wwan'
    option profile '1'
    option proto 'mobiled'
    option session_id '0'
    option enabled '0'

config device 'eth4'
    option mtu6 '1500'
    option neighgcstaletime '2400'
    option neighreachabletime '1200000'
    option name 'eth4'
    option mtu '1500'

config device 'atm_8_35'
    option name 'atm_8_35'
    option neighreachabletime '1200000'
    option neighgcstaletime '2400'

config device 'ptm0'
    option name 'ptm0'
    option neighreachabletime '1200000'
    option neighgcstaletime '2400'

config ppp_placeholder
    option uciname 'pppoe-wan'

config interface 'fonopen'
    option ipaddr '192.168.20.1'
    option netmask '255.255.255.0'
    option ip6class 'wan6'
    option proto 'static'
    option ipv6 '1'
    option auto '0'
    option force_link '0'
    option type 'bridge'

config config 'config'

config interface 'wan'
    option reqopts '1 3 6 43 51 58 59'
    option proto 'dhcp'
    option release '1'
    option iface6rd '0'
    option neighreachabletime '1200000'
    option vendorid 'technicolor'
    option metric '1'
    option neighgcstaletime '2400'
    option ipv6 '1'
    option ifname 'eth4'

/etc/config/xtm

config ptmdevice 'ptm0'
    option priority 'low'

config atmdevice 'atm_8_35'
    option vci '35'
    option vpi '8'
    option ulp 'eth'
    option enc 'llc'
    option path 'fast'
flywire commented 5 years ago

Not right for ethernet:

Setup Wizard page 8 of 8

flywire commented 5 years ago

Gui Version: 8.7.91 on ethernet:

Setup Wizard page 1 of 8

Setup Wizard page 8 of 8

FrancYescO commented 5 years ago

@flywire under broadband card settings do you have "show advanced" and the block to switch mode? image

try to set VDSL2 and than back to your connection type (ETH?) this fixed the issue of wizard for me on UNO firmware

flywire commented 5 years ago

@FrancYescO - makes no difference. btw - When I switch to VDSL2, switch connection mode and close it, it opens back up on ETH.

If you got my PM on ilpuntotecnico please reply.

FrancYescO commented 5 years ago

@flywire you probably have also to set a VLAN id on the bottom (after switched in VDSL mode), than wizard should work good

flywire commented 5 years ago

@FrancYescO - agree, after using workarounds https://github.com/Ansuel/tch-nginx-gui/issues/118#issuecomment-422592883 and https://github.com/Ansuel/tch-nginx-gui/issues/118#issuecomment-422984582 wizard appears to work (I didn't save on p8/8).

Now wizard needs to be fixed for Ethernet use case.

FrancYescO commented 5 years ago

you still have something wrong when u set ethernet?

flywire commented 5 years ago

No problem after workaround but workaround is unreasonable, especially for target user which is noob.

FrancYescO commented 5 years ago

yes infact we are going to find a way to solve, was just to confirm that is working good in this manner also on Telstra