Current time: 11-26-2024, 09:10 AM Hello There, Guest! (LoginRegister)


Post Reply 
Domain Error... How to fix
Author Message
calguy1000 Offline


Posts: 3
Joined: Jul 2011
Reputation: 0
Post: #1
Domain Error... How to fix
Here's the story.

I have a VPS running ubuntu 8.0.4 LTS (of which I have root access). Originally this server was running ISPCP 1.0.0 but we recently upgraded it to ISPCP 1.0.7 due to load problems and the desire to migrate domains off of this server onto another ISPCP 1.0.7 server.

I am managing about 30 domains on this server.

The Server:
An Ubuntu 8.04 LTS install slightly modified:
- eAccelerator installed
- upgraded php files from dotdeb

The Upgrade Process
To say the least, it was painful. Even though the instructions I found on the ispcp wiki for upgrading an ubuntu server seem to be largely correct.

Because Ubuntu 8.0.4 comes with Perl 5.8 instead of Perl 5.10 I installed ActiveState perl 5.12 and a whole bunch of packages from cpan. including the berkely db, which I had to find an appropriate version of, and compile from scratch. Also the upgrade process removed our wildcard dns entries, and a few other customizations to the various configs that were easily restored. I think it was finally working properly.

Now to begin the migration process I used the backup-restore tools that are found in the contrib folder of the source package to test the migration of one domain, and the backup seemed to work.... HOWEVER the domain that I 'backed up' now has an 'error' on this server that I cannot resolve.

[u]The symptoms:[/u]
- The domain is no longer present in /etc/bind/named.conf though the file is present in /etc/bind/<domain>.db
- The web files are still present in /var/www/virtual/<domain>
- The domain is no longer present in /etc/postfix/ispcp/domains
- I receive an error when viewing this domain in the ISPCP web gui:
sys_command() | [ERROR] External command '/usr/sbin/postmap /etc/postfix/ispcp/domains' exited with value -1 ! (this line is present in the status field of the domains table of the ispcp database)
- The status of the domain is error, and clicking on it only displays the details page.
- I do not see any valid information in the ispcp log files (most of the files are empty infact)

The Question is:
- How do I restore this domain to working order (as I have not yet migrated it to another server).

Any help would be very appreciated.

Thanks in advance.
07-08-2011 12:32 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Domain Error... How to fix
Hi

execute the command manualy:

/usr/sbin/postmap /etc/postfix/ispcp/domains

and see what's the problem, solve the problem, set the status flag of the domain to change (or toadd) and rerun the request manager...

/J
07-09-2011 01:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
calguy1000 Offline


Posts: 3
Joined: Jul 2011
Reputation: 0
Post: #3
RE: Domain Error... How to fix
Once I manually add the domain back in to that file it succeeds. but does not resolve the error in the database or restore the dns files.
Is there a way to do that?

(07-09-2011 01:31 AM)joximu Wrote:  Hi

execute the command manualy:

/usr/sbin/postmap /etc/postfix/ispcp/domains

and see what's the problem, solve the problem, set the status flag of the domain to change (or toadd) and rerun the request manager...

/J
07-09-2011 06:32 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Domain Error... How to fix
either goto the debugger page in adminpanel (as admin) and reset the status field - or do this manually (status -> "toadd" or "change" instead of the error message)...
Then rerun the request manager.

/J
07-09-2011 07:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
calguy1000 Offline


Posts: 3
Joined: Jul 2011
Reputation: 0
Post: #5
RE: Domain Error... How to fix
The debugger page in admin panel seems to have done it.

Thanks very much.

(07-09-2011 07:50 AM)joximu Wrote:  either goto the debugger page in adminpanel (as admin) and reset the status field - or do this manually (status -> "toadd" or "change" instead of the error message)...
Then rerun the request manager.

/J
07-09-2011 08:51 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)