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

Git ssh access does not work. When ENABLE_GZIP = true, http doesn't work too. #412

Closed
andmarios opened this issue Aug 31, 2014 · 12 comments
Closed
Labels
💊 bug Something isn't working

Comments

@andmarios
Copy link
Contributor

With the current master branch [0.4.9.0831 Beta] I can not access my repositories through ssh.

The git commands (clone, push, etc) just hang, waiting for a response from gogs.
If I use a wrong name for a repository, gogs informs me that given repository does not exist and
closes the connection as expected.
When I use the correct name, it hangs. If I kill the git command with ctrl+c, then the following line is appended to log/serv.log:

2014/09/01 02:08:52 [serve.go:181 runServ()] [F] Fail to execute git command: signal: broken pipe

Also when I enable the option ENABLE_GZIP in conf/app.ini then it is no longer possible to access the repositories through http/https.
In this case the error doesn't come from gogs but from the git command and is:

fatal: unable to access 'http://server/user/temp.git/': Error while processing content unencoding: invalid stored block lengths
@lunny
Copy link
Contributor

lunny commented Sep 1, 2014

Could you show your git version? And run user has the access to run git.

@unknwon unknwon added the Bug label Sep 1, 2014
@unknwon
Copy link
Member

unknwon commented Sep 1, 2014

ENABLE_GZIP seems to be a problem.

@andmarios
Copy link
Contributor Author

About git over ssh not working:

I tried with git 2.1.0 and git 2.0.4. With gogs 0.4.5.0704 Alpha it worked fine. I backed up my old installation so I can confirm that this is still the case. When I restore the old version clone/pull/push over ssh work.

For 0.4.9.0831 Beta I did two clean installations on two different systems and the problem exists on both systems. I use sqlite3 as my database if this makes any sense.

@unknwon
Copy link
Member

unknwon commented Sep 1, 2014

What is your system?

@andmarios
Copy link
Contributor Author

I am on Gentoo.

I removed all go sources ($GOPATH/src) and rebuild and now it works fine. Maybe some repository gogs depends on was broken yesterday for a few hours?

@unknwon
Copy link
Member

unknwon commented Sep 1, 2014

I'm not sure, but there was some dependency changes on yesterday, glad works now!

@unknwon unknwon closed this as completed Sep 1, 2014
@unknwon unknwon reopened this Sep 1, 2014
@unknwon
Copy link
Member

unknwon commented Sep 1, 2014

Keep open for reminding to disable ENABLE_GZIP option for now.

@andmarios
Copy link
Contributor Author

Thanks and sorry for the false alarm.

@unknwon
Copy link
Member

unknwon commented Oct 13, 2014

This has been fixed! Please update all deps, especially macaron.

@unknwon unknwon closed this as completed Oct 13, 2014
@pilt
Copy link

pilt commented Oct 14, 2014

I also get errors like 2014/10/14 07:35:35 [serve.go:187 runServ()] [F] Fail to execute git command: signal: broken pipe after upgrading from v0.5.2 to v0.5.5. Flipping ENABLE_GZIP does not help.

@unknwon
Copy link
Member

unknwon commented Oct 14, 2014

@pilt If you set ENABLE_GZIP to false, then it has nothing to do with GZIP, must be other reasons.

@pilt
Copy link

pilt commented Oct 14, 2014

I reverted to v0.5.2 for now. Let me know if I can help. We install the binary distribution at gobuild.io and run Ubuntu 14.04.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💊 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants