当我创建新的质量配置文件时,我收到一个通用的内部服务器错误(500)页面。
我的声纳日志文件的痕迹是:
2015.10.01 15:24:49 ERROR web[rails] /!\ FAILSAFE /!\ Thu Oct 01 15:24:49 +0900 2015
Status: 500 Internal Server Error
No such file or directory - C:/Users/Admin/AppData/Local/Temp
org/jruby/RubyFile.java:842:in `stat'
jar:file:/C:/Program%20Files/Java/sonarqube-5.1.2/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/shared/tmpdir.rb:33:in `tmpdir'
org/jruby/RubyArray.java:1613:in `each'
jar:file:/C:/Program%20Files/Java/sonarqube-5.1.2/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/shared/tmpdir.rb:30:in `tmpdir'
jar:file:/C:/Program%20Files/Java/sonarqube-5.1.2/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/shared/tmpdir.rb:109:in `tmpdir'
jar:file:/C:/Program%20Files/Java/sonarqube-5.1.2/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/shared/tmpdir.rb:141:in `create'
org/jruby/ext/tempfile/Tempfile.java:88:in `initialize'
org/jruby/RubyIO.java:852:in `new'
C:/Program Files/Java/sonarqube-5.1.2/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/utils.rb:559:in `parse_multipart'
org/jruby/RubyKernel.java:1519:in `loop'
C:/Program Files/Java/sonarqube-5.1.2/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/utils.rb:537:in `parse_multipart'
C:/Program Files/Java/sonarqube-5.1.2/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/request.rb:268:in `parse_multipart'
C:/Program Files/Java/sonarqube-5.1.2/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/request.rb:146:in `POST'
C:/Program Files/Java/sonarqube-5.1.2/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/methodoverride.rb:15:in `call'
C:/Program Files/Java/sonarqube-5.1.2/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/params_parser.rb:15:in `call'
file:/C:/Program Files/Java/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/session_store.rb:70:in `context'
C:/Program Files/Java/sonarqube-5.1.2/web/WEB-INF/gems/gems/rack-1.1.6/lib/rack/session/abstract/id.rb:58:in `call'
C:/Program Files/Java/sonarqube-5.1.2/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/failsafe.rb:26:in `call'
C:/Program Files/Java/sonarqube-5.1.2/web/WEB-INF/gems/gems/actionpack-2.3.15/lib/action_controller/dispatcher.rb:106:in `call'
file:/C:/Program Files/Java/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:34:in `serve_rails'
file:/C:/Program Files/Java/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/rack/adapter/rails.rb:39:in `call'
file:/C:/Program Files/Java/sonarqube-5.1.2/lib/server/jruby-rack-1.1.13.2.jar!/rack/handler/servlet.rb:22:in `call'
sonarqube-5.1.2和sonar-runner-2.4
在日食中,没有问题。但随着声纳 - 亚军问题的发生...... 我在网上找不到有效的答案。所以,请:(
答案 0 :(得分:0)
我找到了解决方案here
只需在<SONAR>/conf/wrapper.conf
另一个目录temp中添加具有属性的所有访问权限:
set.TMPDIR=/path/to/your/temp
然后,重新启动SonarQube实例。