Skip to content

gitblit GO running on privileged ports #308

Description

@gitblit

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

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions