Cannot load web page on port 8111 after installation

I just installed TeamCity on a Mac:

  • OSX 12.6 Monterey
  • Java info:

    java version "1.8.0_341"

    Java(TM) SE Runtime Environment (build 1.8.0_341-b10)

    Java HotSpot(TM) 64-Bit Server VM (build 25.341-b10, mixed mode)

I started TeamCity via:

runAll.sh start

TeamCity log (teamcity-wrapper.log):

2022-10-03 10:48:46 MDT: Starting TeamCity server
2022-10-03 10:48:46 MDT: TeamCity process PID is 46985
2022-10-03 11:25:18 MDT: Starting TeamCity server
2022-10-03 11:25:18 MDT: TeamCity process PID is 2762
2022-10-03 11:27:56 MDT: Starting TeamCity server
2022-10-03 11:27:56 MDT: TeamCity process PID is 3200

When I point my browser to localhost:8111, I get "localhost refused to connect."

I've tried restarting the service,  rebooting my machine, stopping the firewall service on my mac, and even changing the port in server.xml, all to no avail.

Any tips here before I go back to Jenkins?

Thanks!

0
5 comments

Hi!

If this is still relevant, could you check which version of TeamCity you are using? Please note that currently supported versions (2022.1 and 2022.2) are not compatible with Java 8 and require Java 11 to run.

Secondly, I'd recommend stopping TeamCity and making sure nothing occupies port 8111 (sometimes a process can be stuck occupying the port). If nothing occupies the port, start TeamCity again, wait for a couple of minutes, collect teamcity-server.log and catalina.out logs from <TeamCity install dir>/logs. Typically, there would be hints why the server isn't starting in those logs. You can upload them via https://uploads.jetbrains.com/ and let me know the upload ID so I can have a look. 

Cheers,
Anatoly

0

Thank you for the response.  It appears that it was an issue with the Java version. 

As a non-Java person, this took a little doing to get the Java 11 runtime installed, since Oracle doesn't seem to provide it any longer.  It seems that Oracle distributes version 8 or the newer versions (19). 

It would be great if TeamCity could work with the current distributed versions of Java.

1

Hi James, and thanks for posting the feedback. My comment about the required Java runtime version wasn't entirely correct. According to the documentation, it should work on both Java 8 and Java 11. However, I would definitely recommend running it on Java 11 because we plan to drop support for running the server on Java 8 in version 2023.04 (to be released in April 2023).

As for your comment regarding working with the current distributed version of Java, I am not sure I understand what you mean by those. Cloud you clarify?

0

Regarding Java versions, java.com shows only Java 8.  I had to poke around awhile to find a Java 11.

0

Same issue here, using `23.0.1`

Fixed by using `startup.sh` instead of `runAll.sh`

0

Please sign in to leave a comment.