1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Migrating from Confixx 2.0 -> Plesk 7.5.2

Discussion in 'Plesk for Linux - 8.x and Older' started by gripsnet, Feb 8, 2005.

  1. gripsnet

    gripsnet Guest

    0
     
    Hi,

    looks like i can write to the forum now :)

    I'm trying to migrate lots of sites from an old server running confixx 2.0 to a new server running plesk 7.5.2. After trying a few times, I still get the same error:

    Code:
    Konnte keine Beschreibung für die zu migrierenden Objekte erzeugen:
    Error during dump retrieval
    Lost connection with the remote host"
    and in /usr/local/psa/PMM/var/migration.log appears this error:

    Code:
    [15:31:46 08.02.2005 | pid 13484]:1; readResponse|poll    |waiting 2 handles beginning from 0
    [15:31:46 08.02.2005 | pid 13484]:1; readResponse|poll    |2 handles have data
    [15:31:46 08.02.2005 | pid 13484]:1; readResponse|handle 0|(11) Hangup detected. Closing handle.
    [15:31:46 08.02.2005 | pid 13484]:1; readResponse|handle 1|(13) Hangup detected. Closing handle.
    [15:31:46 08.02.2005 | pid 13484]:1; readResponse|finish  |****************************************
    [15:31:46 08.02.2005 | pid 13484]:1: Closing connection
    [15:31:46 08.02.2005 | pid 13484]:1: destroying object.
    [15:31:46 08.02.2005 | pid 13484]:Launchpad | Finished (pid 13484)
    [15:31:50 08.02.2005 | pid 16537]:Launchpad | Started (pid 16537, uid 0, euid 0) | '/usr/local/psa/admin/bin/launchpad' '--remove-agent' '--ip=217.160.78.226' '--agent-name=ConfixxX.pl' '--login=root' '--agent-dir=migration/d9645f9436c1384a5dd40bbafe15822c'
    [15:31:50 08.02.2005 | pid 16539]:1: Executing command to remote host. Command: 'rm' '-rf'  'migration/d9645f9436c1384a5dd40bbafe15822c' 
    [15:31:50 08.02.2005 | pid 16539]:1: 'rm' '-rf'  'migration/d9645f9436c1384a5dd40bbafe15822c' 
    [15:31:50 08.02.2005 | pid 16539]:1 : creation process with pid 16540
    [15:31:50 08.02.2005 | pid 16539]:1: Reading response from remote host
    [15:31:50 08.02.2005 | pid 16539]:1; readResponse|started |****************************************
    [15:31:50 08.02.2005 | pid 16539]:1; readResponse|poll    |waiting 2 handles beginning from 0
    [15:31:50 08.02.2005 | pid 16573]:Deployer | Started (pid 16573, uid 0, euid 0) | '/usr/local/psa/admin/bin/deployer' '--get-platforms'
    [15:31:50 08.02.2005 | pid 16573]:Deployer | Finished (pid 16573)
    [15:31:53 08.02.2005 | pid 16539]:1; readResponse|poll    |2 handles have data
    [15:31:53 08.02.2005 | pid 16539]:1; readResponse|handle 0|(10) Hangup detected. Closing handle.
    [15:31:53 08.02.2005 | pid 16539]:1; readResponse|handle 1|(12) Hangup detected. Closing handle.
    [15:31:53 08.02.2005 | pid 16539]:1; readResponse|finish  |****************************************
    [15:31:53 08.02.2005 | pid 16539]:1: Closing connection
    [15:31:53 08.02.2005 | pid 16539]:1: destroying object.
    [15:31:53 08.02.2005 | pid 16539]:Launchpad | Finished (pid 16539)
    
    I don't have any idea why this happens, tried it a few times, everytime the same, so this is my last hope ;)

    Thanks a lot !

    cu
     
  2. gripsnet

    gripsnet Guest

    0
     
    Problem solved...

    Hi,

    I checked out the error and looked into the Perlscript of the Confixx-migration-client and changed the following:

    from:
    Code:
    
    sub encodeHtml {
      my(@ret,$src);
      if ($src=shift){
    #
    #
        if(ref $src){
    #
    #
          if(${$src}=~/[&"'><]/){
                    ${$src}=~s/&/&amp;/sg;
                    ${$src}=~s/>/&gt;/sg;
                    ${$src}=~s/</&lt;/sg;
                    ${$src}=~s/\'/'/sg;
                    ${$src}=~s/\"/&quot;/sg;
          }
          return ${$src};
        }else{
          if($src=~/[&"'><]/){
                    $src=~s/&/&amp;/sg;
                    $src=~s/>/&gt;/sg;
                    $src=~s/</&lt;/sg;
                    $src=~s/\'/'/sg;
                    $src=~s/\"/&quot;/sg;
          }
        }
      }
      return $src;
    }
    
    to:

    Code:
    
    sub encodeHtml {
      my(@ret,$src);
      if ($src=shift){
    #
    #
        if(ref($src) eq 'SCALAR') {
    #
    #
          if(${$src}=~/[&"'><]/){
                    ${$src}=~s/&/&amp;/sg;
                    ${$src}=~s/>/&gt;/sg;
                    ${$src}=~s/</&lt;/sg;
                    ${$src}=~s/\'/'/sg;
                    ${$src}=~s/\"/&quot;/sg;
          }
          return ${$src};
        }else{
          if($src=~/[&"'><]/){
                    $src=~s/&/&amp;/sg;
                    $src=~s/>/&gt;/sg;
                    $src=~s/</&lt;/sg;
                    $src=~s/\'/'/sg;
                    $src=~s/\"/&quot;/sg;
          }
        }
      }
      return $src;
    }
    
    This small change to the code solved the problem. Now the migration works fine :)

    cyas
     
  3. aachen

    aachen New Pleskian

    22
    20%
    Joined:
    Mar 20, 2006
    Messages:
    6
    Likes Received:
    0
    I managed to migrate ONE Domain with the manager... Every other one give the above error message ...

    Konnte keine Beschreibung für die zu migrierenden Objekte erzeugen:
    Error during dump retrieval
    Fatal migration error

    I also tried on "very easy" Domain Objects without any special conditions...

    No success ...

    Confixx-migration-client - where? "find" could not locate this...

    Plesk 7.5.4
    Confixx 3
     
  4. Hal9000

    Hal9000 Guest

    0
     
    dude, why dont you upgrade to plesk 7.5.4 first... there are several fixes made to the migration manager...
    hal
     
Loading...