Articles in this section

Git password is removed when updating Subscription/Domain settings using command line on Plesk server

kb: bug kb: fixed Plesk for Linux ext: git ABT: Group A

Applicable to:

  • Plesk for Linux

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)

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.log when 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

Cause

Product issue:

  • #EXTGIT-70 "Changing domain settings no longer results in the inability to push changes to local Git repositories."
    Fixed in:

Resolution

Please consider updating your server:

Workaround

If update is not possible for some reason you may try the following

workaround
  1. Connect to the server via SSH

  2. 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

  3. Sync the password:

    1. Log in to Plesk GUI
    2. Go to Websites & Domains > Web Hosting Access set a new password for the system user and click OK.
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.