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 API status request always returning disabled as status #2080

Closed
joluas opened this issue Jan 15, 2022 · 2 comments
Closed

Pihole API status request always returning disabled as status #2080

joluas opened this issue Jan 15, 2022 · 2 comments

Comments

@joluas
Copy link

joluas commented Jan 15, 2022

Versions

  • Pi-hole: 5.8.1
  • AdminLTE: 5.13
  • FTL: 5.10.1

Platform

  • OS and version: Debian 11
  • Platform: Raspberry Pi, Docker

Expected behavior

When using the command http://pi.hole/admin/api.php?status the results should be {"status":"enabled"} or {"status":"disabled"} according to the current status of Pi-hole.

This result should match the information contained on the result from http://pi.hole/admin/api.php

Actual behavior / bug

When using the command http://pi.hole/admin/api.php?status the result is always the following:
{"status":"disabled"}

Even when Pi-hole is running:
image

If you compare this with the full result of http://pi.hole/admin/api.php the status does not matches either:
{"domains_being_blocked":126559,"dns_queries_today":27264,"ads_blocked_today":2605,"ads_percentage_today":9.554724,"unique_domains":1615,"queries_forwarded":17477,"queries_cached":6998,"clients_ever_seen":14,"unique_clients":13,"dns_queries_all_types":27264,"reply_NODATA":128,"reply_NXDOMAIN":41,"reply_CNAME":352,"reply_IP":436,"privacy_level":0,"status":"enabled","gravity_last_updated":{"file_exists":true,"absolute":1642177518,"relative":{"days":1,"hours":5,"minutes":13}}}

Steps to reproduce

Steps to reproduce the behavior:

  1. Open web browser
  2. Write the following on address bar http://pi.hole/admin/api.php?status
  3. See error

Additional context

This was working before the latest update. I am not a programmer and only starting with some raspberry pi projects so excuse any lack of proper context.

@yubiuser yubiuser transferred this issue from pi-hole/pi-hole Jan 15, 2022
@yubiuser
Copy link
Member

Duplicate of #2051

@yubiuser yubiuser marked this as a duplicate of #2051 Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants