Plesk

Unable to deploy Git Repository in Plesk: Argument 1 passed to PleskExtGitDTORepository

Symptoms

Unable to deploy remote Git Repository from Github over SSH in Plesk GUI:

Argument 1 passed to PleskExtGitDTORepository::__construct() must be of the type int, null given, called in /opt/psa/admin/plib/modules/git/library/Db/Repository.php on line 583

Cause

Product issue:

  • #EXTGIT-232 "It is once again possible to add repositories via the extension."
    Fixed in:

Resolution

Please consider updating the Git extension to its latest version:

Workaround

If update is not possible for some reason, use the following workaround:

Click on a section to expand

Workaround:

  1. Connect to the server via SSH.
  2. Run the following command to create a Repository:

    # plesk ext git --create -domain example.com -name repo_name -remote-url git@github.com:github_user/example.git

Note: See details in this documentation: https://docs.plesk.com/en-US/obsidian/cli-win/using-command-line-utilities/git-git-repositories.75958/ 

Exit mobile version