• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Migration - Cannot open: Permission denied

broncop

New Pleskian
I have massive troubble during migration from 9.4.5 to 11.
When i try a "normal" migration there are changes in the DNS that i would not have and some entrys are missing!!
So i try a manual migration discribed here -> http://kb.parallels.com/en/1152
After that i got the DNS Problem like in a normal migration and many errors on top.
My preferred way to migrate is the manual migration, because the new server will keep the ip address of the old one, and i save the time to change the ip address. ...it takes several hours to change the ip on a Plesk server with more than 1000 domains.
Here are one of the Errors from Log.

ERROR: (hosting object 'xxxx.de') Can not deploy content of domain xxxx.de
ERROR: () Archive error: from /root/work_dir//clients/xxxx/domains/xxxx.de/phosting/backup_private_1210231118.tgz to /var/www/vhosts/xxxx.de/private:
tar (child): /root/work_dir//clients/xxxx/domains/xxxx.de/phosting/backup_private_1210231118.tgz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error is not recoverable: exiting now

...but it seems to be no permission Problem
-rwxrwxrwx. 1 root root 288 24. Okt 12:19 backup_private_1210231118.tgz

any idea how i can fix it?
 
what about the path to the file? Each directory in the path needs to be accessible and be at least RX
 
thanks for the answer!
as i can see runs the process of migration/restore as root, so i think that cant be the problem. apart of this, the process creates the directories.
i have the described error for each domain and for each mailbox

...xxxx is the name of the customer

drwxr-x---. 5 xxxx psaserv 4096 24. Okt 12:41 anon_ftp
drwxr-xr-x. 2 root root 4096 24. Okt 12:41 bin
drwxr-x---. 2 xxxx psaserv 4096 24. Okt 12:41 cgi-bin
drwxr-x---. 2 root psaserv 4096 24. Okt 12:41 conf
drwxr-xr-x. 2 root root 4096 24. Okt 12:41 dev
drwxr-xr-x. 2 root psaserv 4096 24. Okt 12:41 error_docs
drwxr-xr-x. 2 root root 4096 24. Okt 12:41 etc
drwxr-x---. 4 xxxx psaserv 4096 24. Okt 12:41 httpdocs
drwxr-x---. 3 xxxx psaserv 4096 24. Okt 12:41 httpsdocs
drwxr-xr-x. 2 root root 4096 24. Okt 12:41 lib
drwxr-xr-x. 2 root root 4096 24. Okt 12:41 lib64
drwxr-x---. 2 root psaserv 4096 24. Okt 12:41 pd
drwx------. 2 xxxx root 4096 24. Okt 12:41 private
dr-xr-x---. 7 xxxx psaserv 4096 24. Okt 12:41 statistics
drwxr-xr-x. 2 root psaserv 4096 24. Okt 12:41 subdomains
drwxrwxrwt.2 root root 4096 24. Okt 12:41 tmp
drwxr-xr-x. 4 root root 4096 24. Okt 12:41 usr
drwxr-xr-x. 3 root root 4096 24. Okt 12:41 var
drwxr-xr-x. 2 root psaserv 4096 24. Okt 12:41 web_users
 
A couple of things to check that may be possibly causing problems (but maybe not):
- You may be finding that the files within the tarball are owned by someone else, or you are putting them in a directory with no write-permissions for the user running the process.
- The directory in which the files should be extracted could not be written. Changing the permissions on this directory should solve the problem.
 
Hello, I have very similar issue.

First of all, PMM fails to migrate an account from Plesk9 to Plesk11 like here http://forum.parallels.com/showthre...-error-since-11-5-30-UnknownParentClassObject, so I created archive (using PleskX.pl) and moved it to the new server manually.

When I try to restore it I get these errors in /usr/local/psa/PMM/rsessions/2013092610535435/migration.log:

[2013-09-26 10:53:57.999|12769] INFO: Executing utility: /bin/tar -z -f /temporary_migration_directory/clients/client_name/domains/domain.com/backup_domain.com_mn_1309261252.tgz -xvm --tr
ansform s\|^\\\(\[^/]\\+\\\)\|\\L\\1\| -C /var/qmail/mailnames/domain.com
[2013-09-26 10:53:58.004|12769] INFO: The utility executed with the return code 2
[2013-09-26 10:53:58.004|12769] INFO: The return code was
No output on STDOUT were performed by the utility
The output on STDERR was:
tar (child): /temporary_migration_directory/clients/client_name/domains/domain.com/backup_domain.com_mn_1309261252.tgz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
/bin/tar: Child returned status 2
/bin/tar: Error is not recoverable: exiting now

[2013-09-26 10:53:58.007|12769] INFO: ArchiveError[0b5206ef-040d-4738-8280-62147eaf10cb.]: Archive error: from /temporary_migration_directory/clients/client_name/domains/domain.com/backup_domain.com_mn_1309261252.tgz to /var/qmail/mailnames/domain.com:
tar (child): /temporary_migration_directory/clients/client_name/domains/domain.com/backup_domain.com_mn_1309261252.tgz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
/bin/tar: Child returned status 2
/bin/tar: Error is not recoverable: exiting now
[./repository_utils.cpp:1010]



[2013-09-26 10:54:00.745|12769] INFO: Executing utility: /bin/tar -z -f /temporary_migration_directory/clients/client_name/domains/domain.com/backup_domain.com_user-data_1309261252.tgz -x
vm --same-permissions --no-same-owner -C /var/www/vhosts/domain.com --wildcards --anchored --exclude-from=/var/tmp/repo_transport_tmp_9VY90F
[2013-09-26 10:54:00.750|12769] INFO: The utility executed with the return code 2
[2013-09-26 10:54:00.750|12769] INFO: The return code was
No output on STDOUT were performed by the utility
The output on STDERR was:
tar (child): /temporary_migration_directory/clients/client_name/domains/domain.com/backup_domain.com_user-data_1309261252.tgz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
/bin/tar: Child returned status 2
/bin/tar: Error is not recoverable: exiting now

[2013-09-26 10:54:00.757|12769] INFO: ArchiveError[b75e7266-642d-40fa-8c54-b42b13ff4c8d.]: Archive error: from /temporary_migration_directory/clients/client_name/domains/domain.com/backup_domain.com_user-data_1309261252.tgz to /var/www/vhosts/domain.com:
tar (child): /temporary_migration_directory/clients/client_name/domains/domain.com/backup_domain.com_user-data_1309261252.tgz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
/bin/tar: Child returned status 2
/bin/tar: Error is not recoverable: exiting now


But when I execute

/bin/tar -z -f /temporary_migration_directory/clients/client_name/domains/domain.com/backup_domain.com_mn_1309261252.tgz -xvm --transform s\|^\\\(\[^/]\\+\\\)\|\\L\\1\| -C /var/qmail/mailnames/domain.com

it works perfect, and

gunzip (archivename)

works as well.

Please advise.

Source server: 9.5.4
Destination server: 11.5.30 Update #17,
 
Last edited:
Back
Top