sarveshtamba commented on issue #2044: Apache CouchDB build issues on 
PowerPC64LE
URL: https://github.com/apache/couchdb/issues/2044#issuecomment-500386844
 
 
   Hi @wohali ,
   
   I tried with a clean git clone of couchdb with all the pre-requisites 
installed.
   
   I ran into the following issue:-
   
           make[1]: Entering directory '/home/sar/couchdb/couchdb/src/docs'
           sphinx-build -b html -a -W -n -A local=1 -D 
latex_elements.papersize=a4 -d build/doctree src/ build/html
           Running Sphinx v2.1.0
           making output directory... done
           building [mo]: all of 0 po files
           building [html]: all source files
           updating environment: 124 added, 0 changed, 0 removed
           reading sources... [100%] whatsnew/index
           looking for now-outdated files... none found
           pickling environment... done
           checking consistency... done
           preparing documents... done
           writing output... [100%] whatsnew/index
   
           Warning, treated as error:
           
/home/sar/couchdb/couchdb/src/docs/src/api/server/common.rst:1489:Could not lex 
literal_block as "http". Highlighting skipped.
           Makefile:32: recipe for target 'html' failed
           make[1]: *** [html] Error 2
           make[1]: Leaving directory '/home/sar/couchdb/couchdb/src/docs'
           Makefile:520: recipe for target 'src/docs/build' failed
           make: *** [src/docs/build] Error 2
   
   However I executed the workaround ```cd src/docs && make man``` as suggested 
and then re-built couchdb, the build completed successfully.
   
           Installing CouchDB into rel/couchdb/ ...
           ==> rel (generate)
           WARN:  'generate' command does not apply to directory 
/home/sar/couchdb/couchdb
           ... done
   
               You can now copy the rel/couchdb directory anywhere on your 
system.
               Start CouchDB with ./bin/couchdb from within that directory.
   
   Question 1:-
   Is this a known/documented issue and any resolution for this workaround?
   
   Next, I started the couchdb instance as per steps in the INSTALL.Unix.md 
readme, and ran into following issues at startup:-
   
   ```[notice] 2019-06-10T08:25:53.103784Z couchdb@localhost <0.325.0> -------- 
chttpd_auth_cache changes listener died database_does_not_exist at 
mem3_shards:load_shards_from_db/6(line:403) <= 
mem3_shards:load_shards_from_disk/1(line:378) <= 
mem3_shards:load_shards_from_disk/2(line:407) <= 
mem3_shards:for_docid/3(line:91) <= 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)
   [error] 2019-06-10T08:25:53.103978Z couchdb@localhost emulator -------- 
Error in process <0.326.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,403}]},{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,91}]},{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}]}]}
   ```
   
   I was able to resolve this after creating the three system databases 
manually on startup in another shell, while the couchdb instance was running in 
the first shell as per http://docs.couchdb.org/en/latest/setup/single-node.html:
   
       curl -X PUT http://127.0.0.1:5984/_users
       curl -X PUT http://127.0.0.1:5984/_replicator
       curl -X PUT http://127.0.0.1:5984/_global_changes
   
   Question 2:-
   Initially I tried inside a docker container, however opening another shell 
in a docker container is not possible.
   How do we proceed in this case?
   
   Post this I was able to perform some operations as per 
https://guide.couchdb.org/draft/tour.html:-
   
           root@pts00452-vm13:~# curl http://127.0.0.1:5984/
           
{"couchdb":"Welcome","version":"2.1.0-cf00dc2","features":["scheduler"],"vendor":{"name":"The
 Apache Software Foundation"}}
           root@pts00452-vm13:~# curl -X GET http://127.0.0.1:5984/_all_dbs
           ["_global_changes","_replicator","_users"]
           root@pts00452-vm13:~# curl -X PUT http://127.0.0.1:5984/baseball
           {"ok":true}
           root@pts00452-vm13:~# curl -X GET http://127.0.0.1:5984/_all_dbs
           ["_global_changes","_replicator","_users","baseball"]
           root@pts00452-vm13:~# curl -X PUT http://127.0.0.1:5984/baseball
           {"error":"file_exists","reason":"The database could not be created, 
the file already exists."}
           root@pts00452-vm13:~# curl -X PUT http://127.0.0.1:5984/plankton
           {"ok":true}
           root@pts00452-vm13:~# curl -X GET http://127.0.0.1:5984/_all_dbs
           ["_global_changes","_replicator","_users","baseball","plankton"]
           root@pts00452-vm13:~# curl -X DELETE http://127.0.0.1:5984/plankton
           {"ok":true}
           root@pts00452-vm13:~# curl -X GET http://127.0.0.1:5984/_all_dbs
           ["_global_changes","_replicator","_users","baseball"]
   
   Let me know your thoughts on this.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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