PDA

View Full Version : Migrate server A to server B problem


Gimly
11th September 2007, 18:32
Hi ISPConfig team,

I have migrate server A to server B (Server B was installing with the perfect debian etch setup with ispconfig 2.2.16), but I have two problem :

1) My server can't receive e-mail, when I look /var/log/mail.log, I have this :

cronos:/var/log# tail -n20 /var/log/mail.log
Sep 11 17:15:34 cronos postfix/master[529]: warning: process /usr/lib/postfix/cleanup pid 858 exit status 1
Sep 11 17:15:34 cronos postfix/master[529]: warning: /usr/lib/postfix/cleanup: bad command startup -- throttling
Sep 11 17:15:34 cronos postfix/cleanup[859]: fatal: trace: remove EE85C10070 log: Permission denied
Sep 11 17:15:35 cronos postfix/pickup[532]: warning: premature end-of-input on public/cleanup socket while reading input attribute name
Sep 11 17:15:35 cronos postfix/master[529]: warning: process /usr/lib/postfix/cleanup pid 859 exit status 1
Sep 11 17:15:44 cronos postfix/smtpd[862]: connect from smtp27.orange.fr[80.12.242.94]
Sep 11 17:16:34 cronos postfix/cleanup[925]: fatal: trace: remove CAFDD10070 log: Permission denied
Sep 11 17:16:34 cronos postfix/cleanup[926]: fatal: trace: remove CCE9B10071 log: Permission denied
Sep 11 17:16:35 cronos postfix/master[529]: warning: process /usr/lib/postfix/cleanup pid 925 exit status 1
Sep 11 17:16:35 cronos postfix/master[529]: warning: /usr/lib/postfix/cleanup: bad command startup -- throttling
Sep 11 17:16:35 cronos postfix/pickup[532]: warning: premature end-of-input on public/cleanup socket while reading input attribute name
Sep 11 17:16:35 cronos postfix/master[529]: warning: process /usr/lib/postfix/cleanup pid 926 exit status 1
Sep 11 17:16:35 cronos postfix/smtpd[862]: warning: premature end-of-input on public/cleanup socket while reading input attribute name
Sep 11 17:16:35 cronos postfix/smtpd[862]: fatal: unable to connect to the public cleanup service
Sep 11 17:16:36 cronos postfix/master[529]: warning: process /usr/lib/postfix/smtpd pid 862 exit status 1
Sep 11 17:16:36 cronos postfix/master[529]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Sep 11 17:17:35 cronos postfix/cleanup[975]: fatal: trace: remove 163CB10070 log: Permission denied
Sep 11 17:17:36 cronos postfix/master[529]: warning: process /usr/lib/postfix/cleanup pid 975 exit status 1
Sep 11 17:17:36 cronos postfix/master[529]: warning: /usr/lib/postfix/cleanup: bad command startup -- throttling
Sep 11 17:17:36 cronos postfix/pickup[532]: warning: premature end-of-input on public/cleanup socket while reading input attribute name

2) I have problem for restart mysql :

cronos:/var/log# /etc/init.d/mysql restart
Stopping MySQL database server: mysqld failed!
Starting MySQL database server: mysqld already running.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
cronos:/var/log#

I've search on google with no result ... If you are an answer about this ?

Thank you for your help :)

Gimly
12th September 2007, 19:14
No answers ? :(

till
12th September 2007, 19:16
What exactly did you move to the new server? It looks as if you have overridden the mysql system tables and the /var/log directory.

Gimly
12th September 2007, 19:21
I have move all my folder and database server A to B, I used this script Total Desaster Recovery (http://www.howtoforge.com/forums/showthread.php?t=10039)

falko
12th September 2007, 21:19
I think it's better to do it this way: http://www.howtoforge.com/forums/showthread.php?t=2717&highlight=moving+ispconfig

Gimly
12th September 2007, 22:31
I reinstall postfix and move my backup of server A to B with your directive in the other post and now I have this error :

Sep 12 21:24:20 cronos postfix/cleanup[22751]: fatal: trace: remove 50B1710091 log: Permission denied
Sep 12 21:24:21 cronos postfix/pickup[21549]: warning: premature end-of-input on public/cleanup socket while reading input attribute name
Sep 12 21:24:21 cronos postfix/master[21547]: warning: process /usr/lib/postfix/cleanup pid 22751 exit status 1
Sep 12 21:24:21 cronos postfix/master[21547]: warning: /usr/lib/postfix/cleanup: bad command startup -- throttling
Sep 12 21:24:21 cronos postfix/cleanup[22752]: fatal: trace: remove 53CAA10091 log: Permission denied
Sep 12 21:24:22 cronos postfix/pickup[21549]: warning: premature end-of-input on public/cleanup socket while reading input attribute name
Sep 12 21:24:22 cronos postfix/master[21547]: warning: process /usr/lib/postfix/cleanup pid 22752 exit status 1
Sep 12 21:25:01 cronos postfix/anvil[22681]: statistics: max connection rate 1/60s for (smtp:80.12.242.97) at Sep 12 21:23:15
Sep 12 21:25:01 cronos postfix/anvil[22681]: statistics: max connection count 1 for (smtp:80.12.242.97) at Sep 12 21:23:15
Sep 12 21:25:01 cronos postfix/anvil[22681]: statistics: max cache size 1 at Sep 12 21:23:15
Sep 12 21:25:21 cronos postfix/cleanup[22823]: fatal: trace: remove 8BD7710091 log: Permission denied
Sep 12 21:25:22 cronos postfix/pickup[21549]: warning: premature end-of-input on public/cleanup socket while reading input attribute name
Sep 12 21:25:22 cronos postfix/master[21547]: warning: process /usr/lib/postfix/cleanup pid 22823 exit status 1

I've search on postfix website, but no answer ... :(
I think, i will send e-mail on mailing list support postfix.
Or if you have an other idea ... thank you :)

falko
13th September 2007, 19:18
What's in your /etc/postfix/main.cf?

Gimly
13th September 2007, 22:22
There are :

cronos:/home/romain# cat /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = cronos.<my domain>.org
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = cronos.<my domain>.org, localhost.<my domain>.org, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
cronos:/home/romain#


Thank you :)

falko
14th September 2007, 19:09
Looks good.

It seems to be some permission problem. Have you tried to reboot the system?

Gimly
16th September 2007, 20:13
No, :o

Ok reboot it and I test. :o :o

Gimly
17th September 2007, 19:48
The problem persist ... I think I send e-mail to postfix support.

Gimly
20th September 2007, 13:17
Hi all,

I think the problem become to MX records, because when I test with this website : http://www.mxtoolbox.com/ with the domain www.espace4you.org, the website doesn't found the mx record.

This is my configuration for the domain :

http://img261.imageshack.us/img261/8499/domain1ys4.th.jpg (http://img261.imageshack.us/my.php?image=domain1ys4.jpg)

http://img256.imageshack.us/img256/1977/mxpa1.th.jpg (http://img256.imageshack.us/my.php?image=mxpa1.jpg)

Can you correct me about it if it's false ?

Thank you for your help :)

falko
21st September 2007, 18:48
This is what I'm getting now:

mh1:~# dig mx espace4you.org

; <<>> DiG 9.2.1 <<>> mx espace4you.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27619
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;espace4you.org. IN MX

;; ANSWER SECTION:
espace4you.org. 86400 IN MX 10 cronos.espace4you.org.

;; ADDITIONAL SECTION:
cronos.espace4you.org. 86400 IN A 91.121.78.119

;; Query time: 132 msec
;; SERVER: 213.191.92.84#53(213.191.92.84)
;; WHEN: Fri Sep 21 17:45:49 2007
;; MSG SIZE rcvd: 71

mh1:~#

Looks ok.

Gimly
24th September 2007, 23:33
After more and more research on google, I've found the solution :

chmod -R 755 /var/spool/postfix

then this command, for php can send e-mail

chmod 1733 /var/spool/postfix/maildrop

and it work very fine :D

But if anyone have a solution for this problem :

cronos:/var/log# invoke-rc.d mysql restart
Stopping MySQL database server: mysqld failed!
Starting MySQL database server: mysqld already running.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'


Thank you :)

2ndmouse
28th September 2007, 21:14
After more and more research on google, I've found the solution :



then this command, for php can send e-mail



and it work very fine :D

But if anyone have a solution for this problem :




Thank you :)

Check your mysql db - for debian maint with no rights - delete it

Gimly
1st October 2007, 22:14
Ok thank you :)

tester321
16th December 2010, 13:12
Thank you. This tip and some additional googling (http://www.widwad.com/content/solved-postfix-stopped-routing-email-after-migrating-from-one-server-to-another-how-i-did-it?piwik_campaign=howtoforge&piwik_kwd=migrate,server,A,to,server,B) helped me figure it out.

FWIW, the key error I was getting in /var/log/mail.err was:

Dec 16 06:04:08 servernamel postfix/cleanup[54941]: fatal: trace: remove 6A65B3DE8523 log: Permission denied
Dec 16 06:04:10 servernamel postfix/cleanup[59084]: fatal: trace: remove 6D8923DE8523 log: Permission denied
Dec 16 06:05:02 servernamel postfix/qmgr[40153]: fatal: scan_dir_push: open directory deferred/1: Permission denied
Dec 16 06:05:10 servernamel postfix/cleanup[54693]: fatal: trace: remove 7508E3DE8523 log: Permission denied

After more and more research on google, I've found the solution :



then this command, for php can send e-mail



and it work very fine :D

But if anyone have a solution for this problem :




Thank you :)