Account restore refuses to create (sub)domain that is in the backup

Invader Zim

Verified User
Joined
Sep 4, 2004
Messages
177
I migrated an acocunt to another server. I created a reseller-level backup of the account, removed the user on the original server, moved the backup to the new server and restored it, as I have done many many many times already. However, this time on the restore I got the following message (obviously the domainnames have been obfuscated):

Domain fakeplaceholder.test CreatedDomain Created Successfully

Error Creating Domain staging.fakeplaceholder.test : The domain fakeplaceholder.test does not belong to you. The subdomain will not be created.

Unable to read /etc/virtual/staging.fakeplaceholder.test/passwd Unable to open /etc/virtual/staging.fakeplaceholder.test/passwd for reading.
No such file or directory

Catch all is now set to :fail:
Catch all is now set to :fail:
Catch all is now set to :fail:
Catch all is now set to :fail:
Catch all is now set to :fail:
Catch all is now set to :fail:

Unable to read main db file for staging.fakeplaceholder.test : Can't open file /var/named/staging.fakeplaceholder.test.db for reading

Merge DB File issue, restoring to 1.2.3.4: (restore to ip)



Whenever I try to add the domain manually I get the message "the domain already exists", but it does not. Not on the new server, not on the original server, not on the nameservers (running directslave). I can't find a reference to this domain anywhere other then in the logs where it says

2020:07:30-08:34:42: Named::readDB (Named::merge_db_file: real): Can't open /var/named/staging.fakeplaceholder.test.db for reading
dnssec-signzone: fatal: 'staging.fakeplaceholder.test': found DS RRset without NS RRset
Error Creating Domain staging.fakeplaceholder.test : The domain fakeplaceholder.test does not belong to you. The subdomain will not be created.<br>
Unable to read /etc/virtual/staging.fakeplaceholder.test/passwd Unable to open /etc/virtual/staging.fakeplaceholder.test/passwd for reading.<br>
Unable to read main db file for staging.fakeplaceholder.test : Can't open file /var/named/staging.fakeplaceholder.test.db for reading<br>


in errortaskq.log

and

2020:07:30-08:34:32: The reseller admin tried to create user fake with domain staging.fakeplaceholder.test, but fakeplaceholder.test belongs to someone else

in security.log.

And I tried the linked knowlegdebase article, but that had the exact same effect.
 
After running DA in debug mode I found that the restore had, in fact, created /etc/virtual/staging.fakeplaceholder.test. So I removed that and now I can readd the domain.
 
Back
Top