jvegaseg opened a new issue #1106: CouchDB 2.1.1: errors on startup "Error 
opening view group `_auth`" 
URL: https://github.com/apache/couchdb/issues/1106
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   We have a 6-node cluster configured with q=16. 
   
   Every time we restart the server, couchdb logs same errors on startup.
   
   ## Expected Behavior
   It should start without errors
   
   ## Current Behavior
   <!--- If describing a bug, tell us what happens instead of the expected 
behavior -->
   <!--- If suggesting a change/improvement, explain the difference from 
current behavior -->
   It starts with errors:
   ```
   
   
   [info] 2018-01-13T17:07:55.495800Z [email protected] <0.7.0> -------- 
Application couch_log started on node '[email protected]'
   [info] 2018-01-13T17:07:55.500099Z [email protected] <0.7.0> -------- 
Application folsom started on node '[email protected]'
   [info] 2018-01-13T17:07:55.535214Z [email protected] <0.7.0> -------- 
Application couch_stats started on node '[email protected]'
   [info] 2018-01-13T17:07:55.535340Z [email protected] <0.7.0> -------- 
Application khash started on node '[email protected]'
   [info] 2018-01-13T17:07:55.542427Z [email protected] <0.7.0> -------- 
Application couch_event started on node '[email protected]'
   [info] 2018-01-13T17:07:55.547405Z [email protected] <0.7.0> -------- 
Application ibrowse started on node '[email protected]'
   [info] 2018-01-13T17:07:55.551422Z [email protected] <0.7.0> -------- 
Application ioq started on node '[email protected]'
   [info] 2018-01-13T17:07:55.551568Z [email protected] <0.7.0> -------- 
Application mochiweb started on node '[email protected]'
   [info] 2018-01-13T17:07:55.557754Z [email protected] <0.213.0> -------- Apache 
CouchDB 2.1.1 is starting.
   
   [info] 2018-01-13T17:07:55.557893Z [email protected] <0.214.0> -------- 
Starting couch_sup
   [info] 2018-01-13T17:07:55.695716Z [email protected] <0.213.0> -------- Apache 
CouchDB has started. Time to relax.
   
   [info] 2018-01-13T17:07:55.695890Z [email protected] <0.213.0> -------- Apache 
CouchDB has started on http://0.0.0.0:5986/
   [info] 2018-01-13T17:07:55.696003Z [email protected] <0.7.0> -------- 
Application couch started on node '[email protected]'
   [info] 2018-01-13T17:07:55.696139Z [email protected] <0.7.0> -------- 
Application ets_lru started on node '[email protected]'
   [info] 2018-01-13T17:07:55.720481Z [email protected] <0.7.0> -------- 
Application rexi started on node '[email protected]'
   [error] 2018-01-13T17:07:55.729736Z [email protected] emulator -------- Error 
in process <0.323.0> on node '[email protected]' with exit value:
   
{badarg,[{ets,member,[mem3_openers,<<"_users">>],[]},{mem3_shards,maybe_spawn_shard_writer,3,[{file,"src/mem3_shards.erl"},{line,486}]},{mem3_shards,load_shards_from_db,2,[{file,"src/mem3_shards.erl"},{line,389}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,407}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,96}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{couch_index_server,'-get_index/3-fun-0-',2,[{file,"src/couch_index_server.erl"},{line,68}]}]}
   
   [error] 2018-01-13T17:07:55.729874Z [email protected] <0.249.0> -------- Error 
opening view group `_auth` from database 
`shards/50000000-5fffffff/_users.1510390507`: 
{'EXIT',{{badmatch,{badarg,[{ets,member,[mem3_openers,<<"_users">>],[]},{mem3_shards,maybe_spawn_shard_writer,3,[{file,"src/mem3_shards.erl"},{line,486}]},{mem3_shards,load_shards_from_db,2,[{file,"src/mem3_shards.erl"},{line,389}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,407}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,96}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{couch_index_server,'-get_index/3-fun-0-',2,[{file,"src/couch_index_server.erl"},{line,68}]}]}},[{couch_mrview,get_info,2,[{file,"src/couch_mrview.erl"},{line,332}]},{couch_compaction_daemon,maybe_compact_view,3,[{file,"src/couch_compaction_daemon.erl"},{line,253}]},{couch_compaction_daemon,maybe_compact_views,3,[{file,"src/couch_compaction_daemon.erl"},{line,227}]},{couch_compaction_daemon,'-compact_loop/1-fun-0-',3,[{file,"src/couch_compaction_daemon.erl"},{line,141}]},{couch_server,'-all_databases/2-fun-0-',4,[{file,"src/couch_server.erl"},{line,278}]},{filelib,do_fold_files2,8,[{file,"filelib.erl"},{line,185}]},{filelib,do_fold_files2,8,[{file,"filelib.erl"},{line,195}]},{couch_server,all_databases,2,[{file,"src/couch_server.erl"},{line,267}]}]}}
   [info] 2018-01-13T17:07:55.784275Z [email protected] <0.365.0> -------- 
Starting compaction for db "shards/30000000-3fffffff/_global_changes.1510390507"
   [info] 2018-01-13T17:07:55.786450Z [email protected] <0.7.0> -------- 
Application mem3 started on node '[email protected]'
   [info] 2018-01-13T17:07:55.786533Z [email protected] <0.7.0> -------- 
Application fabric started on node '[email protected]'
   [notice] 2018-01-13T17:07:55.851770Z [email protected] <0.365.0> -------- 
Compaction swap for db: 
./data/shards/30000000-3fffffff/_global_changes.1510390507.couch 7905486 53448
   [info] 2018-01-13T17:07:55.852253Z [email protected] <0.365.0> -------- 
Compaction for db "shards/30000000-3fffffff/_global_changes.1510390507" 
completed.
   [info] 2018-01-13T17:07:55.905176Z [email protected] <0.7.0> -------- 
Application chttpd started on node '[email protected]'
   [info] 2018-01-13T17:07:55.917494Z [email protected] <0.7.0> -------- 
Application couch_index started on node '[email protected]'
   [info] 2018-01-13T17:07:55.917531Z [email protected] <0.7.0> -------- 
Application couch_mrview started on node '[email protected]'
   [info] 2018-01-13T17:07:55.917616Z [email protected] <0.7.0> -------- 
Application couch_plugins started on node '[email protected]'
   [info] 2018-01-13T17:07:55.917616Z [email protected] <0.7.0> -------- 
Application couch_plugins started on node '[email protected]'
   [notice] 2018-01-13T17:07:55.968574Z [email protected] <0.93.0> -------- 
config: [features] scheduler set to true for reason nil
   [info] 2018-01-13T17:07:55.993761Z [email protected] <0.1278.0> -------- 
Opening index for db: _users idx: _design/_auth sig: 
"3e823c2a4383ac0c18d4e574135a5b08"
   [info] 2018-01-13T17:07:56.004620Z [email protected] <0.1302.0> -------- 
Opening index for db: _replicator idx: _design/_replicator sig: 
"3e823c2a4383ac0c18d4e574135a5b08"
   [info] 2018-01-13T17:07:56.013595Z [email protected] <0.7.0> -------- 
Application couch_replicator started on node '[email protected]'
   [info] 2018-01-13T17:07:56.019517Z [email protected] <0.7.0> -------- 
Application couch_peruser started on node '[email protected]'
   [info] 2018-01-13T17:07:56.025704Z [email protected] <0.7.0> -------- 
Application ddoc_cache started on node '[email protected]'
   [info] 2018-01-13T17:07:56.036404Z [email protected] <0.7.0> -------- 
Application global_changes started on node '[email protected]'
   [info] 2018-01-13T17:07:56.036492Z [email protected] <0.7.0> -------- 
Application jiffy started on node '[email protected]'
   [info] 2018-01-13T17:07:56.040751Z [email protected] <0.7.0> -------- 
Application mango started on node '[email protected]'
   [info] 2018-01-13T17:07:56.045152Z [email protected] <0.7.0> -------- 
Application setup started on node '[email protected]'
   [info] 2018-01-13T17:07:56.045228Z [email protected] <0.7.0> -------- 
Application snappy started on node '[email protected]'
   
   
   ```
   
   
   ## Possible Solution
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
   I do not know-
   
   ## Configuration
   We use default settings except:
   
   local.ini
   ```
   [cluster]
   q = 16
   
   [log]
   level = warning
   ```
   
   vm.args
   ```
   -name [email protected]
   -setcookie XXXXXXXXXXXXXX
   -kernel inet_dist_listen_min 9100
   -kernel inet_dist_listen_max 9200
   
   -kernel error_logger silent
   -sasl sasl_error_logger false
   
   +K true
   +A 16
   +Bd -noinput
   ```
   
   sys.config
   
   ```
   [
       {lager, [
           {error_logger_hwm, 1000},
           {error_logger_redirect, true},
           {handlers, [
               {lager_console_backend, [debug, {
                   lager_default_formatter,
                   [
                       date, " ", time,
                       " [", severity, "] ",
                       node, " ", pid, " ",
                       message,
                       "\n"
                   ]
               }]}
           ]},
           {inet_dist_listen_min, 9100},
           {inet_dist_listen_max, 9200}
       ]}
   ].
   ```
   
   ## Environment
   Software is running on virtualized Centos 7 using OpenVZ 7.
   Each node has same configuration.
   Each node has 16 cores.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to