Skip to content

Re-Deploy of SonarQube Yields Errors #10

@dhongyt

Description

@dhongyt

When I first deploy SonarQube + PostgreSQL using your sonarqube-postgresql-template, it deploys perfectly without any problems.

But when I re-deploy the sonarqube container a second time, I error out.

2018.05.25 19:11:42 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2018.05.25 19:11:43 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2018.05.25 19:11:43 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.05.25 19:11:43 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2018.05.25 19:11:45 INFO app[][o.e.p.PluginsService] no modules loaded
2018.05.25 19:11:45 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.05.25 19:11:53 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
2018.05.25 19:11:53 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2018.05.25 19:11:53 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped

From google search, this is saying I'm trying to run ElasticSearch as root. But I don't understand why its trying to run it as root the second time when the build should be running it as user sonar.

Any ideas on why this is happening?

My environment that I am testing this on is minishift.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions