--
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.
There is nothing to be repaired. The port is just allocated by some
other process.
- -aj
Satyadeep Kumar wrote:
> if nothing happens , you might have to repair mongo.
>
> Regards
>
> On 8 May 2011 08:23, Alvin Richards <al...@10gen.com
> <mailto:al...@10gen.com>> wrote:
>
> Andrew is correct, you can see this reported at
>
> Sat May 7 12:31:58 [initandlisten] listen(): bind() failed errno:98
> Address already in use for socket: 0.0.0.0:27017 <http://0.0.0.0:27017>
>
> You can use 'lsof' to find what has the port open, but a ps -ef | grep
> mongo will probably find a mongo already running on that port!
>
> -Alvin
>
> On May 7, 12:05 am, Andrew Armstrong <phpla...@gmail.com
> <mailto:phpla...@gmail.com>> wrote:
> > Something appears to already be listening on that port (another mongod
> > instance?).
> >
> > If all else fails, a reboot of your server should let you start it.
> >
> > On May 7, 5:03 pm, shakthydoss <shakthyd...@gmail.com
> <mailto:shakthyd...@gmail.com>> wrote:
> >
> >
> >
> > > First i tried to start the client by the command
> > > ..$mongo
> >
> > > but it did not start at all
> >
> > > next i tried some think like this
> >
> > > mongod --dbpath=/var/lib/mongodb/
> >
> > > i got these messages
> >
> > > Sat May 7 12:31:58 [initandlisten] MongoDB starting : pid=2572
> > > port=27017 dbpath=/var/lib/mongodb/ 64-bit
> > > Sat May 7 12:31:58 [initandlisten] db version v1.8.1, pdfile
> version
> > > 4.5
> > > Sat May 7 12:31:58 [initandlisten] git version:
> > > a429cd4f535b2499cc4130b06ff7c26f41c00f04
> > > Sat May 7 12:31:58 [initandlisten] build sys info: Linux bs-
> > > linux64.10gen.cc <http://linux64.10gen.cc>
> 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28
> > > EST 2009 x86_64 BOOST_LIB_VERSION=1_41
> > > Sat May 7 12:31:58 [initandlisten] waiting for connections on port
> > > 27017
> > > Sat May 7 12:31:58 [websvr] web admin interface listening on port
> > > 28017
> > > Sat May 7 12:31:58 [initandlisten] listen(): bind() failed errno:98
> > > Address already in use for socket: 0.0.0.0:27017
> > > Sat May 7 12:31:58 [websvr] listen(): bind() failed errno:98
> Address
> > > already in use for socket: 0.0.0.0:28017 <http://0.0.0.0:28017>
> > > Sat May 7 12:31:58 [websvr] addr already in use
> > > Sat May 7 12:31:58 [initandlisten] addr already in use
> > > Sat May 7 12:31:58 [initandlisten] now exiting
> > > Sat May 7 12:31:58 dbexit:
> > > Sat May 7 12:31:58 [initandlisten] shutdown: going to close
> listening
> > > sockets...
> > > Sat May 7 12:31:58 [initandlisten] shutdown: going to flush
> > > diaglog...
> > > Sat May 7 12:31:58 [initandlisten] shutdown: going to close
> > > sockets...
> > > Sat May 7 12:31:58 [initandlisten] shutdown: waiting for fs
> > > preallocator...
> > > Sat May 7 12:31:58 [initandlisten] shutdown: closing all files...
> > > Sat May 7 12:31:58 closeAllFiles() finished
> > > Sat May 7 12:31:58 [initandlisten] shutdown: removing fs lock...
> > > Sat May 7 12:31:58 dbexit: really exiting now
> >
> > > pls some body give clear suggest with clear steps , its urgent
>
> --
> 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
> <mailto:mongod...@googlegroups.com>.
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com
> <mailto:mongodb-user%2Bunsu...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-user?hl=en.
>
>
>
>
> --
> Satyadeep
> satya...@gmail.com <mailto:satya...@gmail.com>
> +91 9711475156
>
> --
> 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.
- --
ZOPYX Limited | zopyx group
Charlottenstr. 37/1 | The full-service network for Zope & Plone
D-72070 T�bingen | Produce & Publish
www.zopyx.com | www.produce-and-publish.com
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJNxi45AAoJEADcfz7u4AZjlt8Lv0w2C9XuvnNuEMO6g6t3qqjd
W23pr65odvzv35mUEVbccX+h/pOVVil6K0W7z8mhWW1UctPFpU9utq77wsoDqZzY
C3/IhOphNFpsBhaidmQk7brDf2x326sWuOHEDqrFMfxtIYBXhJFmfstqxudmR+J1
9395cvwANJr4BRjuRwblC8fs/leqEye9qzK2Y/qoclPmHyOeBgMq7ZDsvQ9Q9/pI
SGoaNfmOYMd4zRA+s4AtL0Ef/X4QgVzu5U2hcf91t6IE275yRN68Yn9OW9aJ4myW
Jz5EqK8IzaFvZ6LntXI5FyI1UAMMrgHWR7AI3e3CSSwUh8iAUWTrUSsZgK/SCe7t
/5dd8L2qlw7DhiZ46+lK9DAXROO5+0F+2matpupE/miUm6BsjnwLlKTI8JSfnU4F
a+rhpajzMdpOT7GV38rkBUQRodC58lOmaNqmKcJVX++6Qhase2u2lfkV1buyOTIb
jt0Oe3ghW6DJSVaSFkDaPLBrddcPpB8=
=id8D
-----END PGP SIGNATURE-----
--
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.
$ mongod
mongod --help for help and startup options
Thu May 26 10:29:34 [initandlisten] MongoDB starting :
pid=508 port=27017 dbpath=/data/db/ 64-bit
Thu May 26 10:29:34 [initandlisten] db version v1.8.1, pdfile version 4.5
Thu May 26 10:29:34 [initandlisten] git version:
a429cd4f535b2499cc4130b06ff7c26f41c00f04
Thu May 26 10:29:34 [initandlisten] build sys info:
Darwin erh2.10gen.cc 9.6.0 Darwin Kernel Version
9.6.0: Mon Nov 24 17:37:00 PST 2008;
root:xnu-1228.9.59~1/RELEASE_I386 i386
BOOST_LIB_VERSION=1_40
Thu May 26 10:29:34 [initandlisten] waiting for connections on port 27017
Thu May 26 10:29:34 [websvr] web admin interface listening on port 28017
Thu May 26 10:29:34 [websvr] listen(): bind() failed errno:48
Address already in use for socket: 0.0.0.0:28017
Thu May 26 10:29:34 [websvr] addr already in use
Thu May 26 10:29:34 [initandlisten] listen(): bind()
failed errno:48 Address already in use for socket: 0.0.0.0:27017
Thu May 26 10:29:34 [initandlisten] addr already in use
Thu May 26 10:29:34 [initandlisten] now exiting
Thu May 26 10:29:34 dbexit:
Thu May 26 10:29:34 [initandlisten] shutdown: going to close listening sockets...
Thu May 26 10:29:34 [initandlisten] shutdown: going to flush diaglog...
Thu May 26 10:29:34 [initandlisten] shutdown: going to close sockets...
Thu May 26 10:29:34 [initandlisten] shutdown: waiting for fs preallocator...
Thu May 26 10:29:34 [initandlisten] shutdown: closing all files...
Thu May 26 10:29:34 closeAllFiles() finished
Thu May 26 10:29:34 [initandlisten] shutdown: removing fs lock...
Thu May 26 10:29:34 dbexit: really exiting now
running the ps command:
$ ps -ef | grep mongo
yields:
0 58 1 0 0:18.44 ?? 0:22.18 /usr/local/mongodb/bin/mongod run --config
/usr/local/mongodb/mongod.conf
503 510 419 0 0:00.00 ttys000 0:00.00 grep mongo
Ran the following:
$ /usr/local/mongodb/bin/mongod --repair
Still doesn't work.
How do I shut down this mongodb instance?
Thanks.