Can't add domain

Bug Report Template

Description

when i try to add a new domain i am getting the below error

Action failed

AddDomain command: /usr/local/apnscp/bin/AddDomain --fd=%d --output=json -c ‘auth,tpasswd’=‘x’ -c ‘dns,proxyaddr’=‘None’ -c ‘dns,proxy6addr’=‘None’ -c ‘mail,key’=‘None’ -c ‘siteinfo,admin_user’=‘myadmin’ -c ‘siteinfo,domain’=‘mipodotcom’
Admin_Module::add_site(): Opcenter\Provisioning\Pam::disable(): pam service ssh' not enabled 7 more messages Admin_Module::add_site(): Opcenter\Provisioning\Pam::disable(): pam service ftp’ not enabled
Util_Process::formatDataCallProc(): AddDomain: INFO : no billing identifier specified for site, generated apnscp-ZEJSHKYI' INFO : no mysql database prefix specified - suggesting mipo_’
INFO : no bandwidth rollover date specified, using day of month, 12' INFO : allocated port range [40030,40039] for account ERROR : Opcenter\Service\Validators\Common\Enabled::update(): Exception raised on Opcenter\Service\Validators\Dns\Enabled’: Server error: GET http://localhost:8081/api/v1/servers/localhost/zones/mipodotcom` resulted in a 500 Internal Server Error response:
{“error”: "Could not retrieve Domain Info: GSQLBackend unable to retrieve information about domain ‘mipodotcom’: Could not (truncated…)

snip

Which version of PowerDNS? Did you change the PowerDNS server versions after installation? Possibly related to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267363 if 4.7.x.

how can i find out what version i have?

cpcmd scope:get dns.powerdns-version

It should also be logged to its output, journalctl -n 100 -u pdns.

version is 4.3, should upgrade to 4.7?

Shouldn’t be necessary. What does journalctl -n50 -u pdns report when it fails upon attempting to add the domain?

nothing :

[root@cpanel ~]# journalctl -n50 -u pdns
– Logs begin at Thu 2024-01-11 20:06:58 PST, end at Tue 2024-01-16 16:53:11 PST. –
– No entries –

# This is your API key
grep '^api-key=' /etc/pdns/pdns.conf | cut -d= -f2
curl -v -H 'X-API-Key: APIKEYABOVE' http://127.0.0.1:8081/api/v1/servers/localhost/zones/mipdotcom

That’ll give you the full error message, same command as the panel is issuing.