New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Journal info command does not work #2493

Closed
lennartkoopmann opened this Issue Jul 17, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@lennartkoopmann
Member

lennartkoopmann commented Jul 17, 2016

The journal info command does not work. It fails with:

pi@garypi:/usr/share/graylog-server $ java -jar graylog.jar journal
2016-07-17 14:23:53,676 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for java.lang.String annotated with @com.google.inject.name.Named(value=elasticsearch_index_prefix) was bound.
2016-07-17 14:23:53,688 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for java.util.Set<org.graylog2.plugin.ServerStatus$Capability> was bound.
2016-07-17 14:23:53,689 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for org.elasticsearch.client.Client was bound.
2016-07-17 14:23:53,691 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for org.elasticsearch.client.Client was bound.
2016-07-17 14:23:53,692 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for org.elasticsearch.client.Client was bound.
2016-07-17 14:23:53,693 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for org.graylog2.indexer.indices.jobs.SetIndexReadOnlyAndCalculateRangeJob$Factory was bound.
2016-07-17 14:23:53,695 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for org.graylog2.indexer.ranges.IndexRangeService was bound.
2016-07-17 14:23:53,697 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for org.graylog2.indexer.ranges.IndexRangeService was bound.
2016-07-17 14:23:53,699 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for org.graylog2.plugin.BaseConfiguration was bound.
2016-07-17 14:23:53,700 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for org.graylog2.plugin.cluster.ClusterConfigService was bound.
2016-07-17 14:23:53,702 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for org.graylog2.plugin.cluster.ClusterConfigService was bound.
2016-07-17 14:23:53,703 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for org.graylog2.shared.system.activities.ActivityWriter was bound.
2016-07-17 14:23:53,705 ERROR: org.graylog2.bootstrap.CmdLineTool - Guice error (more detail on log level debug): No implementation for org.graylog2.shared.system.activities.ActivityWriter was bound.
Exception in thread "main" com.google.inject.CreationException: Unable to create injector, see the following errors:

1) No implementation for java.lang.String annotated with @com.google.inject.name.Named(value=elasticsearch_index_prefix) was bound.
  while locating java.lang.String annotated with @com.google.inject.name.Named(value=elasticsearch_index_prefix)
    for the 2nd parameter of org.graylog2.indexer.Deflector.<init>(Deflector.java:76)
  while locating org.graylog2.indexer.Deflector
    for the 2nd parameter of org.graylog2.indexer.searches.Searches.<init>(Searches.java:155)
  while locating org.graylog2.indexer.searches.Searches
    for the 1st parameter of org.graylog.plugins.map.search.MapDataSearch.<init>(MapDataSearch.java:38)
  while locating org.graylog.plugins.map.search.MapDataSearch
    for the 1st parameter of org.graylog.plugins.map.rest.MapDataResource.<init>(MapDataResource.java:56)
  at org.graylog2.plugin.PluginModule.addRestResource(PluginModule.java:100) (via modules: org.graylog2.shared.bindings.PluginBindings -> org.graylog.plugins.map.MapWidgetModule)

2) No implementation for java.util.Set<org.graylog2.plugin.ServerStatus$Capability> was bound.
  while locating java.util.Set<org.graylog2.plugin.ServerStatus$Capability>
    for the 2nd parameter of org.graylog2.plugin.ServerStatus.<init>(ServerStatus.java:64)
  while locating org.graylog2.plugin.ServerStatus
    for the 11th parameter of org.graylog2.shared.journal.KafkaJournal.<init>(KafkaJournal.java:167)
  at org.graylog2.shared.journal.KafkaJournalModule.configure(KafkaJournalModule.java:25)

3) No implementation for org.elasticsearch.client.Client was bound.
  while locating org.elasticsearch.client.Client
    for the 1st parameter of org.graylog2.indexer.indices.Indices.<init>(Indices.java:113)
  while locating org.graylog2.indexer.indices.Indices
    for the 4th parameter of org.graylog2.indexer.Deflector.<init>(Deflector.java:76)
  while locating org.graylog2.indexer.Deflector
    for the 2nd parameter of org.graylog2.indexer.searches.Searches.<init>(Searches.java:155)
  while locating org.graylog2.indexer.searches.Searches
    for the 1st parameter of org.graylog.plugins.map.search.MapDataSearch.<init>(MapDataSearch.java:38)
  while locating org.graylog.plugins.map.search.MapDataSearch
    for the 1st parameter of org.graylog.plugins.map.rest.MapDataResource.<init>(MapDataResource.java:56)
  at org.graylog2.plugin.PluginModule.addRestResource(PluginModule.java:100) (via modules: org.graylog2.shared.bindings.PluginBindings -> org.graylog.plugins.map.MapWidgetModule)

4) No implementation for org.elasticsearch.client.Client was bound.
  while locating org.elasticsearch.client.Client
    for the 1st parameter of org.graylog2.indexer.messages.Messages.<init>(Messages.java:73)
  while locating org.graylog2.indexer.messages.Messages
    for the 4th parameter of org.graylog2.indexer.indices.Indices.<init>(Indices.java:113)
  while locating org.graylog2.indexer.indices.Indices
    for the 4th parameter of org.graylog2.indexer.Deflector.<init>(Deflector.java:76)
  while locating org.graylog2.indexer.Deflector
    for the 2nd parameter of org.graylog2.indexer.searches.Searches.<init>(Searches.java:155)
  while locating org.graylog2.indexer.searches.Searches
    for the 1st parameter of org.graylog.plugins.map.search.MapDataSearch.<init>(MapDataSearch.java:38)
  while locating org.graylog.plugins.map.search.MapDataSearch
    for the 1st parameter of org.graylog.plugins.map.rest.MapDataResource.<init>(MapDataResource.java:56)
  at org.graylog2.plugin.PluginModule.addRestResource(PluginModule.java:100) (via modules: org.graylog2.shared.bindings.PluginBindings -> org.graylog.plugins.map.MapWidgetModule)

5) No implementation for org.elasticsearch.client.Client was bound.
  while locating org.elasticsearch.client.Client
    for the 4th parameter of org.graylog2.indexer.searches.Searches.<init>(Searches.java:155)
  while locating org.graylog2.indexer.searches.Searches
    for the 1st parameter of org.graylog.plugins.map.search.MapDataSearch.<init>(MapDataSearch.java:38)
  while locating org.graylog.plugins.map.search.MapDataSearch
    for the 1st parameter of org.graylog.plugins.map.rest.MapDataResource.<init>(MapDataResource.java:56)
  at org.graylog2.plugin.PluginModule.addRestResource(PluginModule.java:100) (via modules: org.graylog2.shared.bindings.PluginBindings -> org.graylog.plugins.map.MapWidgetModule)

6) No implementation for org.graylog2.indexer.indices.jobs.SetIndexReadOnlyAndCalculateRangeJob$Factory was bound.
  while locating org.graylog2.indexer.indices.jobs.SetIndexReadOnlyAndCalculateRangeJob$Factory
    for the 6th parameter of org.graylog2.indexer.Deflector.<init>(Deflector.java:76)
  while locating org.graylog2.indexer.Deflector
    for the 2nd parameter of org.graylog2.indexer.searches.Searches.<init>(Searches.java:155)
  while locating org.graylog2.indexer.searches.Searches
    for the 1st parameter of org.graylog.plugins.map.search.MapDataSearch.<init>(MapDataSearch.java:38)
  while locating org.graylog.plugins.map.search.MapDataSearch
    for the 1st parameter of org.graylog.plugins.map.rest.MapDataResource.<init>(MapDataResource.java:56)
  at org.graylog2.plugin.PluginModule.addRestResource(PluginModule.java:100) (via modules: org.graylog2.shared.bindings.PluginBindings -> org.graylog.plugins.map.MapWidgetModule)

7) No implementation for org.graylog2.indexer.ranges.IndexRangeService was bound.
  while locating org.graylog2.indexer.ranges.IndexRangeService
    for the 5th parameter of org.graylog2.indexer.Deflector.<init>(Deflector.java:76)
  while locating org.graylog2.indexer.Deflector
    for the 2nd parameter of org.graylog2.indexer.searches.Searches.<init>(Searches.java:155)
  while locating org.graylog2.indexer.searches.Searches
    for the 1st parameter of org.graylog.plugins.map.search.MapDataSearch.<init>(MapDataSearch.java:38)
  while locating org.graylog.plugins.map.search.MapDataSearch
    for the 1st parameter of org.graylog.plugins.map.rest.MapDataResource.<init>(MapDataResource.java:56)
  at org.graylog2.plugin.PluginModule.addRestResource(PluginModule.java:100) (via modules: org.graylog2.shared.bindings.PluginBindings -> org.graylog.plugins.map.MapWidgetModule)

8) No implementation for org.graylog2.indexer.ranges.IndexRangeService was bound.
  while locating org.graylog2.indexer.ranges.IndexRangeService
    for the 3rd parameter of org.graylog2.indexer.searches.Searches.<init>(Searches.java:155)
  while locating org.graylog2.indexer.searches.Searches
    for the 1st parameter of org.graylog.plugins.map.search.MapDataSearch.<init>(MapDataSearch.java:38)
  while locating org.graylog.plugins.map.search.MapDataSearch
    for the 1st parameter of org.graylog.plugins.map.rest.MapDataResource.<init>(MapDataResource.java:56)
  at org.graylog2.plugin.PluginModule.addRestResource(PluginModule.java:100) (via modules: org.graylog2.shared.bindings.PluginBindings -> org.graylog.plugins.map.MapWidgetModule)

9) No implementation for org.graylog2.plugin.BaseConfiguration was bound.
  while locating org.graylog2.plugin.BaseConfiguration
    for the 1st parameter of org.graylog2.plugin.ServerStatus.<init>(ServerStatus.java:64)
  while locating org.graylog2.plugin.ServerStatus
    for the 11th parameter of org.graylog2.shared.journal.KafkaJournal.<init>(KafkaJournal.java:167)
  at org.graylog2.shared.journal.KafkaJournalModule.configure(KafkaJournalModule.java:25)

10) No implementation for org.graylog2.plugin.cluster.ClusterConfigService was bound.
  while locating org.graylog2.plugin.cluster.ClusterConfigService
    for the 1st parameter of org.graylog.plugins.map.geoip.processor.GeoIpProcessor.<init>(GeoIpProcessor.java:64)
  at org.graylog2.plugin.PluginModule.addMessageProcessor(PluginModule.java:145) (via modules: org.graylog2.shared.bindings.PluginBindings -> org.graylog.plugins.map.MapWidgetModule)

11) No implementation for org.graylog2.plugin.cluster.ClusterConfigService was bound.
  while locating org.graylog2.plugin.cluster.ClusterConfigService
    for the 3rd parameter of org.graylog.plugins.map.rest.MapDataResource.<init>(MapDataResource.java:56)
  at org.graylog2.plugin.PluginModule.addRestResource(PluginModule.java:100) (via modules: org.graylog2.shared.bindings.PluginBindings -> org.graylog.plugins.map.MapWidgetModule)

12) No implementation for org.graylog2.shared.system.activities.ActivityWriter was bound.
  while locating org.graylog2.shared.system.activities.ActivityWriter
    for the 3rd parameter of org.graylog2.indexer.Deflector.<init>(Deflector.java:76)
  while locating org.graylog2.indexer.Deflector
    for the 2nd parameter of org.graylog2.indexer.searches.Searches.<init>(Searches.java:155)
  while locating org.graylog2.indexer.searches.Searches
    for the 1st parameter of org.graylog.plugins.map.search.MapDataSearch.<init>(MapDataSearch.java:38)
  while locating org.graylog.plugins.map.search.MapDataSearch
    for the 1st parameter of org.graylog.plugins.map.rest.MapDataResource.<init>(MapDataResource.java:56)
  at org.graylog2.plugin.PluginModule.addRestResource(PluginModule.java:100) (via modules: org.graylog2.shared.bindings.PluginBindings -> org.graylog.plugins.map.MapWidgetModule)

13) No implementation for org.graylog2.shared.system.activities.ActivityWriter was bound.
  while locating org.graylog2.shared.system.activities.ActivityWriter
    for the 1st parameter of org.graylog2.system.jobs.SystemJobManager.<init>(SystemJobManager.java:49)
  while locating org.graylog2.system.jobs.SystemJobManager
    for the 1st parameter of org.graylog2.indexer.Deflector.<init>(Deflector.java:76)
  while locating org.graylog2.indexer.Deflector
    for the 2nd parameter of org.graylog2.indexer.searches.Searches.<init>(Searches.java:155)
  while locating org.graylog2.indexer.searches.Searches
    for the 1st parameter of org.graylog.plugins.map.search.MapDataSearch.<init>(MapDataSearch.java:38)
  while locating org.graylog.plugins.map.search.MapDataSearch
    for the 1st parameter of org.graylog.plugins.map.rest.MapDataResource.<init>(MapDataResource.java:56)
  at org.graylog2.plugin.PluginModule.addRestResource(PluginModule.java:100) (via modules: org.graylog2.shared.bindings.PluginBindings -> org.graylog.plugins.map.MapWidgetModule)

13 errors
    at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:470)
    at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
    at com.google.inject.Guice.createInjector(Guice.java:99)
    at org.graylog2.shared.bindings.Hk2GuiceBridgeJitInjector.create(Hk2GuiceBridgeJitInjector.java:60)
    at org.graylog2.shared.bindings.GuiceInjectorHolder.createInjector(GuiceInjectorHolder.java:32)
    at org.graylog2.bootstrap.CmdLineTool.setupInjector(CmdLineTool.java:379)
    at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:193)
    at org.graylog2.bootstrap.Main.main(Main.java:44)

Running v2.1.0-alpha.2 installed via the DEB package.

@lennartkoopmann lennartkoopmann added the bug label Jul 17, 2016

@lennartkoopmann lennartkoopmann added this to the 2.1.0 milestone Jul 17, 2016

@joschi joschi self-assigned this Jul 18, 2016

@bernd bernd closed this in #2495 Jul 19, 2016

bernd added a commit that referenced this issue Jul 19, 2016

Add missing Guice modules for journal-related commands (#2495)
* Move config bindings into own Guice module
* Add missing Guice modules to AbstractJournalCommand

Refs #2312
Fixes #2493
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment