1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

migrating from cpanel to plesk 11 show an error 1

Discussion in 'Plesk 11.x for Linux' started by h.a.d.i, Nov 5, 2012.

  1. h.a.d.i

    h.a.d.i New Pleskian

    10
     
    Joined:
    Nov 5, 2012
    Messages:
    3
    Likes Received:
    0
    hi
    i`v installed plesk on amazon ec2
    i`m trying to migrate accounts from cpanel to plesk 11 but migration manager show an error with exit code 2

    this is the full pmmcli.log in the attachemnt

    in the log every thing seams going okay but here what generate the exception

    <?xml version="1.0" encoding="UTF-8"?>
    <response>
    <errcode>0</errcode>
    <data>
    <scout-result migration-session-id="2012110503101796">
    <detected-panel name="cPanel 11.32" agent="cPanel9"></detected-panel>
    <os-info loadavg="0.01 0.02 0.00" os="CentOS release 5.5 (Final) i686">
    <package-installed version="5.1" name="mysql">

    </package-installed>
    <package-installed version="8.3.3" name="postgresql">

    </package-installed>
    <package-installed version="2.2.22" name="apache">

    </package-installed>
    <package-installed version="" name="sendmail">

    </package-installed>
    <package-installed version="3.0.6" name="rsync">

    </package-installed>
    </os-info>
    <remote-fs>
    <fs free="675083214848" mode="rw" device="/dev/sda3" mountpoint="/" type="ext3" size="982249517056"></fs>
    <fs free="107424768" mode="rw" device="/dev/sda1" mountpoint="/boot" type="ext2" size="135378944"></fs>
    </remote-fs>
    </scout-result>
    </data>
    </response>

    21298: 2012-11-05 03:10:18,224 DEBUG --> <pmmcli.MigrationGetObjectsListAction object at 0x183a0d0>
    21298: 2012-11-05 03:10:18,224 INFO parameters: ['2012110503101796']
    21298: 2012-11-05 03:10:18,224 INFO stdin: <agent-to-use>cPanel9</agent-to-use>
    21298: 2012-11-05 03:10:18,228 INFO Packet succesfully validated.
    21298: 2012-11-05 03:10:18,229 DEBUG <pmmcli.ActionRunner object at 0x183a090>: doActivity
    21298: 2012-11-05 03:10:18,327 INFO Executing <subprocess[21299] '/usr/local/psa/admin/bin/migration-handler --migration-get-objects-list 2012110503101796'>
    21298: 2012-11-05 03:10:36,876 INFO Subprocess raised ExecuteException: Subprocess <subprocess[21299] '/usr/local/psa/admin/bin/migration-handler --migration-get-objects-list 2012110503101796'> was finished with exit code 1
    == STDOUT ====================
    <?xml version="1.0" encoding="UTF-8"?>
    <response>
    <errcode>1001</errcode>
    <errmsg>Runtime error in migration handler:
    &lt;class 'subproc.NonzeroExitException'&gt; was finished with exit code 2
    Traceback (most recent call last):
    File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 1682, in main
    data_action_response, errcode_response, error_message = actions.get(sys.argv[1][2:])(parameters)
    File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 1481, in migration_get_objects_list
    return MigrationHandlerActionRunner(MigrationGetObjectsListAction, agent_to_use, migration_session_id).doActivity()
    File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 100, in doActivity
    result = self.processor.doActivity()
    File "/usr/local/psa/admin/share/migration-handler/migration_handler.py", line 344, in doActivity
    objects_list_object = service.getObjectsList(self.__agent_to_use, agent_dir)
    File "/usr/local/psa/admin/share/migration-handler/pmm_migr_remote_service_impl.py", line 110, in getObjectsList
    self.runCmdLine(cmd)
    File "/usr/local/psa/admin/share/migration-handler/pmm_migr_remote_service.py", line 55, in runCmdLine
    self.session.runWorker(cmd)
    File "/usr/local/psa/admin/share/migration-handler/migration_handler_session.py", line 322, in runWorker
    cmd.spawn()
    File "/usr/local/psa/admin/lib/python/subproc.py", line 246, in spawn
    self.proc.run()
    File "/usr/local/psa/admin/lib/python/subproc.py", line 191, in run
    BaseSubprocess.run(self)
    File "/usr/local/psa/admin/lib/python/subproc.py", line 169, in run
    self.wait()
    File "/usr/local/psa/admin/lib/python/subproc.py", line 199, in wait
    BaseSubprocess.wait(self)
    File "/usr/local/psa/admin/lib/python/subproc.py", line 179, in wait
    raise NonzeroExitException(self, self.__retcode)
    NonzeroExitException: was finished with exit code 2
    </errmsg>
    </response>
     

    Attached Files:

  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
  3. h.a.d.i

    h.a.d.i New Pleskian

    10
     
    Joined:
    Nov 5, 2012
    Messages:
    3
    Likes Received:
    0
    thank you for your reply
    i read the article but as if it was talking about migration from plesk to plesk servers
    because e it was talking about plesX.pl migration script in both servers

    pleas correct me if i`m wrong

    thank you in advanced
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
    I hope that you use root account for performing this migration?
     
  5. h.a.d.i

    h.a.d.i New Pleskian

    10
     
    Joined:
    Nov 5, 2012
    Messages:
    3
    Likes Received:
    0
    hello
    yes of course i`m using root access but i got this exception in the attachment above

    could you pleas add some explanation about migration from none plesk control panel (cpanel in this case ) to plesk
    using command line maybe it will solve the issue

    thank you for your help
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,244
    Location:
    Novosibirsk, Russia
  7. aashua

    aashua Guest

    0
     
Loading...