Skip to content
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

Sonarqube startup problem #8

Open
deepjyotsingh opened this issue Mar 15, 2018 · 3 comments
Open

Sonarqube startup problem #8

deepjyotsingh opened this issue Mar 15, 2018 · 3 comments

Comments

@deepjyotsingh
Copy link

Looks like the /opt/sonarqube/data volume is owned by root which is preventing the services to start.

image

java.lang.IllegalStateException: Failed to created node environment
at org.elasticsearch.node.Node.(Node.java:167)
at org.elasticsearch.node.Node.(Node.java:140)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
at org.sonar.search.SearchServer.start(SearchServer.java:62)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:111)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:98)
at org.sonar.search.SearchServer.main(SearchServer.java:109)
Caused by: java.nio.file.AccessDeniedException: /opt/sonarqube/data/es
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:169)
at org.elasticsearch.node.Node.(Node.java:165)
... 6 common frames omitted

@deepjyotsingh
Copy link
Author

I have used the below template to create the persistent volume...

image

@bsk01
Copy link

bsk01 commented Apr 19, 2018

Same here. Start up issue in openshift.

2018.04.19 01:05:51 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp

  | 2018.04.19 01:05:51 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
  | 2018.04.19 01:05:52 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonarqube/temp/conf/es
  | 2018.04.19 01:05:52 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
  | 2018.04.19 01:05:53 INFO app[][o.e.p.PluginsService] no modules loaded
  | 2018.04.19 01:05:53 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
  | 2018.04.19 01:05:59 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
  | 2018.04.19 01:05:59 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
  | 2018.04.19 01:05:59 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

@agvikashsagar
Copy link

Any workaround for this issue, facing the same in SonarQube 7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants