Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

Hi my fellow Knowage users,

I just started using Knowage 7.1, sucessfully installed it, but having an issue when I try to access knowage at "localhost:8080/knowage" after I ran tomcat server using "./knowage_startup.sh".

Here is what inside my knowage.log file:



[localhost-startStop-12] 03 Apr 2020 21:27:47,433 ERROR com.hazelcast.instance.DefaultAddressPicker.log:50 - [LOCAL] [dev] [3.6.1] Port [5701] is already in use and auto-increment is disabled. Hazelcast cannot start.

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind0(Native Method)

at sun.nio.ch.Net.bind(Net.java:433)

at sun.nio.ch.Net.bind(Net.java:425)

at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

at com.hazelcast.instance.DefaultAddressPicker.getPublicAddressByPortSearch(DefaultAddressPicker.java:125)

at com.hazelcast.instance.DefaultAddressPicker.pickAddress(DefaultAddressPicker.java:74)

at com.hazelcast.instance.Node.<init>(Node.java:157)

at com.hazelcast.instance.HazelcastInstanceImpl.<init>(HazelcastInstanceImpl.java:125)

at com.hazelcast.instance.HazelcastInstanceFactory.constructHazelcastInstance(HazelcastInstanceFactory.java:160)

at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:143)

at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:111)

at com.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:58)

at it.eng.spagobi.utilities.locks.DistributedLockFactory.getHazelcastInstance(DistributedLockFactory.java:61)

at it.eng.spagobi.utilities.locks.DistributedLockFactory.getDistributedMap(DistributedLockFactory.java:49)

at it.eng.spagobi.utilities.locks.listeners.HazelcastContextListener.contextInitialized(HazelcastContextListener.java:28)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)

at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:970)

at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1841)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)


After I check, there are no applications or instances running on port 5701. Moreover, I cannot find hazelcast.xml file in my Knowage folder.

So, please let me know if you guys have any solutions. It would be really appreciated. Thanks in advance!

Environment Knowage 7.1. OS: macOS Catalina 10.15.3
in Standard by (120 points)

Hi vari,

just for a testing purpose, try to use port 8080 for Knowage instead of 5701.
Then access localhost:8080/knowage and see if it works.

Bye,
Marco.

Hi Marco,

Thanks for the reply.

I already tried to use port 8080 and the tomcat server is running, since I can access "localhost:8080". However when I access "localhost:8080/knowage", somehow it shows an HTTP 404 error. As what knowage.log tells, the problem is related to port 5701 being used, so hazelcast cannot start.

Take a look at this thread, you may find it useful in order to solve your problem

https://www.knowage-suite.com/qa/548/not-able-to-start-knowage-server

I did take a look at the thread, but I cannot find the hazelcast.xml file in my knowage folder. Do you have any suggestions?

As indicated in the linked thread, you can find hazelcast.xml under webapps/knowage/WEB-INF/classes

Hi Marco,

My webapps folder structure is different from the one that you suggested. Please take a look at bellow image:

In each folders inside the webapps folder there is no hazelcast.xml file or any related file. Do you have any opinion? 

Thanks

The hazelcast.xml file is contained inside tomcat folder.
Inside the tomcat folder look for knowage entry and then follow the specified path.

Please log in or register to answer this question.

...