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

Getting adblock.mahakala.is list... Killed #46

Closed
FreeWoRLD83 opened this issue Sep 18, 2015 · 6 comments
Closed

Getting adblock.mahakala.is list... Killed #46

FreeWoRLD83 opened this issue Sep 18, 2015 · 6 comments

Comments

@FreeWoRLD83
Copy link

Getting adaway.org list... Skipping list because it does not have any new entries.
Getting adblock.gjtech.net list... Skipping list because it does not have any new entries.
Getting adblock.mahakala.is list... Killed

What could be wrong?

@jacobsalmela
Copy link
Contributor

Probably something to do with memory o. Run bash -x /usr/local/bin/gravity.sh and paste the snippet of the mahakala list here.

@FreeWoRLD83
Copy link
Author

Thanks for replying. Here's the output;
(This is an openVZ vps with only 128mb of Ram, running 32bit debian 7. Could this be the issue?)

root@virtual:/var# bash -x /usr/local/bin/gravity.sh
++ hostname -I
+ piholeIP='127.0.0.2 X.X.X.X '
+ sources=('https://adaway.org/hosts.txt' 'http://adblock.gjtech.net/?format=unix-hosts' 'http://adblock.mahakala.is/' 'http://hosts-file.net/.%5Cad_servers.txt' 'http://www.malwaredomainlist.com/hostslist/hosts.txt' 'http://pgl.yoyo.org/adservers/serverlist.php?' 'http://someonewhocares.org/hosts/hosts' 'http://winhelp2002.mvps.org/hosts.txt')
+ adList=/etc/pihole/gravity.list
+ origin=/etc/pihole
+ piholeDir=/etc/pihole
+ [[ -f /etc/pihole/pihole.conf ]]
+ justDomainsExtension=domains
+ matter=pihole.0.matter.txt
+ andLight=pihole.1.andLight.txt
+ supernova=pihole.2.supernova.txt
+ eventHorizon=pihole.3.eventHorizon.txt
+ accretionDisc=pihole.4.accretionDisc.txt
+ eyeOfTheNeedle=pihole.5.wormhole.txt
+ blacklist=/etc/pihole/blacklist.txt
+ latentBlacklist=/etc/pihole/latentBlacklist.txt
+ whitelist=/etc/pihole/whitelist.txt
+ latentWhitelist=/etc/pihole/latentWhitelist.txt
+ echo '** Neutrino emissions detected...'
** Neutrino emissions detected...
+ [[ -d /etc/pihole ]]
+ :
+ [[ -f /etc/dphys-swapfile ]]
++ cut -d= -f2
++ cat /etc/dphys-swapfile
++ grep -m1 CONF_SWAPSIZE
+ swapSize=500
+ [[ 500 != 500 ]]
+ :
+ (( i = 0 ))
+ (( i < 8 ))
+ url=https://adaway.org/hosts.txt
++ cut -d/ -f3
++ echo https://adaway.org/hosts.txt
+ domain=adaway.org
+ saveLocation=/etc/pihole/list.0.adaway.org.domains
+ echo -n 'Getting adaway.org list... '
Getting adaway.org list... + case "$domain" in
++ curl -s -z /etc/pihole/list.0.adaway.org.domains -A Mozilla/10.0 https://adaway.org/hosts.txt
+ data=
+ [[ -n '' ]]
+ echo 'Skipping list because it does not have any new entries.'
Skipping list because it does not have any new entries.
+ (( i++ ))
+ (( i < 8 ))
+ url='http://adblock.gjtech.net/?format=unix-hosts'
++ cut -d/ -f3
++ echo 'http://adblock.gjtech.net/?format=unix-hosts'
+ domain=adblock.gjtech.net
+ saveLocation=/etc/pihole/list.1.adblock.gjtech.net.domains
+ echo -n 'Getting adblock.gjtech.net list... '
Getting adblock.gjtech.net list... + case "$domain" in
++ curl -s -z /etc/pihole/list.1.adblock.gjtech.net.domains -A Mozilla/10.0 'http://adblock.gjtech.net/?format=unix-hosts'
+ data=
+ [[ -n '' ]]
+ echo 'Skipping list because it does not have any new entries.'
Skipping list because it does not have any new entries.
+ (( i++ ))
+ (( i < 8 ))
+ url=http://adblock.mahakala.is/
++ cut -d/ -f3
++ echo http://adblock.mahakala.is/
+ domain=adblock.mahakala.is
+ saveLocation=/etc/pihole/list.2.adblock.mahakala.is.domains
+ echo -n 'Getting adblock.mahakala.is list... '
Getting adblock.mahakala.is list... + case "$domain" in
++ curl -s -A 'Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0' -e http://forum.xda-developers.com/ -z /etc/pihole/list.2.adblock.mahakala.is.domains http://adblock.mahakala.is/
Killed
root@virtual:/var# 

@jacobsalmela
Copy link
Contributor

Try increasing the RAM. It looks like you might be on a VM, so that is a likely culprit. It's not too surprising as the mahakala list is where most issues have been happening.

I'll probably move away from using memory to store the lists ( #43 ).

@FreeWoRLD83
Copy link
Author

Hey again,
I've updated above comment with below line, you didn't see it;
(This is an openVZ vps with only 128mb of Ram, running 32bit debian 7. Could this be the issue?)
Looks like definitely low ram issue. Unfortunately that's all I have. Thanks bro

@FreeWoRLD83
Copy link
Author

Probably you didn't see my comment update yet. Sorry for my english bro. Thnks alot

@jacobsalmela
Copy link
Contributor

My bad. I'm sure that's the issue then. The Pi has 512MB, so you will need that much at least, probably more. You can re-open this if that did not solve it.

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