Ok, I'm trying to configure a single node.
And now, I can access to the admin panel (fauxon).
But,
(1) I can go into verify install page and check that the installation has
been successfully done.
Then its look good
(2) In Database page I see a lot of databse which cannot be loaded
All the "shards/**" database cannot be loaded and this lead to issue when I
want to create an admin user and configure my single node.
Then , from terminal I've executed :
$ curl 127.0.0.1:5986/_all_dbs
["_dbs","_nodes","_replicator","_users","shards/00000000-1fffffff/_global_changes.1475155752","shards/00000000-1fffffff/_replicator.1475155747","shards/00000000-1fffffff/_users.1475155743","shards/20000000-3fffffff/_global_changes.1475155752","shards/20000000-3fffffff/_replicator.1475155747","shards/20000000-3fffffff/_users.1475155743","shards/40000000-5fffffff/_global_changes.1475155752","shards/40000000-5fffffff/_replicator.1475155747","shards/40000000-5fffffff/_users.1475155743","shards/60000000-7fffffff/_global_changes.1475155752","shards/60000000-7fffffff/_replicator.1475155747","shards/60000000-7fffffff/_users.1475155743","shards/80000000-9fffffff/_global_changes.1475155752","shards/80000000-9fffffff/_replicator.1475155747","shards/80000000-9fffffff/_users.1475155743","shards/a0000000-bfffffff/_global_changes.1475155752","shards/a0000000-bfffffff/_replicator.1475155747","shards/a0000000-bfffffff/_users.1475155743","shards/c0000000-dfffffff/_global_changes.1475155752","shards/c0000000-dfffffff/_replicator.1475155747","shards/c0000000-dfffffff/_users.1475155743","shards/e0000000-ffffffff/_global_changes.1475155752","shards/e0000000-ffffffff/_replicator.1475155747","shards/e0000000-ffffffff/_users.1475155743"]
## I cannot create an admin user :
When I click on configure node button, the couchdb process log
[notice] 2016-09-29T13:50:14.405870Z couchdb@localhost <0.7580.0> --------
127.0.0.1 - - POST /_cluster_setup 400
[error] 2016-09-29T13:50:14.406659Z couchdb@localhost <0.7580.0> --------
httpd 400 error response:
{"error":"illegal_database_name","reason":"Name: '_cluster_setup'. Only
lowercase characters (a-z), digits (0-9), and any of the characters _, $,
(, ), +, -, and / are allowed. Must begin with a letter."}
And then no admin user has been created.
Should I remove the "shards/**" database using "curl -X DELETE ...." ?
Can you help me one more time please ?
Thanks
2016-09-29 15:19 GMT+02:00 Joan Touzet <[email protected]>:
> Please follow the documentation and complete the setup process.
> Section 2.6 describes single node setup; the Cluster Reference describes
> configuring a cluster.
>
> http://docs.couchdb.org/en/2.0.0/install/index.html#single-node-setup
>
> http://docs.couchdb.org/en/2.0.0/cluster/index.html#cluster
>
> -Joan
>
> ----- Original Message -----
> > From: "Yacine El Ayar" <[email protected]>
> > To: [email protected]
> > Sent: Thursday, September 29, 2016 8:53:18 AM
> > Subject: Re: Problem during installation of couchdb-2.0 on CentOS 6.
> >
> > Ok, after solving conflicts between last erlang version and new one
> > and
> > version between spider-monkey, the compilation process has been
> > complet
> > successfully.
> > Then the initial ask has been completed by your help and I unsterdand
> > much
> > better how to build couchdb-2 from source.
> >
> > Anyway, now I'm facing a new issue, when I launch the application I'm
> > facing runtime error
> >
> > Any Ideas ?
> >
> > Regards.
> >
> > *******************************************
> >
> > $ rel/couchdb/bin/couchdb
> > [info] 2016-09-29T09:58:52.135936Z couchdb@localhost <0.9.0> --------
> > Application couch_log started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.141619Z couchdb@localhost <0.9.0> --------
> > Application folsom started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.192082Z couchdb@localhost <0.9.0> --------
> > Application couch_stats started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.192355Z couchdb@localhost <0.9.0> --------
> > Application khash started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.203130Z couchdb@localhost <0.9.0> --------
> > Application couch_event started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.210897Z couchdb@localhost <0.9.0> --------
> > Application ibrowse started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.226443Z couchdb@localhost <0.9.0> --------
> > Application ioq started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.226777Z couchdb@localhost <0.9.0> --------
> > Application mochiweb started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.227239Z couchdb@localhost <0.9.0> --------
> > Application oauth started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.238398Z couchdb@localhost <0.205.0>
> > --------
> > Apache CouchDB 2.0.0 is starting.
> >
> > [info] 2016-09-29T09:58:52.238521Z couchdb@localhost <0.206.0>
> > --------
> > Starting couch_sup
> > [info] 2016-09-29T09:58:52.425142Z couchdb@localhost <0.205.0>
> > --------
> > Apache CouchDB has started. Time to relax.
> >
> > [info] 2016-09-29T09:58:52.425275Z couchdb@localhost <0.205.0>
> > --------
> > Apache CouchDB has started on http://127.0.0.1:5986/
> > [info] 2016-09-29T09:58:52.425400Z couchdb@localhost <0.9.0> --------
> > Application couch started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.425520Z couchdb@localhost <0.9.0> --------
> > Application ets_lru started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.440897Z couchdb@localhost <0.9.0> --------
> > Application rexi started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.486087Z couchdb@localhost <0.9.0> --------
> > Application mem3 started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.486141Z couchdb@localhost <0.9.0> --------
> > Application fabric started on node couchdb@localhost
> > [info] 2016-09-29T09:58:52.515908Z couchdb@localhost <0.9.0> --------
> > Application chttpd started on node couchdb@localhost
> > [error] 2016-09-29T09:58:52.527068Z couchdb@localhost emulator
> > --------
> > Error in process <0.321.0> on node couchdb@localhost with exit value:
> > {database_does_not_exist,[{mem3_shards,load_shards_from_
> db,"_users",[{file,"src/mem3_shards.erl"},{line,327}]},{
> mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_
> shards.erl"},{line,315}]},{mem3_shards,load_shards_from_
> disk,2,[{file,"src/mem3_shards.erl"},{line,331}]},{
> mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{
> line,87}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_
> open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_
> ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,
> 187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"
> src/chttpd_auth_cache.erl"},{line,134}]}]}
> >
> > [notice] 2016-09-29T09:58:52.528332Z couchdb@localhost <0.320.0>
> > --------
> > chttpd_auth_cache changes listener died database_does_not_exist at
> > mem3_shards:load_shards_from_db/6(line:327) <=
> > mem3_shards:load_shards_from_disk/1(line:315) <=
> > mem3_shards:load_shards_from_disk/2(line:331) <=
> > mem3_shards:for_docid/3(line:87) <= fabric_doc_open:go/3(line:38) <=
> > chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <=
> > chttpd_auth_cache:listen_for_changes/1(line:134)
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 2016-09-29 11:01 GMT+02:00 Bogdan Andu <[email protected]>:
> >
> > > make clean && ./configure && make release
> > >
> > > may work
> > >
> > > On Thu, Sep 29, 2016 at 11:57 AM, Yacine El Ayar
> > > <[email protected]>
> > > wrote:
> > >
> > > > According to INSTALL.Unix.md, the required dependencies for
> > > > couchdb are
> > > > the following :
> > > >
> > > >
> > > > * Erlang OTP (>=R16B03-1, =<19.x) (
> > > > http://erlang.org/
> > > > )
> > > > * ICU
> > > > (http://icu-project.org/)
> > > > * OpenSSL (http://www.openssl.org/)
> > > > * Mozilla SpiderMonkey (1.8.5) (
> > > > http://www.mozilla.org/js/spidermonkey/)
> > > > * GNU Make
> > > > (http://www.gnu.org/software/make/)
> > > > * GNU Compiler Collection (http://gcc.gnu.org/)
> > > > * libcurl
> > > > (http://curl.haxx.se/libcurl/
> > > )
> > > > * help2man
> > > > (http://www.gnu.org/s/help2man/)
> > > > * Python (>=2.7) for docs (http://python.org/)
> > > > * Python Sphinx (>=1.1.3)
> > > > (http://pypi.python.org/pypi/Sphinx)
> > > >
> > > > None of them required to be build against erlang, only couchdb
> > > > fill full
> > > > this requirement.
> > > > Then when you to recompile everything, what i'm suppose to
> > > > understand ?
> > > >
> > > > Ths
> > > >
> > > >
> > > >
> > > > 2016-09-29 9:52 GMT+02:00 Bogdan Andu <[email protected]>:
> > > >
> > > > > recompile everything with new erlang
> > > > >
> > > > > On Thu, Sep 29, 2016 at 10:41 AM, Yacine El Ayar <
> > > > [email protected]>
> > > > > wrote:
> > > > >
> > > > > > Ok i've review the installation of erlang (before i've not
> > > > > > used make
> > > > > > install but update PATH and LD_LIBRARY_PATH to tell the os to
> > > > > > point
> > > to
> > > > > the
> > > > > > latest version of erlang).
> > > > > > Then i've redone it using make install. Bellow the performed
> > > > > > step.
> > > > > >
> > > > > > $ sudo su
> > > > > > $ cd /opt/ && mkdir erlang
> > > > > > $ wget http://erlang.org/download/otp_src_19.0.tar.gz
> > > > > > $ tar -xzvf otp_src_19.0.tar.gz
> > > > > > $ ./configure
> > > > > > $ make && make install
> > > > > >
> > > > > > But now the issue is the following one :
> > > > > >
> > > > > > ************************************************************
> > > **********
> > > > > >
> > > > > > $ make
> > > > > >
> > > > > > =ERROR REPORT==== 29-Sep-2016::09:31:37 ===
> > > > > > Loading of
> > > > > > /opt/couchdb2/apache-couchdb-2.0.0/bin/rebar/rebar/ebin/
> rebar.beam
> > > > > failed:
> > > > > > badfile
> > > > > > escript: exception error: undefined function rebar:main/1
> > > > > > in function escript:run/2
> > > > > > in call from escript:start/1
> > > > > > in call from init:start_it/1
> > > > > > in call from init:start_em/1
> > > > > >
> > > > > > =ERROR REPORT==== 29-Sep-2016::09:31:37 ===
> > > > > > beam/beam_load.c(1365): Error loading module rebar:
> > > > > > use of opcode 153; this emulator supports only up to 152
> > > > > >
> > > > > > make: *** [couch] Erreur 127
> > > > > >
> > > > > > ************************************************************
> > > **********
> > > > > >
> > > > > >
> > > > > > It seems it cannot find a file, and of of course it doesn't
> > > > > > exits :
> > > > > >
> > > > > > ************************************************************
> > > **********
> > > > > >
> > > > > > $tree /opt/couchdb2/apache-couchdb-2.0.0/bin/
> > > > > > /opt/couchdb2/apache-couchdb-2.0.0/bin/
> > > > > > ├── erlang-version.escript
> > > > > > └── rebar
> > > > > >
> > > > > >
> > > > > >
> > > > > > ************************************************************
> > > **********
> > > > > >
> > > > > > Any ideas ?
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > >
> > > > > > 2016-09-28 21:10 GMT+02:00 Robert Samuel Newson
> > > > > > <[email protected]
> > > >:
> > > > > >
> > > > > > > very curious! how did you install erlang?
> > > > > > >
> > > > > > > B.
> > > > > > >
> > > > > > > > On 28 Sep 2016, at 09:32, Yacine El Ayar <
> > > [email protected]>
> > > > > > > wrote:
> > > > > > > >
> > > > > > > > Hello,
> > > > > > > >
> > > > > > > > I'm trying to install couchdb 2 on a CentOS 6 server
> > > > > > > > I believe (as i'm not sure of it), i've installed all the
> > > required
> > > > > > > > dependencies.
> > > > > > > >
> > > > > > > > ## Anyway when I run the make I obtain the following
> > > > > > > > input:
> > > > > > > >
> > > > > > > > $ ./configure
> > > > > > > > ==> configuring couchdb in rel/couchdb.config
> > > > > > > > You have configured Apache CouchDB, time to relax. Relax.
> > > > > > > >
> > > > > > > >
> > > > > > > > $ make
> > > > > > > > Uncaught error in rebar_core: {'EXIT',
> > > > > > > > {{case_clause,
> > > > > > > > {error,
> > > > > > > > {function_clause,
> > > > > > > > [{filename,join,
> > > > > > > >
> > > [{error,bad_name},"erts.app"],
> > > > > > > >
> [{file,"filename.erl"},{line,
> > > > > > 409}]},
> > > > > > > > {rmemo,ets_tab,0,
> > > > > > > >
> > > [{file,"src/rmemo.erl"},{line,
> > > > > > > 187}]},
> > > > > > > > {rmemo,init,1,
> > > > > > > >
> > > [{file,"src/rmemo.erl"},{line,
> > > > > > > 181}]},
> > > > > > > > {gen_server,init_it,6,
> > > > > > > >
> [{file,"gen_server.erl"},{
> > > > > > > line,328}]},
> > > > > > > >
> {proc_lib,init_p_do_apply,3,
> > > > > > > >
> > > > > > > > [{file,"proc_lib.erl"},{line,247}]}]}}},
> > > > > > > > [{rebar,run_aux,2,
> > > > > > > >
> [{file,"src/rebar.erl"},{line,
> > > > > 218}]},
> > > > > > > > {rebar,main,1,
> > > > > > > >
> [{file,"src/rebar.erl"},{line,
> > > > > 58}]},
> > > > > > > > {escript,run,2,
> > > > > > > > [{file,"escript.erl"},{line,
> > > > 757}]},
> > > > > > > > {escript,start,1,
> > > > > > > > [{file,"escript.erl"},{line,
> > > > 277}]},
> > > > > > > > {init,start_em,1,[]},
> > > > > > > > {init,do_boot,3,[]}]}}
> > > > > > > > make: *** [couch] Erreur 1
> > > > > > > >
> > > > > > > >
> > > > > > > > ## I don't know how to translate this error message on
> > > > > > > > useful
> > > > > > > information.
> > > > > > > > Do you have any idea where the problem come from ?
> > > > > > > >
> > > > > > > >
> > > > > > > > ## This is where i've grabbed the source.
> > > > > > > >
> > > > > > > > http://wwwftp.ciril.fr/pub/apache/couchdb/source/2.0.0/
> > > > > > > apache-couchdb-2.0.0.tar.gz
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ## Some important dependencies and information about my
> > > > > > > > system.
> > > > > > > >
> > > > > > > > $ erl --version
> > > > > > > > Erlang/OTP 19 [erts-8.0] [source] [smp:2:2]
> > > > > > > > [async-threads:10]
> > > > [hipe]
> > > > > > > > [kernel-poll:false]
> > > > > > > >
> > > > > > > > $ js --version
> > > > > > > > JavaScript-C 1.8.5 2011-03-31
> > > > > > > >
> > > > > > > > $ uname -mrs
> > > > > > > > Linux 2.6.32-573.7.1.el6.i686 i686
> > > > > > > >
> > > > > > > >
> > > > > > > > Any ideas ?
> > > > > > > >
> > > > > > > >
> > > > > > > > Regards
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>