Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cannot see Git repository in cPanel Git™ Version Control module

Discussion in 'General Discussion' started by Josh Fialkoff, Jun 18, 2019.

  1. Josh Fialkoff

    Josh Fialkoff Registered

    Joined:
    Jun 18, 2019
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Boston, MA
    cPanel Access Level:
    Root Administrator
    I cannot see any repositories in the cPanel Git™ Version Control module, even though the files were successfully pulled from the remote and are visible in the file system.

    I am trying to setup deployments via cPanel using cPanel's Git deployment system (see for example: Guide to Git - cPanel Knowledge Base - cPanel Documentation).

    After I encountered errors cloning the remote repository from GitHub using SSH, I found that it is a GitHub problem that their system prefers an HTTPS connection rather than SSH:Error: Permission denied (publickey) - GitHub Help I connected this way, and it worked (e.g., I did not get the permission denied error) (see code)

    But, apparently because I used HTTPS rather than SSH, I cannot use the visual interface in this screenshot: [Moderator Note: The remote image URL was removed. Please upload images as attachments directly to the thread]

    So, my question is, how do I now get the repository to appear in the interface, so that I can use the visual interface, and NOT USE terminal, to manage deployments?
    Code:
    [email protected] ~]# ssh-add /home/username/.ssh/lwtogithub.tld
    
    Enter passphrase for /home/username/.ssh/lwtogithub.tld: [[email protected] ~]# git clone https://github.com/username/forwardjump-genesis-child.git Cloning into 'forwardjump-genesis-child'... Username for 'https://github.com': username Password for 'https://[email protected]': remote: Enumerating objects: 762, done. remote: Counting objects: 100% (762/762), done. remote: Compressing objects: 100% (267/267), done. remote: Total 762 (delta 480), reused 758 (delta 479), pack-reused 0 Receiving objects: 100% (762/762), 771.86 KiB | 8.04 MiB/s, done. Resolving deltas: 100% (480/480), done. [[email protected] ~]#
    
    I would like the repository to appear in the cPanel Git™ Version Control module as in this screenshot:

    https://blog.cpanel.com/wp-content/uploads/2018/06/image2018-3-23_9-48-58.png
     
    #1 Josh Fialkoff, Jun 18, 2019
    Last edited by a moderator: Jun 18, 2019
  2. Josh Fialkoff

    Josh Fialkoff Registered

    Joined:
    Jun 18, 2019
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Boston, MA
    cPanel Access Level:
    Root Administrator
    Here's the image which was removed:
    image2018-3-23_9-48-58.png
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Josh Fialkoff,

    Thank you for taking the time to share additional details in your support ticket. The ticket is currently open and should receive an additional response from one of our Technical Analysts shortly. In the meantime, I took a look at the attached screen capture video included in your ticket (this was super helpful by the way, thanks for including it). Can you verify if the public SSH key associated with your private GitHub.com repository is added to the /home/user/.ssh/known_hosts file?

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Josh Fialkoff

    Josh Fialkoff Registered

    Joined:
    Jun 18, 2019
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Boston, MA
    cPanel Access Level:
    Root Administrator
    Yes. Here is a screenshot.
    known_hosts - cPanel File Manager v3 2019-06-19 14-48-16.png
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Josh Fialkoff,

    Per the support ticket, it looks like this was solved by using the SSH Git URL as opposed to the HTTPS Git URL. Can you confirm if everything is now working as intended? Once confirmed, I'll update your StackOverflow thread with the outcome.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice