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

Adblock extra 'unable to complete setup' #181

Closed
sumeetkpatel opened this issue Sep 29, 2023 · 6 comments
Closed

Adblock extra 'unable to complete setup' #181

sumeetkpatel opened this issue Sep 29, 2023 · 6 comments
Labels
wontfix This will not be worked on

Comments

@sumeetkpatel
Copy link

On the Gen3 modem I am getting this:
Firmware Version: 20.4.0428-MR1-RA

root@CobraXh:/tmp/run/mountd/sda1/telstra/unhide# sh tch-gui-unhide-xtra.adblock setup
>> Determining installed and current versions of required packages...
>> Latest adblock version is 1.0.0-2
4.1.5-8 but only version 4.1 is supported - unable to complete setup

Any way to progress?

@seud0nym
Copy link
Owner

A new package called adblock-fast has been added to the repository, and it confused the version detection, which was just looking for package names starting with adblock.

I have committed a fix. Please download again and retry.

BTW: You really should consider upgrading your firmware to 21.4.0439. It is significantly more stable.

@sumeetkpatel
Copy link
Author

sumeetkpatel commented Sep 30, 2023

I started over.

Currently:
Firmware Version: 21.4.0439-MR2.1-RA
I tried adblock before unhide and it sent it into a boot loop.
I've reflashed from scratch and back to a working 21.4.0439-MR2.1-RA unhide but without adblock.
Should I try to run adblock again post unhide or just wait until this is better supported?

Here is the log right before it went into boot loop

root@CobraXh:/tmp/run/mountd/sda1/telstra/pse# sh tch-gui-unhide-xtra.adblock setup
>> Determining installed and current versions of required packages...
>> Downloading coreutils v9.4
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   865  100   865    0     0   1761      0 --:--:-- --:--:-- --:--:--  1761
>> Installing coreutils v9.4
Installing coreutils (9.4) to root...
Configuring coreutils.
>> Downloading coreutils-sort v9.4
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 79390  100 79390    0     0   197k      0 --:--:-- --:--:-- --:--:--  197k
>> Installing coreutils-sort v9.4
Installing coreutils-sort (9.4) to root...
Configuring coreutils-sort.
>> Downloading ca-bundle v20230311-1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  121k  100  121k    0     0  55648      0  0:00:02  0:00:02 --:--:-- 55648
>> Installing ca-bundle v20230311-1
Upgrading ca-bundle on root from 20190110-2 to 20230311-1...
Configuring ca-bundle.
>> Downloading ca-certificates v20230311-1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  131k  100  131k    0     0  60313      0  0:00:02  0:00:02 --:--:-- 60313
>> Installing ca-certificates v20230311-1
Installing ca-certificates (20230311-1) to root...
Configuring ca-certificates.
>> Downloading adblock v4.1.5-8
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20795  100 20795    0     0  13111      0  0:00:01  0:00:01 --:--:-- 13103
>> Installing adblock v4.1.5-8
Installing adblock (4.1.5-8) to root...
Configuring adblock.
>> Fixing adb_fetchparm global configuration option
>> adblock daily update has been scheduled to execute at 1:07am every day
>> Setup complete
root@CobraXh:/tmp/run/mountd/sda1/telstra/pse#

@seud0nym
Copy link
Owner

A boot loop isn't usually a boot loop. It is usually caused by an executable doing a core dump, and these devices are configured to automatically reboot on a core dump. There will be a core dump file in /root which will indicate which program caused the issue (unless you have since done a reset).

Anyway, I have installed adblock multiple times on 21.4 without issue, so I am not sure what caused it.

Yes, you should re-run the adblock setup. If you are concerned about it happening again, you can run the following command (in the same directory that extracted tch-gui-unhide):

sh reboot-on-coredump -off

After adblock is setup, you will need to re-run the tch-gui-unhide install to pick up the additional adblock card.

@seud0nym
Copy link
Owner

seud0nym commented Oct 2, 2023

I have been able to reproduce the core dump/boot loop issue. I am working on a fix.

@seud0nym
Copy link
Owner

seud0nym commented Oct 3, 2023

I have found the problem. The adblock package has a dependency on the full coreutils sort (instead of the cut-down sort provided by BusyBox on these devices). I have been trying to build a 64-bit version, and I thought it was working, but it wasn't. It was sort that was core dumping and causing the issue. I have reverted to a 32-bit version (which does run on the Gen 3) and it seems to be fixed now.

@stale
Copy link

stale bot commented Oct 31, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 31, 2023
@stale stale bot closed this as completed Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants