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 issue #80

Open
deepjyotsingh opened this issue Mar 8, 2018 · 11 comments
Open

SonarQube startup issue #80

deepjyotsingh opened this issue Mar 8, 2018 · 11 comments

Comments

@deepjyotsingh
Copy link

Please advice.

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

@siamaksade
Copy link
Owner

Running out of memory?

@deepjyotsingh
Copy link
Author

deepjyotsingh commented Mar 12, 2018 via email

@deepjyotsingh
Copy link
Author

Has anyone run into this issue with Sonarqube 6.7? This looks like an image problem to me.

@deepjyotsingh
Copy link
Author

How can we change the ownership of data directory to 'sonar' user or run the Sonarqube services as root user.

image

@deepjyotsingh
Copy link
Author

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

image

@ruromero
Copy link

@deepjyotsingh can you try using this repo? It uses the images from centos repository that should be able to run with restricted scc
https://github.com/RHsyseng/docker-rhel-sonarqube/tree/master/templates

The problem you have seems to be related to the permissions in the hostPath folder that belongs to root and indeed the script on startup tries to run the chown command. This should not be the case for the registry.centos.org/rhsyseng/sonarqube:latest image can you confirm this is the one you have or change it otherwise?

Sorry for the late reply

@ptrckq
Copy link

ptrckq commented Jul 24, 2018

I'm getting same issue, using provision.sh and doing manualy.

Sonarqube log status:

  | --> Scaling sonarqube-2 to 1
-- | --
  | error: update acceptor rejected sonarqube-2: pods for rc 'cicd/sonarqube-2' took longer than 600 seconds to become available

And pod status is: Crash Loop Back-off.

While reading other issues I thought it was caused by lack of memory, so I increased VM Memory size to 12GB but it still not working.

I'm using Minishift as environment. Could anyone help me with this?

@ptrckq
Copy link

ptrckq commented Jul 24, 2018

I was trying with Red Hat Developers cdk.
Now i'm using https://github.com/minishift/minishift/releases and it's working perfectly.

@ruromero
Copy link

Thanks for the feedback @ptrckq

@ecwpz91
Copy link

ecwpz91 commented Aug 28, 2018

For me persistent deploy consistently failed using OCP 3.9 on AWS.

Workaround was to remove all components and deploy ephemeral.

# Remove all components
oc delete service sonarqube; oc delete deploymentconfigs sonarqube; oc delete route sonarqube; oc delete imagestreams sonarqube; oc delete pvc sonarqu
be-data
# Deploy ephemeral
oc new-app -f https://raw.githubusercontent.com/RHsyseng/docker-rhel-sonarqube/master/templates/sonarqube-ephemeral-template.yaml --param=SONARQUBE_SERVICE_NAME=sonarqube

@marcelomrwin
Copy link

Thanks, I followed your workaround and it worked like a charm.

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

6 participants