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

Migration from local files problem (10.4.4)

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by phlampe, Feb 24, 2012.

  1. phlampe

    phlampe New Pleskian

    22
    73%
    Joined:
    Jun 23, 2008
    Messages:
    17
    Likes Received:
    0
    Hello All !

    I've been trying to do a "migration" from local files without success after many many tries, and I really need some help here... My idea is to send automatically a dump of my source Plesk server to my destination server, and have it ready to be imported in case the source server fails (and if I could import it automatically, that would be great).

    But the import fails for reasons I don't understand.

    ---------------------------------------------------------------
    PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
    Source server: Plesk Panel 10.4.4, CentOS 5.5, Dual Core
    Destination server: Plesk Panel 10.4.4, Ubuntu 10.04 LTS, Dual Core

    PROBLEM DESCRIPTION AND STEPS TO REPRODUCE
    1. on the source server, I have a script that generates a dump and then sends it with wput to the destination server
    2. the script uses the following command to generate the dump files:
    ./PleskX.pl --dump-all
    I also tried "./PleskX.pl --dump-all --server --admin-info" and "./PleskX.pl --dump-all --split-size=1073741824 --server --admin-info", but it didn't get better (only more duplicate or conflicts errors at step 9)
    3. all the dump files (xml and tgz) are sent by ftp using wput to the destination server
    4. both the source and target directories are purged before every try
    5. I also remove any existing clients from the destination server, to start clean
    6. I start the migration with the "Transfer data already processed by the migration agent and located on the local host" option and the full path to the dump.xml file (this might helps others: be sure to give to full file name and not only the directory location of the dump.xml file: for example "/vda/backups/magnolia/PleskX/dump.xml" )

    ACTUAL RESULT
    7. first unexpected result: I get some conflicts errors on the next step, about some objects already existing, even when everything was deleted at step 5: (I removed the actual email addresses, and left only one of each kind)

    abc@mail.net of Panel administrator
    Cannot restore User: User 'abc@mail.net' already exists in the Panel.
    admin of Panel administrator
    Cannot restore User: User 'admin' already exists in the Panel.
    Mail User of Panel administrator
    Cannot restore Role: Role 'Mail User' already exists in the Panel.
    Application User of Panel administrator
    Cannot restore Role: Role 'Application User' already exists in the Panel.
    WebMaster of Panel administrator
    Cannot restore Role: Role 'WebMaster' already exists in the Panel.

    8. I use the option: "Use configuration and data from backup" to resolve conflicts

    9. the import then runs, and I get errors in the log. Out of 18 domains, 17 are imported, 1 never gets imported (I removed the actual IP address)

    ERROR: (client object 'formitel') Failed deployment of domain formitel.net

    ERROR: () Execution of /opt/psa/admin/plib/api-cli/domain.php --create formitel.net -owner formitel -do-not-apply-skeleton -notify false -guid a23f0a40-ad35-4af2-ae8d-20ef24fd6bb1 -vendor-guid 0be16646-df50-46dc-9a38-f32a77d87ff3 -creation-date 2007-12-28 -ip 1.2.3.4 -ignore-nonexistent-options failed with return code 1.
    Stderr is
    An error occurred during domain creation: Domain with name "formitel.net" already exists

    10. And another inconsistency: when I check the customers list (Hosting Services -> customers), I find all 7 customers and 17 domains listed, but when I check the Hosting Services -> Domains list, it's all empty


    EXPECTED RESULT
    An identical Plesk installation (customers, clients, …) to my source server


    ANY ADDITIONAL INFORMATION
    When I migrate by connecting directly to the source server, everything works fine.
    A possible source for the failed deployment would be an incomplete removal of the "formitel.net" domain: what else can I do to completely purge my destination server ?
    --------------------------------------------------------------

    Thanks for your help,
    Paul-Henri
     
  2. phlampe

    phlampe New Pleskian

    22
    73%
    Joined:
    Jun 23, 2008
    Messages:
    17
    Likes Received:
    0
    I ran some tests, by reimporting everything directly from the server and not from local files.

    I don't get the conflicts errors (step 7 above), but I still get a failed migration for domain formitel.net. It means that that problem isn't related to the local files, but more to some kind of incomplete domain or customer clean-up when I remove them before import. It could be that the conflicts are also related to that bad clean-up, but some of the user mails it complains about don't belong to the formitel.net domain.

    Any idea how to really clean the Plesk installation (unless it means reinstalling everything ?)

    Paul-Henri
     
Loading...