1

最近我将我的 Ubuntu 从 13.04 升级到了 13.10。一切都很顺利,但升级几天后,我意识到我的 CouchDB 实例出现了问题。

升级前创建的数据库有前缀:“1.2.0/”,所以现在它看起来像“1.2.0/_users”,我无法使用 CURL 或 Futon 打开它。当我尝试时,在 Futon 中出现错误:

Error: illegal_database_name

Name: '120/_users'. Only lowercase characters (a-z), digits (0-9), and any of the characters _, $, (, ), +, -, and / are allowed. Must begin with a letter.

如何恢复我的数据库?

添加:

当我在文件系统中复制数据库时,出现以下错误:

Error: {{case_clause,{{badmatch,{error,eacces}},
           [{couch_file,init,1,[{file,"couch_file.erl"},{line,314}]},
            {gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},
            {proc_lib,init_p_do_apply,3,
                      [{file,"proc_lib.erl"},{line,239}]}]}},
 [{couch_server,handle_info,2,[{file,"couch_server.erl"},{line,437}]},
 {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,604}]},
 {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}

{gen_server,call,
[couch_server,
 {open,<<"eksploracja">>,
     [{user_ctx,
          {user_ctx,null,
              [<<"_admin">>],
              <<"{couch_httpd_auth, default_authentication_handler}">>}}]},
 infinity]}
4

2 回答 2

2

您可以尝试重命名数据库文件。在 Ubuntu 上,它们存储在/var/lib/couchdb/路径下。

于 2013-11-11T13:24:48.847 回答
0

I got the same problem upgrading from 12.04 to 14.04. The database appear in Futon with the prefix 1.0.1. in The folder "/var/lib/couchdb/" I found another folder named "1.0.1" (as the prefix appearing in Futon) with inside my database. I moved up my database file in the folder "/var/lib/couchdb/" (up one level) and then Futon recognized it.

于 2014-05-15T14:55:03.183 回答