- Plesk for Linux
The Git password is removed when updating the subscription/domain settings via command line on Plesk server:
# /usr/local/psa/bin/subscription -u example.com
# /usr/local/psa/bin/domain -u example.com
Changing Log Rotation settings using UI also results into password protected file removal:
# ls /var/www/vhosts/system/example.com/pd/*plesk-git
It is not clear when this error appears but it helps engineers find the article.
The following error is shown also in
/var/log/httpd/error.logwhen performing actions in the Git extension:
[Mon Mar 29 12:31:57.153790 2021] [authn_file:error] [pid 15838] (2)No such file or directory: [client 203.0.113.2:35458] AH01620: Could not open password file: /var/www/vhosts/system/example.com/pd/d..git@plesk-git
#EXTGIT-70 "Changing domain settings no longer results in the inability to push changes to local Git repositories."
- Git 2.0.0 23 December 2021
If update is not possible for some reason you may try the following
Re-create the PD (protected directory) via command line:
Note: replace example.com with the domain name.
Replace example_user with name of subscription's system user.
# /usr/local/psa/admin/bin/pdmng --add-protection --directory=/git/plesk-git --vhost-name=example.com
# /usr/local/psa/admin/bin/pdmng --add-user --directory=/git/plesk-git --vhost-name=example.com --user-name=example_user
Sync the password:
- Log in to Plesk GUI
- Go to Websites & Domains > Web Hosting Access set a new password for the system user and click OK.