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
The issue is caused by a bug registered with ID #EXTGIT-70. It will be fixed in upcoming Plesk updates.
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.