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

gitblit GO running on privileged ports #308

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

gitblit GO running on privileged ports #308

gitblit opened this issue Aug 12, 2015 · 3 comments

Comments

@gitblit
Copy link
Owner

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 12

Environment: OS X, JDK 6

I found this a bit surprising when firing up gitblit for the first time. It tries to
run on port 443 by default, and this will only work for the root user. 

I see this is mentioned in the FAQ. Still, it would be nice to either (a) use port
8443 on default (like tomcat does), or (b) warn the user with a friendlier error message,
that it has to either change configuration or run as root (security risk).

Here is the stacktrace from startup:

WARN  FAILED org.eclipse.jetty.server.Server@2af6a882: java.net.SocketException: Permission
denied
java.net.SocketException: Permission denied
    at sun.nio.ch.Net.bind(Native Method)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:172)
    at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:297)
    at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:250)
    at org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:643)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
    at org.eclipse.jetty.server.Server.doStart(Server.java:269)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
    at com.gitblit.GitBlitServer.start(Unknown Source)
    at com.gitblit.GitBlitServer.main(Unknown Source)
    at com.gitblit.Launcher.main(Unknown Source)

Reported by tfnico on 2011-07-20 12:58:28

@gitblit
Copy link
Owner Author

gitblit commented Aug 12, 2015

Yeah, those both seem like reasonable suggestions.  I'm actually surprised how many
people are using gitblit on non-Windows machines with the large amount of *nix git
tooling available.

Reported by James.Moger on 2011-07-20 13:15:10

  • Status changed: Accepted

@gitblit
Copy link
Owner Author

gitblit commented Aug 12, 2015

Reported by James.Moger on 2011-07-21 18:54:21

  • Labels added: Milestone-0.5.2

@gitblit
Copy link
Owner Author

gitblit commented Aug 12, 2015

Reported by James.Moger on 2011-07-27 12:14:15

  • Status changed: Fixed

@gitblit gitblit closed this as completed Aug 12, 2015
@flaix flaix modified the milestone: 0.5.2 Dec 12, 2016
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

2 participants