Skip to content

Jetty can't parse starting port #20

Open
@chumaltd

Description

@chumaltd

Hi, I got errors at startup as follows:

Exception in thread "main" java.lang.NumberFormatException: For input string: "tcp://10.27.241.91:80"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:580)
	at java.lang.Integer.parseInt(Integer.java:615)
	at JettyLauncher.getPort(JettyLauncher.java:165)
	at JettyLauncher.main(JettyLauncher.java:74)

I took gitbucket/gitbucket:4 image, running on Google Kubernetes Engine.

https://hub.docker.com/layers/gitbucket/gitbucket/4/images/sha256-65254a12c188aa9067ddab7ecba6eacb149fc4e15a12295200761295a8e4ac86?context=explore

So, I filled with "--port=8080" command line option, and it works.
I don't know what is suitable for default option, but some environment may need default port settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions