Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't acess SonarQube: not a valid locale

After having downloaded sonarqube, I start the server and try to access it at http://localhost:9000. Logs show that server is started. I have however an error:

2015.03.11 14:39:02 INFO  web[o.s.s.app.Logging]  Web server is started
2015.03.11 14:39:03 ERROR web[o.s.s.ui.JRubyFacade]  Fail to render: http://localhost:9000/
"fr" is not a valid locale
    /home/osallou/.rvm/gems/ruby-1.9.3-p429/gems/i18n-0.7.0/lib/i18n.rb:284:in `enforce_available_locales!'
    /home/osallou/.rvm/gems/ruby-1.9.3-p429/gems/i18n-0.7.0/lib/i18n/config.rb:13:in `locale='
    /home/osallou/.rvm/gems/ruby-1.9.3-p429/gems/i18n-0.7.0/lib/i18n.rb:43:in `locale='
....

fr_FR is in my locale (ubuntu), and my default locale is en_US

I do not understand why it takes french (but why not), but I need to fix the conf/startup issue. I do not see any locale config in sonar.conf.

Thanks

like image 667
osallou Avatar asked Mar 11 '15 13:03

osallou


2 Answers

SonarQube uses an older version of the i18n gem (see the web/WEB-INF/gems/gems directory).
If you disable the rvm, Sonar should work fine.

Disable rvm

$ rvm use system

like image 123
Dawid Stępień Avatar answered Nov 14 '22 15:11

Dawid Stępień


You can just create a new gemset & use that instead. The sonarqube zip file comes with all the gems that are needed.

rvm gemset create sonar
rvm gemset use sonar
like image 6
Yogesh Nachnani Avatar answered Nov 14 '22 15:11

Yogesh Nachnani