Symptoms
-
The script
enable-ip-anonimization.sh
was fetched from How to anonymize IP address in log files on Plesk? -
The first pull from local git repository works:
# git pull origin
Already up to date.
- Second git pull fails:
# git pull origin
fatal: unable to access ‘https://[email protected]/plesk-git/example.git/’: The requested URL returned error: 500
- Check Git password on Plesk fails:
# file /var/www/vhosts/system/example.tld/pd/[email protected]
/var/www/vhosts/system/example.tld/pd/[email protected]: cannot open (No such file or directory)
Cause
Git Manager extension bug with IDÂ EXTGIT-90, which will be fixed in future updates.
Resolution
As a workaround:
-
Connect to the server via SSH
-
Run the following single command to Download and apply the custom fix:
# wget https://support.plesk.com/hc/en-us/article_attachments/360036325474/EventListener.php.tar.gz && tar -xzvf EventListener.php.tar.gz && mv /usr/local/psa/admin/plib/modules/git/library/EventListener.php{,.bak} && mv EventListener.php /usr/local/psa/admin/plib/modules/git/library/