Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hang during push [resolved: http.postBuffer] #458

Closed
gitblit opened this issue Aug 12, 2015 · 8 comments
Closed

Hang during push [resolved: http.postBuffer] #458

gitblit opened this issue Aug 12, 2015 · 8 comments

Comments

@gitblit
Copy link
Collaborator

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 162

hello , i've opened new project on my local;

git init
git add .
git commit -m "initial project"
git remote add bitminer https://xxx:xxx@localhost:8443/git/bitminer.git


Then i've run: 
java -jar gitblt.jar

entered into admin panel:
https://localhost:8443/?wicket:bookmarkablePage=:com.gitblit.wicket.pages.EditRepositoryPage
name : bitcoin/bitminer.git
access restriction : authenticated view/clone/push
permitted users: all users as selected
federation strategy: exclude 
post-receive scripts: send mail

git push bitminer master

KadirBASOL-2:BitMoney apple$ git push bitminer master
Counting objects: 45, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (44/44), done.
error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly
Writing objects: 100% (45/45), 2.35 MiB | 36 KiB/s, done.
Total 45 (delta 3), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date
KadirBASOL-2:BitMoney apple$ 



fatal: The remote end hung up unexpectedly
I got this error.I've searched on web ; they say its authentication problem.
But i'm sure i've entered admin and non admin passwords.

Whats wrong?

Reported by kadir.bayner on 2012-11-09 06:32:32

@gitblit gitblit self-assigned this Aug 12, 2015
@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

If your description is exactly what happened, then you are not specifying the same repository.

git remote add ... bitminer.git
gitblit edit repository... bitcoin/bitminer.git

Reported by James.Moger on 2012-11-09 12:52:01

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

No , the problem is still persists.


KadirBASOL-2:BitMoney apple$ git remote rm bitminer
KadirBASOL-2:BitMoney apple$ git remote add bitminer https://xxx:xxx@localhost:8443/git/bitcoin/bitminer.git
KadirBASOL-2:BitMoney apple$ git push bitminer master
Counting objects: 45, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (44/44), done.
error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly
Writing objects: 100% (45/45), 2.35 MiB | 35 KiB/s, done.
Total 45 (delta 3), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date
KadirBASOL-2:BitMoney apple$ 

Reported by kadir.bayner on 2012-11-09 16:07:03

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Here is Server Log when i do that operation:


INFO  Started SslSelectChannelConnector@0.0.0.0:8443 STARTING
INFO  ARF: bitcoin/bitminer.git/info/refs?service=git-receive-pack (100) authenticated


Reported by kadir.bayner on 2012-11-09 16:22:38

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

it hangs here :
Writing objects:  26% (12/45)
then give error like above

Reported by kadir.bayner on 2012-11-09 17:48:54

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

I would review the git.* values in your gitblit.properties file.  Are you running this
behind a reverse proxy or are you directly accessing Gitblit?  What version of Git
are you using on your Mac?

Have you tried increasing your post buffer size?

https://groups.google.com/forum/?fromgroups=#!topic/gitblit/QBUfWkUyKt4

Reported by James.Moger on 2012-11-09 18:25:04

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

git config http.postBuffer 524288000

Solved the problem!
Thanks but you need to prepare a tutorial for users how to use gitblit

Reported by kadir.bayner on 2012-11-09 18:41:08

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Wiki is better! and if you make it commercial version.
Many people will support your project I'm sure for that.
Because this is the only one for Java afaik.
or we can commercialize it.If you want we have company.

Reported by kadir.bayner on 2012-11-09 18:42:09

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Sorry, like I said before I'm not interested in commercializing Gitblit.  I like FOSS.

Hacking on Gitblit is one of my spare-time projects, it's not my job.  And honestly,
I would be hard-pressed to compete with Atlassian's Stash.  Gitblit came first, but
Stash and GitLab have both launched/improved dramatically in the last year.

I'll update the FAQ with the post buffer tip.  I agree, the docs and getting started
info could be better.

Reported by James.Moger on 2012-11-09 18:55:09

  • Status changed: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant