gpt4 book ai didi

linux - CouchDB 1.3.0 数据库压缩 - 错误 grondot.couch.compact : no such file

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:36:51 26 4
gpt4 key购买 nike

自从我们将 CouchDB 从 1.2.0 升级到 1.3.0 后,我们在压缩数据库时遇到了问题。其他一切都工作得很好,但在压缩数据库时(通过 Futon 或通过 Cron/CURL 命令)它不会压缩数据库。 View 压缩虽然工作正常。每次触发数据库压缩时,我们都会在 couch.log 中收到此错误文件:

[Tue, 07 May 2013 02:00:01 GMT] [error] [<0.1264.1402>] Could not open file /usr/local/var/lib/couchdb/grondot.couch.compact: no such file or directory

.couch 的位置文件正确,但没有 .compact压缩时生成的文件。

有人知道(或已经解决)这个问题吗?

最佳答案

我担心同样的错误消息,但事实证明这似乎是一个内部错误,同时试图找到一个可能不应该被 CouchDB 记录的现有压缩文件。如果您将日志级别更改为“调试”,您会注意到它完成了压缩,尽管显示了错误:

[info] [<0.319.0>] Starting compaction for db "core-configuration"
[debug] [<0.896.0>] Compaction process spawned for db "core-configuration"
[info] [<0.130.0>] 192.168.1.20 - - POST /core-configuration/_compact 202
[error] [<0.896.0>] Could not open file /var/data/couchdb/core-configuration.couch.compact: no such file or directory
[debug] [<0.88.0>] New task status for <0.896.0>: [{changes_done,3981},
{database,
<<"core-configuration">>},
{progress,49},
{started_on,1368262489},
{total_changes,8082},
{type,database_compaction},
{updated_on,1368262490}]
[debug] [<0.88.0>] New task status for <0.896.0>: [{changes_done,7959},
{database,
<<"core-configuration">>},
{progress,98},
{started_on,1368262489},
{total_changes,8082},
{type,database_compaction},
{updated_on,1368262492}]
[debug] [<0.319.0>] CouchDB swapping files /var/data/couchdb/core-configuration.couch and /var/data/couchdb/core-configuration.couch.compact.
[info] [<0.319.0>] Compaction for db "core-configuration" completed.

关于linux - CouchDB 1.3.0 数据库压缩 - 错误 grondot.couch.compact : no such file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16422191/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com