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

Unable to update adblock #7172

Closed
nrdsp opened this issue May 9, 2022 · 2 comments
Closed

Unable to update adblock #7172

nrdsp opened this issue May 9, 2022 · 2 comments

Comments

@nrdsp
Copy link

nrdsp commented May 9, 2022

Version info:

qutebrowser v2.5.0
Git commit:
Backend: QtWebEngine 5.15.8, based on Chromium 87.0.4280.144
Qt: 5.15.3

CPython: 3.9.12
PyQt: 5.15.4

sip: 6.5.1
colorama: no
jinja2: 3.1.1
pygments: 2.11.2
yaml: 6.0
adblock: 0.5.2
PyQt5.QtWebEngineWidgets: yes
PyQt5.QtWebEngine: 5.15.4
PyQt5.QtWebKitWidgets: no
pdf.js: 2.8.335 (/nix/store/z5n6n43w80lh2p2pfp694q38chlrmnl0-pdfjs-2.8.335/build/pdf.js)
sqlite: 3.38.2
QtNetwork SSL: OpenSSL 1.1.1n 15 Mar 2022

Style: QFusionStyle
Platform plugin: wayland
OpenGL: Intel, 4.6 (Compatibility Profile) Mesa 22.0.1
Platform: Linux-5.15.34-x86_64-with-glibc2.34, 64bit
Linux distribution: NixOS 22.05 (Quokka) (nixos)
Frozen: False
Imported from /nix/store/pbs9w20syih889zsimqi0c2j0mik9b6p-qutebrowser-2.5.0/lib/python3.9/site-packages/qutebrowser
Using Python from /nix/store/hym1n0ygqp9wcm7pxn4sfrql3fg7xa09-python3-3.9.12/bin/python3.9
Qt library executable path: /nix/store/x2imx07lngxnyhnqylqm35zksdf6mzl8-qtbase-5.15.3/libexec, data path: /nix/store/x2imx07lngxnyhnqylqm35zksdf6mzl8-qtbase-5.15.3

Paths:
cache: /home/nuno/.cache/qutebrowser
config: /home/nuno/.config/qutebrowser
data: /home/nuno/.local/share/qutebrowser
runtime: /run/user/1000/qutebrowser
system data: /nix/store/pbs9w20syih889zsimqi0c2j0mik9b6p-qutebrowser-2.5.0/share/qutebrowser

Autoconfig loaded: no
Config.py: /home/nuno/.config/qutebrowser/config.py has been loaded
Uptime: 1 day, 0:34:04

Does the bug happen if you start with --temp-basedir?:

No, it does update adblock. Message log:

13:38:12 | INFO | network | braveadblock:adblock_update:279 | Downloading adblock filter lists...
13:38:13 | INFO | message | message:info:83 | hostblock: Read 113494 hosts from 1 sources.
13:38:14 | INFO | message | message:info:83 | braveadblock: Filters successfully read from 2 sources.

Description

I'm getting message:error:60 and Download error: The specified configuration cannot be used. when trying to do adblock-update. It gives me this error for each entry in the c.content.blocking.adblock and c.content.blocking.hosts lists. Message log:

13:39:43 | INFO | network | braveadblock:adblock_update:279 | Downloading adblock filter lists...
13:39:43 | ERROR | message | message:error:60 | Download error: The specified configuration cannot be used.
13:39:43 | ERROR | message | message:error:60 | Download error: The specified configuration cannot be used.
13:39:43 | ERROR | message | message:error:60 | Download error: The specified configuration cannot be used.

(...)

How to reproduce

  1. Add the following to your config.py:
c.content.blocking.adblock.lists = [ \
  "https://easylist.to/easylist/easylist.txt", \
  "https://easylist.to/easylist/easyprivacy.txt", \
  "https://secure.fanboy.co.nz/fanboy-cookiemonster.txt", \
  "https://easylist.to/easylist/fanboy-annoyance.txt", \
  "https://secure.fanboy.co.nz/fanboy-annoyance.txt", \
  "https://github.com/uBlockOrigin/uAssets/raw/master/filters/annoyances.txt", \
  "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2020.txt", \
  "https://github.com/uBlockOrigin/uAssets/raw/master/filters/unbreak.txt", \
  "https://github.com/uBlockOrigin/uAssets/raw/master/filters/resource-abuse.txt", \
  "https://github.com/uBlockOrigin/uAssets/raw/master/filters/privacy.txt", \
  "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters.txt" \
]
c.content.blocking.hosts.lists = ['https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts']
c.content.blocking.enabled = True
c.content.blocking.method = 'both'
  1. Type :adblock-update in qutebrowser's status bar.
@The-Compiler
Copy link
Member

See #129 - a :restart should help. Nothing qutebrowser can do about it, unfortunately.

@The-Compiler The-Compiler closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2022
@nrdsp
Copy link
Author

nrdsp commented May 9, 2022

See #129 - a :restart should help. Nothing qutebrowser can do about it, unfortunately.

Restarting did the trick, thanks!

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

No branches or pull requests

2 participants