Article ID: 127063, created on Oct 1, 2015, last review on Sep 23, 2016

  • Applies to:
  • Operations Automation 6.0
  • Operations Automation 5.5
  • Business Automation 6.0


Failed task: Update PowerDns server failed as following:

Operation with storage caused error: 'domain.tld.(): Operation with storage caused error: 'Domain not found'


Possible causes:

  • PowerDNS database inconsistency.
  • Subscription is disabled.


You can use either of the following solutions:

  1. Use the following KB article to manually insert the missing domain in the PowerDNS database.
  2. Sync the domains between name servers using the API call pem.syncNameServers.xml:

Get the domain hosting details using the following SQL query:

# psql -U plesk -h -t -c "SELECT name FROM domains WHERE domain_id IN (SELECT domain_id FROM domain_hosting_bindings WHERE dhtype = 'NS Hosting');" > /path/to/domains.list

Make sure that count matches:

# wc -l domains.list
# psql -U plesk -h -c "SELECT count(name) FROM domains WHERE domain_id IN (SELECT domain_id FROM domain_hosting_bindings WHERE dhtype = 'NS Hosting');

Create the API XML file and sync the domains across name servers as following:

# cat /path/to/pem.syncNameServers.xml
<?xml version="1.0"?>

Run the following script on the management node to propagate all domains to all nameservers.

# Script to Transfer Existing Zone files to Newly Deployed Name Servers

# Get the list of domains hosted in OA
psql -U plesk -d plesk -h OA_DATABASE_HOST_IP -t -c "SELECT name FROM domains" > domains.list

# Filter Spaces and Unwanted strings
egrep -v "[0-9]*rows|^$" domains.list > domain_final.list

# Sync the zone files to newly deployed name servers.
for i in `cat domain_final.list`
  cp -av pem.syncNameServers.xml pem.syncNameServers_act.xml;
        sed -i 's/DOMAIN_NAME/'$i'/' pem.syncNameServers_act.xml;
        curl -d@pem.syncNameServers_act.xml http://localhost:8440/RPC2 >> /var/log/pem_syncNameServers.log 2>> /var/log/pem_syncNameServers_error.log;
        rm -vf pem.syncNameServers_act.xml;
        sleep 10;

Please note that because of significant number of domains script execution can cause serious resource consumption on the management node. Check current load level with generic Linux utilities (#top #free -m and so on) prior to executing script. If it is significantly loaded - increase sleep parameter in the script up to 60. Every API call will be executed with 60 seconds interval in this case, it will help to avoid system overload, but require more time for script execution.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0 5b048d9bddf8048a00aba7e0bdadef37 2554725ed606193dd9bbce21365bed4e 198398b282069eaf2d94a6af87dcb3ff 3627d36199b8ff577605df76e2fa222b bb7e9177fb03488961a3ea554120f328

Email subscription for changes to this article
Save as PDF