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

Can not add domains to white or black list latest as of 2023-01-21 10:00 MST #1294

Closed
3 of 6 tasks
penguinjeff opened this issue Jan 22, 2023 · 1 comment
Closed
3 of 6 tasks

Comments

@penguinjeff
Copy link

penguinjeff commented Jan 22, 2023

Can not add domains to white or black list

This is a: BUG

Details

Starting fresh I followed the instructions to create a docker-compose.yml file
When I go to the web interface and try to add a domain to white list or darklist I get the following error

Error connecting to database /etc/pihole/gravity.db: Unable to open database: unable to open database file

Related Issues

  • I have searched this repository/Pi-hole forums for existing issues and pull requests that look similar

It never asks for a password
I tried setting the password via
uncommenting the WEBPASSWORD and setting one but it never asks

How to reproduce the issue

Just following the default instruction on Fedora 37 upgraded today
modifications I made to the default instructions where:

docker network create -d ipvlan --subnet=192.168.0.0/24 --gateway=192.168.0.1 -o ipvlan_mode=l2 -o parent=br0 vlan10

added below image: section

networks:
  vlan10:
    ipv4_address: 192.168.0.225

added at the end

networks:
vlan10:
external: true

  1. Environment data
  • Operating System: Fedora37
  • Hardware: PC
  • Kernel Architecture: amd64
  • Docker Install Info and version:
    • Software source: OS provided package
    • Supplimentary Software: none
  • Hardware architecture: x86
  1. docker-compose.yml contents, docker run shell command, or paste a screenshot of any UI based configuration of containers here

#cat docker-compose.yml | sed -e 's/\s*#.*$//' | grep -v "^$"
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
networks:
vlan10:
ipv4_address: 192.168.0.225
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp"
environment:
TZ: 'America/Denver'
WEBPASSWORD: ${PASSWORD}
volumes:
- '/home/pihole/etc-pihole:/etc/pihole'
- '/home/pihole/etc-dnsmasq.d:/etc/dnsmasq.d'
restart: unless-stopped
networks:
vlan10:
external: true

  1. any additional info to help reproduce

Connect to it via web interface and try and add a domain to the white or black list

These common fixes didn't work for my issue

  • I have tried removing/destroying my container, and re-creating a new container
  • I have tried fresh volume data by backing up and moving/removing the old volume data
  • I have tried running the stock docker run example(s) in the readme (removing any customizations I added)
  • I have tried a newer or older version of Docker Pi-hole (depending what version the issue started in for me)
  • I have tried running without my volume data mounts to eliminate volumes as the cause

If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.

@penguinjeff
Copy link
Author

running without volume data does fix the issue but I need domains it is likely selinux causing its usual havic. Not your issue thank you for the suggestions.

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

1 participant