无法访问SonarQube:不是有效的区域设置 [英] Can't acess SonarQube: not a valid locale

查看:318
本文介绍了无法访问SonarQube:不是有效的区域设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下载sonarqube后,我启动服务器并尝试通过 http:// localhost:9000 访问它。日志显示服务器已启动。
我有一个错误:

  2015.03.11 14:39:02 INFO web [ossapp.Logging] Web服务器启动
2015.03.11 14:39:03 ERROR web [ossui.JRubyFacade]无法呈现:http:// localhost:9000 /
fr不是有效的区域设置
/home/osallou/.rvm/gems/ruby-1.9.3-p429/gems/i18n-0.7.0/lib/i18n.rb:284:inenforce_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 ='
....
pre>

fr_FR在我的区域设置(ubuntu),我的默认语言环境是en_US



为什么它需要法语(但为什么不),但我需要修复conf / startup问题。我在sonar.conf中没有看到任何语言环境配置。



感谢

解决方案

SonarQube使用旧版 i18n gem (请参阅 web / WEB-INF / gems / gems 目录)。

如果禁用 rvm ,Sonar应该可以正常工作。



停用rvm



$ rvm使用系统


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

解决方案

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

这篇关于无法访问SonarQube:不是有效的区域设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆