Tom Larédo | 2 Dec 17:59 2013
Picon

MongoS refuses to start silently (sharded cluster)

Hi,

I am experiencing a problem with mongos on my sharded cluster.
The problem is that my mongos refuses to start :

mongodbserver-front-01:~# service mongodb start
[FAIL] Starting database: mongodb failed!

andnothing is happening in my log (/var/log/mongodb/mongodb.log).

All my mongodb/mongos configurations (/etc/mongodb.conf) are configured not to use authentication mecanism :

noauth = true
# auth = false
# keyfile = /var/lib/mongodb/keyFile


I also noticed that when I uncomment the "keyfile = ..." line in all my configuration files and then restart all services, I get this log when my mongoS try to strat (and then fails) :

***** SERVER RESTARTED *****


Mon Dec  2 17:16:18.718 security key: Xw/NaFlmI1FQoc4zWSxPhQApLCS4xW2YHp1bn/Oi8UrSFYN+XrHIbON5fAjxo0rATROvyptIJGIQc43tAOFT71CvlI7L8UlX+0TMnisYQnhFXXCt7Q0nZSmMAa+oukKHgk6cmv71HH+F2LGIb4u4JMQxrg2iQsjM4JOzCbHU5abJ5JChzvbxeD0CuT2eWsbKcC9dHJbmoSojjAXEYR2MdhtLJbmnx3p/c//mtbSNbgMxz6JYFU5XfBF9DnlZr5WmDz9ZaYebrFEqzYmWHOHKysk6nNZgk09AYjAJYcRqcQX+htcgb+l0bjVBPcw9Z5/XtL/nkFtVuJRyZ8o1nT01DPPcb5TDSHYL1qhb3rfxEVuyAoCJLZht6fW5oSvG9cUAgFvaaO4t+r87PiR7CybN/0IVGST+9orlSUmbOF05Gw34dJ7XPrHTrNY8aZZ7ccJlNRYVAlkKwSNA3AkDdq/0JHoNhPr6xbVPqaD5LPTQ9hPLi7O6RSm68QuDa7CvT6H2BnYqYDGHH34kt3K7c7sWz0SMzRANdP830s55HVJ0/rX5KWC/wQUSda2ijnz0qDwNevC6CvfOybZppcNCm0r14rKIZzBDVTahnaG8u4hvGJOS+3gfjMnpE4Q6ME0vgKrZPX28ZTGJOnbHBrWCK4x7Wbyi4y4zeDGYMwSnzyoGyMTI4PlikQSf/qehEyNV9WcbeLb7mqQJECPZ5ncR6wMXNMGVGScAXodfncF0zXA/HSK+MZ1yQXSED5/EtaCm7dYlqpHc2tQYlTB/f1t1E3sfAqxOdfk8btDLLB9Duu6TaAMgp5lLsszk9bJblJSHw1DKW6PBUZELDRXX0TbuQ6O/yZoRWPlKuJhf4liob1GgGUrbrtE0WhDrMmJlL9KVqZ02e/kwTX5XVyf/7IVpRYrNWtMYoOj5VojjFyvQ5c7+jS5iQsHZCNCGyKMjp3uYxaQAYOF+x3nHM6BgxHZ7E6prkJwFIMow
Mon Dec  2 17:16:18.719 [mongosMain] MongoS version 2.4.5 starting: pid=51663 port=27017 64-bit host=mongodbserver-front-01.mydomain.com (--help for usage)
Mon Dec  2 17:16:18.719 [mongosMain] git version: nogitversion
Mon Dec  2 17:16:18.719 [mongosMain] build info: Linux mongodbserver
.mydomain.com 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 BOOST_LIB_VERSION=1_49
Mon Dec  2 17:16:18.719 [mongosMain] options: { bind_ip: "127.0.0.1", config: "/etc/mongodb.conf", configdb: "mongodbserver-shard-1a,mongodbserver-shard-1b,mongodbserver-shard-1c", keyFile: "/var/lib/mongodb/keyFile", logappend: "true", logpath: "/var/log/mongodb/mongodb.log", unixSocketPrefix: "/var/run/mongodb", verbose: "true" }
Mon Dec  2 17:16:18.732 [mongosMain]  config string : mongodbserver-shard-1a:27019,mongodbserver-shard-1b:27019,mongodbserver-shard-1c:27019
Mon Dec  2 17:16:18.732 [mongosMain] creating new connection to:mongodbserver-shard-1a:27019
Mon Dec  2 17:16:18.733 BackgroundJob starting: ConnectBG
Mon Dec  2 17:16:18.733 [mongosMain] connected connection!
Mon Dec  2 17:16:18.736 [mongosMain] User Assertion: 18:{ code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.737 [mongosMain] User Assertion: 15847:can't authenticate to server mongodbserver-shard-1a:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.737 [mongosMain] warning:  couldn't check dbhash on config server mongodbserver-shard-1a:27019 :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1a:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.737 [mongosMain] creating new connection to:mongodbserver-shard-1b:27019
Mon Dec  2 17:16:18.738 BackgroundJob starting: ConnectBG
Mon Dec  2 17:16:18.738 [mongosMain] connected connection!
Mon Dec  2 17:16:18.741 [mongosMain] User Assertion: 18:{ code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.741 [mongosMain] User Assertion: 15847:can't authenticate to server mongodbserver-shard-1b:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.741 [mongosMain] warning:  couldn't check dbhash on config server mongodbserver-shard-1b:27019 :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1b:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.741 [mongosMain] creating new connection to:mongodbserver-shard-1c:27019
Mon Dec  2 17:16:18.742 BackgroundJob starting: ConnectBG
Mon Dec  2 17:16:18.743 [mongosMain] connected connection!
Mon Dec  2 17:16:18.746 [mongosMain] User Assertion: 18:{ code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] User Assertion: 15847:can't authenticate to server mongodbserver-shard-1c:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] warning:  couldn't check dbhash on config server mongodbserver-shard-1c:27019 :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1c:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] ERROR: could not verify that config servers are in sync :: caused by :: no config servers successfully contacted :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1c:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] configServer connection startup check failed



All my mongos/mongodb are in 2.4.5
My cluster is made like that :

mongodbserver-front-01 : mongos
mongodbserver-shard-1a : mongod + mongod-config-srv
mongodbserver-shard-1b : mongod + mongod-config-srv
mongodbserver-shard-1c : mongod + mongod-config-srv

What could I do to investigate on the reason of this fail when I try to start mongos on mongodbserver-front-01 ?

Best regards,
Tom

--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Asya Kamsky | 3 Dec 02:39 2013

Re: MongoS refuses to start silently (sharded cluster)

The config servers that mongos is contacting (ones listed in --confgdb) must be up and running for mongos to successfully start up.

Asya

On Dec 2, 2013 11:59 AM, "Tom Larédo" <tom.laredo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi,

I am experiencing a problem with mongos on my sharded cluster.
The problem is that my mongos refuses to start :

mongodbserver-front-01:~# service mongodb start
[FAIL] Starting database: mongodb failed!

andnothing is happening in my log (/var/log/mongodb/mongodb.log).

All my mongodb/mongos configurations (/etc/mongodb.conf) are configured not to use authentication mecanism :

noauth = true
# auth = false
# keyfile = /var/lib/mongodb/keyFile


I also noticed that when I uncomment the "keyfile = ..." line in all my configuration files and then restart all services, I get this log when my mongoS try to strat (and then fails) :

***** SERVER RESTARTED *****


Mon Dec  2 17:16:18.718 security key: Xw/NaFlmI1FQoc4zWSxPhQApLCS4xW2YHp1bn/Oi8UrSFYN+XrHIbON5fAjxo0rATROvyptIJGIQc43tAOFT71CvlI7L8UlX+0TMnisYQnhFXXCt7Q0nZSmMAa+oukKHgk6cmv71HH+F2LGIb4u4JMQxrg2iQsjM4JOzCbHU5abJ5JChzvbxeD0CuT2eWsbKcC9dHJbmoSojjAXEYR2MdhtLJbmnx3p/c//mtbSNbgMxz6JYFU5XfBF9DnlZr5WmDz9ZaYebrFEqzYmWHOHKysk6nNZgk09AYjAJYcRqcQX+htcgb+l0bjVBPcw9Z5/XtL/nkFtVuJRyZ8o1nT01DPPcb5TDSHYL1qhb3rfxEVuyAoCJLZht6fW5oSvG9cUAgFvaaO4t+r87PiR7CybN/0IVGST+9orlSUmbOF05Gw34dJ7XPrHTrNY8aZZ7ccJlNRYVAlkKwSNA3AkDdq/0JHoNhPr6xbVPqaD5LPTQ9hPLi7O6RSm68QuDa7CvT6H2BnYqYDGHH34kt3K7c7sWz0SMzRANdP830s55HVJ0/rX5KWC/wQUSda2ijnz0qDwNevC6CvfOybZppcNCm0r14rKIZzBDVTahnaG8u4hvGJOS+3gfjMnpE4Q6ME0vgKrZPX28ZTGJOnbHBrWCK4x7Wbyi4y4zeDGYMwSnzyoGyMTI4PlikQSf/qehEyNV9WcbeLb7mqQJECPZ5ncR6wMXNMGVGScAXodfncF0zXA/HSK+MZ1yQXSED5/EtaCm7dYlqpHc2tQYlTB/f1t1E3sfAqxOdfk8btDLLB9Duu6TaAMgp5lLsszk9bJblJSHw1DKW6PBUZELDRXX0TbuQ6O/yZoRWPlKuJhf4liob1GgGUrbrtE0WhDrMmJlL9KVqZ02e/kwTX5XVyf/7IVpRYrNWtMYoOj5VojjFyvQ5c7+jS5iQsHZCNCGyKMjp3uYxaQAYOF+x3nHM6BgxHZ7E6prkJwFIMow
Mon Dec  2 17:16:18.719 [mongosMain] MongoS version 2.4.5 starting: pid=51663 port=27017 64-bit host=mongodbserver-front-01.mydomain.com (--help for usage)
Mon Dec  2 17:16:18.719 [mongosMain] git version: nogitversion
Mon Dec  2 17:16:18.719 [mongosMain] build info: Linux mongodbserver
.mydomain.com 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 BOOST_LIB_VERSION=1_49
Mon Dec  2 17:16:18.719 [mongosMain] options: { bind_ip: "127.0.0.1", config: "/etc/mongodb.conf", configdb: "mongodbserver-shard-1a,mongodbserver-shard-1b,mongodbserver-shard-1c", keyFile: "/var/lib/mongodb/keyFile", logappend: "true", logpath: "/var/log/mongodb/mongodb.log", unixSocketPrefix: "/var/run/mongodb", verbose: "true" }
Mon Dec  2 17:16:18.732 [mongosMain]  config string : mongodbserver-shard-1a:27019,mongodbserver-shard-1b:27019,mongodbserver-shard-1c:27019
Mon Dec  2 17:16:18.732 [mongosMain] creating new connection to:mongodbserver-shard-1a:27019
Mon Dec  2 17:16:18.733 BackgroundJob starting: ConnectBG
Mon Dec  2 17:16:18.733 [mongosMain] connected connection!
Mon Dec  2 17:16:18.736 [mongosMain] User Assertion: 18:{ code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.737 [mongosMain] User Assertion: 15847:can't authenticate to server mongodbserver-shard-1a:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.737 [mongosMain] warning:  couldn't check dbhash on config server mongodbserver-shard-1a:27019 :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1a:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.737 [mongosMain] creating new connection to:mongodbserver-shard-1b:27019
Mon Dec  2 17:16:18.738 BackgroundJob starting: ConnectBG
Mon Dec  2 17:16:18.738 [mongosMain] connected connection!
Mon Dec  2 17:16:18.741 [mongosMain] User Assertion: 18:{ code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.741 [mongosMain] User Assertion: 15847:can't authenticate to server mongodbserver-shard-1b:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.741 [mongosMain] warning:  couldn't check dbhash on config server mongodbserver-shard-1b:27019 :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1b:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.741 [mongosMain] creating new connection to:mongodbserver-shard-1c:27019
Mon Dec  2 17:16:18.742 BackgroundJob starting: ConnectBG
Mon Dec  2 17:16:18.743 [mongosMain] connected connection!
Mon Dec  2 17:16:18.746 [mongosMain] User Assertion: 18:{ code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] User Assertion: 15847:can't authenticate to server mongodbserver-shard-1c:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] warning:  couldn't check dbhash on config server mongodbserver-shard-1c:27019 :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1c:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] ERROR: could not verify that config servers are in sync :: caused by :: no config servers successfully contacted :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1c:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] configServer connection startup check failed



All my mongos/mongodb are in 2.4.5
My cluster is made like that :

mongodbserver-front-01 : mongos
mongodbserver-shard-1a : mongod + mongod-config-srv
mongodbserver-shard-1b : mongod + mongod-config-srv
mongodbserver-shard-1c : mongod + mongod-config-srv

What could I do to investigate on the reason of this fail when I try to start mongos on mongodbserver-front-01 ?

Best regards,
Tom

--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/groups/opt_out.

--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Tom Larédo | 3 Dec 09:26 2013
Picon

Re: MongoS refuses to start silently (sharded cluster)

Hi,

Thanks for your reply.
Each one of my three config servers is running.

How could I test the connectivity between them ?

Le mardi 3 décembre 2013 02:39:28 UTC+1, Asya Kamsky a écrit :

The config servers that mongos is contacting (ones listed in --confgdb) must be up and running for mongos to successfully start up.

Asya

On Dec 2, 2013 11:59 AM, "Tom Larédo" <tom.l...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi,

I am experiencing a problem with mongos on my sharded cluster.
The problem is that my mongos refuses to start :

mongodbserver-front-01:~# service mongodb start
[FAIL] Starting database: mongodb failed!

andnothing is happening in my log (/var/log/mongodb/mongodb.log).

All my mongodb/mongos configurations (/etc/mongodb.conf) are configured not to use authentication mecanism :

noauth = true
# auth = false
# keyfile = /var/lib/mongodb/keyFile


I also noticed that when I uncomment the "keyfile = ..." line in all my configuration files and then restart all services, I get this log when my mongoS try to strat (and then fails) :

***** SERVER RESTARTED *****


Mon Dec  2 17:16:18.718 security key: Xw/NaFlmI1FQoc4zWSxPhQApLCS4xW2YHp1bn/Oi8UrSFYN+XrHIbON5fAjxo0rATROvyptIJGIQc43tAOFT71CvlI7L8UlX+0TMnisYQnhFXXCt7Q0nZSmMAa+oukKHgk6cmv71HH+F2LGIb4u4JMQxrg2iQsjM4JOzCbHU5abJ5JChzvbxeD0CuT2eWsbKcC9dHJbmoSojjAXEYR2MdhtLJbmnx3p/c//mtbSNbgMxz6JYFU5XfBF9DnlZr5WmDz9ZaYebrFEqzYmWHOHKysk6nNZgk09AYjAJYcRqcQX+htcgb+l0bjVBPcw9Z5/XtL/nkFtVuJRyZ8o1nT01DPPcb5TDSHYL1qhb3rfxEVuyAoCJLZht6fW5oSvG9cUAgFvaaO4t+r87PiR7CybN/0IVGST+9orlSUmbOF05Gw34dJ7XPrHTrNY8aZZ7ccJlNRYVAlkKwSNA3AkDdq/0JHoNhPr6xbVPqaD5LPTQ9hPLi7O6RSm68QuDa7CvT6H2BnYqYDGHH34kt3K7c7sWz0SMzRANdP830s55HVJ0/rX5KWC/wQUSda2ijnz0qDwNevC6CvfOybZppcNCm0r14rKIZzBDVTahnaG8u4hvGJOS+3gfjMnpE4Q6ME0vgKrZPX28ZTGJOnbHBrWCK4x7Wbyi4y4zeDGYMwSnzyoGyMTI4PlikQSf/qehEyNV9WcbeLb7mqQJECPZ5ncR6wMXNMGVGScAXodfncF0zXA/HSK+MZ1yQXSED5/EtaCm7dYlqpHc2tQYlTB/f1t1E3sfAqxOdfk8btDLLB9Duu6TaAMgp5lLsszk9bJblJSHw1DKW6PBUZELDRXX0TbuQ6O/yZoRWPlKuJhf4liob1GgGUrbrtE0WhDrMmJlL9KVqZ02e/kwTX5XVyf/7IVpRYrNWtMYoOj5VojjFyvQ5c7+jS5iQsHZCNCGyKMjp3uYxaQAYOF+x3nHM6BgxHZ7E6prkJwFIMow
Mon Dec  2 17:16:18.719 [mongosMain] MongoS version 2.4.5 starting: pid=51663 port=27017 64-bit host=mongodbserver-front-01.mydomain.com (--help for usage)
Mon Dec  2 17:16:18.719 [mongosMain] git version: nogitversion
Mon Dec  2 17:16:18.719 [mongosMain] build info: Linux mongodbserver
.mydomain.com 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 BOOST_LIB_VERSION=1_49
Mon Dec  2 17:16:18.719 [mongosMain] options: { bind_ip: "127.0.0.1", config: "/etc/mongodb.conf", configdb: "mongodbserver-shard-1a,mongodbserver-shard-1b,mongodbserver-shard-1c", keyFile: "/var/lib/mongodb/keyFile", logappend: "true", logpath: "/var/log/mongodb/mongodb.log", unixSocketPrefix: "/var/run/mongodb", verbose: "true" }
Mon Dec  2 17:16:18.732 [mongosMain]  config string : mongodbserver-shard-1a:27019,mongodbserver-shard-1b:27019,mongodbserver-shard-1c:27019
Mon Dec  2 17:16:18.732 [mongosMain] creating new connection to:mongodbserver-shard-1a:27019
Mon Dec  2 17:16:18.733 BackgroundJob starting: ConnectBG
Mon Dec  2 17:16:18.733 [mongosMain] connected connection!
Mon Dec  2 17:16:18.736 [mongosMain] User Assertion: 18:{ code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.737 [mongosMain] User Assertion: 15847:can't authenticate to server mongodbserver-shard-1a:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.737 [mongosMain] warning:  couldn't check dbhash on config server mongodbserver-shard-1a:27019 :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1a:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.737 [mongosMain] creating new connection to:mongodbserver-shard-1b:27019
Mon Dec  2 17:16:18.738 BackgroundJob starting: ConnectBG
Mon Dec  2 17:16:18.738 [mongosMain] connected connection!
Mon Dec  2 17:16:18.741 [mongosMain] User Assertion: 18:{ code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.741 [mongosMain] User Assertion: 15847:can't authenticate to server mongodbserver-shard-1b:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.741 [mongosMain] warning:  couldn't check dbhash on config server mongodbserver-shard-1b:27019 :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1b:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.741 [mongosMain] creating new connection to:mongodbserver-shard-1c:27019
Mon Dec  2 17:16:18.742 BackgroundJob starting: ConnectBG
Mon Dec  2 17:16:18.743 [mongosMain] connected connection!
Mon Dec  2 17:16:18.746 [mongosMain] User Assertion: 18:{ code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] User Assertion: 15847:can't authenticate to server mongodbserver-shard-1c:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] warning:  couldn't check dbhash on config server mongodbserver-shard-1c:27019 :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1c:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] ERROR: could not verify that config servers are in sync :: caused by :: no config servers successfully contacted :: caused by :: 15847 can't authenticate to server mongodbserver-shard-1c:27019 :: caused by :: { code: 18, ok: 0.0, errmsg: "auth fails" }
Mon Dec  2 17:16:18.746 [mongosMain] configServer connection startup check failed



All my mongos/mongodb are in 2.4.5
My cluster is made like that :

mongodbserver-front-01 : mongos
mongodbserver-shard-1a : mongod + mongod-config-srv
mongodbserver-shard-1b : mongod + mongod-config-srv
mongodbserver-shard-1c : mongod + mongod-config-srv

What could I do to investigate on the reason of this fail when I try to start mongos on mongodbserver-front-01 ?

Best regards,
Tom

--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user... <at> googlegroups.com
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user... <at> googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Asya Kamsky | 3 Dec 23:23 2013

Re: MongoS refuses to start silently (sharded cluster)

Well, when you turn on "auth" we can see in the logs that mongos
cannot successfully talk to config server(s) - it can connect but
cannot authenticate.   You have to use the same keyFile parameter with
mongos as with all of the config servers and shards...

Mon Dec  2 17:16:18.741 [mongosMain] warning:  couldn't check dbhash
on config server mongodbserver-shard-1b:27019 :: caused by :: 15847
can't authenticate to server mongodbserver-shard-1b:27019 :: caused by
:: { code: 18, ok: 0.0, errmsg: "auth fails" }

On Tue, Dec 3, 2013 at 3:26 AM, Tom Larédo <tom.laredo@...> wrote:
> Hi,
>
> Thanks for your reply.
> Each one of my three config servers is running.
>
> How could I test the connectivity between them ?
>
> Le mardi 3 décembre 2013 02:39:28 UTC+1, Asya Kamsky a écrit :
>>
>> The config servers that mongos is contacting (ones listed in --confgdb)
>> must be up and running for mongos to successfully start up.
>>
>> Asya
>>
>> On Dec 2, 2013 11:59 AM, "Tom Larédo" <tom.l...@...> wrote:
>>>
>>> Hi,
>>>
>>> I am experiencing a problem with mongos on my sharded cluster.
>>> The problem is that my mongos refuses to start :
>>>
>>> mongodbserver-front-01:~# service mongodb start
>>> [FAIL] Starting database: mongodb failed!
>>>
>>> andnothing is happening in my log (/var/log/mongodb/mongodb.log).
>>>
>>> All my mongodb/mongos configurations (/etc/mongodb.conf) are configured
>>> not to use authentication mecanism :
>>>
>>> noauth = true
>>> # auth = false
>>> # keyfile = /var/lib/mongodb/keyFile
>>>
>>> I also noticed that when I uncomment the "keyfile = ..." line in all my
>>> configuration files and then restart all services, I get this log when my
>>> mongoS try to strat (and then fails) :
>>>
>>> ***** SERVER RESTARTED *****
>>>
>>>
>>> Mon Dec  2 17:16:18.718 security key:
>>> Xw/NaFlmI1FQoc4zWSxPhQApLCS4xW2YHp1bn/Oi8UrSFYN+XrHIbON5fAjxo0rATROvyptIJGIQc43tAOFT71CvlI7L8UlX+0TMnisYQnhFXXCt7Q0nZSmMAa+oukKHgk6cmv71HH+F2LGIb4u4JMQxrg2iQsjM4JOzCbHU5abJ5JChzvbxeD0CuT2eWsbKcC9dHJbmoSojjAXEYR2MdhtLJbmnx3p/c//mtbSNbgMxz6JYFU5XfBF9DnlZr5WmDz9ZaYebrFEqzYmWHOHKysk6nNZgk09AYjAJYcRqcQX+htcgb+l0bjVBPcw9Z5/XtL/nkFtVuJRyZ8o1nT01DPPcb5TDSHYL1qhb3rfxEVuyAoCJLZht6fW5oSvG9cUAgFvaaO4t+r87PiR7CybN/0IVGST+9orlSUmbOF05Gw34dJ7XPrHTrNY8aZZ7ccJlNRYVAlkKwSNA3AkDdq/0JHoNhPr6xbVPqaD5LPTQ9hPLi7O6RSm68QuDa7CvT6H2BnYqYDGHH34kt3K7c7sWz0SMzRANdP830s55HVJ0/rX5KWC/wQUSda2ijnz0qDwNevC6CvfOybZppcNCm0r14rKIZzBDVTahnaG8u4hvGJOS+3gfjMnpE4Q6ME0vgKrZPX28ZTGJOnbHBrWCK4x7Wbyi4y4zeDGYMwSnzyoGyMTI4PlikQSf/qehEyNV9WcbeLb7mqQJECPZ5ncR6wMXNMGVGScAXodfncF0zXA/HSK+MZ1yQXSED5/EtaCm7dYlqpHc2tQYlTB/f1t1E3sfAqxOdfk8btDLLB9Duu6TaAMgp5lLsszk9bJblJSHw1DKW6PBUZELDRXX0TbuQ6O/yZoRWPlKuJhf4liob1GgGUrbrtE0WhDrMmJlL9KVqZ02e/kwTX5XVyf/7IVpRYrNWtMYoOj5VojjFyvQ5c7+jS5iQsHZCNCGyKMjp3uYxaQAYOF+x3nHM6BgxHZ7E6prkJwFIMow
>>> Mon Dec  2 17:16:18.719 [mongosMain] MongoS version 2.4.5 starting:
>>> pid=51663 port=27017 64-bit host=mongodbserver-front-01.mydomain.com (--help
>>> for usage)
>>> Mon Dec  2 17:16:18.719 [mongosMain] git version: nogitversion
>>> Mon Dec  2 17:16:18.719 [mongosMain] build info: Linux
>>> mongodbserver.mydomain.com 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1
>>> x86_64 BOOST_LIB_VERSION=1_49
>>> Mon Dec  2 17:16:18.719 [mongosMain] options: { bind_ip: "127.0.0.1",
>>> config: "/etc/mongodb.conf", configdb:
>>> "mongodbserver-shard-1a,mongodbserver-shard-1b,mongodbserver-shard-1c",
>>> keyFile: "/var/lib/mongodb/keyFile", logappend: "true", logpath:
>>> "/var/log/mongodb/mongodb.log", unixSocketPrefix: "/var/run/mongodb",
>>> verbose: "true" }
>>> Mon Dec  2 17:16:18.732 [mongosMain]  config string :
>>> mongodbserver-shard-1a:27019,mongodbserver-shard-1b:27019,mongodbserver-shard-1c:27019
>>> Mon Dec  2 17:16:18.732 [mongosMain] creating new connection
>>> to:mongodbserver-shard-1a:27019
>>> Mon Dec  2 17:16:18.733 BackgroundJob starting: ConnectBG
>>> Mon Dec  2 17:16:18.733 [mongosMain] connected connection!
>>> Mon Dec  2 17:16:18.736 [mongosMain] User Assertion: 18:{ code: 18, ok:
>>> 0.0, errmsg: "auth fails" }
>>> Mon Dec  2 17:16:18.737 [mongosMain] User Assertion: 15847:can't
>>> authenticate to server mongodbserver-shard-1a:27019 :: caused by :: { code:
>>> 18, ok: 0.0, errmsg: "auth fails" }
>>> Mon Dec  2 17:16:18.737 [mongosMain] warning:  couldn't check dbhash on
>>> config server mongodbserver-shard-1a:27019 :: caused by :: 15847 can't
>>> authenticate to server mongodbserver-shard-1a:27019 :: caused by :: { code:
>>> 18, ok: 0.0, errmsg: "auth fails" }
>>> Mon Dec  2 17:16:18.737 [mongosMain] creating new connection
>>> to:mongodbserver-shard-1b:27019
>>> Mon Dec  2 17:16:18.738 BackgroundJob starting: ConnectBG
>>> Mon Dec  2 17:16:18.738 [mongosMain] connected connection!
>>> Mon Dec  2 17:16:18.741 [mongosMain] User Assertion: 18:{ code: 18, ok:
>>> 0.0, errmsg: "auth fails" }
>>> Mon Dec  2 17:16:18.741 [mongosMain] User Assertion: 15847:can't
>>> authenticate to server mongodbserver-shard-1b:27019 :: caused by :: { code:
>>> 18, ok: 0.0, errmsg: "auth fails" }
>>> Mon Dec  2 17:16:18.741 [mongosMain] warning:  couldn't check dbhash on
>>> config server mongodbserver-shard-1b:27019 :: caused by :: 15847 can't
>>> authenticate to server mongodbserver-shard-1b:27019 :: caused by :: { code:
>>> 18, ok: 0.0, errmsg: "auth fails" }
>>> Mon Dec  2 17:16:18.741 [mongosMain] creating new connection
>>> to:mongodbserver-shard-1c:27019
>>> Mon Dec  2 17:16:18.742 BackgroundJob starting: ConnectBG
>>> Mon Dec  2 17:16:18.743 [mongosMain] connected connection!
>>> Mon Dec  2 17:16:18.746 [mongosMain] User Assertion: 18:{ code: 18, ok:
>>> 0.0, errmsg: "auth fails" }
>>> Mon Dec  2 17:16:18.746 [mongosMain] User Assertion: 15847:can't
>>> authenticate to server mongodbserver-shard-1c:27019 :: caused by :: { code:
>>> 18, ok: 0.0, errmsg: "auth fails" }
>>> Mon Dec  2 17:16:18.746 [mongosMain] warning:  couldn't check dbhash on
>>> config server mongodbserver-shard-1c:27019 :: caused by :: 15847 can't
>>> authenticate to server mongodbserver-shard-1c:27019 :: caused by :: { code:
>>> 18, ok: 0.0, errmsg: "auth fails" }
>>> Mon Dec  2 17:16:18.746 [mongosMain] ERROR: could not verify that config
>>> servers are in sync :: caused by :: no config servers successfully contacted
>>> :: caused by :: 15847 can't authenticate to server
>>> mongodbserver-shard-1c:27019 :: caused by :: { code: 18, ok: 0.0, errmsg:
>>> "auth fails" }
>>> Mon Dec  2 17:16:18.746 [mongosMain] configServer connection startup
>>> check failed
>>>
>>>
>>> All my mongos/mongodb are in 2.4.5
>>> My cluster is made like that :
>>>
>>> mongodbserver-front-01 : mongos
>>> mongodbserver-shard-1a : mongod + mongod-config-srv
>>> mongodbserver-shard-1b : mongod + mongod-config-srv
>>> mongodbserver-shard-1c : mongod + mongod-config-srv
>>>
>>> What could I do to investigate on the reason of this fail when I try to
>>> start mongos on mongodbserver-front-01 ?
>>>
>>> Best regards,
>>> Tom
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "mongodb-user" group.
>>> To post to this group, send email to mongod...@...
>>>
>>> To unsubscribe from this group, send email to
>>> mongodb-user...@...
>>>
>>> See also the IRC channel -- freenode.net#mongodb
>>>
>>> ---
>>> You received this message because you are subscribed to the Google Groups
>>> "mongodb-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to mongodb-user...@...
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@...
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@...
> See also the IRC channel -- freenode.net#mongodb
>
> ---
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mongodb-user+unsubscribe@...
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
--

-- 
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@...
To unsubscribe from this group, send email to
mongodb-user+unsubscribe@...
See also the IRC channel -- freenode.net#mongodb

--- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@...
For more options, visit https://groups.google.com/groups/opt_out.


Gmane