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

Pihole:2022.01.1 returns incorrect result from api.php?status #983

Closed
2 of 6 tasks
diamondsw opened this issue Jan 13, 2022 · 2 comments
Closed
2 of 6 tasks

Pihole:2022.01.1 returns incorrect result from api.php?status #983

diamondsw opened this issue Jan 13, 2022 · 2 comments

Comments

@diamondsw
Copy link

diamondsw commented Jan 13, 2022

This is a: Bug

Details

Related Issues

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

How to reproduce the issue

  1. Start Pihole normally (in my case via compose file below)
  2. Once started, note the Pi-hole web dashboard indicates Status: Active, and confirm it is processing DNS requests.
  3. Query its status with curl -s GET 'http://pihole.joshuaochs.com/admin/api.php?status'
  4. Result should be {"status":"enabled"}, but API returns {"status":"disabled"}

Environment

  1. Environment data
  • Operating System: Debian 10.11
  • Hardware: Dell PowerEdge R720xd and Raspberry Pi 3b
  • Kernel Architecture: amd64 (Dell) and Arm (Pi)
  • Docker Install Info and version:
    • Software source: Docker version 20.10.12, build e91ed57; Official docker-ce from Docker's debian repo
    • Supplementary Software: docker-compose version 1.29.2, build 5becea4c
  • Hardware architecture: x86 (Dell) and Arm (Pi)
  1. docker-compose.yml
version: "3"
services:
  pihole:
    image: pihole/pihole:latest
    container_name: pihole
    hostname: 'docker.homelab'
    restart: unless-stopped
    environment:
      TZ: 'America/Chicago'
    volumes:
      - ./dnsmasq:/etc/dnsmasq.d:rw
      - ./pihole:/etc/pihole:rw
    dns:
      - 1.1.1.1
    networks:
      macvlan_subnet:
        ipv4_address: 10.0.1.229

networks:
  macvlan_subnet:
    external: true
  1. any additional info to help reproduce

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

I confess that I have not tried clearing my config as this occurs on two separate machines/instances, and the API does not seem like it would be configuration dependent, but if there is any issue reproducing this at all then I certainly can.

@rdwebdesign
Copy link
Member

@diamondsw
Copy link
Author

Apologies; I was looking at issues in the wrong project!

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

3 participants