Articles in this section

[BUG] Git push via HTTP(S) to a local Git repository in Plesk for Linux with Nginx fails: 404 not found

kb: bug Plesk for Linux

Applicable to:

  • Plesk for Linux

Symptoms

  • Accessing git repository/push via HTTP(S) fails with error:

    CONFIG_TEXT: [auth_basic:error] [pid 5991:tid 140384302696192] [client 203.0.113.2:41872] AH01618: user example not found: /example.git
    [cgi:error] [pid 5991:tid 140384302696192] [client 203.0.113.2:41872] AH01215: Request not supported: '/var/www/vhosts/example.com/git/example.git'
    [auth_basic:error] [pid 5991:tid 140384311088896] [client 203.0.113.2:38061] AH01618: user example not found: /example.git
    [cgi:error] [pid 5991:tid 140384311088896] [client 203.0.113.2:38061] AH01215: Request not supported: '/var/www/vhosts/example.com/git/example.git'

  • One of the following error messages might appear when performing the Git push:

    CONFIG_TEXT: error: Cannot access URL https://user@example.com/plesk-git/repository.git/, return code 22
    fatal: git-http-push failed
    error: failed to push some refs to 'https://example.com/plesk-git/repository.git’

    CONFIG_TEXT: fatal: https://user@example.com/plesk-git/repository.git/info/refs not found: did you run git update-server-info on the server?

  • Going to Domains > example.com > Apache and Nginx Settings > Nginx Settings > Proxy mode option is disabled

Cause

Extension bug registered with ID #EXTGIT-3 which will be fixed in future Plesk updates.

Resolution

Consider one of the following workarounds:

  • Use SSH to access repository/push Git updates

  • Enable Nginx as a Proxy: Log in to Plesk GUI > Go to Domains > example.com > Apache&nginx Settings > Nginx Settings > Enable Proxy Mode option > Click OK to apply the changes

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.