Problem with own blacklist: Unable to parse results from queryads.php

Hello,

Environment

Pi-hole inside a docker container on my Synology NAS.
Pi-hole version: 3.3.1
Web interface version: 3.3
FTP version: 3.0

Expected Behaviour:

Pi-hole should load a local blacklist and block the domains

Actual Behaviour:

Pi-hole is loading the blacklist but displays an error message

Debug token:

mgqwx41zw6

Details

I would like to extend the blocked domains with a list I've created.

For simplicity there is only one example domain which should be blocked.

Content of default.list

x1.com

Regarding the docs I can extend the adlists.list file and append my files:

##Custom files
file:///etc/blacklists/default.list

The list is being loaded:
[i] Target: local (default.list)
[✓] Status: Retrieval successful

Now when I try to open the blocked domain I get an error:
[ERROR]: Unable to parse results from queryads.php: Unhandled error message (7 (no associated adlists URL found))

The log

Jul  3 13:04:05 dnsmasq[439]: 50 127.0.0.1/35023 query[A] diginc-pi-hole1 from 127.0.0.1
Jul  3 13:04:05 dnsmasq[439]: 50 127.0.0.1/35023 /etc/pihole/local.list diginc-pi-hole1 is 192.168.0.5
Jul  3 13:04:05 dnsmasq[439]: 51 127.0.0.1/35023 query[AAAA] diginc-pi-hole1 from 127.0.0.1

My second try was to put the file on a server and let Pi-hole download the list:

##Custom files
http://192.168.0.2/blacklists/default.list

Result: Works perfectly.

Can someone help me please if this is a bug?

Thanks in advance and best regards

Is the /etc/blacklists/default.list inside the container, or is the file outside and mapped in via a volume?

I've mapped the whole blacklists folder inside the container.

/docker/pihole/data/blacklists --> /etc/blacklists

root@diginc-pi-hole1:/# ls -la /etc/blacklists/                                                                                           
total 4                                                                                                                                   
drwxr-xr-x 1 1024 users   24 Jul  3 13:45 .                                                                                               
drwxr-xr-x 1 root root  2154 Jul  2 08:49 ..                                                                                              
-rwxr-xr-x 1 1024 users   10 Jul  2 09:25 default.list

@Mcat12 Does that error message mean anything for you?

Just in case if it's important:
On Github there was an similar issue created (Block page not displaying, instead i get some error message from pihole · Issue #2023 · pi-hole/pi-hole · GitHub)

However this was closed with the comment

Ok I think I resolved this, it seems I had a block list specified that was not in the right format. It was messing pihole up quite a bit. Once I removed it, it seems to work ok again.

But if this would here be the case, then loading my list from a server should produce the same error as loading from a local folder. But this is not the case.

What is the output of pihole -q x1.com

Here we go

root@diginc-pi-hole1:/# pihole -q x1.com                                                                                                  
 Match found in list.0.raw.githubusercontent.com.domains:                                                                                 
   t.mdn2015x1.com                                                                                                                        
   c.flx1.com                                                                                                                             
   0azx1.com                                                                                                                              
 Match found in list.1.mirror1.malwaredomains.com.domains:                                                                                
   netflixuser-support.validate-user.activation.safeguard.key.1uh3.verify-netflix1.com                                                    
   verify-netflix1.com                                                                                                                    
 Match found in list.2.sysctl.org.domains:                                                                                                
   c.flx1.com                                                                                                                             
   p.pxl2015x1.com                                                                                                                        
 Match found in list.6.hosts-file.net.domains:                                                                                            
   p.pxl2015x1.com                                                                                                                        
   t.mdn2015x1.com                                                                                                                        
   www.adx1.com                                                                                                                           
 Match found in list.7.local.domains:                                                                                                     
   www.x1.com

What is the output of these commands?

pihole -q x1.com -bp
curl http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=x1.com&bp
root@diginc-pi-hole1:/# pihole -q x1.com -bp                                                                                              
  [i] No exact results found for x1.com found within block lists

and

root@diginc-pi-hole1:/# curl "http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=x1.com&bp"                                   
data:   [i] No exact results found for x1.com found within block lists                                                                    
data:                                                                                                                                     
                                                                                                                                          
data:                                                                                                                                     

I've put the url in double quotes. Without double quotes the output is different:

root@diginc-pi-hole1:/# curl http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=x1.com&bp                                                                                                       
[1] 7379                                                                                                                                                                                                    
bash: bp: command not found                                                                                                                                                                                 
root@diginc-pi-hole1:/# data:  Match found in list.0.raw.githubusercontent.com.domains:                                                                                                                     
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:    t.mdn2015x1.com                                                                                                                                                                                    
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:    c.flx1.com                                                                                                                                                                                         
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:    0azx1.com                                                                                                                                                                                          
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:  Match found in list.1.mirror1.malwaredomains.com.domains:                                                                                                                                            
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:    netflixuser-support.validate-user.activation.safeguard.key.1uh3.verify-netflix1.com                                                                                                                
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:    verify-netflix1.com                                                                                                                                                                                
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:  Match found in list.2.sysctl.org.domains:                                                                                                                                                            
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:    c.flx1.com                                                                                                                                                                                         
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:    p.pxl2015x1.com                                                                                                                                                                                    
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:  Match found in list.6.hosts-file.net.domains:                                                                                                                                                        
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:    p.pxl2015x1.com                                                                                                                                                                                    
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:    t.mdn2015x1.com                                                                                                                                                                                    
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:    www.adx1.com                                                                                                                                                                                       
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:  Match found in list.7.local.domains:                                                                                                                                                                 
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:    www.x1.com                                                                                                                                                                                         
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
data:                                                                                                                                                                                                       
                                                                                                                                                                                                            
root@diginc-pi-hole1:/#

Are you accessing the block page over IPv6? There are currently some issues with that.

No, I'm just using IPv4. IPv6 is deactivated on my machine.
My ISP is giving me an IPv4 too.

Edit:
I've investigated the problem further.
Adding example.com to my blacklist works perfectly (local file / remote file).
So there seems to be a bug (?) which causes pihole to produce this error only for certain domains - like x1.com