Crash by "RESTEASY003770: Response is committed" when using h2 database
See original GitHub issuedigdag crashed and cannot restart process only executing # systemctl restart digdag
/var/log/digdag/digdag-error.log
General error: "java.lang.NullPointerException" [50000-192]
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at io.digdag.core.database.DataSourceProvider.createSimpleDataSource(DataSourceProvider.java:70
...
Caused by: org.h2.jdbc.JdbcSQLException: 一般エラー: "java.lang.NullPointerException"
It fixes with command below.
$ sudo systemctl stop digdag
$ sudo mv /var/digdag/database /tmp
$ sudo systemctl restart digdag
I guess this crash caused by resteasy-client bug.
https://issues.jboss.org/browse/RESTEASY-1238
and the bug fixed by this PR which released in 3.0.23.Final
https://github.com/resteasy/Resteasy/pull/1169
My envirtonment
- OS: ubuntu 16.04.2 LTS
- digdag version: 0.9.12
- database.type=h2
- java:
openjdk version "1.8.0_162"
OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)
So I bumped up resteasy-client in this PR. https://github.com/treasure-data/digdag/pull/754
But CI failed with executing webpack which mentioned to my another issue. https://github.com/treasure-data/digdag/issues/753
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
RESTEasy Exception: RESTEASY003770: Response is ...
Ok, having been through this now a couple of times - I've personally seen this behaviour when there is an issue with the...
Read more >Advanced - H2 Database Engine
For a query, this means the transaction is committed even before the application scans through the result set, and before the result set...
Read more >About the recovery of h2 database - Atlassian Community
My confluence is using H2 databases, After an unexpected power outage I can't connect to my confluence, I also failed to link the...
Read more >unable to write: "the database is read only" after system crash
h2 goes to readonly-mode on the attached database. It may have to do with recovery, since we get into this situation (sometimes) by...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@takanamito if my understanding is correct, this issue was already fixed. i close this ticket but, please let me know if you have anything.
@takanamito roughly checked your stacktrace and https://issues.jboss.org/browse/RESTEASY-1238. I agree with you and https://github.com/resteasy/Resteasy/pull/1169 could mitigate this issue. Please re-create or re-open ticket to upgrade resteasy library?