Symptoms
-
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
(Empty Output)
Cause
Product issue:
-
#EXTGIT-70 "Changing domain settings no longer results in the inability to push changes to local Git repositories."
Fixed in:- Git 2.0.0 23 December 2021
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
-
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.