Public bug reported:

Binary package hint: mongodb

the mongod start script as loaded into 11.04 does a search for libmozjs.so in
+ [ -f /usr/lib/xulrunner-2.0b*/libmozjs.so ]
+ [ -f /usr/lib/xulrunner-2.0/libmozjs.so ]
+ [ -f /usr/lib/xulrunner-2.0.0.*/libmozjs.so ]

However for my installation of 11.04, after installing mongodb and dependencies 
from synaptic I had libmozjs.so in
[545] find /usr/lib -name libmozjs* 
/usr/lib/libmozjs185.so.1.0
/usr/lib/xulrunner-1.9.2.18pre/libmozjs.so
/usr/lib/thunderbird-3.1.11pre/libmozjs.so
/usr/lib/libmozjs185.so.1.0.0
/usr/lib/xulrunner-2.0.2pre/libmozjs.so


I modified the mongod start script to include xulrunner-2.0* in its search and 
it did now start the server, but it stopped again immediately:

[547] mongod
+ [ -f /usr/lib/xulrunner-2.0b*/libmozjs.so ]
+ [ -f /usr/lib/xulrunner-2.0-addons/libmozjs.so ]
+ [ -f /usr/lib/xulrunner-2.0.2pre/libmozjs.so ]
+ mozjs_path=/usr/lib/xulrunner-2.0.2pre
+ break
+ LD_LIBRARY_PATH=/usr/lib/xulrunner-2.0.2pre
+ export LD_LIBRARY_PATH
+ basename /usr/bin/mongod
+ bname=mongod
+ [ mongod = xulwrapper ]
+ exec /usr/lib/mongodb/mongod
/usr/lib/mongodb/mongod --help for help and startup options
Thu Jun  2 14:48:32 MongoDB starting : pid=27218 port=27017 dbpath=/data/db/ 
64-bit 
Thu Jun  2 14:48:32 db version v1.6.3, pdfile version 4.5
Thu Jun  2 14:48:32 git version: nogitversion
Thu Jun  2 14:48:32 sys info: Linux allspice 2.6.24-28-server #1 SMP Wed Aug 18 
21:17:51 UTC 2010 x86_64 BOOST_LIB_VERSION=1_42
Thu Jun  2 14:48:32 exception in initAndListen std::exception: dbpath 
(/data/db/) does not exist, terminating
Thu Jun  2 14:48:32 dbexit: 

Thu Jun  2 14:48:32 shutdown: going to close listening sockets...
Thu Jun  2 14:48:32 shutdown: going to flush oplog...
Thu Jun  2 14:48:32 shutdown: going to close sockets...
Thu Jun  2 14:48:32 shutdown: waiting for fs preallocator...
Thu Jun  2 14:48:32 shutdown: closing all files...
Thu Jun  2 14:48:32     closeAllFiles() finished

Thu Jun  2 14:48:32 dbexit: really exiting now


However starting it from init.d appears to have more success...

** Affects: mongodb (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/791672

Title:
  mongodb wont start in 11.04

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to