BFG startup "java.net.SocketException: EDC5111I Permission denied"
search cancel

BFG startup "java.net.SocketException: EDC5111I Permission denied"

book

Article ID: 420811

calendar_today

Updated On:

Products

Endevor

Issue/Introduction

Endevor Bridge For Git (BFG) startup fails with this error:

 Caused by: java.net.SocketException: EDC5111I Permission denied.
     at sun.nio.ch.Net.bind0(Native Method)

Environment

Endevor Bridge For Git

Cause

The BFG server cannot start listening at the port specified (8080) because either it does not have permissions which for this customer would be ACF2 related or that port is already being used.

Resolution

The user already has Endevor Web Services running on this same LPAR & same TCP/IP stack and it is using port 8080.
Therefore the BFG port was changed to 8081 in the application.yml file and STC restarted.
However the log showed that port 8080 was still being used and the error remained.
The application.yml file had a syntax error because there are no spaces before the port parameter:

server:
  # Port number of the application
port: 8081

There should be 2 spaces before port, so the correct syntax is:

server:
  # Port number of the application
  port: 8081

That enabled BFG to start on port 8081.