I have installed gitlab via the repository and configured it to run on an apache server instead of nginx (for simplicity of managing one web server instead of two).
SSL certificates have been installed and configured correctly. I am able to pull and push via HTTPS with no issues.
Furthermore, I am able to pull from a project via SSH. The git user is correctly authenticating and being routed to the correct directory for pulling repos. However when I attempt to push I received the following error:
C:\Users\user\sshproject>git push -u origin master -v
Pushing to git@gitlab.domain.com:user/sshproject.git
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 258 bytes | 258.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: GitLab: The project you were looking for could not be found.
To gitlab.domain.com:user/sshproject.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@gitlab.domain.com:user/sshproject.git'
My search on this error almost unequivocally points me to rebase my project on the origin, or double check the destination of the remote origin. And I have attempted to resolve the issue with these solutions to no avail.
I have included a list of the settings I have changed in the gitlab config file here. All other settings are unchanged. Hopefully somebody smarter than me can point me in the right direction.
external_url 'https://gitlab.domain.com'
gitlab_rails['trusted_proxies'] = [ '192.168.2.1/24', '192.168.2.1', '2001:0db8::/32' ]
git_data_dirs({
"default" => { "path" => "/path/repositories" },
"alternative" => { "path" => "/mnt/nfs-01/git-data" }
})
gitlab_workhorse['listen_network'] = "tcp"
gitlab_workhorse['listen_addr'] = "127.0.0.1:8181"
user['home'] = "/path/repositories/repositories"
web_server['external_users'] = ['www-data']
nginx['enable'] = false