Ubuntu & Debian packages available

150 views
Skip to first unread message

Richard Kreuter

unread,
Feb 5, 2010, 3:24:05 PM2/5/10
to mongodb-user
10gen is pleased to announce the availability of mongodb snapshot
packages for recent Ubuntu and Debian releases. The packaging is still
a work-in-progress, so we invite Debian and Ubuntu users to try them out
and let us know how the packaging might be improved.

To use the packages, add a line to your /etc/apt/sources.list:

for Ubuntu Lucid (10.4) (built using a prerelease installation)

deb http://downloads.mongodb.org/distros/ubuntu 10.4 10gen

for Ubuntu Karmic (9.10)

deb http://downloads.mongodb.org/distros/ubuntu 9.10 10gen

for Ubuntu Jaunty (9.4)

deb http://downloads.mongodb.org/distros/ubuntu 9.4 10gen

for Debian Lenny (5.0)

deb http://downloads.mongodb.org/distros/debian 5.0 10gen

These packages are snapshots of our git master branch, and we plan to
update them frequently, so package version numbers will be of the form
YYYYMMDD; when reporting issues with these packages, please include the
package version in your report.

The public gpg key used for signing these packages follows.

Packages for other distros coming soon!

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (Darwin)

mQENBEtsQe8BCACm5G0/ei0IxyjVEp6EEtbEbWK1Q4dKaONtiCODwB8di+L8tlUd
Ra5QYxeyV90C+dqdh34o79enXxT6idHfYYqDdob2/kAPE6vFi4sLmrWIVGCRY++7
RPclZuezPm1sxG1TRAYEsW0VZUE9ofdoQ8xlUZDyn2BSjG8OCT2e4orRg1pHgzw2
n3hnWqJNuJS4jxcRJOxI049THIGUtqBfF8bQoZw8C3Wg/R6pGghUfNjpA6uF9KAH
gnqrC0swZ1/vwIJt9fnvAlzkqLrssYtKH0rMdn5n4g5tJLqY5q/NruHMq2rhoy3r
4MC1w8GTbP7qR83wAyaLJ7xACOKqxB3SrDFJABEBAAG0I1JpY2hhcmQgS3JldXRl
ciA8cmljaGFyZEAxMGdlbi5jb20+iQE4BBMBAgAiBQJLbEHvAhsDBgsJCAcDAgYV
CAIJCgsEFgIDAQIeAQIXgAAKCRCey+xGfwzrEGXbB/4nrmf/2rEnztRelmup3duI
eepzEtw1cv3uHg2oZXGS6S7o5Fsk+amngaWelWKfkSw5La7aH5vL4tKFKUfuaME1
avInDIU/0IEs8jLrdSWq601HowLQcxAhqNPdaGONDtHw56Qhs0Ba8GA6329vLWgZ
ODnXweiNSCDrv3xbIN6IjPyyO5AoUkxmJfD0mVtp3u5Ar7kfIw7ieGGxokaHewNL
Xzqcp9rPiUR6dFw2uRvDdVRrXFUPlgVugaHKytm15JpHmQfyzQiMdYXnIz0oofJO
WM/PY1iw+QJZ2M7PnfbTJeADXIc/EoOAJDRggih533SjhiCaT6FdPMMk6rCZ5cgl
uQENBEtsQe8BCADlNPIJZVSL2i6H9X19YK4CpEqsjIUGISMB1cDT311WFSnhfuMs
GL9xYRb8dlbyeJFFOyHNkIBmH5ekCvGRfS6qJYpcUQZZcWSjEMqBYQV5cw1efd0B
ek64jfvrsLz8+YhKzn+NI8O3nyGvpEEWvOhN4hNjwkDhYbXLvAlsqagbnSMf+Htf
3lgCGYa2gLiNIqNKWCsEVAan/Er6KS39WANGXi6ih0yjReBiU8WR6Qh2ylMi2xKw
yHnTOsbWxP0hqALUa7N4AEGCXS/qn+vUz/hcIbt+eUNy45qoZcTT3dZsWGfJqknh
RFMIuPiej7/WY4Ugzes5NG02ecDkDkpJvrSNABEBAAGJAR8EGAECAAkFAktsQe8C
GwwACgkQnsvsRn8M6xABeggAlNkqbqa12L1bgaCgnGGdCiuXB3F6/VFmSQdUKpts
EuqWH6rSp30r67PupzneX++ouh+9WD5O7gJ0kP3VQJpmXjT/QnN5ANjI4kAtRZUW
qCXlXOxVAeXHL5oiKz0NM23Xc2rNAyfBQY8+SUYrKBalNBq5m68g8oogX8QD5u2F
x+6C+QK9G2EBDD/NWgkKN3GOxpQ5DTdPHI5/fjwYFs1leIaQjjiyJwAifxB/1+w0
VCHe2LDVpRXY5uBTefF2guhVYisKY6n5wNDaQpBmA8w17it5Yp8ge0HMN1A+aZ+6
L6MsuHbG2OYDZgAk8eKhvyd0y/pAhZpNuQ82MMGBmcueSA==
=74Cu
-----END PGP PUBLIC KEY BLOCK-----

Jason J. W. Williams

unread,
Feb 5, 2010, 3:53:04 PM2/5/10
to mongod...@googlegroups.com
Are there any plans to release for 8.04 LTS?

-J

> --
> 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.
>
>

jm

unread,
Feb 5, 2010, 4:17:29 PM2/5/10
to mongod...@googlegroups.com
Awesome! Seems to work nicely here with Ubuntu 9.10 64bit.

Is there a way to configure the --dbpath (or other startup parameters)
for the automatically started service? (i could not find any
configuration files in /etc/, and "service mongodb help" does not work)

Also, are there plans to package the PHP (and maybe other) drivers? I've
had some problems with pecl every now and then, requiring manual install
or some other tinkering; having a .deb would be fun.

Cheers, J-M

Richard Kreuter

unread,
Feb 5, 2010, 4:29:23 PM2/5/10
to mongod...@googlegroups.com
> Is there a way to configure the --dbpath (or other startup parameters) ...

For Ubuntu, the dbpath is just in the upstart file... it'll be
configurable in /etc/mongodb.conf in the .debs real soon...

> Also, are there plans to package the PHP (and maybe other) drivers?

I don't yet know the issues, if any, for packaging up most of the
drivers, so I'll have to keep mum on this for the moment.

Regards,
Richard

Roger Binns

unread,
Feb 5, 2010, 7:21:12 PM2/5/10
to mongod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Kreuter wrote:
> 10gen is pleased to announce the availability of mongodb snapshot
> packages for recent Ubuntu and Debian releases. The packaging is still
> a work-in-progress, so we invite Debian and Ubuntu users to try them out
> and let us know how the packaging might be improved.

Any chance you can also have "stable" releases? I'll settle for ones that
are tagged such as 1.3.1 :-) Even better to use an Ubuntu PPA.

> The public gpg key used for signing these packages follows.

Is the key uploaded somewhere? eg so I can do "gpg --keyserver
hkp://keyserver.ubuntu.com --recv-keys 123456"

Medibuntu has a medibuntu-keyring package which automatically adds their
key. This has the advantage of making it easy for them to update their key
over time.

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktstfgACgkQmOOfHg372QSrOQCfYc+P6Unyj5d6knpwkWiTYhdQ
PZYAnjwal51wHGMcoq1+ijbz1u4u2aKk
=/VRl
-----END PGP SIGNATURE-----

Jorge Vargas

unread,
Feb 6, 2010, 3:10:43 AM2/6/10
to mongod...@googlegroups.com
On Fri, Feb 5, 2010 at 4:24 PM, Richard Kreuter <ric...@10gen.com> wrote:
> 10gen is pleased to announce the availability of mongodb snapshot
> packages for recent Ubuntu and Debian releases.  The packaging is still
> a work-in-progress, so we invite Debian and Ubuntu users to try them out
> and let us know how the packaging might be improved.
>
> To use the packages, add a line to your /etc/apt/sources.list:
>
> for Ubuntu Lucid (10.4) (built using a prerelease installation)
>
> deb http://downloads.mongodb.org/distros/ubuntu 10.4 10gen
>
> for Ubuntu Karmic (9.10)
>
> deb http://downloads.mongodb.org/distros/ubuntu 9.10 10gen
>
> for Ubuntu Jaunty (9.4)
>
> deb http://downloads.mongodb.org/distros/ubuntu 9.4 10gen
>
> for Debian Lenny (5.0)
>
> deb http://downloads.mongodb.org/distros/debian 5.0 10gen
>
> These packages are snapshots of our git master branch, and we plan to
> update them frequently, so package version numbers will be of the form
> YYYYMMDD; when reporting issues with these packages, please include the
> package version in your report.
>
Awesome! thank you!

Jorge Vargas

unread,
Feb 6, 2010, 6:15:56 AM2/6/10
to mongod...@googlegroups.com
On Fri, Feb 5, 2010 at 4:24 PM, Richard Kreuter <ric...@10gen.com> wrote:
> 10gen is pleased to announce the availability of mongodb snapshot
> packages for recent Ubuntu and Debian releases.  The packaging is still
> a work-in-progress, so we invite Debian and Ubuntu users to try them out
> and let us know how the packaging might be improved.
>
> To use the packages, add a line to your /etc/apt/sources.list:
> for Ubuntu Karmic (9.10)
>
> deb http://downloads.mongodb.org/distros/ubuntu 9.10 10gen

I'm not sure if this is a problem with the package itself or Upstart
but when executing the scripts without the proper permission I get a
debugging error. Instead of the "you don't have sufficient permissions
to execute this"

$ service mongodb restart
restart: Rejected send message, 1 matched rules; type="method_call",
sender=":1.373" (uid=1000 pid=9888 comm="restart)
interface="com.ubuntu.Upstart0_6.Job" member="Restart" error
name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart"
(uid=0 pid=1 comm="/sbin/init"))

$ sudo service mongodb restart
mongodb start/running, process 9904

That is the 32bit version, so far so good.

is it possible to modify the port it's running on? Should I just edit
/etc/init/mongodb.conf ? passing --port will change the main port but
what about the status/crud port?

Also it will be nice if

$ service mongodb status
mongodb start/running, process 9904

reported the port it's running on.

on a related note, should we expect packages for the drivers soon? how
about "stable" packages ie: a 1.2.x package.

other than that great job on the packages! Thanks and I'll be
deploying something probably this weekend on it :)

Dru

unread,
Feb 7, 2010, 5:29:52 AM2/7/10
to mongodb-user
Working great here. I second having stable packages, although I've
seldom had problems running snapshots anyway.

Vincent

unread,
Feb 7, 2010, 1:48:48 PM2/7/10
to mongodb-user
Thanks !

It would be great to have something like :
- "mongodb" (or "mongodb-stable") for stable releases
- "mongodb-unstable" for... unstable releases
- "mongodb-snapshots" for the snapshots

On Feb 5, 9:24 pm, Richard Kreuter <rich...@10gen.com> wrote:
> 10gen is pleased to announce the availability of mongodb snapshot
> packages for recent Ubuntu and Debian releases.  The packaging is still
> a work-in-progress, so we invite Debian and Ubuntu users to try them out
> and let us know how the packaging might be improved.
>
> To use the packages, add a line to your /etc/apt/sources.list:
>
> for Ubuntu Lucid (10.4) (built using a prerelease installation)
>

> debhttp://downloads.mongodb.org/distros/ubuntu10.4 10gen
>
> for Ubuntu Karmic (9.10)
>
> debhttp://downloads.mongodb.org/distros/ubuntu9.10 10gen
>
> for Ubuntu Jaunty (9.4)
>
> debhttp://downloads.mongodb.org/distros/ubuntu9.4 10gen
>
> for Debian Lenny (5.0)
>
> debhttp://downloads.mongodb.org/distros/debian5.0 10gen

Richard Kreuter

unread,
Feb 7, 2010, 5:56:18 PM2/7/10
to mongod...@googlegroups.com, Jorge Vargas
Jorge Vargas <jorge....@gmail.com> wrote:
> I'm not sure if this is a problem with the package itself or Upstart
> but when executing the scripts without the proper permission I get a
> debugging error. Instead of the "you don't have sufficient permissions
> to execute this"
>
> $ service mongodb restart
> restart: Rejected send message, 1 matched rules; type="method_call",
> sender=":1.373" (uid=1000 pid=9888 comm="restart)
> interface="com.ubuntu.Upstart0_6.Job" member="Restart" error
> name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart"
> (uid=0 pid=1 comm="/sbin/init"))

AFAICT, that's part of the DBus plumbing underlying Upstart:

https://bugs.launchpad.net/upstart/+bug/431239

> is it possible to modify the port it's running on? Should I just edit
> /etc/init/mongodb.conf ? passing --port will change the main port but
> what about the status/crud port?

For the first 2 questions, I expect to have packages out tomorrow that
will use a mongodb.conf; until then, you can edit /etc/init/mongodb.conf
to specify the port. I'm not sure about the answer to the third
question.

> Also it will be nice if
>
> $ service mongodb status
> mongodb start/running, process 9904
>
> reported the port it's running on.

Hrm. Will look into this.

--
Richard

Eliot Horowitz

unread,
Feb 7, 2010, 11:30:11 PM2/7/10
to mongod...@googlegroups.com
We'll probably do some drivers at some point.
Which drivers are you thinking about?
For ruby/python/java i definitely don't think it makes sense.
C++ probably.
Not as sure about php/perl

Mathias Stearn

unread,
Feb 8, 2010, 9:04:23 AM2/8/10
to mongod...@googlegroups.com
The HTTP port is always the main port +1000.

On Sat, Feb 6, 2010 at 6:15 AM, Jorge Vargas <jorge....@gmail.com> wrote:

Richard Kreuter

unread,
Feb 8, 2010, 6:27:29 PM2/8/10
to mongod...@googlegroups.com
Roger Binns <rog...@rogerbinns.com> wrote:

> Richard Kreuter wrote:

> > The public gpg key used for signing these packages follows.
>
> Is the key uploaded somewhere? eg so I can do "gpg --keyserver
> hkp://keyserver.ubuntu.com --recv-keys 123456"

The key has been uploaded to pgp.mit.edu.

Regards,
Richard

Richard Kreuter

unread,
Feb 8, 2010, 6:32:11 PM2/8/10
to jm, mongod...@googlegroups.com
> > Is there a way to configure the --dbpath (or other startup parameters) ...
>
> For Ubuntu, the dbpath is just in the upstart file... it'll be
> configurable in /etc/mongodb.conf in the .debs real soon...

I've just uploaded .debs that employ the configuration file. Should be
just an 'aptitude update; aptitude upgrade' .

Please report back if anything's amiss.

Regards,
Richard

Richard Kreuter

unread,
Feb 8, 2010, 6:32:26 PM2/8/10
to Jorge Vargas, mongod...@googlegroups.com
Richard Kreuter wrote:
> Jorge Vargas <jorge....@gmail.com> wrote:

> > is it possible to modify the port it's running on? Should I just edit
> > /etc/init/mongodb.conf ?

> I expect to have packages out tomorrow that will use a mongodb.conf

These are uploaded. Should just be an 'aptitude update; aptitude upgrade'.

Roger Binns

unread,
Feb 8, 2010, 7:11:01 PM2/8/10
to mongod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Kreuter wrote:
> The key has been uploaded to pgp.mit.edu.

You may also want to upload elsewhere such as the Ubuntu keyserver:


http://lists.fedoraproject.org/pipermail/infrastructure/2008-February/003699.html

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktwqBUACgkQmOOfHg372QRtAQCghbOVVMLdK1z731WXNaFfi5pl
OLQAoIWdSP3leTAzOgko9VTKDFmWC4kf
=wkU0
-----END PGP SIGNATURE-----

Jorge Vargas

unread,
Feb 8, 2010, 10:13:22 PM2/8/10
to ric...@10gen.com, mongod...@googlegroups.com
On Sun, Feb 7, 2010 at 6:56 PM, Richard Kreuter <ric...@10gen.com> wrote:
> Jorge Vargas <jorge....@gmail.com> wrote:
>> I'm not sure if this is a problem with the package itself or Upstart
>> but when executing the scripts without the proper permission I get a
>> debugging error. Instead of the "you don't have sufficient permissions
>> to execute this"
>>
>> $ service mongodb restart
>> restart: Rejected send message, 1 matched rules; type="method_call",
>> sender=":1.373" (uid=1000 pid=9888 comm="restart)
>> interface="com.ubuntu.Upstart0_6.Job" member="Restart" error
>> name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart"
>> (uid=0 pid=1 comm="/sbin/init"))
>
> AFAICT, that's part of the DBus plumbing underlying Upstart:
>
> https://bugs.launchpad.net/upstart/+bug/431239
>
ok I voted up that bug. On a related note you guys aren't register
there https://bugs.launchpad.net/projects/+index?text=mongodb yet a
wrapper is :p

>> is it possible to modify the port it's running on? Should I just edit
>> /etc/init/mongodb.conf  ? passing --port will change the main port but
>> what about the status/crud port?
>
> For the first 2 questions, I expect to have packages out tomorrow that
> will use a mongodb.conf; until then, you can edit /etc/init/mongodb.conf
> to specify the port.  I'm not sure about the answer to the third
> question.
>

I'm not sure if that was "I don't know" or "I didn't understood" in
case of the latter here it goes again. By default the status runs in
port +1000 is this build into the core or it's changeable somehow?

>> Also it will be nice if
>>
>> $ service mongodb status
>> mongodb start/running, process 9904
>>
>> reported the port it's running on.
>
> Hrm.  Will look into this.
>

Cool, thanks for the work. I totally forgot to mention that I'm also
running 9.10 64bits and it works like a charm.

> --
> Richard
>

Jorge Vargas

unread,
Feb 8, 2010, 10:16:02 PM2/8/10
to mongod...@googlegroups.com
On Mon, Feb 8, 2010 at 12:30 AM, Eliot Horowitz <elioth...@gmail.com> wrote:
> We'll probably do some drivers at some point.
> Which drivers are you thinking about?
well python of course!

> For ruby/python/java i definitely don't think it makes sense.

agree to that. We love pypi however keep in mind a LOT of people will
not install things that are not "OS packages". Also keep in mind that
this is a requirement for any application that will use mongo + the
language. That is say I code a desktop app to ummm track time and I
store the time in mongo, using pygtk my app will not get into the
system because pymongo is not there.

> C++ probably.
> Not as sure about php/perl
>
> On Sat, Feb 6, 2010 at 6:15 AM, Jorge Vargas <jorge....@gmail.com> wrote:
>> on a related note, should we expect packages for the drivers soon? how
>> about "stable" packages ie: a 1.2.x package.
>>
>

Richard Kreuter

unread,
Feb 9, 2010, 9:42:10 AM2/9/10
to Jorge Vargas, mongod...@googlegroups.com
Jorge Vargas <jorge....@gmail.com> wrote:
> On Sun, Feb 7, 2010 at 6:56 PM, Richard Kreuter <ric...@10gen.com> wrote:
> > Jorge Vargas <jorge....@gmail.com> wrote:

> >> is it possible to modify the port it's running on? Should I just edit
> >> /etc/init/mongodb.conf  ? passing --port will change the main port but
> >> what about the status/crud port?
> >

> > I'm not sure about the answer to the third question.
> >
> I'm not sure if that was "I don't know" or "I didn't understood" in
> case of the latter here it goes again. By default the status runs in
> port +1000 is this build into the core or it's changeable somehow?

Sorry about the ambiguity: I did not know the answer on Sunday. As
Mathias points out [1], the webserver port is always 1000 greater than
the server port (see db/dbwebserver.cpp line 542 or thereabouts) for
details, if you want to change that).

Regards,
Richard

[1] http://groups.google.com/group/mongodb-user/msg/c5776fa8a347351a

tcha-tcho

unread,
Feb 10, 2010, 1:56:11 AM2/10/10
to mongodb-user
Hy Richard,

Great! i hope this can make my server upstart with mongo up and
running... i did try to use a init.d solution but not with lucky...

I am nube in ubuntu packages, my server is ubuntu... but im not used
to install packages there...

i did change the line suggested but im not getting how i install the
package.... i did try:
sudo apt-get install mongodb
no sucess, so could you give me the commands that i have to write in
the server to install the package?

Thanks in advance!

Best Regards!

Tcha-Tcho

On Feb 5, 7:17 pm, jm <jtopp...@gmail.com> wrote:
> Awesome! Seems to work nicely here with Ubuntu 9.10 64bit.
>
> Is there a way to configure the --dbpath (or other startup parameters)
> for the automatically started service? (i could not find any
> configuration files in /etc/, and "service mongodb help" does not work)
>
> Also, are there plans to package the PHP (and maybe other) drivers? I've
> had some problems with pecl every now and then, requiring manual install
> or some other tinkering; having a .deb would be fun.
>
> Cheers, J-M
>
> On 02/05/2010 10:24 PM, Richard Kreuter wrote:
>
>
>
> > 10gen is pleased to announce the availability of mongodb snapshot
> > packages for recent Ubuntu and Debian releases.  The packaging is still
> > a work-in-progress, so we invite Debian and Ubuntu users to try them out
> > and let us know how the packaging might be improved.
>
> > To use the packages, add a line to your /etc/apt/sources.list:
>
> > for Ubuntu Lucid (10.4) (built using a prerelease installation)
>

> > debhttp://downloads.mongodb.org/distros/ubuntu10.4 10gen
>
> > for Ubuntu Karmic (9.10)
>
> > debhttp://downloads.mongodb.org/distros/ubuntu9.10 10gen
>
> > for Ubuntu Jaunty (9.4)
>
> > debhttp://downloads.mongodb.org/distros/ubuntu9.4 10gen
>
> > for Debian Lenny (5.0)
>
> > debhttp://downloads.mongodb.org/distros/debian5.0 10gen

Richard Kreuter

unread,
Feb 10, 2010, 9:42:37 AM2/10/10
to tcha-tcho, mongod...@googlegroups.com
tcha-tcho <tchat...@gmail.com> wrote:

> i did try:
> sudo apt-get install mongodb
> no sucess, so could you give me the commands that i have to write in
> the server to install the package?

Sure. First, add a line to your /etc/apt/sources.list, as described here:

http://groups.google.com/group/mongodb-user/browse_thread/thread/35b7b377f6889809#

Then, run the commands

sudo aptitude update
sudo aptitude install mongodb

Answer "Yes" to any questions you're asked, and you should have a
mongodb running. If this doesn't work out, let us know, and we'll work
out the details.

Regards,
Richard

Nico Poppelier

unread,
Feb 10, 2010, 11:01:12 AM2/10/10
to mongodb-user
Is it documented in which places "things" get installed if you do
apt-get install mongodb? This would be nice if you migrate from an
existing
MongoDB setup to the one installed from the .deb package.

Regards,

Nico

tcha-tcho

unread,
Feb 11, 2010, 1:05:50 PM2/11/10
to mongodb-user
Hy Richard!

Thankyou very much! unfortnally a lot of servers still uses the LTS
ubuntu 8.10... i did try to use the upstart... but he dont start
telling "status 1"...i did try to use init.d file too with the conf in
etc but he dont start... telling just a "...fail!" in response... i
spend some days trying to make this work... there are some plan to
build a package for 8.10 ubuntu?? i spoke with the guys on webbynode
and they tell me that they are building a script with the guys of the
10gen.. this became a huge issue for my people, we are about to
rebuild all the project using mysql because of this... could you help-
me? i really love mongodb he is running in server like a charm, but
the process die in a couple of hours...

Thankyou so much

Tcha-Tcho

On Feb 10, 12:42 pm, Richard Kreuter <rich...@10gen.com> wrote:


> tcha-tcho <tchatch...@gmail.com> wrote:
> > i did try:
> > sudo apt-get install mongodb
> > no sucess, so could you give me the commands that i have to write in
> > the server to install the package?
>
> Sure.  First, add a line to your /etc/apt/sources.list, as described here:
>

> http://groups.google.com/group/mongodb-user/browse_thread/thread/35b7...

tcha-tcho

unread,
Feb 11, 2010, 1:11:24 PM2/11/10
to mongodb-user
Hy Richard!

Thankyou very much! unfortnally a lot of servers still uses the LTS
ubuntu 8.10... i did try to use the upstart... but he dont start
telling "status 1"...i did try to use init.d file too with the conf in
etc but he dont start... telling just a "...fail!" in response... i
spend some days trying to make this work... there are some plan to
build a package for 8.10 ubuntu?? i spoke with the guys on webbynode
and they tell me that they are building a script with the guys of the
10gen.. this became a huge issue for my people, we are about to
rebuild all the project using mysql because of this... could you help-
me? i really love mongodb he is running in server like a charm, but
the process die in a couple of hours...

Thankyou so much

Tcha-Tcho

On Feb 10, 12:42 pm, Richard Kreuter <rich...@10gen.com> wrote:

> tcha-tcho <tchatch...@gmail.com> wrote:
> > i did try:
> > sudo apt-get install mongodb
> > no sucess, so could you give me the commands that i have to write in
> > the server to install the package?
>
> Sure.  First, add a line to your /etc/apt/sources.list, as described here:
>

> http://groups.google.com/group/mongodb-user/browse_thread/thread/35b7...

Richard Kreuter

unread,
Feb 11, 2010, 2:13:05 PM2/11/10
to Nico Poppelier, mongod...@googlegroups.com

Pretty much everything is installed into locations that conform to the
FHS guidelines [*]: executables go into /usr/bin/, data files under
/var/lib/ (specifically, /var/lib/mongodb/), configuration in the file
/etc/, and so forth. A listing of an amd64 .deb's contents is below.

To migrate from a manually-installed mongodb to the .debs we're
publishing, I guess there's two options:

(1) make your installation conform to the Debianized way:

(a) move or symlink your dbpath to /var/lib/mongodb,

(b) move or symlink your logpath to /var/log/mongodb

(c) chown -R mongodb:mongodb <your dbpath>

(d) chown -R mongodb:mongodb <your logpath>

(2) change the Debianized package to conform to your installation

(a) edit the dbpath & logpath in /etc/mongodb.conf

(b) change the user to run mongod as (in /etc/init/mongodb.conf for
upstart systems or /etc/init.d/mongodb for SysV init systems).

[*] http://www.pathname.com/fhs/

Regards,
Richard

/usr/
/usr/lib64/
/usr/lib64/libmongoclient.a
/usr/share/
/usr/share/man/
/usr/share/man/man1/
/usr/share/man/man1/mongoexport.1.gz
/usr/share/man/man1/mongofiles.1.gz
/usr/share/man/man1/mongo.1.gz
/usr/share/man/man1/mongod.1.gz
/usr/share/man/man1/mongos.1.gz
/usr/share/man/man1/mongosniff.1.gz
/usr/share/man/man1/mongodump.1.gz
/usr/share/man/man1/mongorestore.1.gz
/usr/share/man/man1/mongoimport.1.gz
/usr/share/lintian/
/usr/share/lintian/overrides/
/usr/share/lintian/overrides/mongodb
/usr/share/doc/
/usr/share/doc/mongodb/
/usr/share/doc/mongodb/copyright
/usr/share/doc/mongodb/changelog.gz
/usr/bin/
/usr/bin/mongo
/usr/bin/mongodump
/usr/bin/mongosniff
/usr/bin/mongod
/usr/bin/mongoimport
/usr/bin/mongos
/usr/bin/mongoexport
/usr/bin/mongorestore
/usr/bin/mongofiles
/usr/include/
/usr/include/mongo/
/usr/include/mongo/targetver.h
/usr/include/mongo/client/
/usr/include/mongo/client/gridfs.h
/usr/include/mongo/client/connpool.h
/usr/include/mongo/client/dbclient.h
/usr/include/mongo/client/parallel.h
/usr/include/mongo/client/quorum.h
/usr/include/mongo/client/model.h
/usr/include/mongo/db/
/usr/include/mongo/db/concurrency.h
/usr/include/mongo/db/curop.h
/usr/include/mongo/db/storage.h
/usr/include/mongo/db/jsobjmanipulator.h
/usr/include/mongo/db/cursor.h
/usr/include/mongo/db/extsort.h
/usr/include/mongo/db/client.h
/usr/include/mongo/db/module.h
/usr/include/mongo/db/resource.h
/usr/include/mongo/db/matcher.h
/usr/include/mongo/db/scanandorder.h
/usr/include/mongo/db/dbmessage.h
/usr/include/mongo/db/security.h
/usr/include/mongo/db/queryoptimizer.h
/usr/include/mongo/db/clientcursor.h
/usr/include/mongo/db/jsobj.h
/usr/include/mongo/db/lasterror.h
/usr/include/mongo/db/recstore.h
/usr/include/mongo/db/reccache.h
/usr/include/mongo/db/json.h
/usr/include/mongo/db/nonce.h
/usr/include/mongo/db/db.h
/usr/include/mongo/db/queryutil.h
/usr/include/mongo/db/filever.h
/usr/include/mongo/db/cmdline.h
/usr/include/mongo/db/btree.h
/usr/include/mongo/db/dbinfo.h
/usr/include/mongo/db/pdfile.h
/usr/include/mongo/db/instance.h
/usr/include/mongo/db/minilex.h
/usr/include/mongo/db/introspect.h
/usr/include/mongo/db/commands.h
/usr/include/mongo/db/rec.h
/usr/include/mongo/db/namespace.h
/usr/include/mongo/db/repl.h
/usr/include/mongo/db/database.h
/usr/include/mongo/db/replset.h
/usr/include/mongo/db/reci.h
/usr/include/mongo/db/query.h
/usr/include/mongo/db/dbhelpers.h
/usr/include/mongo/util/
/usr/include/mongo/util/miniwebserver.h
/usr/include/mongo/util/ntservice.h
/usr/include/mongo/util/processinfo.h
/usr/include/mongo/util/md5.h
/usr/include/mongo/util/optime.h
/usr/include/mongo/util/log.h
/usr/include/mongo/util/message_server.h
/usr/include/mongo/util/builder.h
/usr/include/mongo/util/debug_util.h
/usr/include/mongo/util/httpclient.h
/usr/include/mongo/util/assert_util.h
/usr/include/mongo/util/mmap.h
/usr/include/mongo/util/lruishmap.h
/usr/include/mongo/util/sock.h
/usr/include/mongo/util/hashtab.h
/usr/include/mongo/util/file.h
/usr/include/mongo/util/queue.h
/usr/include/mongo/util/allocator.h
/usr/include/mongo/util/background.h
/usr/include/mongo/util/file_allocator.h
/usr/include/mongo/util/goodies.h
/usr/include/mongo/util/message.h
/usr/include/mongo/util/base64.h
/usr/include/mongo/util/top.h
/usr/include/mongo/util/unittest.h
/usr/include/mongo/util/embedded_builder.h
/usr/include/mongo/stdafx.h
/usr/sbin/
/var/
/var/lib/
/var/lib/mongodb/
/etc/init.d/mongodb

tcha-tcho

unread,
Feb 12, 2010, 12:09:17 PM2/12/10
to mongodb-user
Thankyou Richard i finally solve the problem... i reinstall ubuntu in
the webbynode server taking off the prebuild options and reinstalling
all the features by my self... so the package its working fine in the
ubuntu 9.04.

Thankyou verymuch for your tips,

Go mongo go!

Best Regards

Tcha-Tcho

Lee Olayvar

unread,
Feb 17, 2010, 9:50:13 PM2/17/10
to mongodb-user
Hmm, i am trying to add that key and it keeps telling me the key is
corrupt. Anyone know why, or what i am doing wrong?

tcha-tcho

unread,
Feb 18, 2010, 2:20:57 AM2/18/10
to mongodb-user
Hy Richard again... the package has working fine... but now its
broken... its 2010-02-18 07:08:54

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
mongodb
E: Sub-process /usr/bin/dpkg returned an error code (1)

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

Something was changed in the ubuntu packages?

I did try to reinstall spidermonkey using the steps from the site, but
still dont work...

Thankyou

PS: using Ubuntu 9.04 (did work fine with the 9.4)

Roger Binns

unread,
Feb 18, 2010, 3:25:25 AM2/18/10
to mongod...@googlegroups.com
tcha-tcho wrote:
> /usr/bin/mongo
> /usr/bin/mongo: error while loading shared libraries: libmozjs.so:
> cannot open shared object file: No such file or directory
>
> Something was changed in the ubuntu packages?

Ubuntu just did a Firefox update which included a xulrunner update -
xulrunner includes the Javascript stuff. Consequently shared library
linkage broke. Once Mongo is rebuilt against the new version it will
run fine. The alternative is to build it yourself but that is a little
tedious.

Roger

Richard Kreuter

unread,
Feb 18, 2010, 9:57:25 AM2/18/10
to Roger Binns, mongod...@googlegroups.com
Roger Binns writes:

> Ubuntu just did a Firefox update which included a xulrunner update -

Thanks for this info. I'll post new snapshots for Lucid today.

--
Richard

Keith Branton

unread,
Feb 18, 2010, 10:42:58 AM2/18/10
to mongodb-user
> Thanks for this info.  I'll post new snapshots for Lucid today.

And Karmic? It's also broken on my Ubuntu 9.10 x64 development box.

Richard Kreuter

unread,
Feb 18, 2010, 11:06:12 AM2/18/10
to Keith Branton, mongod...@googlegroups.com
Keith Branton writes:
> > Thanks for this info. =A0I'll post new snapshots for Lucid today.

>
> And Karmic? It's also broken on my Ubuntu 9.10 x64 development box.

Yes. Should be up within the hour.

Regards,
Richard

Richard Kreuter

unread,
Feb 18, 2010, 12:07:18 PM2/18/10
to mongod...@googlegroups.com, Keith Branton

Drat; should have said "within an hour."

New pacakges up; please let us know if these work with the newest Ubuntu
packages. (In principle, the ubuntu mirrors that our buildhosts use
could get out of date from time to time...)

Regards,
Richard

tcha-tcho

unread,
Feb 18, 2010, 10:59:33 AM2/18/10
to mongodb-user
Thanks Richard, i will wait for the Jaunty snapshot too. Please post
something here once is ready.

Richard Kreuter

unread,
Feb 18, 2010, 1:55:44 PM2/18/10
to tcha-tcho, Roger Binns, mongod...@googlegroups.com
tcha-tcho writes:
> Thanks Richard, i will wait for the Jaunty snapshot too. Please post
> something here once is ready.

Snapshots are posted for all of Ubuntu 8.10, 9.04, 9.10, 10.04
(prerelease), along with Debian 5.0.

(There was no reason for me to have written "for Lucid" earlier; our
build infrastructure attempts to make .debs for a whole slew of
versions.)

Regards,
Richard

Keith Branton

unread,
Feb 18, 2010, 2:18:17 PM2/18/10
to mongodb-user
Hi Richard,

Not sure if I'm doing something stupid - I'm a linux newbie.

Using aptitude I uninstalled the mongo package and installed the new
mongo-snapshot package. Now nothing works. I don't have a /usr/bin/
mongod - it doesn't look like there are enough files in the package.
I'm running 9.10 x64. Help!

Thanks,

Keith.

Richard Kreuter

unread,
Feb 18, 2010, 2:29:13 PM2/18/10
to Keith Branton, mongod...@googlegroups.com
Keith Branton writes:

> Not sure if I'm doing something stupid - I'm a linux newbie.

Nope! I'm the one who did something stupid: that "-snapshot" in the
package name isn't supposed to be there. Running another batch of
builds now.

Sorry about that,
Richard

Richard Kreuter

unread,
Feb 18, 2010, 3:45:31 PM2/18/10
to Keith Branton, mongod...@googlegroups.com

Snapshot packages with name "mongodb" are now up (with the temporary
exception of Ubuntu 8.10 on amd64; will have that posted shortly).

--
Richard

Richard Kreuter

unread,
Feb 18, 2010, 4:39:34 PM2/18/10
to mongod...@googlegroups.com, Keith Branton
Richard Kreuter writes:
> Snapshot packages with name "mongodb" are now up (with the temporary
> exception of Ubuntu 8.10 on amd64; will have that posted shortly).

And now the Ubuntu 8.10 amd64 packages are up.

--
Richard

Stefan Scholl

unread,
Apr 8, 2010, 2:47:26 AM4/8/10
to mongodb-user
On 10 Feb., 16:42, Richard Kreuter <rich...@10gen.com> wrote:
> sudo aptitude update
> sudo aptitude install mongodb
>
> Answer "Yes" to any questions you're asked, and you should have a
> mongodb running.  If this doesn't work out, let us know, and we'll work
> out the details.

Thanks for the service. But don't you think the dependencies are
overkill for a server?

xulrunner, GTK, CUPS, CAIRO?

$ sudo apt-get install mongodb-stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
dictionaries-common hicolor-icon-theme libatk1.0-0 libatk1.0-data
libcairo2 libcups2 libdatrie0
libdirectfb-1.0-0 libfontenc1 libgtk2.0-0 libgtk2.0-bin libgtk2.0-
common libhunspell-1.2-0
libidl0 libmozjs-dev libmozjs1d libnspr4-0d libnspr4-dev libnss3-1d
libnss3-dev libpango1.0-0
libpango1.0-common libpixman-1-0 libstartup-notification0 libthai-
data libthai0 libts-0.0-0
libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1
libxdamage1 libxfixes3 libxfont1
libxft2 libxi6 libxinerama1 libxrandr2 libxrender1 myspell-en-us x-
ttcidfont-conf
xfonts-encodings xfonts-utils xulrunner-1.9 xulrunner-dev
Suggested packages:
ispell emacsen-common jed-extra cups-common librsvg2-common ttf-
kochi-gothic ttf-kochi-mincho
ttf-thryomanes ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp
ttf-arphic-gkai00mp
ttf-arphic-bkai00mp xulrunner-1.9-gnome-support
The following NEW packages will be installed:
dictionaries-common hicolor-icon-theme libatk1.0-0 libatk1.0-data
libcairo2 libcups2 libdatrie0
libdirectfb-1.0-0 libfontenc1 libgtk2.0-0 libgtk2.0-bin libgtk2.0-
common libhunspell-1.2-0
libidl0 libmozjs-dev libmozjs1d libnspr4-0d libnspr4-dev libnss3-1d
libnss3-dev libpango1.0-0
libpango1.0-common libpixman-1-0 libstartup-notification0 libthai-
data libthai0 libts-0.0-0
libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1
libxdamage1 libxfixes3 libxfont1
libxft2 libxi6 libxinerama1 libxrandr2 libxrender1 mongodb-stable
myspell-en-us x-ttcidfont-conf
xfonts-encodings xfonts-utils xulrunner-1.9 xulrunner-dev
0 upgraded, 46 newly installed, 0 to remove and 0 not upgraded.
Need to get 42.9MB of archives.
After this operation, 144MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.

Stefan Scholl

unread,
Apr 13, 2010, 3:46:12 AM4/13/10
to mongod...@googlegroups.com
Any reason why there are so many dependencies? Plans to reduce
them?


--
Web (en): http://www.no-spoon.de/ -*- Web (de): http://www.frell.de/
<!--[if IE 6]><script>for(x in document.open);</script><![endif]-->

Flaper87

unread,
Apr 13, 2010, 4:08:10 AM4/13/10
to mongod...@googlegroups.com
I recommend you to use the mongodb builds found in http://www.mongodb.org/display/DOCS/Downloads

I don't really know who's the maintainer but we've been using those builds in our Ubuntu servers (Work). 

You can install untar the package in /opt/mongodb and add the /opt/mongodb/bin to your env PATH, this will let you upgrade your mongodb installation very quickly and easily.

Hope this helps.


2010/4/13 Stefan Scholl <ste...@no-spoon.de>
--
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.




--
Flavio Percoco Premoli, A.K.A. [Flaper87]
http://www.flaper87.org
Usuario Linux registrado #436538
Geek by nature, Linux by choice, Archer of course.
Key Fingerprint: CFC0 C67D FF73 463B 7E55  CF43 25D1 E75B E2DB 15C7
The Solution to everything:
python -c "from struct import pack; print  pack('5b', (41*len('99')), pow(8,2)+20, 4900**0.5, range(78)[-1], 10)"

Eliot Horowitz

unread,
Apr 13, 2010, 7:15:48 AM4/13/10
to mongod...@googlegroups.com
Xulrunner on debian pulls in a lot for some reason and there isn't a
clean spidermonkey package that's good.
So isn't much we can do

Chris Butler

unread,
Apr 19, 2010, 12:48:08 PM4/19/10
to mongodb-user
I notice that the packages for "mongodb-stable" and "mongodb-unstable"
are also using the YYYYMMDD syntax. However, don't these packages both
contain the stable/unstable releases, which have associated version
numbers? Is it not possible to use the release version number instead
of the current date?

The main problem with the current setup is that both packages will be
flagged as having an update available every day, whereas using the
version number of the release means we'll only see updates available
when you actually make a new release.

Richard Kreuter

unread,
Apr 19, 2010, 1:01:23 PM4/19/10
to mongod...@googlegroups.com
Chris Butler writes:
> I notice that the packages for "mongodb-stable" and "mongodb-unstable"
> are also using the YYYYMMDD syntax. However, don't these packages both
> contain the stable/unstable releases, which have associated version
> numbers? Is it not possible to use the release version number instead
> of the current date?

Yes, though things like the init scripts and config file are more or
less orthogonal to the mongo version. When I got started making packages
a few months back, that stuff was changing quickly.

> The main problem with the current setup is that both packages will be
> flagged as having an update available every day, whereas using the
> version number of the release means we'll only see updates available
> when you actually make a new release.

Couldn't you use apt pinning to stick to a given day's package?

--
Richard

Chris Butler

unread,
Apr 28, 2010, 12:06:12 PM4/28/10
to mongodb-user
On Apr 19, 6:01 pm, Richard Kreuter <rich...@10gen.com> wrote:
> > The main problem with the current setup is that both packages will be
> > flagged as having an update available every day, whereas using the
> > version number of the release means we'll only see updates available
> > when you actually make a new release.
>
> Couldn't you use apt pinning to stick to a given day's package?

That's possible yes, and it's what I'm currently doing. It just has
the disadvantage that updates are not automatically flagged up by our
monitoring. Not a huge problem, but a bit of a pain.

--
Chris

Chris Butler

unread,
Apr 28, 2010, 12:11:11 PM4/28/10
to mongodb-user
On a related note.. it seems that your signature on the Release files
is broken:

Hit http://downloads.mongodb.org 5.0 Release
Err http://downloads.mongodb.org 5.0 Release

Get: 14 http://downloads.mongodb.org 5.0 Release [1582B]
Ign http://downloads.mongodb.org 5.0 Release
Ign http://downloads.mongodb.org 5.0/10gen Packages/DiffIndex
Ign http://downloads.mongodb.org 5.0/10gen Packages
Hit http://downloads.mongodb.org 5.0/10gen Packages
Fetched 302kB in 2s (147kB/s)
Reading package lists... Done
W: GPG error: http://downloads.mongodb.org 5.0 Release: The following
signatures were invalid: BADSIG 9ECBEC467F0CEB10 Richard Kreuter
<ric...@10gen.com>
W: You may want to run apt-get update to correct these problems

Richard Kreuter

unread,
Apr 28, 2010, 1:19:57 PM4/28/10
to mongod...@googlegroups.com
Dunno what went wrong there, but I've just pushed a new set of packages,
and the signatures check out now. Thanks for the report.

--
Richard

Chris Butler writes:
> On a related note.. it seems that your signature on the Release files
> is broken:
>
> Hit http://downloads.mongodb.org 5.0 Release
> Err http://downloads.mongodb.org 5.0 Release
>
> Get: 14 http://downloads.mongodb.org 5.0 Release [1582B]
> Ign http://downloads.mongodb.org 5.0 Release
> Ign http://downloads.mongodb.org 5.0/10gen Packages/DiffIndex
> Ign http://downloads.mongodb.org 5.0/10gen Packages
> Hit http://downloads.mongodb.org 5.0/10gen Packages
> Fetched 302kB in 2s (147kB/s)
> Reading package lists... Done
> W: GPG error: http://downloads.mongodb.org 5.0 Release: The following
> signatures were invalid: BADSIG 9ECBEC467F0CEB10 Richard Kreuter
> <ric...@10gen.com>
> W: You may want to run apt-get update to correct these problems
>
> --
> You received this message because you are subscribed to the Google Groups "mo
> ngodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user+unsubscribe@google
Reply all
Reply to author
Forward
0 new messages