[GH-ISSUE #627] Error when connect ck using read only model #174

Closed
opened 2026-03-07 20:45:41 +03:00 by kerem · 7 comments
Owner

Originally created by @yubobo on GitHub (Jan 21, 2022).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/627

SQL Error [164]: ClickHouse exception, code: 164, host: cc-clickhouse.oppoer.me, port: 80; Code: 164, e.displayText() = DB::Exception: Cannot modify 'max_result_rows' setting in readonly mode (version 20.8.5.45)

how to modify this error?

Originally created by @yubobo on GitHub (Jan 21, 2022). Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/627 SQL Error [164]: ClickHouse exception, code: 164, host: cc-clickhouse.oppoer.me, port: 80; Code: 164, e.displayText() = DB::Exception: Cannot modify 'max_result_rows' setting in readonly mode (version 20.8.5.45) how to modify this error?
kerem 2026-03-07 20:45:41 +03:00
Author
Owner

@yubobo commented on GitHub (Jan 24, 2022):

org.jkiss.dbeaver.model.sql.DBSQLException: SQL Error [164]: ClickHouse exception, code: 164, host: cc-clickhouse.oppoer.me, port: 80; Code: 164, e.displayText() = DB::Exception: Cannot modify 'max_result_rows' setting in readonly mode (version 20.8.5.45)

at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.executeStatement(JDBCStatementImpl.java:133)
at org.jkiss.dbeaver.model.impl.jdbc.struct.JDBCTable.readData(JDBCTable.java:190)
at io.cloudbeaver.service.sql.WebSQLProcessor.lambda$2(WebSQLProcessor.java:232)
at org.jkiss.dbeaver.model.exec.DBExecUtils.tryExecuteRecover(DBExecUtils.java:171)
at io.cloudbeaver.service.sql.WebSQLProcessor.readDataFromContainer(WebSQLProcessor.java:229)
at io.cloudbeaver.service.sql.impl.WebServiceSQL$2.run(WebServiceSQL.java:340)
at io.cloudbeaver.model.session.WebSession$1.run(WebSession.java:591)
at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:105)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Caused by: ru.yandex.clickhouse.except.ClickHouseException: ClickHouse exception, code: 164, host: cc-clickhouse.oppoer.me, port: 80; Code: 164, e.displayText() = DB::Exception: Cannot modify 'max_result_rows' setting in readonly mode (version 20.8.5.45)

at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:59)
at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:29)
at ru.yandex.clickhouse.ClickHouseStatementImpl.checkForErrorAndThrow(ClickHouseStatementImpl.java:1099)
at ru.yandex.clickhouse.ClickHouseStatementImpl.getInputStream(ClickHouseStatementImpl.java:778)
at ru.yandex.clickhouse.ClickHouseStatementImpl.getLastInputStream(ClickHouseStatementImpl.java:692)
at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:341)
at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:325)
at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:320)
at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:315)
at ru.yandex.clickhouse.ClickHouseStatementImpl.execute(ClickHouseStatementImpl.java:446)
at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.execute(JDBCStatementImpl.java:330)
at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.executeStatement(JDBCStatementImpl.java:130)
... 8 more

Caused by: java.lang.Throwable: Code: 164, e.displayText() = DB::Exception: Cannot modify 'max_result_rows' setting in readonly mode (version 20.8.5.45)

at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:54)
... 19 more
<!-- gh-comment-id:1019837146 --> @yubobo commented on GitHub (Jan 24, 2022): org.jkiss.dbeaver.model.sql.DBSQLException: SQL Error [164]: ClickHouse exception, code: 164, host: cc-clickhouse.oppoer.me, port: 80; Code: 164, e.displayText() = DB::Exception: Cannot modify 'max_result_rows' setting in readonly mode (version 20.8.5.45) at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.executeStatement(JDBCStatementImpl.java:133) at org.jkiss.dbeaver.model.impl.jdbc.struct.JDBCTable.readData(JDBCTable.java:190) at io.cloudbeaver.service.sql.WebSQLProcessor.lambda$2(WebSQLProcessor.java:232) at org.jkiss.dbeaver.model.exec.DBExecUtils.tryExecuteRecover(DBExecUtils.java:171) at io.cloudbeaver.service.sql.WebSQLProcessor.readDataFromContainer(WebSQLProcessor.java:229) at io.cloudbeaver.service.sql.impl.WebServiceSQL$2.run(WebServiceSQL.java:340) at io.cloudbeaver.model.session.WebSession$1.run(WebSession.java:591) at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:105) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Caused by: ru.yandex.clickhouse.except.ClickHouseException: ClickHouse exception, code: 164, host: cc-clickhouse.oppoer.me, port: 80; Code: 164, e.displayText() = DB::Exception: Cannot modify 'max_result_rows' setting in readonly mode (version 20.8.5.45) at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:59) at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:29) at ru.yandex.clickhouse.ClickHouseStatementImpl.checkForErrorAndThrow(ClickHouseStatementImpl.java:1099) at ru.yandex.clickhouse.ClickHouseStatementImpl.getInputStream(ClickHouseStatementImpl.java:778) at ru.yandex.clickhouse.ClickHouseStatementImpl.getLastInputStream(ClickHouseStatementImpl.java:692) at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:341) at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:325) at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:320) at ru.yandex.clickhouse.ClickHouseStatementImpl.executeQuery(ClickHouseStatementImpl.java:315) at ru.yandex.clickhouse.ClickHouseStatementImpl.execute(ClickHouseStatementImpl.java:446) at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.execute(JDBCStatementImpl.java:330) at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCStatementImpl.executeStatement(JDBCStatementImpl.java:130) ... 8 more Caused by: java.lang.Throwable: Code: 164, e.displayText() = DB::Exception: Cannot modify 'max_result_rows' setting in readonly mode (version 20.8.5.45) at ru.yandex.clickhouse.except.ClickHouseExceptionSpecifier.specify(ClickHouseExceptionSpecifier.java:54) ... 19 more
Author
Owner

@kseniiaguzeeva commented on GitHub (Jan 24, 2022):

Can you connect to Clickhouse via another application (e.g. DBeaver)? It seems, that the issue is in Clickhouse configuration. Could you please try the advice from this ticket? Here is Clickhouse documentation.
I'm looking forward to your answer.

<!-- gh-comment-id:1019873758 --> @kseniiaguzeeva commented on GitHub (Jan 24, 2022): Can you connect to Clickhouse via another application (e.g. DBeaver)? It seems, that the issue is in Clickhouse configuration. Could you please try the advice from [this ticket](https://github.com/enqueue/metabase-clickhouse-driver/issues/20)? Here is [Clickhouse documentation](https://clickhouse.com/docs/en/operations/settings/permissions-for-queries/#settings_readonly). I'm looking forward to your answer.
Author
Owner

@yubobo commented on GitHub (Jan 24, 2022):

I use DataGrip to connect to CK successfully. read only mode.
image

<!-- gh-comment-id:1020015542 --> @yubobo commented on GitHub (Jan 24, 2022): I use DataGrip to connect to CK successfully. read only mode. ![image](https://user-images.githubusercontent.com/4443390/150777782-2067fd14-89b0-42e9-82eb-b39ee66d4ed9.png)
Author
Owner

@kseniiaguzeeva commented on GitHub (Jan 26, 2022):

Thank you for the report. It will be fixed.

<!-- gh-comment-id:1022151063 --> @kseniiaguzeeva commented on GitHub (Jan 26, 2022): Thank you for the report. It will be fixed.
Author
Owner

@simsicon commented on GitHub (Jan 28, 2022):

@kseniiaguzeeva I can confirm that I am experiencing the same problem with dbeaver/cloudbeaver:21.3.3 docker built. Looking forward to the fix, thank you for your work.

<!-- gh-comment-id:1023823316 --> @simsicon commented on GitHub (Jan 28, 2022): @kseniiaguzeeva I can confirm that I am experiencing the same problem with dbeaver/cloudbeaver:21.3.3 docker built. Looking forward to the fix, thank you for your work.
Author
Owner

@kseniiaguzeeva commented on GitHub (Jan 28, 2022):

Thank you for the report. We are going to fix it in 22.0.0 release.

<!-- gh-comment-id:1023930780 --> @kseniiaguzeeva commented on GitHub (Jan 28, 2022): Thank you for the report. We are going to fix it in 22.0.0 release.
Author
Owner

@kseniiaguzeeva commented on GitHub (Mar 10, 2022):

The issue is fixed in the latest release.

<!-- gh-comment-id:1064052572 --> @kseniiaguzeeva commented on GitHub (Mar 10, 2022): The issue is fixed in the latest release.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudbeaver#174
No description provided.