PDA

View Full Version : Import from Plesk


adamluz
12-17-2010, 01:23 AM
How do I import from plesk. It talks about some xml file? Where do I find this on plesk? What is it called?

Does it import e-mail, web files, and all that or just users?

I am on ISP Manager Pro and we need to transfer everything from our plesk server over. I've tried to find documentation on this but there is very little.

vian
12-17-2010, 03:56 AM
It's possible by using our migration tool. You can find it under "Import user" section in main menu.

krisj
01-12-2011, 05:25 PM
OK, I just managed to import my first user...

I had to delete a certain folder (/dev/null) from the vhost tarball before it let me import (it was coming up with an error: "Failed to unpack domain's archive: /bin/tar: dev/null: Cannot mknod: Operation not permitted") and then there was another error.

It looks like the emails got important properly as well as DB, domain and FTP users.

However the "www domain" was not created automatically and the domain directory contains plesk file structure instead of what is standard for isp manager.

So the question is - is this by design?
Do I just manually change the main directory structure and create/map the www domain to the correct folder?

many thanks,
Kris

vian
01-12-2011, 05:42 PM
Please provide us with log

krisj
01-12-2011, 06:18 PM
domain changed to a generic name.... but this is what it looks like...


Jan 12 14:47:21 [ 0] [[1;32mINFO Lookup log level for '/usr/local/ispmgr/var/UserMove.log' in 'etc/UserMove.debug'[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO sbin/usermove root [[0m
Jan 12 14:47:21 [30771] [[1;32mINFO [Starting] moving: 2011-01-12 14:47:21[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO User: root, type: 7[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO Fetching information from file name...[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO Archiver: tgz[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO Storage: local[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO Storage path: /root/[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO Rootdir: /[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO Temp dir: /tmp/pbkp_30771/[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO Unpacking archive /root/backup_user1_info_1101121424.xml.tgz...[[0m
Jan 12 14:47:21 [30771] [[1;36mEXTINFO Execute (/bin/cat /root/backup_user1_info_1101121424.xml.tgz | /bin/gzip -d | /bin/tar -x -p -f- -C /tmp/pbkp_30771/) return=0 exited[[0m
Jan 12 14:47:21 [30771] [[1;35mWARNING The archiver returned: /bin/tar: Read 7168 bytes from -
[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO Initializing modules...[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO Starting restore process...[[0m
Jan 12 14:47:21 [30771] [[1;32mINFO ... user[[0m
Jan 12 14:47:25 [30771] [[1;36mEXTINFO Execute (/bin/chown -R 517:0 /tmp/pbkp_30771/) return=0 exited[[0m
Jan 12 14:47:25 [30771] [[1;32mINFO Initializing modules...[[0m
Jan 12 14:47:25 [30771] [[1;32mINFO Starting restore process...[[0m
Jan 12 14:47:25 [30771] [[1;32mINFO ... mysql[[0m
Jan 12 14:47:25 [30771] [[1;32mINFO Restoring 'dbasedb' with status 'full'...[[0m
Jan 12 14:47:25 [30771] [[1;36mEXTINFO Execute (/bin/tar -x -z -f /tmp/pbkp_30771/domains/domainname.com/databases/dbasedb_1/backup_dbasedb_1_1101121424.tgz -C /tmp/pbkp_30771/) return=0 exited[[0m
Jan 12 14:47:25 [30771] [[1;32mINFO Restoring to DBMS 'MySQL'...[[0m
Jan 12 14:47:25 [30771] [[1;36mEXTINFO Execute (/usr/bin/mysql --defaults-extra-file=/tmp/pbkp_30771/mysql.30771 -h localhost -S /var/lib/mysql/mysql.sock mysql < /tmp/pbkp_30771/mysql_query.30771) return=0 exited[[0m
Jan 12 14:47:25 [30771] [[1;36mEXTINFO Execute (/usr/bin/mysql --defaults-extra-file=/tmp/pbkp_30771/mysql.30771 -h localhost -S /var/lib/mysql/mysql.sock dbasedb < /tmp/pbkp_30771/backup_dbasedb_1_1101121424) return=0 exited[[0m
Jan 12 14:47:25 [30771] [[1;36mEXTINFO Execute (/usr/bin/mysql --defaults-extra-file=/tmp/pbkp_30771/mysql.30771 -h localhost -S /var/lib/mysql/mysql.sock mysql < /tmp/pbkp_30771/mysql_query.30771) return=0 exited[[0m
Jan 12 14:47:25 [30771] [[1;32mINFO ... emaildomain[[0m
Jan 12 14:47:25 [30771] [[1;32mINFO Restoring 'domainname.com'...[[0m
Jan 12 14:47:30 [30771] [[1;36mEXTINFO Execute (/bin/tar -x -z -f /tmp/pbkp_30771/domains/domainname.com/backup_domainname.com_mn_1101121424.tgz -C /tmp/pbkp_30771/pbkp_mail_domainname.com/) return=0 exited[[0m
Jan 12 14:47:30 [30771] [[1;32mINFO ... emailgroup[[0m
Jan 12 14:47:30 [30771] [[1;32mINFO ... email[[0m
Jan 12 14:47:30 [30771] [[1;32mINFO Restoring 'info@domainname.com' with status 'full'...[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO ... emailredirect[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO ... emailresponder[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO ... wwwdomain[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO Restoring 'domainname.com'...[[0m
Jan 12 14:47:34 [30771] [[1;36mEXTINFO Execute (/bin/tar -x -z -f /tmp/pbkp_30771/domains/domainname.com/backup_domainname.com_vhost_1101121424.tgz -C /var/www/user1/data/domainname.com/) return=0 exited[[0m
Jan 12 14:47:34 [30771] [[1;35mWARNING Restoring 'domainname.com' failed: Failed to rename docroot: No such file or directory[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO ... cert[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO ... wwwredirect[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO ... wwwerrpage[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO ... ftp[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO Restoring 'idftpusr'...[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO Removing temprorary directory: /tmp/pbkp_30771/[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO ----Restoring of user 'user1' successfully finished[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO Removing temprorary directory: /tmp/pbkp_30771/[[0m
Jan 12 14:47:34 [30771] [[1;32mINFO Finishing ...[[0m

krisj
01-12-2011, 06:19 PM
FYI I am importing from plesk 9.5.3 standard install

krisj
01-15-2011, 01:45 AM
OK, I am doing good progress...

It turns out that you have to turn OFF the "chrooted chell acces" for the domain on the plesk machine (under webhosting setup) before creating the backup/dump, othervise the /dev/null symlink gets inserted into the archive together with the rest of the vhost structure and it messes things up when importing in ispmanager.

hope this saves someone a lot of headache.

krisj
01-15-2011, 03:30 AM
Jan 15 01:19:09 [20629] INFO Request [usermove][user1] 'out=xml&func=email.edit&elid=&name=info&domain=domainname%2Ecom&confirm=*&quota=0&greylist=on&passwd=*&confirm=*&sok=ok&bkpforce=yes&su=user1'
Jan 15 01:19:09 [20629] ERROR Exception 3: 'domain' not exists.


any ideas?

vian
01-16-2011, 04:46 AM
Email domain domainname.com does not exist

krisj
01-17-2011, 05:10 AM
I understand what it means, but why does it happen? I think it has something to do with the structure of the Plesk dump.

and i am having another problem with another client dump.

WARNING ----Restoring of user 'marco' failed: Failed to run function user.edit: code=4 Invalid value bandwidthlimit

krisj
01-17-2011, 04:51 PM
OK, more progress here. It seems that ISP manager import has trouble interpreting various domain limits set in plesk (exported into xml file within the dump). After I reset all limits in plesk to unlimited for that user/domain and re-exported everything and imported into ISP manager it seems to be working so far. at least it is not complaining about the "bandwidthlimit"...

vian
01-18-2011, 03:54 AM
Can you describe in detail what trouble you had?

krisj
01-20-2011, 12:44 AM
I could forward you some logs if you're interested, but essentially turninf off domain limits for "client" in plesk, then rebuilding the dump, reuploading it to ISP mgr. server and importing seems to have done the trick.