Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6182197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:09:32+00:00 2026-05-24T01:09:32+00:00

I just set up a gitosis server. Everything went well. I have been able

  • 0

I just set up a gitosis server. Everything went well. I have been able to clone on my laptop the gitosis-admin project, configure gitconf, add a user and push everything.

But I get an access error when I try to push a new repository. I’ve tryied everything, look everywhere and I haven’t been able to fix this thing!

git init
git remote add origin git@YOUR_SERVER_HOSTNAME:proj.git
git push origin master
ERROR:gitosis.serve.main:Repository read access denied
fatal: The remote end hung up unexpectedly

I’ve read that I could be coming the authorized_keys from /home/git/.ssh but this file doesn’t exist.

Does someone knows how I could fix this?
Greg

[edit]
My gitosis.conf

[gitosis]

[group gitosis-admin]
writable = gitosis-admin
members = gregorymarcilhacy@MacBook-Pro-de-Gregory-Marcilhacy.local greg

[group proj]
writable = proj
members = gregorymarcilhacy@MacBook-Pro-de-Gregory-Marcilhacy.local greg

Here is what I have in repositories

greg@server:/home/git/repositories$ ls -l
total 4
drwxr-x--- 8 git git 4096 2011-01-13 18:58 gitosis-admin.git

Outup form log:

git clone git@git.flatfolio.com:flatfolio.git
Initialized empty Git repository in /private/tmp/flatfolio/.git/
DEBUG:gitosis.serve.main:Got command "git-upload-pack 'flatfolio.git'"
DEBUG:gitosis.access.haveAccess:Access check for 'greg' as 'writable' on 'flatfolio.git'...
DEBUG:gitosis.access.haveAccess:Stripping .git suffix from 'flatfolio.git', new value 'flatfolio'
DEBUG:gitosis.group.getMembership:found 'greg' in 'gitosis-admin'
DEBUG:gitosis.group.getMembership:found 'greg' in 'flatfolio'
DEBUG:gitosis.access.haveAccess:Access ok for 'greg' as 'writable' on 'flatfolio'
DEBUG:gitosis.access.haveAccess:Using prefix 'repositories' for 'flatfolio'
DEBUG:gitosis.serve.main:Serving git-upload-pack 'repositories/flatfolio.git'
warning: You appear to have cloned an empty repository.

This works fine.
But when I push it fails :s

git push origin master:refs/heads/master
DEBUG:gitosis.serve.main:Got command "git-receive-pack 'flatfolio.git'"
DEBUG:gitosis.access.haveAccess:Access check for 'greg' as 'writable' on 'flatfolio.git'...
DEBUG:gitosis.access.haveAccess:Stripping .git suffix from 'flatfolio.git', new value 'flatfolio'
DEBUG:gitosis.group.getMembership:found 'greg' in 'gitosis-admin'
DEBUG:gitosis.group.getMembership:found 'greg' in 'flatfolio'
DEBUG:gitosis.access.haveAccess:Access ok for 'greg' as 'writable' on 'flatfolio'
DEBUG:gitosis.access.haveAccess:Using prefix 'repositories' for 'flatfolio'
DEBUG:gitosis.serve.main:Serving git-receive-pack 'repositories/flatfolio.git'
error: src refspec master does not match any.
error: failed to push some refs to 'git@git.flatfolio.com:flatfolio.git'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:09:33+00:00Added an answer on May 24, 2026 at 1:09 am

    In Addition to what the other s said:

    You should check you post-update hook on the server – is it executable, or maybe a dead link due to some distribution update issues?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just set up cruise control.net on our build server, and I am
I set up gitosis on a server. Cloning and pushing from my laptop works
I have just set up Hudson on my server. For some reason, my build
We've just set up a Jenkins CI server for our app, HiringThing Everything works
I have just set up three different configurations in my project for debug preview
I'm trying to set up gitosis on a server. I was just wondering one
I have just set up a test that checks that I am able to
I have just set up a new Eclipse Java project. In this project I
I have just set up a completely new Symfony 1.4 project and designed the
I have just set up a new Subversion VisualSVN Server and am in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.