Issue starting Mongo on 10.04

129 views
Skip to first unread message

Josh K

unread,
Jul 5, 2010, 10:37:07 PM7/5/10
to mongodb-user
I get the following error when trying to start mongo. (Using `mongo`
at the command line).

mongo: error while loading shared libraries: libmozjs.so: cannot open
shared object file: No such file or directory

When I check the service and attempt to start it (`service mongodb
start`) I get the following:

start: Rejected send message, 1 matched rules; type="method_call",
sender=":1.6" (uid=1000 pid=4273 comm="start)
interface="com.ubuntu.Upstart0_6.Job" member="Start" error
name="(unset)" requested_reply=0
destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init))

Anyone run into this?

Eliot Horowitz

unread,
Jul 5, 2010, 10:39:18 PM7/5/10
to mongod...@googlegroups.com
How did you install? The ubuntu hosted packages may be broken.

You should use our official ones:
http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

oren

unread,
Jul 6, 2010, 2:13:52 AM7/6/10
to mongodb-user
I installed it from the link Eliot mentioned and it's working (Ubuntu
10.4).

Josh K

unread,
Jul 7, 2010, 9:08:36 AM7/7/10
to mongodb-user
No, it was working, now it's not. Would reinstalling from the official
packages remove my collections?

Eliot Horowitz

unread,
Jul 7, 2010, 9:10:09 AM7/7/10
to mongod...@googlegroups.com
I think ubuntu broken them by upgrading firefox or something.

Switching to the official shouldn't impact your data - though a backup
before upgrading might be prudent :)

On Wed, Jul 7, 2010 at 9:08 AM, Josh K <josh...@gmail.com> wrote:
> No, it was working, now it's not. Would reinstalling from the official
> packages remove my collections?
>

Josh K

unread,
Jul 7, 2010, 9:36:40 AM7/7/10
to mongodb-user
This is a bare server, Firefox isn't installed (or shouldn't be).
That's the one confusing thing about this. Does Mongo use FF drivers /
libraries for something?

Eliot Horowitz

unread,
Jul 7, 2010, 9:38:45 AM7/7/10
to mongod...@googlegroups.com
mongo uses spider monkey - which on ubuntu is only available through
xulrunner - which is part of firefox and other mozilla things.

Josh K

unread,
Jul 7, 2010, 9:50:00 AM7/7/10
to mongodb-user
I feel rather stupid now. I installed the `mongo-stable` package, and
then the `service mongodb start` didn't work again. I then tried `sudo
service mongodb start` and mongo happily started up. >:|

Thanks for the help everyone.

Justin

unread,
Jul 22, 2010, 12:32:45 AM7/22/10
to mongodb-user
Hitting the same issue here.

Josh K

unread,
Jul 23, 2010, 2:36:40 PM7/23/10
to mongodb-user
I fixed it by installing the mongodb-stable package from
http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages

What issue are you having specifically?

Thanks,

-Josh
Reply all
Reply to author
Forward
0 new messages