Problems after trying to migrate ispconfig

Discussion in 'Installation/Configuration' started by blackflag, May 23, 2006.

  1. blackflag

    blackflag New Member

    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
     
  2. falko

    falko Super Moderator

    What exactly did you do? Which commands did you run to migrate ISPConfig?

    Have a look here: http://www.howtoforge.com/forums/showthread.php?t=2717&highlight=move ispconfig
     
  3. blackflag

    blackflag New Member

    Code:
    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
     
  4. falko

    falko Super Moderator

    You can try
    Code:
    tar xvfz www.tar
    or
    Code:
    tar xvf www.tar
     
  5. blackflag

    blackflag New Member

    Code:
    tar xvfz www.tar
    tells me that is not a gzip

    Code:
    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
     
  6. till

    till Super Moderator

    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.
     
  7. blackflag

    blackflag New Member

    Code:
    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
     
  8. falko

    falko Super Moderator

    Try to disable "Mailscan" for all your email accounts in ISPConfig.
     
  9. blackflag

    blackflag New Member

    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
     
  10. falko

    falko Super Moderator

    What's in your mail log?
     
  11. blackflag

    blackflag New Member

    Code:
    What's in your mail log?
    I see no errors!
     
  12. falko

    falko Super Moderator

    Can you post a little excerpt here?
     

Share This Page