Hi,
I’m trying to run openmrs from Openmrs SDK by running mvn openmrs-sdk:run and I’m getting the following error
Had anyone encountered it and knows what might be wrong?
@raff, @dkayiwa, @dserkowski, @alalo, anyone?
Regards, Tomasz
Hi,
I’m trying to run openmrs from Openmrs SDK by running mvn openmrs-sdk:run and I’m getting the following error
Had anyone encountered it and knows what might be wrong?
@raff, @dkayiwa, @dserkowski, @alalo, anyone?
Regards, Tomasz
java.net.BindException: Address already in use (Bind failed) <null>:8081
The log says, Port 8081 already in use (It may be used by other services). So you need to find another port to run the OpenMRS server. You can use this following command to start the server with different port,
mvn openmrs-sdk:run -Dport=8082
Thank you very much, @suthagar23!!!
i couldn’t find anything that was blocking the port, but… mvn openmrs-sdk:run -Dport=8082 actually worked:D
Great
@tmueller FYI newer versions of the SDK detect a port in use, then move to the next port and allow you to set the default port for a server in server.properties as server.port=8100