Cannot connect to web console

classic Classic list List threaded Threaded
4 messages Options
the_palakkaran the_palakkaran
Reply | Threaded
Open this post in threaded view
|

Cannot connect to web console

Hi,

I have copied ignite-http-rest to libs folder and set default.properties as:
tokens=********NlY3
server-uri=https://console.gridgain.com
node-uri=http://127.0.0.1:8080

The url http://localhost:8080/ignite?cmd=version returns success, so the
rest api works correctly.

But I get this error and cannot view dashboard. Please help.

[2019-02-05 16:42:00,603][INFO ][main][AgentLauncher] Starting Apache Ignite
Web Console Agent...
[2019-02-05 16:42:01,501][INFO ][main][AgentLauncher] Connecting to:
https://console.gridgain.com
[2019-02-05 16:42:03,982][INFO ][EventThread][AgentLauncher] Connection
established.
[2019-02-05 16:42:05,059][INFO ][EventThread][AgentLauncher] Authentication
success.
[2019-02-05 16:42:15,070][ERROR][pool-1-thread-1][ClusterListener] WatchTask
failed
java.net.SocketTimeoutException: Connect timed out
        at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:126)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:459)
        at java.net.Socket.connect(Socket.java:589)
        at okhttp3.internal.platform.Platform.connectSocket(Platform.java:124)
        at
okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:221)
        at
okhttp3.internal.connection.RealConnection.connect(RealConnection.java:147)
        at
okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:192)
        at
okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:121)
        at
okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:100)
        at
okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
        at
okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
        at
okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at
okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
        at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)
        at okhttp3.RealCall.execute(RealCall.java:69)
        at
org.apache.ignite.console.agent.rest.RestExecutor.sendRequest(RestExecutor.java:169)
        at
org.apache.ignite.console.agent.rest.RestExecutor.sendRequest(RestExecutor.java:184)
        at
org.apache.ignite.console.agent.handlers.ClusterListener$WatchTask.restCommand(ClusterListener.java:396)
        at
org.apache.ignite.console.agent.handlers.ClusterListener$WatchTask.topology(ClusterListener.java:430)
        at
org.apache.ignite.console.agent.handlers.ClusterListener$WatchTask.run(ClusterListener.java:486)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        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)



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot connect to web console

Hello!

Are you sure you are running Web Agent on same machine as your Ignite REST node?

Regards,
--
Ilya Kasnacheev


вт, 5 февр. 2019 г. в 14:16, the_palakkaran <[hidden email]>:
Hi,

I have copied ignite-http-rest to libs folder and set default.properties as:
tokens=********NlY3
server-uri=https://console.gridgain.com
node-uri=http://127.0.0.1:8080

The url http://localhost:8080/ignite?cmd=version returns success, so the
rest api works correctly.

But I get this error and cannot view dashboard. Please help.

[2019-02-05 16:42:00,603][INFO ][main][AgentLauncher] Starting Apache Ignite
Web Console Agent...
[2019-02-05 16:42:01,501][INFO ][main][AgentLauncher] Connecting to:
https://console.gridgain.com
[2019-02-05 16:42:03,982][INFO ][EventThread][AgentLauncher] Connection
established.
[2019-02-05 16:42:05,059][INFO ][EventThread][AgentLauncher] Authentication
success.
[2019-02-05 16:42:15,070][ERROR][pool-1-thread-1][ClusterListener] WatchTask
failed
java.net.SocketTimeoutException: Connect timed out
        at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:126)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:459)
        at java.net.Socket.connect(Socket.java:589)
        at okhttp3.internal.platform.Platform.connectSocket(Platform.java:124)
        at
okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:221)
        at
okhttp3.internal.connection.RealConnection.connect(RealConnection.java:147)
        at
okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:192)
        at
okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:121)
        at
okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:100)
        at
okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
        at
okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
        at
okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at
okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
        at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)
        at okhttp3.RealCall.execute(RealCall.java:69)
        at
org.apache.ignite.console.agent.rest.RestExecutor.sendRequest(RestExecutor.java:169)
        at
org.apache.ignite.console.agent.rest.RestExecutor.sendRequest(RestExecutor.java:184)
        at
org.apache.ignite.console.agent.handlers.ClusterListener$WatchTask.restCommand(ClusterListener.java:396)
        at
org.apache.ignite.console.agent.handlers.ClusterListener$WatchTask.topology(ClusterListener.java:430)
        at
org.apache.ignite.console.agent.handlers.ClusterListener$WatchTask.run(ClusterListener.java:486)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        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)



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
the_palakkaran the_palakkaran
Reply | Threaded
Open this post in threaded view
|

Re: Cannot connect to web console

Yes I am running on the same node for sure.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: Cannot connect to web console

Hello!

It's a mystery. What version are you using? Can you try running Web Agent manually with different values of -n switch (node url)? Like, http://localhost:8080/ , etc... Adjusting it a little.

Regards,
--
Ilya Kasnacheev


ср, 13 февр. 2019 г. в 09:03, the_palakkaran <[hidden email]>:
Yes I am running on the same node for sure.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/