Comments on How to Install PowerDNS and PowerDNS-Admin on Ubuntu 22.04
PowerDNS is a free and open-source authoritative nameserver written in C++. It supports several databases such as MySQL, MariaDB, PostgreSQL, and Oracle to store zone files and records. In this post, we will explain how to install PowerDNS and PowerDNS admin on Ubuntu 22.04 server.
8 Comment(s)
Comments
Hi,
I am getting a error 502 bad gateway the UI is open after login into it. I got the error 502
The issue is resolved now. Thanks for the support.
i'm getting error when start pip ... command
(flask) root@ns2-powerdns:/var/www/html/pdns# pip install -r requirements.txt
Usage: pip [options]
ERROR: Invalid requirement: --use-feature=no-binary-enable-wheel-cache lxml==4.9.0
pip: error: option --use-feature: invalid choice: 'no-binary-enable-wheel-cache' (choose from '2020-resolver', 'fast-deps', 'in-tree-build')
previous error - solved: pip install --upgrade pip
but there is a new error :
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
? exit code: 1
??> [23 lines of output]
running egg_info
creating /tmp/pip-pip-egg-info-113ys8h8/psycopg2.egg-info
writing /tmp/pip-pip-egg-info-113ys8h8/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-113ys8h8/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-113ys8h8/psycopg2.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-113ys8h8/psycopg2.egg-info/SOURCES.txt'
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
??> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
pls help.
The error above can be solved running : apt install libpq-dev as pre-requisite.
Hi,
Install is ok but I'd like to have exausitves logs on PowerDNS-ADmin. I've enable OpenID Connect OAuth in order to allow connexion from my LemonLDAP::NG SSO Portal.On LemonLDAP side, everything seems ok. But I get a 500 error on PowerDNS-Admin. I've set log directive ( --error-logfile /var/log/poweradmin/gunicorn_error.log --access-logfile /var/log/poweradmin/gunicorn_access.log --log-leve=DEBUG) in order to have extended log but there is nothing in the log that help me to find out why I'm getting this error.
Is there a way to know why I'm getting this error ?
regards
Jerome
Hi,Just followed your instruction and everything worked fine. Thanks a lot. But when I login to PowerDNS web and after making the confiuration with api-key, everything looks good, but I can't see any zone in the dashboard. I've alreay imprted a zone list to the database and can verify it by login to mysql from the prompt and see the data in the pdns table. And also connecte a slave dns to this and still no zone listed. Any idea what could be wrong?
Hi,The dashboard is empty by zones and not showing anything.