JacobTheDev
JacobTheDev

Reputation: 18550

Can't push to GitLab

I just finished setting up GitLab on my Ubuntu Server last night, but it looks like I can't push anything to it. I'm extremely new to Git, so I really don't know what I'm doing here.

Here's my output from SourceTree when I try to push:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
POST git-receive-pack (475 bytes)

remote: GitLab: API is not accessible[K

Pushing to http://git.ghostlyco.de/revxx14/new-site.git
To http://git.ghostlyco.de/revxx14/new-site.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://git.ghostlyco.de/revxx14/new-site.git'




Completed with errors, see above.

No idea what this means. I was able to pull the thing just fine, so I'm really confused.

Here's the output when I run sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production:

http://git.ghostlyco.de/snippets/1

The only thing I can think of that's out of the ordinary for this install was that I couldn't run this command: echo 'unixsocketperm 770' | sudo tee -a /etc/redis/redis.conf because the version of Redis that comes with Ubuntu 12.04 LTS x86 doesn't support unixsocketperm. Not sure if that could be causing this issue.


git remote -v output:

origin  http://git.ghostlyco.de/revxx14/new-site.git (fetch)
origin  http://git.ghostlyco.de/revxx14/new-site.git (push)

Upvotes: 1

Views: 3785

Answers (1)

JacobTheDev
JacobTheDev

Reputation: 18550

I figured it out, I had forgot to set gitlab_url in config.yml.

Upvotes: 1

Related Questions