Hi, please ensure that Graylog is allowed to write into the journal directory and that only 1 instance of Graylog is running on your system.
Cheers, Jochen On Thursday, 24 December 2015 10:14:14 UTC+1, Prateek Srivastava wrote: > > Hi, > > I set up graylog. It was all working fine. I got exception and errors but > fixed the issues with ---> > rm /var/lib/graylog-server/journal/.lock and > rm /var/lock/subsys/graylog-server > and also created disk space on servers. > > But this time again same error on server. And this is not helping out. > > Error is ----------------------------------> > > Exception in thread "main" com.google.inject.CreationException: Unable to > create injector, see the following errors: > > 1) Error injecting constructor, java.lang.NumberFormatException: For input > string: "hs_err_pid1039" > at org.graylog2.shared.journal.KafkaJournal.<init>(KafkaJournal.java:156) > at org.graylog2.shared.journal.KafkaJournal.class(KafkaJournal.java:97) > while locating org.graylog2.shared.journal.KafkaJournal > at > org.graylog2.shared.journal.KafkaJournalModule.configure(KafkaJournalModule.java:25) > > (via modules: org.graylog2.bindings.ServerBindings -> > org.graylog2.shared.journal.KafkaJournalModule) > while locating org.graylog2.shared.journal.Journal > > > > > > > also ------------------------> > > 2) Error injecting constructor, java.lang.RuntimeException: > kafka.common.KafkaException: Failed to acquire lock on file .lock in > /var/lib/graylog-server/journal. A Kafka instance in another process or > thread is using this directory. > at org.graylog2.shared.journal.KafkaJournal.<init>(KafkaJournal.java:156) > at org.graylog2.shared.journal.KafkaJournal.class(KafkaJournal.java:97) > while locating org.graylog2.shared.journal.KafkaJournal > > > 3) Error injecting constructor, java.lang.RuntimeException: > kafka.common.KafkaException: Failed to acquire lock on file .lock in > /var/lib/graylog-server/journal. A Kafka instance in another process or > thread is using this directory. > at org.graylog2.shared.journal.KafkaJournal.<init>(KafkaJournal.java:156) > at org.graylog2.shared.journal.KafkaJournal.class(KafkaJournal.java:97) > while locating org.graylog2.shared.journal.KafkaJournal > > > No kafka instance setup is done on server. > As soon as I start graylog-server first it is ok but after some seconds it > throws error. > Please help in resolving the issue. > > -- 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/49f773ea-6813-4b84-be63-5ee54353d4ed%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
