[Couchdb Wiki] Update of "Error_messages" by JoanTouzet

2018-04-12 Thread Apache Wiki
Dear wiki user,

You have subscribed to a wiki page "Couchdb Wiki" for change notification.

The page "Error_messages" has been deleted by JoanTouzet:

https://wiki.apache.org/couchdb/Error_messages?action=diff&rev1=32&rev2=33

- <>
  
- = Error Messages =
- 
- This content has been migrated to the 
[[http://docs.couchdb.org/en/latest/install/troubleshooting.html|official 
CouchDB documentation]].
- 


[Couchdb Wiki] Update of "Error_messages" by JoanTouzet

2016-08-27 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The "Error_messages" page has been changed by JoanTouzet:
https://wiki.apache.org/couchdb/Error_messages?action=diff&rev1=31&rev2=32

Comment:
Removing antequated and misleading information, pointing to official 
documentation

  <>
  
  = Error Messages =
- <>
  
- Explanation and solution of error messages you may experience while building 
or running CouchDB.
+ This content has been migrated to the 
[[http://docs.couchdb.org/en/latest/install/troubleshooting.html|official 
CouchDB documentation]].
  
- == Formatting error messages ==
- 
- The attached file ([[attachment:whaterr.py]]) is a quick python script that 
makes error message easier to use. This could probably be turned into a JS 
bookmark to make it more widely used.
- 
- {{{
- Usage: ./whaterr.py url
- 
- If you have a url that's printing you a horrble painful error message, 
(especially mustache errors),
- this util prints it in a slightly less painful way.
- 
- eg. ./whaterr.py 
http://localhost:5984/dbname/_design/designname/_list/listname/viewname
- eg. ./whaterr.py 
http://localhost:5984/footprint/_design/footprint/_list/products/products
- }}}
- 
- == Installation errors ==
- 
- 
- === Missing icu-config ===
- 
- '''Problem'''
- 
- {{{
- *** The icu-config script could not be found. Make sure it is
- *** in your path, and that taglib is properly installed.
- *** Or see http://ibm.com/software/globalization/icu/
- }}}
- 
- '''Solution'''
- 
- Install ICU and use `locate` to find the `icu-config` command:
- 
- {{{
- locate icu-config
- }}}
- 
- For me on Ubuntu 8.04 server I just did:
- {{{
- sudo apt-get install libicu-dev
- }}}
- 
- Take the directory from the output of this command and add it to your `PATH`:
- 
- {{{
- export PATH="$PATH:/usr/local/bin"
- }}}
- 
- 
- === Erlang version is less than 5.6.5 (R12B) ===
- 
- '''Problem'''
- 
- Even after doing sudo apt-get install erlang you are getting the following 
error on ubuntu 8.04:
- {{{
- configure: error: The installed Erlang version is less than 5.6.5 (R12B).
- }}}
- 
- '''Solution'''
- 
- To get a later version without bothering with installing from source edit 
/etc/apt/sources.list and locate the following line:
- {{{
- deb http://us.archive.ubuntu.com/ubuntu/ hardy universe
- }}}
- 
- Change it to the following
- {{{
- deb http://us.archive.ubuntu.com/ubuntu/ intrepid universe
- }}}
- 
- Save and then run:
- {{{
- apt-get update
- }}}
- 
- You should now be able to install it by doing:
- {{{
- apt-get install erlang-nox erlang-dev
- }}}
- 
- Test you version and confirm you see something greater than 5.6.0 
- {{{
- erl
- }}}
- 
- 
- === Incorrect LD_LIBRARY_PATH ===
- 
- '''Problem'''
- 
- {{{
- $ couchdb  
- Apache CouchDB 0.8.0-incubating (LogLevel=info)
- Apache CouchDB is starting.
- 
- {"init terminating in do_boot",{error,{open_error,-10}}​}
- 
- Crash dump was written to: erl_crash.dump
- init terminating in do_boot ()
- }}}
- 
- or
- 
- {{{
- $ couchdb
- Apache CouchDB 0.8.1-incubating (LogLevel=info)
- Apache CouchDB is starting.
- 
- {"init terminating in do_boot","libjs.so: cannot open shared object file: No 
such file or directory"}
- 
- Crash dump was written to: erl_crash.dump
- init terminating in do_boot (libjs.so: cannot open shared object file: No 
such file or directory)
- }}}
- 
- '''Solution'''
- 
- You must correctly set your `LD_LIBRARY_PATH` environment variable so that it 
picks up your installed libraries. On Mac OS X, the equivalent variable is 
`DYLD_LIBRARY_PATH`.
- 
- Example running as normal user:
- 
- {{{
- LD_LIBRARY_PATH=/usr/local/lib:/usr/local/spidermonkey/lib couchdb
- }}}
- 
- Example running as `couchdb` user:
- 
- {{{
- echo LD_LIBRARY_PATH=/usr/local/lib:/usr/local/spidermonkey/lib couchdb | 
sudo -u couchdb sh
- }}}
- 
- Similar instructions are on the InstallingSpiderMonkey page.
- 
- 
- === Binary Architecture Mismatch OSX ===
- 
- On Mac OS X, libraries and executables can be ''fat binaries'' that support 
multiple processor architectures (PPC and x86, 32 and 64 bit). But that also 
means you will run into problems when trying to load a library into an 
application if that library doesn't support the architecture used by the 
application process.
- 
- '''Problem'''
- 
- {{{
- $ couchdb  
- Apache CouchDB 0.8.0-incubating (LogLevel=info)
- Apache CouchDB is starting.
- 
- {"init terminating in do_boot",{error,{open_error,-12}}​}
- 
- Crash dump was written to: erl_crash.dump
- init terminating in do_boot ()
- }}}
- 
- '''Solution'''
- 
- You've probably built Erlang with the 64 bit option enabled. The problem is 
that ICU, which CouchDB attempts to load at startup time, has not been compiled 
with 64 bit support, so it can't be loaded into the 64bit Erlang process.
- 
- For now you'll have to recompile Erlang, and resist the temptation to build a 
64 bit binary (just omit the `--enable-darwin-64bit` option). The