1

由于我们将 CouchDB 从 1.2.0 升级到 1.3.0,因此在压缩数据库时遇到了问题。其他一切工作都很好而且很顺利,但是在压缩数据库时(通过 Futon 或通过 Cron/CURL 命令)它不会压缩数据库。不过,查看压缩工作正常。每次触发数据库压缩时,我们都会在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压缩时没有生成文件。

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

4

1 回答 1

0

我担心同样的错误消息,但在尝试查找可能不应该被 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.
于 2013-05-11T09:00:40.453 回答