Please help ! Error after install sonarqube - can't access web app [error 400 Bad request]


(Michaël Robaston) #1

Hello

I need some help from community, when i try to reach the website i have a continuous loading and problem is “web context”.

How come i can’t reach the normal setup web page ?

I’m using the last version 7.4

Debian jessies 8

Apache2.4 here is my vhost :slight_smile:

<VirtualHost :80>
ServerName sonarqube.stream-techs.com
ServerAdmin admin@stream-techs.com
DocumentRoot /opt/sonarqube/sonarqube-7.4/web/
<Directory “/opt/sonarqube/sonarqube-7.4/web/”>
Options Followsymlinks
Require all denied

<Directory “/opt/sonarqube/sonarqube-7.4/web/”>
Options +Followsymlinks
AllowOverride All
Require all granted

<Proxy http://sonarqube.stream-techs.com:9000/
>

ProxyPass “/sonar” “http://sonarqube.stream-techs.com:9000/” retry=0 Keepalive=On timeout=1600
ProxyPassReverse “/sonar” “http://sonarqube.stream-techs.com:9000/
AllowEncodedSlashes NoDecode
TransferLog /var/log/apache2/sonarqube_access.log
ErrorLog /var/log/apache2/sonarqube_error.log

ProxyRequests Off
ProxyPreserveHost On


(G Ann Campbell) #2

Hi,

If the problem is at SonarQube you’ll find something in the logs. If the request doesn’t get that far, then you’ll have to debug this at your proxy, and we probably can’t help you with that.

 
Ann


(Michaël Robaston) #3

nothing into the logs here is some extract

es.log

2018.12.10 13:40:29 WARN es[o.e.c.r.a.DiskThresholdMonitor] high disk watermark [90%] exceeded on [Wkhu7PSsQJGLN__P6Uq2vA][sonarqube][/opt/sonarqube/sonarqube-7.4/data/es5/nodes/0] free: 1.7gb[9.2%], shards will be relocated away from this node

ce.log

2018.12.10 12:00:16 INFO ce[o.s.p.ProcessEntryPoint] Starting ce
2018.12.10 12:00:16 INFO ce[o.s.ce.app.CeServer] Compute Engine starting up…
2018.12.10 12:00:16 INFO ce[o.s.c.e.CoreExtensionsLoader] Loaded core extensions:
2018.12.10 12:00:17 INFO ce[o.e.p.PluginsService] no modules loaded
2018.12.10 12:00:17 INFO ce[o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
2018.12.10 12:00:17 INFO ce[o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
2018.12.10 12:00:17 INFO ce[o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2018.12.10 12:00:18 INFO ce[o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
2018.12.10 12:00:18 INFO ce[o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://localhost/sonar
2018.12.10 12:00:19 INFO ce[o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube/sonarqube-7.4
2018.12.10 12:00:19 INFO ce[o.s.c.c.CePluginRepository] Load plugins
2018.12.10 12:00:20 WARN ce[o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@312c6750. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition
2018.12.10 12:00:20 WARN ce[o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@47cc62a9. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition
2018.12.10 12:00:20 WARN ce[o.s.c.p.ComponentKeys] Bad component key: org.sonar.java.externalreport.ExternalRulesDefinition@25a9c8ef. Please implement toString() method on class org.sonar.java.externalreport.ExternalRulesDefinition
2018.12.10 12:00:20 INFO ce[o.s.c.c.ComputeEngineContainerImpl] Running Community edition
2018.12.10 12:00:20 INFO ce[o.s.c.q.PurgeCeActivities] Delete the Compute Engine tasks created before 1528887620613
2018.12.10 12:00:20 INFO ce[o.s.c.q.PurgeCeActivities] Delete the Scanner contexts tasks created before 1542020420628
2018.12.10 12:00:20 INFO ce[o.s.ce.app.CeServer] Compute Engine is operational

can i have some vhost for apache2.4 examples please ?


(G Ann Campbell) #4

Hi,

Nothing interesting in web.log?

 
Ann


(Michaël Robaston) #5

2018.12.10 14:36:31 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.DeprecatedPropertiesWsFilter@6bc3f2ff [pattern=UrlPattern{inclusions=[/api/properties/], exclusions=[]}]
2018.12.10 14:36:31 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceReroutingFilter@3996035f [pattern=UrlPattern{inclusions=[/api/components/bulk_update_key, …], exclusions=[]}]
2018.12.10 14:36:31 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter@3a739e28 [pattern=UrlPattern{inclusions=[/sessions/init/
], exclusions=}]
2018.12.10 14:36:31 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter@2ad4b2a [pattern=UrlPattern{inclusions=[/oauth2/callback/*], exclusions=}]
2018.12.10 14:36:31 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction@5b94f02d [pattern=UrlPattern{inclusions=[/api/authentication/login], exclusions=}]
2018.12.10 14:36:31 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LogoutAction@7985b443 [pattern=UrlPattern{inclusions=[/api/authentication/logout], exclusions=}]
2018.12.10 14:36:31 INFO web[o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction@7dbf46da [pattern=UrlPattern{inclusions=[/api/authentication/validate], exclusions=}]
2018.12.10 14:36:31 INFO web[o.s.s.p.p.PlatformLevelStartup] Running Community Edition
2018.12.10 14:36:31 INFO web[o.s.s.p.Platform] WebServer is operational


(Michaël Robaston) #6

i think y problem is coming from the vhost but the one available on official web site doesnt work …

some one can published his proxy pass vhost for apache ?