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

路由器掉电后,重新启动不了在Docker下的Halo了 #4982

Closed
xyblue135 opened this issue Dec 3, 2023 · 3 comments
Closed

路由器掉电后,重新启动不了在Docker下的Halo了 #4982

xyblue135 opened this issue Dec 3, 2023 · 3 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@xyblue135
Copy link

xyblue135 commented Dec 3, 2023

你当前使用的版本

halo:2.11

描述一下此特性

stdout: Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/root/.halo2/db/halo-next.mv.db". Possible solution: use the recovery tool [90030-224]
stdout: 	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.message.DbException.get(DbException.java:212) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.mvstore.db.Store.<init>(Store.java:142) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.engine.Database.<init>(Database.java:326) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.engine.Engine.openSession(Engine.java:92) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.engine.Engine.openSession(Engine.java:222) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.engine.Engine.createSession(Engine.java:201) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:343) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at io.r2dbc.h2.client.SessionClient.<init>(SessionClient.java:58) ~[r2dbc-h2-1.0.0.RELEASE.jar:1.0.0.RELEASE]
stdout: 	at io.r2dbc.h2.H2ConnectionFactory.getSessionClient(H2ConnectionFactory.java:117) ~[r2dbc-h2-1.0.0.RELEASE.jar:1.0.0.RELEASE]
stdout: 	... 16 common frames omitted
stdout: Caused by: org.h2.mvstore.MVStoreException: File is corrupted - unable to recover a valid set of chunks [2.2.224/6]
stdout: 	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:320) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.mvstore.FileStore.start(FileStore.java:916) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.mvstore.MVStore.<init>(MVStore.java:289) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035) ~[h2-2.2.224.jar:2.2.224]
stdout: 	at org.h2.mvstore.db.Store.<init>(Store.java:133) ~[h2-2.2.224.jar:2.2.224]
stdout: 	... 23 common frames omitted
stdout: 

附加信息

No response

@ruibaby
Copy link
Member

ruibaby commented Dec 4, 2023

看起来是 h2 物理文件损坏,目前你只能尝试通过 h2 恢复工具,相关 issue:#4060

此外,我们并不推荐在生产环境使用 h2 数据库,如果一定要用请定时备份数据。

图片

/triage duplicate
/kind bug

@f2c-ci-robot f2c-ci-robot bot added triage/duplicate Indicates an issue is a duplicate of other open issue. kind/bug Categorizes issue or PR as related to a bug. labels Dec 4, 2023
@ruibaby
Copy link
Member

ruibaby commented Jan 2, 2024

/close

@f2c-ci-robot f2c-ci-robot bot closed this as completed Jan 2, 2024
Copy link

f2c-ci-robot bot commented Jan 2, 2024

@ruibaby: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

2 participants