Error Starting Daemon

436 views
Skip to first unread message

Reuben Lewis

unread,
Jun 21, 2017, 2:15:30 AM6/21/17
to Repo and Gerrit Discussion
I'm having an error pop up when I'm trying to start my Gerrit website that seems to be connected to Polygerrit. My configuration is the base configuration, with the only difference being some configs for LDAP support. Could that cause this issue?

Here's the error that occurs:

[2017-06-20 15:30:50,465] [main] WARN  com.google.gerrit.sshd.SshDaemon : Cannot format SSHD host key [EdDSA]: invalid key type
[2017-06-20 15:30:50,479] [main] WARN  com.google.gerrit.server.config.GitwebCgiConfig : gitweb not installed (no /usr/lib/cgi-bin/gitweb.cgi found)
[2017-06-20 15:30:51,342] [main] ERROR com.google.gerrit.pgm.Daemon : Unable to start daemon
com.google.inject.CreationException: Unable to create injector, see the following errors:

1) Error in custom provider, java.lang.NullPointerException
  at com.google.gerrit.httpd.raw.StaticModule$PolyGerritModule.getPolyGerritUiIndexServlet(StaticModule.java:257) (via modules: com.google.gerrit.httpd.raw.StaticModule -> com.google.gerrit.httpd.raw.StaticModule$PolyGerritModule)
  at com.google.gerrit.httpd.raw.StaticModule$PolyGerritModule.getPolyGerritUiIndexServlet(StaticModule.java:257) (via modules: com.google.gerrit.httpd.raw.StaticModule -> com.google.gerrit.httpd.raw.StaticModule$PolyGerritModule)
  while locating javax.servlet.http.HttpServlet annotated with @com.google.inject.name.Named(value=PolyGerritUiIndexServlet)

1 error
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:470)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:184)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
at com.google.inject.internal.InjectorImpl.createChildInjector(InjectorImpl.java:232)
at com.google.gerrit.pgm.Daemon.createWebInjector(Daemon.java:523)
at com.google.gerrit.pgm.Daemon.initHttpd(Daemon.java:480)
at com.google.gerrit.pgm.Daemon.start(Daemon.java:318)
at com.google.gerrit.pgm.Daemon.run(Daemon.java:230)
at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:204)
at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:108)
at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:63)
at Main.main(Main.java:24)
Caused by: java.lang.NullPointerException
at com.google.gerrit.httpd.raw.IndexServlet.computeCanonicalPath(IndexServlet.java:67)
at com.google.gerrit.httpd.raw.IndexServlet.getTemplateData(IndexServlet.java:71)
at com.google.gerrit.httpd.raw.IndexServlet.<init>(IndexServlet.java:49)
at com.google.gerrit.httpd.raw.StaticModule$PolyGerritModule.getPolyGerritUiIndexServlet(StaticModule.java:258)
at com.google.gerrit.httpd.raw.StaticModule$PolyGerritModule$$FastClassByGuice$$7a081416.invoke(<generated>)
at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.doProvision(ProviderMethod.java:264)
at com.google.inject.internal.ProviderMethod$Factory.provision(ProviderMethod.java:401)
at com.google.inject.internal.ProviderMethod$Factory.get(ProviderMethod.java:376)
at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:205)
at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:199)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:199)
at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:180)
... 15 more


David Ostrovsky

unread,
Jun 21, 2017, 2:42:39 AM6/21/17
to Repo and Gerrit Discussion

On Wednesday, June 21, 2017 at 8:15:30 AM UTC+2, Reuben Lewis wrote:
I'm having an error pop up when I'm trying to start my Gerrit website that seems to be connected to Polygerrit. My configuration is the base configuration, with the only difference being some configs for LDAP support. 

How is your gerrit.canonicalURL defined? 

Reuben Lewis

unread,
Jun 21, 2017, 8:43:08 AM6/21/17
to Repo and Gerrit Discussion
It's defined as http://gerritreview:8080. It's not the computer name. 

Reuben Lewis

unread,
Jun 21, 2017, 9:06:18 AM6/21/17
to Repo and Gerrit Discussion
It looks like changing that to back to the computer's name allowed the daemon to start using the manual java command. Now to figure out why the shell script isn't working.....
Reply all
Reply to author
Forward
0 new messages