Closed lightonphiri closed 4 years ago
Hi, this one: "Caused by: java.net.BindException: Address already in use" means you have something else running on the port you either want to start your Web Connector or your las2peer node on (the first one you set in the mentioned config files, the latter is set via a parameter of your startup bash command).
Please also check, that you have a proper Java version (preferably Java 8, latest release).
If you have any other issues, feel free to ask!
Best, Peter
Thanks for this. However, I have tried using different ports and I keep getting the Cause by: java.net.BindException: Address already in use
error. Can you help with an example command of setting las2peer node via a parameter?
I have Java 8 installed.
lightonphiri@LIS:~/projects/lis4014/mobsos-surveys$ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-0ubuntu0.16.04.1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
lightonphiri@LIS:~/projects/lis4014/mobsos-surveys$
Sorry for my late reply. In this line of the start script change the "9001" to something else: java -cp "${CLASSPATH}" i5.las2peer.tools.L2pNodeLauncher -p 9001 "startService('i5.las2peer.services.mobsos.surveys.SurveyService@0.2','mobsosrules')" "startWebConnector" "interactive"
Sadly, this does not seem to help either. I still get the errors. I was so hoping I could trying this out. I suppose I will attempt to set it up on a machine that is not running any services.
I'm sorry for your troubles!:-)
Actually the message reads more like your Web connector actually has the wrong address (since the error is thrown after the node itself was already started, but the Web connector fails to start), so you should again try to change this line in the WebConnector config file: httpPort = 8080
Meanwhile..may I direct you to our running installation of the service to try it out? https://las2peer.dbis.rwth-aachen.de:9097/mobsos-surveys/surveys
I cloned project and set it up. However, I cannot seem to start it up. Any idea what it is I could be doing wrong? I set this up on a machine already running services on ports 8080 and 8081 and so tried to alter the ports in
i5.las2peer.services.mobsos.surveys.SurveyService.properties
andi5.las2peer.webConnector.WebConnector.properties
but still no luck.