Ansuel / tch-nginx-gui

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

DGA4132: AGTHP_1.0.3: Extension Installation failed, here LuCI #1142

Closed mackshot closed 3 months ago

mackshot commented 2 years ago

Product Vendor: Technicolor Product Name: DGA ( DGA4132 ) Software Version: AGTHP_1.0.3 GUI Version: 9.6.65 & 9.6.97

I am running the rooted device named before.

I tried to install LuCI (running GUI 9.6.65) via extension card and got the error, that the repositories could not be fetched. I updated to GUI 9.6.97 and still had the problem that I was not able to fetch the repositories.

When I call on console opkg update I get

Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/base/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/packages/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/luci/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/routing/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/telephony/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/management/Packages.gz.
Collected errors:
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/base/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/packages/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/luci/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/routing/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/telephony/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/management/Packages.gz, wget returned 8.

After some playing I now get the following error when intiating the LuCI installation via the extensions card


Complete
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/base/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/packages/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/luci/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/routing/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/telephony/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/management/Packages.gz.
No packages removed.
Unknown package 'libuci-lua'.
Unknown package 'luci'.
Unknown package 'rpcd'.
No packages removed.
Unknown package 'libuci-lua'.
//repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/management/Packages.gz, wget returned 8.
Collected errors:
 * opkg_install_cmd: Cannot install package libuci-lua.
 * opkg_install_cmd: Cannot install package luci.
 * opkg_install_cmd: Cannot install package rpcd.
mv: can't rename '/www/cgi-bin': No such file or directory
mv: can't rename '/www/luci-static': No such file or directory
mv: can't rename '/www/index.html': No such file or directory
rm: can't remove '/usr/lib/lua/uci.so': No such file or directory
sed: /usr/lib/lua/luci/model/uci.lua: No such file or directory
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
/usr/share/transformer/scripts/appInstallRemoveUtility.sh: line 599: /etc/init.d/uhttpd: not found
Collected errors:
 * opkg_install_cmd: Cannot install package libuci-lua.
sed: /usr/lib/lua/luci/model/uci.lua: No such file or directory

I am located in Germany and use the device behind a existing router in my network for now (broadband connection via wan port). I have internet access and write this issue via this device connection right now.

Of course I also have problems when trying to install other extensions ...

I am located in Germany using the internet connection of a German provider (as mentioned before) via broadband connection behind their router (during setup, later want to switch to this device here completely). I am asking myself if this problem might be related to cloudflare protection of repository.ilpuntotecnico.com, since I get their loading dialog in my browser when calling any page there.

Any help is very appreciated.

Thank you and greetings from Cologne / Colonia / Köln, Germany :), Markus

salvatorebattiato commented 2 years ago

The problem is that wget can't download content over an ssl encrypted connection for some error. I solved by installing manually these packages (downloading into a usb drive and using opkg install filename.ipk) https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/base/libopenssl_1.0.2n-1_brcm63xx-tch.ipk https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/base/openssl-util_1.0.2n-1_brcm63xx-tch.ipk https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/packages/wget_1.17.1-1_brcm63xx-tch.ipk

mackshot commented 2 years ago

Thank you very much for your feedback.

I installed all three packages

root@modemtim:/tmp/tmp# opkg install wget_1.17.1-1_brcm63xx-tch.ipk 
Installing wget (1.17.1-1) to root...
Configuring wget.
root@modemtim:/tmp/tmp# opkg install libopenssl_1.0.2n-1_brcm63xx-tch.ipk 
Upgrading libopenssl on root from 1.0.2j-1 to 1.0.2n-1...
Configuring libopenssl.
root@modemtim:/tmp/tmp# opkg install openssl-util_1.0.2n-1_brcm63xx-tch.ipk 
Installing openssl-util (1.0.2n-1) to root...
Configuring openssl-util.

Afterwards I rebooted and tested it via extensions card and opkg update on console

GUI

Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/base/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/packages/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/luci/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/routing/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/telephony/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/management/Packages.gz.
No packages removed.
Unknown package 'libuci-lua'.
Unknown package 'luci'.
Unknown package 'rpcd'.
No packages removed.
Unknown package 'libuci-lua'.
//repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/management/Packages.gz, wget returned 8.
Collected errors:
 * opkg_install_cmd: Cannot install package libuci-lua.
 * opkg_install_cmd: Cannot install package luci.
 * opkg_install_cmd: Cannot install package rpcd.
mv: can't rename '/www/cgi-bin': No such file or directory
mv: can't rename '/www/luci-static': No such file or directory
mv: can't rename '/www/index.html': No such file or directory
rm: can't remove '/usr/lib/lua/uci.so': No such file or directory
sed: /usr/lib/lua/luci/model/uci.lua: No such file or directory
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
uci: Entry not found
/usr/share/transformer/scripts/appInstallRemoveUtility.sh: line 599: /etc/init.d/uhttpd: not found
Collected errors:
 * opkg_install_cmd: Cannot install package libuci-lua.
sed: /usr/lib/lua/luci/model/uci.lua: No such file or directory

Console

Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/base/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/packages/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/luci/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/routing/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/telephony/Packages.gz.
Downloading https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/management/Packages.gz.
Collected errors:
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/base/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/packages/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/luci/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/routing/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/telephony/Packages.gz, wget returned 8.
 * opkg_download: Failed to download https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/management/Packages.gz, wget returned 8.

Unfortunately the same problems as before.

If I am right, I should get error 5 if the problem would be related with a ssl certificate error, doesn't it? Thus I assume error is related to cloudflare protection, see https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html

Is there another mirror for Ansuel Repository? If not, I may can help with storage for it?

FrancYescO commented 2 years ago

was the GUI installed when the modem have an active WAN connection? otherwise you should install specific package from Mod GUI settings panel to get https feeds to work (this is somehow what @salvatorebattiato suggested to do).

mackshot commented 2 years ago

I guess I had no active WAN connection while installing GUI. Can you please explain more detailed what I have to do now? Did not get it, sorry.

FrancYescO commented 2 years ago

open the modgui setting page, you should see a banned that suggest you to install the "specific package"

mackshot commented 2 years ago

Screenshot from 2022-06-06 12-49-30

Do not get how it works. Hmm, am I at the wrong card?

I am considering performing a full reset, first enabling wan and then installing GUI. That should fix my problem with LuCI installation, right?

FrancYescO commented 2 years ago

Hmm, no it says already installed so you should be okay...

yes maybe try a reset and reinstall with WAN online, is in my last try with 1.0.3 all was okay with luci

mackshot commented 2 years ago

I reset it, activated internet via broadband and then installed GUI Version: 9.6.65 ... The same problem arise.

To summarize:

After having the GUI installed, I first have a problem with HTTPS connections (wget return code 5) and thus cannot install LuCI. When installing https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/base/libopenssl_1.0.2n-1_brcm63xx-tch.ipk https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/base/openssl-util_1.0.2n-1_brcm63xx-tch.ipk https://repository.ilpuntotecnico.com/files/roleo/public/agtef/brcm63xx-tch/packages/packages/wget_1.17.1-1_brcm63xx-tch.ipk

I still cannot install LuCI due to wget return code 8. I guess it is related to Cloudflare protection. When trying to download Packages.gz manually in Browser I also run into Cloudflare protection.

Maybe @Ansuel can help me with telling me 1) Is there any chance to have a request valid with respoect to Cloudflare protection? 2) Is there any other source for the repository than https://repository.ilpuntotecnico.com/files/roleo ... ? 3) Is there any chance to self-host the repository?

Thank you all for your efforts!

FrancYescO commented 2 years ago

1 probably is an issue with your IP/ISP as i get no issue with cloudflare direct downloading from the link suggested 2 afaik, no 3 yes... just mirror it with some http mirror software and host somewhere else (also on github is possible..)

maybe the issue is about some old CA, included in the 1.0.3 firmware, but that is now expired

FrancYescO commented 3 months ago

duplicate https://github.com/Ansuel/tch-nginx-gui/issues/1166 (and probably solved on 1.0.3)