Hi Jason,

please stick to the format explained 
in 
http://docs.graylog.org/en/2.1/pages/configuration/multinode_setup.html#graylog-to-mongodb-connection
 
and 
https://github.com/Graylog2/graylog2-server/blob/2.1.2/misc/graylog.conf#L434-L442
 
for the mongodb_uri setting.

Also see the error message you received: "The connection string contains 
invalid user information. If the username or password contains a colon (:) 
or an at-sign (@) then it must be urlencoded"

Cheers,
Jochen

On Monday, 16 January 2017 03:10:04 UTC+1, Jason Haar wrote:
>
> Hi there
>
> I just converted our standalone mongodb server into a cluster according to 
> the instructions on 
>
> https://docs.mongodb.com/manual/tutorial/deploy-replica-set/
>
> Looks good, the original is the master and the rest shows the "graylog" 
> database got synched to them and "rs.status()" looks happy (I even 
> confirmed I could log into the mongodb "graylog" database with the same 
> username/password on each slave)
>
> So then I reconfigured server.conf to tell graylog it had multiple servers 
> to point to. I went from this working entry
>
> mongodb_uri = mongodb://graylog:[email protected]:27017/graylog
>
> to
>
> mongodb_uri = 
> mongodb://graylog:[email protected]:27017/graylog,mongodb://graylog:[email protected]:27017/graylog,mongodb://graylog:[email protected]:27017/graylog
>
>
> However that errors out and graylog-server crashes. I see the below error. 
> It's like graylog "likes" the url format, but comma-separated values spook 
> it? I even tried the format in 
>
> http://docs.graylog.org/en/2.2/pages/configuration/multinode_setup.html 
> <http://www.google.com/url?q=http%3A%2F%2Fdocs.graylog.org%2Fen%2F2.2%2Fpages%2Fconfiguration%2Fmultinode_setup.html&sa=D&sntz=1&usg=AFQjCNGnKDpI_Y3ZtJ_EKN6EA4GDR6YxsA>
>
> ie 
>
> mongodb_uri = 
> mongodb://graylog:[email protected]:27017/graylog,ho.st2:27017/graylog,ho.st3:27017/graylog
>
> - that didn't work either. 
>
> This is graylog-server-2.2.0-6.beta.4.noarch under CentOS7
>
> Thanks
>
> Jason
>
>
>
> com.github.joschi.jadconfig.ValidationException: Couldn't run validator 
> method
>         at 
> com.github.joschi.jadconfig.JadConfig.invokeValidatorMethods(JadConfig.java:227)
>  
> ~[graylog.jar:?]
>         at 
> com.github.joschi.jadconfig.JadConfig.process(JadConfig.java:100) 
> ~[graylog.jar:?]
>         at 
> org.graylog2.bootstrap.CmdLineTool.processConfiguration(CmdLineTool.java:351) 
> [graylog.jar:?]
>         at 
> org.graylog2.bootstrap.CmdLineTool.readConfiguration(CmdLineTool.java:344) 
> [graylog.jar:?]
>         at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:177) 
> [graylog.jar:?]
>         at org.graylog2.bootstrap.Main.main(Main.java:44) [graylog.jar:?]
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_111]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
> ~[?:1.8.0_111]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
> ~[?:1.8.0_111]
>         at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_111]
>         at 
> com.github.joschi.jadconfig.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:53)
>  
> ~[graylog.jar:?]
>         at 
> com.github.joschi.jadconfig.JadConfig.invokeValidatorMethods(JadConfig.java:221)
>  
> ~[graylog.jar:?]
>         ... 5 more
> Caused by: java.lang.IllegalArgumentException: The connection string 
> contains invalid user information. If the username or password contains a 
> colon (:) or an at-sign (@) then it must be urlencoded
>         at com.mongodb.ConnectionString.<init>(ConnectionString.java:262) 
> ~[graylog.jar:?]
>         at com.mongodb.MongoClientURI.<init>(MongoClientURI.java:201) 
> ~[graylog.jar:?]
>         at 
> org.graylog2.configuration.MongoDbConfiguration.getMongoClientURI(MongoDbConfiguration.java:55)
>  
> ~[graylog.jar:?]
>         at 
> org.graylog2.configuration.MongoDbConfiguration.validate(MongoDbConfiguration.java:60)
>  
> ~[graylog.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_111]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
> ~[?:1.8.0_111]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
> ~[?:1.8.0_111]
>         at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_111]
>         at 
> com.github.joschi.jadconfig.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:53)
>  
> ~[graylog.jar:?]
>         at 
> com.github.joschi.jadconfig.JadConfig.invokeValidatorMethods(JadConfig.java:221)
>  
> ~[graylog.jar:?]
>         ... 5 more
>
>
> -- 
> Cheers
>
> Jason Haar
> Information Security Manager, Trimble Navigation Ltd.
> Phone: +1 408 481 8171
> PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/b58b47f8-b674-4683-8c36-494793d51aba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to