Giter Site home page Giter Site logo

Comments (18)

lynxthecat avatar lynxthecat commented on May 31, 2024 4

I think I might try to add a check for truncation based on the head -c call.

Done: e7f1162.

from adblock-lean.

dave14305 avatar dave14305 commented on May 31, 2024 3

/tmp is generally only half the size of free memory. Probably just too many lists.

from adblock-lean.

lynxthecat avatar lynxthecat commented on May 31, 2024 2

You're welcome. I think I might try to add a check for truncation based on the head -c call.

from adblock-lean.

hagezi avatar hagezi commented on May 31, 2024 1

The message must come from another block list, my lists do not contain local=:

curl -sL https://gitlab.com/hagezi/mirror/-/raw/main/dns-blocklists/dnsmasq/tif.txt | sed -n '447216p'

address=/inov2elate.com/#

from adblock-lean.

lynxthecat avatar lynxthecat commented on May 31, 2024 1

Hey @hagezi, plenty from the OpenWrt community now use one or more of your excellent lists, and this little 'adblock-lean' service script for OpenWrt has proved fairly popular - see this post on the OpenWrt forum. Thank you for maintaining the lists!

from adblock-lean.

lynxthecat avatar lynxthecat commented on May 31, 2024 1

@shown19 a good suggestion was put forward here. Namely it could be that the head -c call here is truncating your blocklist file part download. Is the blocklist file part larger than 20MB? If so, consider increasing the following value in your config file:

	# Maximum size of any individual downloaded blocklist part
	max_blocklist_file_part_size_KB=20000

from adblock-lean.

lynxthecat avatar lynxthecat commented on May 31, 2024 1

This looks problematic:

sed: write error

https://github.com/lynxthecat/adblock-lean/blob/c12cf5f95c2a9a9c225da087329488f9de741243/adblock-lean#L146C3-L146C137

from adblock-lean.

lynxthecat avatar lynxthecat commented on May 31, 2024 1

@dave14305 any ideas here? Does busybox sed have a file size or limit?

@shown19 could you perhaps try the full version of sed: opkg install sed?

from adblock-lean.

shown19 avatar shown19 commented on May 31, 2024

@hagezi Wow, I get it now, coz I'm also using your hagezi pro so maybe this is the reason, right? it all make sense now. Thank you and for your fast response, appreciate it. :)

from adblock-lean.

hagezi avatar hagezi commented on May 31, 2024

The Pro also does not contain a local= element.

from adblock-lean.

hagezi avatar hagezi commented on May 31, 2024

I don't know if the address=/ elements are converted to local=/ during import and something goes "wrong".

from adblock-lean.

shown19 avatar shown19 commented on May 31, 2024

The Pro also does not contain a local= element.

@hagezi weird, but I only used your lists

@lynxthecat I set max_blocklist_file_part_size_KB from 20000 to 50000 to 100000 just to test but still got an error unless i remove the threath intelligence feed and it's working again.

this is the list I am using:

blocklist_urls="https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/pro.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/doh-vpn-proxy-bypass.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/dyndns.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/hoster.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/native.amazon.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/native.apple.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/native.huawei.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/native.winoffice.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/native.tiktok.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/native.tiktok.extended.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/native.lgwebos.txt
https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/tif.txt --> successful if this is remove

restarting adblock-lean outputted this, maybe there's a hint here?


Downloading new blocklist file part from: https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/tif.txt.
Download of new blocklist file part from: https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/tif.txt suceeded (downloaded file size: 28162 KB).
Cleaning whitespace and formatting blocklist file part as local=/.../.
sed: write error
Successfully generated preprocessed blocklist file with 465097 line(s).
Processing and checking new blocklist file.
Preprocessed blocklist file size: 13080 KB.
Removing duplicates from blocklist file.
Duplicates removed.
Found local allowlist with 38 lines.  Removing (sub)domain matches from blocklist.
Removal of allowlist (sub)domain matches from blocklist complete.
Checking for any rogue elements.
Rogue element: '447847: local=' identified in new blocklist.
New blocklist file check failed.

from adblock-lean.

shown19 avatar shown19 commented on May 31, 2024

Yes, that will be the problem, the TIF is ~30MB

but how come I still got an issue even though I already set max_blocklist_file_part_size_KB=100000 ? or does it uses disk space? router has still alot of RAM it's 512mb variant.

Edit: sorry, I thought I am replying to @lynxthecat , I got confused here already. So basically I set it to 100000 but still getting the issue.

from adblock-lean.

shown19 avatar shown19 commented on May 31, 2024

This looks problematic:

what could be the possible cause of this?

from adblock-lean.

lynxthecat avatar lynxthecat commented on May 31, 2024

Are you sure you have sufficient available free memory (try with free -m)?

from adblock-lean.

shown19 avatar shown19 commented on May 31, 2024

@lynxthecat I think so, here's the output:

root@Openwrt:~# free -m
              total        used        free      shared  buff/cache   available
Mem:         444464       52924      186108      180984      205432      173760
Swap:             0           0           0

from adblock-lean.

shown19 avatar shown19 commented on May 31, 2024

/tmp is generally only half the size of free memory. Probably just too many lists.

you're right, after opkg install sed as suggested by @lynxthecat , I got this output this time with more details:

sed: couldn't write 28 items to stdout: No space left on device

could I still expand the /tmp though?

from adblock-lean.

shown19 avatar shown19 commented on May 31, 2024

Anyway, if it's complicated then I will not be forcing this TIF list and I think this other lists of hagezi are enough for my needs already so thank you very much guys for all the help @lynxthecat @dave14305 @hagezi

from adblock-lean.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.