Ansuel / tch-nginx-gui

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

SFP not detected correctly and no value sfp on DGA4132 #1065

Closed neo82ita closed 10 months ago

neo82ita commented 3 years ago

Per un periodo ho avuto il TimHub senza root e gui mod. Oggi ho rimesso su il TimHub con root e ultima gui dev e ho un lentezza nella gui se imposto gpon, la gpon la vede come non attiva, e tutti i valori rimangono a 0. Ho provato anche con il comando da telnet e sono sempre a 0. Già 1 anno fa avevamo affrontato un problema simile, adesso con la nuova 9.6.*** si è ripresentato.

Gpon 69

neo82ita commented 3 years ago

logread | grep err

neo82ita commented 3 years ago

Ho fatto un altra prova. Quando funzionava con le precedenti release riuscivo pingare 192.168.2.1, adesso no. Se lancio il comando sfp_get.sh --allstats ricevo questa risposta:


root@modemtim:~# sfp_get.sh --allstats
telnet: can't connect to remote host (192.168.2.1): No route to host
telnet: can't connect to remote host (192.168.2.1): No route to host

telnet: can't connect to remote host (192.168.2.1): No route to host
BytesSent: 0
BytesReceived: 0
PacketsSent: 0
PacketsReceived: 0
ErrorsSent: 0
ErrorsReceived: 0
DiscardPacketsSent: 0
DiscardPacketsReceived: 0
root@modemtim:~#
BreakSecurity commented 3 years ago

Same for me. My FTTH provider WindTre (Italian on OpenFiber) with SFP module from zyxel the PMG3000.

I use the FastGate from fastweb @FrancYescO let me know if you need something to solve and thank you :)

Those are the settings used https://www.windtre.it/offerte-fibra/windtre-absolute/

neo82ita commented 3 years ago

Al comando cat /proc/sfp_status da:

cat: can't open '/proc/sfp_status': No such file or directory root@modemtim:~#

Il file sfp_status lo trova dentro a proc/ethernet

neo82ita commented 3 years ago

root@modemtim:~# logread | grep err
Tue Mar  2 06:32:33 2021 kern.err kernel: [    0.000000] L2C: failed to init: -19
Tue Mar  2 06:32:33 2021 kern.warn kernel: [    0.000000] map_hw_timer_interrupt,127: interrupt_id 96
Tue Mar  2 06:32:33 2021 kern.warn kernel: [    0.000000] map_hw_timer_interrupt,127: interrupt_id 97
Tue Mar  2 06:32:33 2021 kern.warn kernel: [    0.000000] map_hw_timer_interrupt,127: interrupt_id 98
Tue Mar  2 06:32:33 2021 kern.warn kernel: [    0.000000] map_hw_timer_interrupt,127: interrupt_id 99
Tue Mar  2 06:32:33 2021 user.err kernel: [    9.360747] insmod: module is already loaded - bankmgr
Tue Mar  2 06:32:33 2021 user.err kernel: [    9.807755] insmod: module is already loaded - bankmgr
Tue Mar  2 06:32:33 2021 kern.warn kernel: [   17.053855] iq_drv_construct rdpa_cpu_get returned error
Tue Mar  2 06:32:33 2021 kern.info kernel: [   21.131921] usbcore: registered new interface driver sierra
Tue Mar  2 06:32:33 2021 kern.info kernel: [   21.137121] usbserial: USB Serial support registered for Sierra USB modem
Tue Mar  2 06:32:33 2021 kern.info kernel: [   21.145428] usbcore: registered new interface driver sierra_net
Tue Mar  2 06:32:35 2021 daemon.notice procd: /etc/rc.d/S18xtm: xdslctl: devCtl_adslGetObjectValue error
Tue Mar  2 06:32:42 2021 daemon.notice hostapd: [WLANECO]  Register WLAN Eco Radio : brcm0 : error = 0
Tue Mar  2 06:32:43 2021 daemon.notice procd: /etc/rc.d/S19xdsl: xdslctl: xdslCtl_GetObjectValue error
Tue Mar  2 06:32:59 2021 daemon.err miniupnpd[3479]: could not open lease file: /var/upnp.leases
Tue Mar  2 06:32:59 2021 daemon.err miniupnpd[3479]: Why did you run me anyway?
Tue Mar  2 06:33:16 2021 daemon.err mosquitto[4556]: Error: Unable to load server certificate "/tmp/certs/chain.pem". Check certfile.
Tue Mar  2 06:33:28 2021 daemon.err miniupnpd[5399]: could not open lease file: /var/upnp.leases
Tue Mar  2 06:33:28 2021 daemon.err miniupnpd[5399]: Why did you run me anyway?
Tue Mar  2 06:33:28 2021 daemon.err transformer[3572]: /usr/share/transformer/mappings/rpc/optical.interface.map ignored (typestore.lua:88: 'rpc.optical.Interface.{i}.' is already registered!)
Tue Mar  2 06:33:28 2021 daemon.err transformer[3572]: /usr/share/transformer/mappings/rpc/optical.map ignored (typestore.lua:88: 'rpc.optical.' is already registered!)
Tue Mar  2 06:33:31 2021 daemon.err transformer[3572]: /usr/share/transformer/mappings/rpc/leds.map ignored (typestore.lua:88: 'rpc.Leds.' is already registered!)
Tue Mar  2 06:33:34 2021 user.err mvfs: metadb_init (Heap)
Tue Mar  2 06:33:34 2021 daemon.notice procd: /etc/rc.d/S98dlnad: cat: write error: Broken pipe
Tue Mar  2 06:33:35 2021 user.err [mud][5929]: mud_monitor_mounted_usb (1493): in mud_monitor_mounted_usb
Tue Mar  2 06:33:39 2021 daemon.err miniupnpd[6322]: could not open lease file: /var/upnp.leases
Tue Mar  2 06:33:39 2021 daemon.err miniupnpd[6322]: Why did you run me anyway?
Tue Mar  2 06:33:39 2021 daemon.err nginx: 2021/03/02 06:33:37 [error] 4635#0: *2 [lua] accesscontrol_token.lua:187: invalid 'token_is' value optional_certificate, client: 127.0.0.1, server: 127.0.0.1, request: "GET /api/reload HTTP/1.1", host: "localhost:55555"
Tue Mar  2 06:33:39 2021 daemon.err nginx: 2021/03/02 06:33:37 [error] 4635#0: *2 [lua] accesscontrol_token.lua:187: invalid 'token_is' value certificate, client: 127.0.0.1, server: 127.0.0.1, request: "GET /api/reload HTTP/1.1", host: "localhost:55555"
Tue Mar  2 06:33:39 2021 user.err nqnd: E;smb_interfaces.c;config_getInterfaces();267--->Using default Interface(s) value as br-lan
Tue Mar  2 06:33:39 2021 user.err nqnd: E;smb_interfaces.c;config_getInterfaces();267--->Using default Interface(s) value as br-lan
Tue Mar  2 06:34:21 2021 user.err nqnd: E;ndinname.c;returnPositiveRegistrationResponse();2510--->Failed to send Positive Registration Response internally
Tue Mar  2 06:34:24 2021 kern.err kernel: [  102.186713] [SLICSLAC] Si3226x_Init_with_Options(845) size = 2 init_opt = 0
Tue Mar  2 06:34:53 2021 daemon.err modprobe: dsphal is already loaded
Tue Mar  2 06:34:53 2021 daemon.err modprobe: slicslac is already loaded
Tue Mar  2 06:34:53 2021 daemon.err modprobe: modmmswitch is already loaded
Tue Mar  2 06:34:53 2021 daemon.err modprobe: modmmtonegen is already loaded
Tue Mar  2 06:34:56 2021 kern.err kernel: [  134.851704] [SLICSLAC] Si3226x_Init_with_Options(845) size = 2 init_opt = 0
Tue Mar  2 06:35:18 2021 daemon.err cwmpd[11233]: TRANSFORMER_PROXY: Event listening select returned error: Interrupted system call
Tue Mar  2 06:36:02 2021 user.err nqcs: E;nscommon.c;nsProceedRequestToND();689--->select timed out
Tue Mar  2 06:36:02 2021 user.err nqcs: E;smb_interfaces.c;config_getInterfaces();267--->Using default Interface(s) value as br-lan
Tue Mar  2 06:36:02 2021 user.err nqcs: E;smb_interfaces.c;config_getInterfaces();267--->Using default Interface(s) value as br-lan
Tue Mar  2 06:36:02 2021 user.err nqcs: E;nssessio.c;nsBindInet();501--->Unable to update DNS record
Tue Mar  2 06:36:02 2021 user.err nqcs: E;smb_interfaces.c;config_getInterfaces();267--->Using default Interface(s) value as br-lan
Tue Mar  2 06:36:02 2021 user.err nqcs: E;smb_interfaces.c;config_getInterfaces();267--->Using default Interface(s) value as br-lan
Tue Mar  2 06:36:02 2021 user.err nqcs: E;nssessio.c;nsBindInet();501--->Unable to update DNS record
Tue Mar  2 06:36:02 2021 user.err nqcs: E;udconfig.c;udDefGetComputerSecret();2762--->Failed to open secret file
Tue Mar  2 06:36:04 2021 user.err nqcs: E;nscommon.c;nsReceiveResponseFromND();549--->Negative response: RCODE: 3
Tue Mar  2 06:36:04 2021 user.err nqcs: E;nssessio.c;nsResponseByName();1874--->ND failed to resolve the name
Tue Mar  2 06:36:04 2021 user.err nqcs: E;nssessio.c;nsResponseByIp();2008--->Negative response: RCODE: 3
Tue Mar  2 06:36:04 2021 user.err nqcs: E;cmresolver.c;cmResolverGetDCName();1439--->All methods failed
Tue Mar  2 06:36:04 2021 user.err nqcs: E;ccdomain.c;domainJoin();491--->failed to get dc for domain WORKGROUP
Tue Mar  2 06:36:04 2021 user.err nqcs: E;smb_interfaces.c;addSambasharefromUCI();450--->Filesharing is not Enabled
Tue Mar  2 06:36:04 2021 user.err nqcs: E;udapi.c;udCifsServerStarted();179--->Unable to add samba share(s) from UCI
Tue Mar  2 06:36:04 2021 user.err nqcs: E;smb_interfaces.c;addPrintersharefromUCI();472--->printersharing is not Enabled
Tue Mar  2 06:36:04 2021 user.err nqcs: E;udapi.c;udCifsServerStarted();184--->Unable to add printer share(s) from UCI
Tue Mar  2 09:22:20 2021 kern.warn kernel: [10178.637159] hrtimer: interrupt took 54681 ns
Tue Mar  2 19:35:25 2021 user.debug mmpbxd[11138]: [MMBRCMCONN]    :E: logErrorToConnectionErrorList:1099 - Cnx with cnxId: 0xabc0100 not yet created packetType: 2, error : MMPBX_ERROR_INVALIDSTATE
Tue Mar  2 20:24:54 2021 user.debug mmpbxd[11138]: [MMBRCMCONN]    :E: logErrorToConnectionErrorList:1099 - Cnx with cnxId: 0xabc0100 not yet created packetType: 2, error : MMPBX_ERROR_INVALIDSTATE
Thu Mar  4 18:54:00 2021 daemon.err wansensing.lua[19446]: cat: can't open '/proc/sfp_status': No such file or directory
Thu Mar  4 18:54:00 2021 daemon.err wansensing.lua[19446]: cat: can't open '/proc/sfp_status': No such file or directory
Thu Mar  4 18:54:26 2021 daemon.err wansensing.lua[19964]: cat: can't open '/proc/sfp_status': No such file or directory
Thu Mar  4 18:54:26 2021 daemon.err wansensing.lua[19964]: cat: can't open '/proc/sfp_status': No such file or directory
FrancYescO commented 3 years ago

@BreakSecurity but your connections is working with wind3?

is this bug still present?

BreakSecurity commented 3 years ago

Currently l am using original zyxel modem due to this bug

FrancYescO commented 3 years ago

but the SFP is not ever detected? its just an issue reading SFP optical parameters or you cannot setup the WAN connection?

BreakSecurity commented 3 years ago

It's detected i can't read parameters and loop