Port 8111 is closed on Ubuntu 14.04

Hi,
I installed TeamCity 8.1.3 on Ubuntu 14.04 following the instructions provided on the TeamCity docs page (http://confluence.jetbrains.com/display/TCD8/Installing+and+Configuring+the+TeamCity+Server). Java 7 (OpenJDK!) is installed.
When I started the server (sh runAll.sh), everything seemed like normal but when trying to access TeamCity on port 8111 (Default) my browser can't connect to it. Also, when typing netstat -p -a .for viewing all ports in Ubuntu, only port 9090 (for the build agent) is opened but port 8111 is not in there. The log files also don't give any clue about what could be wrong.
Worth noting: Ubuntu is running on a vserver, so maybe it is a proxy issue?
I've already tried various configurations, fixes, installations, java versions and linux distributions and I googled the problem several times.

I'm looking forward to your help.
Sincerely,
mtronics_dev

7 comments
Comment actions Permalink

Hi,

Could you please attach zipped <TeamCity Server home>/logs folder?

0
Comment actions Permalink

Yes, here it is.



Attachment(s):
logs.zip
0
Comment actions Permalink

Here is the following message in logs:

SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-nio-8111"] java.net.BindException: Address already in use


which means that some other application is already listening on the port.
You can try to find this application by using for example on linux netstat -tulpn and kill it. Or you can change TeamCity port in <

TeamCity server folder>/conf/server.xml file.
0
Comment actions Permalink

Thank you for this answer but I believe that his error is just a result of trying to start TeamCity a couple times in a row to see if it would change something. I just tried to start it again and the server seems to work for a short while after executing configtest.sh and teamcity-server.sh in this order. I think that configtest opens port 8111 and, for some reason, none of the other commands does.

0
Comment actions Permalink

Hi,

Can you please try to change the port number? If TeamCity does not start please attach logs folder.

0
Comment actions Permalink

localhost is not working on port 8111

also getting error while running runAll.sh

 

0
Comment actions Permalink

Hi,

 

Using port 8111 should be fine. A common situation here is that you have already started an instance of TeamCity and a new one is unable to lock that same port.

 

Please check that there is no lingering process of teamcity before starting it again. Also double check that there is no other program running on that port. If that doesn't work, please share the error messages you are getting, but please do so in a new topic.

0

Please sign in to leave a comment.