View Full Version : Problems after trying to migrate ispconfig
blackflag
23rd May 2006, 19:28
Hello all,
I tried to migrate ispconfig 2.22 from an old machine to a new machine with ispconfig 2.2.3. all on debian 3.1.
First I did a backup of /var/www/ with tar and copy it to new machine
But this dont goes some files are now *.gz, so some websites not running and I dont get mails. My Mailclient is not able to connect courier-imap. I restarted daemons and did an nmap and it seems all is running well. But the mail client tells me that it is unable to connect. I had a log in Maildir/cur and I see that all files are *.gz and user and owner is root.
going to old machine same errors appear, now I dont have a running /www directory
When I look to syslog I see only this error:
"imapd-ssl: chdir "/var/www/web1": No such file or directory"
It seems that I did something wrong.
So, what is happened ?
How can I correct this?
What is a correct way to migrate ispconfig?
Can someone help?
tia
stefan
falko
23rd May 2006, 19:45
Hello all,
I tried to migrate ispconfig 2.22 from an old machine to a new machine with ispconfig 2.2.3. all on debian 3.1.
First I did a backup of /var/www/ with tar and copy it to new machine
But this dont goes some files are now *.gz, so some websites not running and I dont get mails. My Mailclient is not able to connect courier-imap. I restarted daemons and did an nmap and it seems all is running well. But the mail client tells me that it is unable to connect. I had a log in Maildir/cur and I see that all files are *.gz and user and owner is root.
going to old machine same errors appear, now I dont have a running /www directory
When I look to syslog I see only this error:
"imapd-ssl: chdir "/var/www/web1": No such file or directory"
It seems that I did something wrong.
So, what is happened ?
How can I correct this?
What exactly did you do? Which commands did you run to migrate ISPConfig?
What is a correct way to migrate ispconfig?
Have a look here: http://www.howtoforge.com/forums/showthread.php?t=2717&highlight=move+ispconfig
blackflag
23rd May 2006, 20:06
What exactly did you do? Which commands did you run to migrate ISPConfig?
cant remeber it exactly
First I did a backup via ispconfig. Then I thought I need the www directory so I play with tar creating www.tar. I think something I did wrong at this point cause all !!! Files under www now are compressed and have the extension .gz
I realy dont know what I did, but this breakes my whole ispconfig websites and mails and Im unable to connect to courier.
Now I have to repair first and then trying to migrate!
How can I role back the www.tar to original? I tried a lot but I dont get it :confused:
tia
stefan
falko
23rd May 2006, 20:20
How can I role back the www.tar to original? I tried a lot but I dont get it :confused:
You can try
tar xvfz www.tar
or
tar xvf www.tar
blackflag
23rd May 2006, 21:14
tar xvfz www.tar
tells me that is not a gzip
tar xvf www.tar
goes but I have, how I discribeed, all files as .gz.
I have acces to server but the mails are not displayed also the websites. Cause all mails are in gz. and index html is now index.html.gz
The problem is that I have some webs in ispconfig.
The question is how can I uncompress all .gz 's in the webs? I dont can do it by hand for hundrets of files. I'm not able to find away to uncompress all files in all subdirectories.
Is there a way?
Can someone help?
tia
The question is how can I uncompress all .gz 's in the webs? I dont can do it by hand for hundrets of files. I'm not able to find away to uncompress all files in all subdirectories.
Is there a way?
If the files are in the same directory, you can try to use the "*" as wildcard like:
tar xvfz *.tar.gz
unpacks all tar.gz files in this directory. If you have a deeper directory structure, you might have to write a script that traverses the directory and unpacks all .gz files it finds.
blackflag
24th May 2006, 13:09
If the files are in the same directory, you can try to use the "*" as wildcard like:
tar xvfz *.tar.gz
okay , I know that and did it but Im not fimiliar with scripting.
Now I have acces to the courier server but I have courios things there. The mails are not shown On client site it seems there are mails but there are empty. and the client says empty supsect, empty sender, empty date mail body also empty.
What can I do to see the mails correct?
tia
stefan
falko
24th May 2006, 13:36
Try to disable "Mailscan" for all your email accounts in ISPConfig.
blackflag
24th May 2006, 19:09
okay I disable Mailscan but its helping to solve the problem. Mails are not shown only, how I said, with emty subject, sender date and body.
Dont know whats going on.
What else can I try?
tia
stefan
falko
24th May 2006, 19:38
What's in your mail log?
blackflag
24th May 2006, 20:23
What's in your mail log?
I see no errors!
falko
25th May 2006, 16:01
Can you post a little excerpt here?
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.