question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remote connectivity issue

See original GitHub issue

new ClickHouseDataSource("jdbc:clickhouse://clickhouse:8123").getConnection().createStatement(); When trying to connect like this, I get the following error

Exception in thread "main" ru.yandex.clickhouse.except.ClickHouseException: ClickHouse exception, code: 210, host: clickhouse, port: 8123; Connect to clickhouse:8123 [clickhouse/40.78.***.***] failed: connect timed out at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:42) at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:23) at ru.yandex.clickhouse.ClickHouseStatementImpl.getInputStream(ClickHouseStatementImpl.java:461) at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:73) at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at ru.yandex.clickhouse.util.LogProxy.invoke(LogProxy.java:42) at com.sun.proxy.$Proxy3.executeQuery(Unknown Source) at am.galstyan.ClickhouseJdbc.main(ClickhouseJdbc.java:17) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

It seems that connection works fine only if the host is local otherwise it throws this exception

even when I am trying to connect, say, fb.com, it throws the very same exception, however when I am trying to connect to localhost, it works fine. COuld you help me resolve the issue

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rasmus93commented, Aug 30, 2017

@bhagujava do you use the last version of jdbc-driver?

0reactions
mspisarevcommented, Oct 3, 2019

in data grip throws java.net.ConnectException when trying to connect to clickhouse al virtual machine at jdbc:clickhouse://192.168.15.110:8123

java.net.ConnectException: Connection refused: connect.

please help

ОК. I got it - at file /etc/clickhouse-server/config.xml uncomment line <listen_host>::</listen_host>

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix 8 common remote desktop connection problems
1. Network failure ... A lack of a valid communications path can prevent a client from connecting to a remote desktop session. The...
Read more >
General Remote Desktop connection troubleshooting
Check that another application isn't trying to use the same port · Configure the other application or service to use a different port...
Read more >
How to fix 'remote desktop can't connect to the remote computer'
Fixing the 'remote desktop can't connect to the remote computer' error · Change your firewall settings · Check your permissions · Allow remote ......
Read more >
9 Fixes to Use if Remote Desktop Connection is Not Working
1. Check your internet connection · 2. Check if remote connections are allowed · 3. Remove your credentials from Remote Desktop · 4....
Read more >
6 Tips to Resolve Problems with Remote Desktop - HelpWire
Six Tips to Resolve Problems with Remote Desktop and Screen Connections · 1. You cannot connect to the remote computer · 2. Remote...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found