Adblock support thread

yep, disable the autodetection and set it manually.

I tried that, added the following line:

option adb_fetchutil 'uclient-fetch'

still the same error, now I also get this when I go to the adbock tab in luci

The option is called 'adb_fetchcmd'. What Router/OpenWrt version did you use?

that was what was written in the readme here:

I changed the adb-fetchutil to adb_fetchcmd 'uclient-fetch'

now adblock shows as running in the syslog, but the luci-adblock tab has disappeared and even if I uninstall and reinstall it, I don't get the adblock tab back.

Reboot your router or restart the rpcd service (/etc/init.d/rpcd restart) ... and use chrome for testing, cause caching in firefox is a mess.

restarted the router, using chrome still no adblock in luci, I then removed luci-app-adblock and rebooted and then re-added it again. Same old story...no adblock in luci

Sorry, not reproducible. Did you rename adblock.sh or the init script? Which OpenWrt/router did you use?

I renamed nothing, just edited etc/config/adblock. This is a linksys wrt1900acs

Can you open the Adblock page directly if you enter the complete URL? “https://openwrt.lan/cgi-bin/luci/admin/services/adblock”?

actually, if I login with winscp and do a search of / for admin/services/ I get no results

Do you see "luci-app-adblock" when you execute "opkg list-installed | grep adblock"?

yes, it's installed (and it's apk not opkg)

luci-app-adblock is installed here: (along with all the other apps I have on my router)
"/www/luci-static/resources/view/adblock"

luci-app-adblock depends on the following things:

If you haven't renamed anything, it probably can't parse your adblock uci config. Maybe windows line endings or somethings like that ...

the file looks fine to me:

{
	"admin/services/adblock": {
		"title": "Adblock",
		"order": "60",
		"action": {
			"type": "alias",
			"path": "admin/services/adblock/overview"
		},
		"depends": {
			"acl": [ "luci-app-adblock" ],
			"fs": {
				"/usr/bin/adblock.sh": "executable",
				"/etc/init.d/adblock": "executable"
			},
			"uci": { "adblock": true }
		}
	},
	"admin/services/adblock/overview": {
		"title": "Overview",
		"order": 10,
		"action": {
			"type": "view",
			"path": "adblock/overview"
		}
	},
	"admin/services/adblock/allowlist": {
		"title": "Edit Allowlist",
		"order": 20,
		"action": {
			"type": "view",
			"path": "adblock/allowlist"
		}
	},
	"admin/services/adblock/blocklist": {
		"title": "Edit Blocklist",
		"order": 30,
		"action": {
			"type": "view",
			"path": "adblock/blocklist"
		}
	},
	"admin/services/adblock/feeds": {
		"title": "Custom Feed Editor",
		"order": 40,
		"action": {
			"type": "view",
			"path": "adblock/feeds"
		}
	},
	"admin/services/adblock/dnsreport": {
		"title": "DNS Report",
		"order": 50,
		"action": {
			"type": "view",
			"path": "adblock/dnsreport"
		}
	},
	"admin/services/adblock/logread": {
		"title": "Log View",
		"order": 50,
		"action": {
			"type": "view",
			"path": "adblock/logread"
		}
	}
}

I know that this is not your issue as adblock itself is running, I would just like to say thanks for all your assistance so far.

Please start with a fresh adblock uci config, in opkg times it was called "--force-maintainer" during package installation.

hmm, which option would that be then?

root@Beanz:~# apk add luci-app-adblock --force-maintainer
apk: unrecognized option: force-maintainer
apk-tools 3.0.0_pre20250208, compiled for armv7.

Usage: apk add [<OPTIONS>...] CONSTRAINTS...

Description:
  apk add adds or updates given constraints to WORLD (see apk-world(5)) and
  commit changes to disk. This usually involves installing new packages, but
  may also cause other changes to the installed packages.

Global options:
  -h, --help            Print the list of all commands with descriptions
  -f, --force           Enable selected --force-* options (deprecated)
  -i, --interactive     Ask confirmation before performing certain
                        operations
  -p, --root ROOT       Manage file system at ROOT
  -q, --quiet           Print less information
  -U, --update-cache    Alias for '--cache-max-age 0'
  -v, --verbose         Print more information (can be specified twice)
  -V, --version         Print program version and exit
  -X, --repository REPO
                        Specify additional package repository
  --allow-untrusted     Install packages with untrusted signature or no
                        signature
  --arch ARCH           Temporarily override architectures
  --cache-dir CACHEDIR  Temporarily override the cache directory
  --cache-max-age AGE   Maximum AGE (in minutes) for index in cache before
                        it's refreshed
  --cache-packages      Store a copy of packages at installation time to
                        cache
  --cache-predownload   Download needed packages to cache before starting to
                        commit a transtaction
  --force-binary-stdout
                        Continue even if binary data will be printed to the
                        terminal
  --force-broken-world  DANGEROUS: Delete world constraints until a solution
                        without conflicts is found
  --force-missing-repositories
                        Continue even if some of the repository indexes are
                        not available
  --force-no-chroot     Disable chroot for scripts
  --force-non-repository
                        Continue even if packages may be lost on reboot
  --force-old-apk       Continue even if packages use unsupported features
  --force-overwrite     Overwrite files in other packages
  --force-refresh       Do not use cached files (local or from proxy)
  --keys-dir KEYSDIR    Override the default system trusted keys directories
  --no-cache            Do not use any local cache path
  --no-check-certificate
                        Do not validate the HTTPS server certificates
  --no-interactive      Disable interactive mode
  --no-logfile          Disable writing to the log file
  --no-network          Do not use the network
  --no-progress         Disable progress bar even for TTYs
  --preserve-env        Pass user environment down to scripts
  --print-arch          Print default arch and exit
  --progress            Show progress
  --progress-fd FD      Write progress to the specified file descriptor
  --purge               Purge modified configuration and cached packages
  --repositories-file REPOFILE
                        Override system repositories, see
                        apk-repositories(5)
  --repository-config REPOCONFIG
                        Specify additional package repository configuration
  --timeout TIME        Timeout network connections if no progress is made
                        in TIME seconds
  --wait TIME           Wait for TIME seconds to get an exclusive repository
                        lock before failing

Commit options:
  -s, --simulate        Simulate the requested operation without making any
                        changes
  --clean-protected     Do not create .apk-new files in configuration
                        directories
  --overlay-from-stdin  Read list of overlay files from stdin
  --no-commit-hooks     Skip pre/post hook scripts (but not other scripts)
  --no-scripts          Do not execute any scripts
  --initramfs-diskless-boot
                        Used by initramfs when it's recreating root tmpfs

Add options:
  --initdb              Initialize a new package database
  -l, --latest          Always choose the latest package by version
  --no-chown            Deperecated alias for --usermode
  -u, --upgrade         Upgrade PACKAGES and their dependencies
  --usermode            Create usermode database with --initdb
  -t, --virtual NAME    Create virtual package NAME with given dependencies


The adblock update 4.4.0-3 is in master - now it has been successfully tested with kresd (Turris OS 8.0) and smartdns as well.

Edit: The testing repo has been updated wirh r3:

2 Likes