Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"invalid instance" when opening Wizard #118

Closed
FrancYescO opened this issue Aug 27, 2018 · 32 comments · Fixed by #207
Closed

"invalid instance" when opening Wizard #118

FrancYescO opened this issue Aug 27, 2018 · 32 comments · Fixed by #207
Labels

Comments

@FrancYescO
Copy link
Collaborator

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

@Ansuel
Copy link
Owner

Ansuel commented Aug 27, 2018

i need the network file... in config

@FrancYescO
Copy link
Collaborator Author

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
Copy link
Owner

Ansuel commented Aug 27, 2018 via email

@flywire
Copy link
Contributor

flywire commented Sep 1, 2018

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
Copy link
Collaborator Author

Replacing

local wan_atm_uci_path = "uci.xtm.atmdevice.@atmwan."

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 this still happen.

@Ansuel
Copy link
Owner

Ansuel commented Sep 1, 2018 via email

@Ansuel
Copy link
Owner

Ansuel commented Sep 1, 2018 via email

@FrancYescO
Copy link
Collaborator Author

FrancYescO commented Sep 1, 2018

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
Copy link
Owner

Ansuel commented Sep 1, 2018

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
Copy link
Contributor

flywire commented Sep 2, 2018

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
Copy link
Collaborator Author

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 Ansuel added the bug label Sep 4, 2018
@Ansuel
Copy link
Owner

Ansuel commented Sep 4, 2018

can someone try this new version ?

@flywire
Copy link
Contributor

flywire commented Sep 4, 2018

Same error page 1 and 2.

@FrancYescO
Copy link
Collaborator Author

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 #149 that easily fix

@Ansuel
Copy link
Owner

Ansuel commented Sep 5, 2018

can you give me the network of the uno firmware

@FrancYescO
Copy link
Collaborator Author

network.zip

@Ansuel
Copy link
Owner

Ansuel commented Sep 5, 2018

sorry the xtm config file...

@FrancYescO
Copy link
Collaborator Author


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
Copy link
Owner

Ansuel commented Sep 5, 2018

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

@FrancYescO
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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

@FrancYescO
Copy link
Collaborator Author

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
Copy link
Contributor

flywire commented Sep 6, 2018

/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
Copy link
Contributor

flywire commented Sep 6, 2018

Not right for ethernet:

Setup Wizard page 8 of 8

Ansuel pushed a commit that referenced this issue Sep 8, 2018
Ansuel pushed a commit that referenced this issue Sep 14, 2018
Should fix
#164
#118

and also 2 bug 
WAN DNS resetted on update (on some circumstance) 
pppoe relay tab show "invalid instance"
@flywire
Copy link
Contributor

flywire commented Sep 18, 2018

Gui Version: 8.7.91 on ethernet:

Setup Wizard page 1 of 8

Setup Wizard page 8 of 8

@FrancYescO
Copy link
Collaborator Author

FrancYescO commented Sep 18, 2018

@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
Copy link
Contributor

flywire commented Sep 19, 2018

@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
Copy link
Collaborator Author

FrancYescO commented Sep 19, 2018

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

@flywire
Copy link
Contributor

flywire commented Sep 19, 2018

@FrancYescO - agree, after using workarounds #118 (comment) and #118 (comment) wizard appears to work (I didn't save on p8/8).

Now wizard needs to be fixed for Ethernet use case.

@FrancYescO
Copy link
Collaborator Author

you still have something wrong when u set ethernet?

@flywire
Copy link
Contributor

flywire commented Sep 19, 2018

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

@FrancYescO
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants