Restore fail due to permissions
-
Hi
I’m trying to move a site from one server to another. I backed everything up OK with Updraft from the old server, copied the files over to the new one, and am trying to restore the database.
The error message I get every time is:
Looking for db archive: file name: backup_2019-08-20-1636_TIAA_Intranet_ece0e9f5eee4-db.gz
Archive is expected to be size: 9183.3 KB: OK
Put contents /html/wp-content/upgrade/testfile_3092646e44f196ea4427a3e4f970d0031872ff9.txt: Failed. Destination Directory UID=, GID=. Effective/real user IDs of the current process: 33/33. Effective/real group IDs of the current process: 33/33.
Error: UpdraftPlus needed to create a file in your content directory, but failed – please check your file permissions and enable the access (/html/wp-content/upgrade/testfile_3092646e44f196ea4427a3e4f970d0031872ff9.txt)
Restore failed…Put contents /html/wp-content/upgrade/testfile_3092646e44f196ea4427a3e4f970d0031872ff9.txt: Failed. Destination Directory UID=, GID=. Effective/real user IDs of the current process: 33/33. Effective/real group IDs of the current process: 33/33.
Error: UpdraftPlus needed to create a file in your content directory, but failed – please check your file permissions and enable the access (/html/wp-content/upgrade/testfile_3092646e44f196ea4427a3e4f970d0031872ff9.txt)
Actions: Return to UpdraftPlus configurationUID 33 is www-data
GID 33 is www-dataI have recursively set permissions & ownership of everything in the www directory, and for the upgrade folder mentioned above for example ‘ls -l’ gives:
drwxrwxr-x 2 helpdesk www-data 4096 Aug 21 14:31 upgrade
‘helpdesk’ is the admin account
The ftp account (using vsftpd v3.3.0) that Updraft is using is a member of the www-data group.
vsftpd.conf has been ammended to that listed below (I’ve removed all the commented out lines).Does anyone know what’s preventing Updraft from being able to create the file please?
Many thanks
listen=NO listen_ipv6=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES chroot_local_user=YES ls_recurse_enable=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key ssl_enable=NO force_dot_files=YES pasv_min_port=40000 pasv_max_port=50000
- The topic ‘Restore fail due to permissions’ is closed to new replies.