#1  
Old 10th January 2012, 18:06
mashton mashton is offline
Junior Member
 
Join Date: Jan 2012
Location: Toronto
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mashton
Exclamation recovering from backup, issues

I had a server crash, but had backups.

I've built a new ispconfig2 server ( since that was what old machine was ) and needed to get up and running fast.

So far installed centos, and completed the perfect server install for ispconfig2.

I then imported all the databases ( except, mysql & information schema) , updated the data in the db_ispconfig to point to new IP, and updated DNS servers to point to new IP.

I have also, populated the /var/www tree with a complete backup of the other servers /var/www tree.

I have some issues. One inbound email appears to not be being delivered to the email accounts but there is nothing in the postfix mail queue. The other is none of the websites are loading, and I am just getting the default ispconfig home page.

Any ideas ?

Mike
Reply With Quote
Sponsored Links
  #2  
Old 10th January 2012, 22:41
mashton mashton is offline
Junior Member
 
Join Date: Jan 2012
Location: Toronto
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mashton
Cool update

Just an update.

I've added forwards to a few of the email accounts to the users gmail accounts and they are getting their forwarded email there, but still no delivery.

Now in the postfix log, have this error:
postfix/trivial-rewrite[6784]: fatal: file /etc/postfix/main.cf: parameter default_privs: unknown user name value: nobody

but if I run:
/usr/bin/id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody)

so nobody exists.

Also getting this error:
postfix/master[18330]: warning: process /usr/libexec/postfix/trivial-rewrite pid 6784 exit status 1
postfix/master[18330]: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling

No idea on the websites not working. Vhosts_ispconfig.conf seems to be properly configured and all sites point to the right directory:
DocumentRoot /var/www/web138/web
and the directories are owned by the account admin.

Any pointers would be appreciated.

Mike
Reply With Quote
  #3  
Old 10th January 2012, 22:43
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,460
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
Default

Vae you migrated all website users and groups from the /etc/passwd, /etc/shadow, /etc/gshadow and /etc/group files from the old server to the new server?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 10th January 2012, 23:08
mashton mashton is offline
Junior Member
 
Join Date: Jan 2012
Location: Toronto
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mashton
Default

Yes I copied group, passwd, gshadow & shadow.

I also copied Vhosts_ispconfig.conf , but edited the IP address to the new machines IP.

Also copied proftpd.conf, and in postfix I copied virtusertable & local-host-names.

When users that have had their passwords reset logged in they got their old emails from the recovery, but no new emails. I can see them in the maillog coming in, and being forwarded to gmail for the few that have that set up, but nothing is getting delivered.

I used
http://cosmos.rete.us/dokuwiki/ispconfig2/moving-server as my basis, and a few other threads here to do the copy/move.

I also altered /home/admispconfig/ispconfig/tools/clamav/bin/clamassassin to use clamdscan instead of clamscan due to load ( we receive about 100,000 emails a day ).
Reply With Quote
  #5  
Old 10th January 2012, 23:14
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,460
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
Default

Quote:
Yes I copied group, passwd, gshadow & shadow.
Did you copy only the relevant lines of the ispconfig users and groups or the whole files? Copying the whole files can mess up the systm as the users and groups of the daemons and users like nobody can have different ID's on the old and new server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 10th January 2012, 23:18
mashton mashton is offline
Junior Member
 
Join Date: Jan 2012
Location: Toronto
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mashton
Default

I straight copied.

ugh so do I have to figure out the underlying ID's to correct?
Reply With Quote
  #7  
Old 10th January 2012, 23:20
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,460
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
Default

If you have a backup of the original files of the new server, I would restore them. And then copy only the lines for ispconfig mailbox users and ispconfig groups to the files on the new system. I guess you should be able to regognize them with their prefix if you use one on your server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 10th January 2012, 23:30
mashton mashton is offline
Junior Member
 
Join Date: Jan 2012
Location: Toronto
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mashton
Default

Unfortunately I don't have them, stupid me did not create .bak files like I usually do.

Now I have run /usr/sbin/pwck & /usr/sbin/grpck to repair the files, then restarted ispconfig but still no joy.
Reply With Quote
  #9  
Old 10th January 2012, 23:35
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,460
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
Default

I fearthat these commands repair only the syntax of the files, they can not detect if a userid is correct for a given service.

Did you follow one of the perfect setup guides or a similar tutorial that can be redone so that you are able to replicate the exact same base setup? Then it might be an option to redo the setup in a vm (e.g. vmware or virtualbox) by doing the installation steps in the exact same order, this should result in passwd and group files with the same IDs which you might use for your current setup as basis.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 11th January 2012, 00:25
mashton mashton is offline
Junior Member
 
Join Date: Jan 2012
Location: Toronto
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mashton
 
Default

That's a thought. But Falko jumped on the server and it turned out that due the machine being behind a firewall and it having external and internal IP's .

Once he altered conf for internal IP everything has started working.

Mike
Reply With Quote
Reply

Bookmarks

Tags
ispconfig 2, move servers, recovery

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup issues with ISPConfig 2.2.37 dimas General 2 25th August 2010 19:36
Online Backup : What do you use and how do you setup it ? XZed Technical 5 4th January 2010 18:02
Looking for an automatic backup for ISPConfig unsichtbare Installation/Configuration 1 2nd May 2008 14:33
Setting up a backup mail server setup with two installations of ISPConfig zitch Tips/Tricks/Mods 7 30th December 2006 10:07


All times are GMT +2. The time now is 12:11.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.