- Plesk for Linux
It is not possible to update/install Git extension. One of the following errors pop up in Plesk:
PLESK_ERROR: Installation of extension has failed
filemng failed: filemng: Error occurred during /bin/cp command.
PLESK_ERROR: Internal error:
sh: /usr/local/psa/admin/bin/git-helper: No such file or directory
Message sh: /usr/local/psa/admin/bin/git-helper: No such file or directory
Plesk upgrade or micro-updates installation fails.
Errors like the following are recorded to
CONFIG_TEXT: ERR  '/opt/psa/admin/bin/filemng' 'psaadm' 'cp' '-r' '/opt/psa/tmp/moduleITxJ8U/var/.' '/opt/psa/var/modules/git/' failed with code 1.
cp: cannot create regular file '/opt/psa/var/modules/git/./.keep': Permission denied
ERR  sh: /usr/local/psa/admin/bin/git-helper: No such file or directory
cp: cannot create regular file `/usr/local/psa/var/modules/git/./.keep': Permission denied
filemng: Error occurred during /bin/cp command.
Incorrect permissions on the extension directory.
Connect to the server via SSH.
By default, the following permissions are set:
# ls -la /usr/local/psa/var/modules/git/
drwxr-xr-x 2 psaadm psaadm 4096 Mar 28 12:40 .
drwxr-xr-x 13 psaadm root 4096 Mar 28 12:40 ..
-rw-r--r-- 1 psaadm psaadm 0 Mar 28 12:40 .keep
-rw------- 1 psaadm psaadm 4096 Mar 28 12:40 git_db.db
Set proper permissions on the extension folders/files:
# chown psaadm.psaadm /usr/local/psa/var/modules/git/
# chmod 0755 /usr/local/psa/var/modules/git/
# chown psaadm.psaadm /usr/local/psa/var/modules/git/.keep
# chmod 0644 /usr/local/psa/var/modules/git/.keep
# chown psaadm.psaadm /usr/local/psa/var/modules/git/git_db.db
# chmod 0600 /usr/local/psa/var/modules/git/git_db.db