Git deploy doesn't work

I have been trying to deploy a site via Git using a public Github repository and keep getting a 404 error. I added the deploy key to my account and also tried adding it just to the repo and keep getting the error either way.

Here is a paste of my logs:

[12-24-25-Fri-Mar-2019] sudo GIT_SSH_COMMAND=“ssh -o StrictHostKeyChecking=no” git clone --depth 1 --no-single-branch [email protected]:gavinrozzi/frnjarc.git -b master /home/frnjarc.org/public_html/
[12-24-37-Fri-Mar-2019] /home/frnjarc.org/public_html/
[12-24-37-Fri-Mar-2019] sudo GIT_SSH_COMMAND=“ssh -o StrictHostKeyChecking=no” git clone --depth 1 --no-single-branch [email protected]:gavinrozzi/frnjarc.git -b master /home/frnjarc.org/public_html/
[12-25-52-Fri-Mar-2019] float division by zero [getDiskUsage]
[12-26-22-Fri-Mar-2019] No JSON object could be decoded
[12-38-45-Fri-Mar-2019] float division by zero [getDiskUsage]
[12-39-07-Fri-Mar-2019] /home/frnjarc.org/public_html/
[12-39-07-Fri-Mar-2019] sudo GIT_SSH_COMMAND=“ssh -o StrictHostKeyChecking=no” git clone --depth 1 --no-single-branch [email protected]:gavinrozzi/frnjarc.git -b master /home/frnjarc.org/public_html/
[12-41-16-Fri-Mar-2019] float division by zero [getDiskUsage]
[01-09-03-Fri-Mar-2019] float division by zero [getDiskUsage]
[01-09-25-Fri-Mar-2019] /home/frnjarc.org/public_html/
[01-09-25-Fri-Mar-2019] sudo GIT_SSH_COMMAND=“ssh -o StrictHostKeyChecking=no” git clone --depth 1 --no-single-branch [email protected]:gavinrozzi/frnjarc.git -b master /home/frnjarc.org/public_html/
[01-10-17-Fri-Mar-2019] float division by zero [getDiskUsage]
[01-57-37-Fri-Mar-2019] float division by zero [getDiskUsage]
[01-59-21-Fri-Mar-2019] /home/frnjarc.org/public_html/
[01-59-21-Fri-Mar-2019] sudo GIT_SSH_COMMAND=“ssh -o StrictHostKeyChecking=no” git clone --depth 1 --no-single-branch [email protected]:gavinrozzi/frnjarc.git -b master /home/frnjarc.org/public_html/
[06-48-45-Fri-Mar-2019] float division by zero [getDiskUsage]
[07-42-41-Fri-Mar-2019] float division by zero [getDiskUsage]
[07-43-09-Fri-Mar-2019] /home/frnjarc.org/public_html/
[07-43-09-Fri-Mar-2019] sudo GIT_SSH_COMMAND=“ssh -o StrictHostKeyChecking=no” git clone --depth 1 --no-single-branch [email protected]:gavinrozzi/frnjarc.git -b master /home/frnjarc.org/public_html/

When you try to attach git, can you please provide the output of journalctl -f | grep gunicorn

Are you on the latest version? We fixed some git issues lately, you might want to force upgrade.

Also, make sure that the home directory is completely empty and should not even contain an index.html

Yes I am on the latest, version, 1.8. I just switched everything over to CyberPanel this week. I removed all files from the web root before attempting the Git deploy.

Here is the output of the gunicorn log. I am perplexed as to why it is still saying host key verification is failing because I have added the key to my Github account yet this still won’t work.

Mar 30 18:55:17 rmgserver.rozzi.media gunicorn[12833]: Generating public/private rsa key pair.
Mar 30 18:55:17 rmgserver.rozzi.media gunicorn[12833]: /root/.ssh/git already exists.
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: Overwrite (y/n)? mkdir: cannot create directory ‘/home/cyberpanel’: File exists
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: usage: git [–version] [–help] [-c name=value]
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: [–exec-path[=]] [–html-path] [–man-path] [–info-path]
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: [-p|–paginate|–no-pager] [–no-replace-objects] [–bare]
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: [–git-dir=] [–work-tree=] [–namespace=]
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: []
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: The most commonly used git commands are:
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: add Add file contents to the index
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: bisect Find by binary search the change that introduced a bug
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: branch List, create, or delete branches
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: checkout Checkout a branch or paths to the working tree
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: clone Clone a repository into a new directory
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: commit Record changes to the repository
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: diff Show changes between commits, commit and working tree, etc
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: fetch Download objects and refs from another repository
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: grep Print lines matching a pattern
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: init Create an empty Git repository or reinitialize an existing one
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: log Show commit logs
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: merge Join two or more development histories together
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: mv Move or rename a file, a directory, or a symlink
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: pull Fetch from and merge with another repository or a local branch
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: push Update remote refs along with associated objects
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: rebase Forward-port local commits to the updated upstream head
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: reset Reset current HEAD to the specified state
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: rm Remove files from the working tree and from the index
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: show Show various types of objects
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: status Show the working tree status
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: tag Create, list, delete or verify a tag object signed with GPG
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: ‘git help -a’ and ‘git help -g’ lists available subcommands and some
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: concept guides. See 'git help ’ or 'git help ’
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: to read about a specific subcommand or concept.
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: Host key verification failed.
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: fatal: Could not read from remote repository.
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: Please make sure you have the correct access rights
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: and the repository exists.

That is new, but at the end it says

Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: to read about a specific subcommand or concept.
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: Host key verification failed.
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: fatal: Could not read from remote repository.
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: Please make sure you have the correct access rights
Mar 30 18:55:32 rmgserver.rozzi.media gunicorn[12833]: and the repository exists.

Are you running Ubuntu?

No I am running on a brand new Centos 7 VPS

Kindly create a ticket with your VPS login details. I will check and update this thread.