Hi Shah,

unfortunately this seems to be bug in the MongoDB Java driver which Graylog 
is using under the hood (see https://jira.mongodb.org/browse/JAVA-2220) but 
which has been fixed in a more recent version of the driver (see 
https://jira.mongodb.org/browse/JAVA-2245). Graylog 2.1.x is using the 
latest version of the MongoDB Java driver, so you can fix your issue by 
upgrading to the latest stable version of Graylog.

If you, for some reasons, are unable to upgrade to Graylog 2.1.1, you could 
add the IPv6 address of the MongoDB server (
2003:1b3b:fffc:0103:7156:a7ec:85ad:e85e) to the /etc/hosts file of your 
machine and use that host name in the Graylog configuration file.


Cheers,
Jochen

On Monday, 19 September 2016 07:52:58 UTC+2, Shah Zaib wrote:
>
> hi everyone,
>
> i am fincing the issue in connection string of mongo db with the graylog 
> server
>
>
> this is my 
>
> /etc/graylog/server/server.conf
>
> mongodb_uri = 
> mongodb://username:password@[2003:1b3b:fffc:0103:7156:a7ec:85ad:e85e]:27017/graylog?replicaSet=graylogDist
>
> and this is the log file 
>
> /var/log/graylog-server/server.log
>
>
> 2016-09-19T05:34:23.139Z INFO  [InputBufferImpl] Message journal is 
> enabled.
> 2016-09-19T05:34:23.381Z INFO  [LogManager] Loading logs.
> 2016-09-19T05:34:24.526Z INFO  [LogManager] Logs loading complete.
> 2016-09-19T05:34:24.526Z INFO  [KafkaJournal] Initialized Kafka based 
> journal at /var/lib/graylog-server/journal
> 2016-09-19T05:34:24.567Z INFO  [InputBufferImpl] Initialized 
> InputBufferImpl with ring size <65536> and wait strategy 
> <BlockingWaitStrategy>, running 2 parallel message handlers.
> 2016-09-19T05:34:24.583Z ERROR [MongoConnectionProvider] Error connecting 
> to MongoDB: host and port should be specified in host:port format
> 2016-09-19T05:34:24.841Z INFO  [NodeId] Node ID: 
> 4a25680f-b5d1-446e-bf35-97d673954b3b
> 2016-09-19T05:34:25.459Z INFO  [node] 
> [graylog-4a25680f-b5d1-446e-bf35-97d673954b3b] version[2.3.2], pid[10797], 
> build[b9e4a6a/2016-04-21T16:03:47Z]
> 2016-09-19T05:34:25.459Z INFO  [node] 
> [graylog-4a25680f-b5d1-446e-bf35-97d673954b3b] initializing ...
> 2016-09-19T05:34:25.464Z INFO  [plugins] 
> [graylog-4a25680f-b5d1-446e-bf35-97d673954b3b] modules [], plugins 
> [graylog-monitor], sites []
> 2016-09-19T05:34:43.287Z INFO  [CmdLineTool] Loaded plugin: Collector 
> 1.0.3 [org.graylog.plugins.collector.CollectorPlugin]
> 2016-09-19T05:34:43.288Z INFO  [CmdLineTool] Loaded plugin: Enterprise 
> Integration Plugin 1.0.3 
> [org.graylog.plugins.enterprise_integration.EnterpriseIntegrationPlugin]
> 2016-09-19T05:34:43.288Z INFO  [CmdLineTool] Loaded plugin: 
> MapWidgetPlugin 1.0.3 [org.graylog.plugins.map.MapWidgetPlugin]
> 2016-09-19T05:34:43.288Z INFO  [CmdLineTool] Loaded plugin: Pipeline 
> Processor Plugin 1.0.0-beta.5 
> [org.graylog.plugins.pipelineprocessor.ProcessorPlugin]
> 2016-09-19T05:34:43.289Z INFO  [CmdLineTool] Loaded plugin: Anonymous 
> Usage Statistics 2.0.3 
> [org.graylog.plugins.usagestatistics.UsageStatsPlugin]
> 2016-09-19T05:34:43.382Z INFO  [CmdLineTool] Running with JVM arguments: 
> -Xms1g -Xmx1g -XX:NewRatio=1 -XX:+ResizeTLAB -XX:+UseConcMarkSweepGC 
> -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC 
> -XX:-OmitStackTraceInFastThrow 
> -Dlog4j.configurationFile=file:///etc/graylog/server/log4j2.xml 
> -Djava.library.path=/usr/share/graylog-server/lib/sigar 
> -Dgraylog2.installation_source=deb
> 2016-09-19T05:34:45.739Z INFO  [InputBufferImpl] Message journal is 
> enabled.
> 2016-09-19T05:34:46.135Z INFO  [LogManager] Loading logs.
> 2016-09-19T05:34:46.227Z INFO  [LogManager] Logs loading complete.
> 2016-09-19T05:34:46.227Z INFO  [KafkaJournal] Initialized Kafka based 
> journal at /var/lib/graylog-server/journal
> 2016-09-19T05:34:46.242Z INFO  [InputBufferImpl] Initialized 
> InputBufferImpl with ring size <65536> and wait strategy 
> <BlockingWaitStrategy>, running 2 parallel message handlers.
> 2016-09-19T05:34:46.279Z ERROR [MongoConnectionProvider] Error connecting 
> to MongoDB: host and port should be specified in host:port format
> 2016-09-19T05:34:46.437Z INFO  [NodeId] Node ID: 
> 4a25680f-b5d1-446e-bf35-97d673954b3b
> 2016-09-19T05:34:47.254Z INFO  [node] 
> [graylog-4a25680f-b5d1-446e-bf35-97d673954b3b] version[2.3.2], pid[10845], 
> build[b9e4a6a/2016-04-21T16:03:47Z]
> 2016-09-19T05:34:47.255Z INFO  [node] 
> [graylog-4a25680f-b5d1-446e-bf35-97d673954b3b] initializing ...
> 2016-09-19T05:34:47.260Z INFO  [plugins] 
> [graylog-4a25680f-b5d1-446e-bf35-97d673954b3b] modules [], plugins 
> [graylog-monitor], sites []
> 2016-09-19T05:34:49.471Z INFO  [node] 
> [graylog-4a25680f-b5d1-446e-bf35-97d673954b3b] initialized
> 2016-09-19T05:34:49.546Z INFO  [Version] HV000001: Hibernate Validator 
> 5.2.4.Final
> 2016-09-19T05:34:49.680Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:49.685Z INFO  [OutputBuffer] Initialized OutputBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:49.726Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:49.742Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:49.744Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:49.746Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:49.786Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:49.790Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:49.794Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:49.848Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:49.989Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:52.117Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:52.122Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:52.155Z INFO  [ProcessBuffer] Initialized ProcessBuffer 
> with ring size <65536> and wait strategy <BlockingWaitStrategy>.
> 2016-09-19T05:34:52.156Z INFO  [RulesEngineProvider] No static rules file 
> loaded.
> 2016-09-19T05:34:52.164Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.164Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.164Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.164Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.164Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.164Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.165Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.165Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.165Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.165Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.165Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.165Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.165Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.166Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.166Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.166Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.166Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.166Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.166Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.166Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.167Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.167Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.167Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.167Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.167Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.167Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.167Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.168Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.168Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.168Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.168Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, 
> java.lang.NullPointerException
> 2016-09-19T05:34:52.168Z ERROR [CmdLineTool] Guice error (more detail on 
> log level debug): Error injecting constructor, com.mongodb.MongoException: 
> host and port should be specified in host:port format
>

-- 
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 graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/00a6968c-ac30-4c5b-8719-579c15e3283b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to