Berkeley DB 错误:无法锁定 je.lck 文件

发布于 2024-12-22 14:46:22 字数 179 浏览 6 评论 0原文

使用 berkeley DB 运行 java 程序时,我们遇到 ff 错误。

“无法为单写入者访问锁定环境。ENV_LOCKED:无法锁定 je.lck 文件。环境无效,必须关闭。”

知道错误的原因是什么以及我们如何解决这个问题。

谢谢!

We are encountering the ff error when running a java program using a berkeley DB.

"The environment cannot be locked for single writer access. ENV_LOCKED: The je.lck file could not be locked. Environment is invalid and must be closed."

Any idea what is the cause of the error and how can we fixed this.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

演多会厌 2024-12-29 14:46:22

您的 Berkeley DB 设置为“单写入器访问”。您必须有另一个进程已经写入它并有效锁定它。

您应该终止其他进程并继续。抱歉,不知道 BerkeleyDB 是否可以设置为多写入器访问。

PS - je.lck是文件系统中实现锁的文件。删除它还可能释放数据库供您的进程访问并撤销其他进程的访问权限。

Your Berkeley DB is set up for "single writer access". You must have another process already writing to it and effectively locking it.

You should terminate the other process or processes and proceed. No idea if BerkeleyDB can be set up for multiple writer access, sorry.

PS - je.lck is a file in the file system that implements the lock. Deleting it might also free the DB for your process to access and revoke the other process' access.

疾风者 2024-12-29 14:46:22

就我而言,当应用程序终止且环境未正确关闭时,就会出现问题。你需要关闭它。

要解决打开问题,您需要删除数据库中的 *​​.lck 文件

In my case problem occurs when app terminates and Environment not properly closed. You need to close it.

To solve opening problem you need to delete *.lck files in your db

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文