Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when i connect to AS400 server #173

Open
haiwei1991 opened this issue Mar 11, 2023 · 4 comments
Open

error when i connect to AS400 server #173

haiwei1991 opened this issue Mar 11, 2023 · 4 comments

Comments

@haiwei1991
Copy link

when i connect to my AS400 server, there is an error , I can not solve it ,please help me .
see the log bellow:

2023.03.11 18:50:05.698990 [ 13433 ] {646bc397-3168-45f7-a12e-6df38e4ff5b7} <Error> ReadWriteBufferFromHTTP: HTTP request to http://127.0.0.1:9019/columns_info?version=1&connection_string=as400&table=select%20%2A%20from%20PGR05LB.MHL59P&external_table_functions_use_nulls=1` failed at try 1/1 with bytes read: 0/unknown. Error: DB::Exception: Received error from remote server /columns_info?version=1&connection_string=as400&table=select%20%2A%20from%20PGR05LB.MHL59P&external_table_functions_use_nulls=1. HTTP status code: 500 Internal Server Error, body: Failed to infer schema from [as400] due to: Failed to access [as400] due to: as400 - Connection is not available, request timed out after 30000ms.. (Current backoff wait is 100/1600 ms)
2023.03.11 18:50:05.799663 [ 13433 ] {646bc397-3168-45f7-a12e-6df38e4ff5b7} executeQuery: Code: 86. DB::Exception: Received error from remote server /columns_info?version=1&connection_string=as400&table=select%20%2A%20from%20PGR05LB.MHL59P&external_table_functions_use_nulls=1. HTTP status code: 500 Internal Server Error, body: Failed to infer schema from [as400] due to: Failed to access [as400] due to: as400 - Connection is not available, request timed out after 30000ms. (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER) (version 22.9.4.32 (official build)) (from [::ffff:172.31.76.22]:60177) (in query: select * from jdbc('as400', 'select * from PGR05LB.MHL59P') FORMAT TabSeparatedWithNamesAndTypes;), Stack trace (when copying this message, always include the lines below):
`

@haiwei1991
Copy link
Author

my version

clickhouse-server-22.9.4.32-1.x86_64
clickhouse-client-22.9.4.32-1.x86_64
clickhouse-common-static-dbg-22.9.4.32-1.x86_64
clickhouse-jdbc-bridge-2.1.0-1.noarch
clickhouse-common-static-22.9.4.32-1.x86_64

@haiwei1991
Copy link
Author

@zhicwu

@zhicwu
Copy link
Contributor

zhicwu commented Mar 13, 2023

as400 - Connection is not available, request timed out after 30000ms.

Hi @haiwei1991, have you validated the datasource configuration on JDBC bridge servder? It seems not working.

@haiwei1991
Copy link
Author

as400 - Connection is not available, request timed out after 30000ms.

Hi @haiwei1991, have you validated the datasource configuration on JDBC bridge servder? It seems not working.

I executed select * from jdbc('', 'show datasources') and I can see the datasource of AS400 。
I‘m not sure if it is the validation you said. are there any other way to validate the datasource configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants