新しい(空の)MS SQL Server 2012 DBでSonarを起動すると、失敗した移行コードが実行されます。私は以下のエラーが発生します。誰でもSonar JIRAで問題を作成できる場合は、フルログを提供できます。ドライバ側に設定されたロケールに問題がありますか?Sonar 5.6.4および6.1が新しくMS SQL Server 2012にインストールされない
2017.01.17 12:32:40 INFO web[DbMigration] == CreateDefaultUsersAndGroups: migrating ====================================
2017.01.17 12:32:40 INFO web[jruby.rack] An exception happened during JRuby-Rack startup
An error has occurred, this and all later migrations canceled:
ActiveRecord::JDBCError: The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.: INSERT INTO [groups] ([name], [description], [created_at], [updated_at]) VALUES(N'sonar-administrators', N'System administrators', '2017-01-17 12:32:40', '2017-01-17 12:32:40')
2017.01.17 12:32:40 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.RubyRailsContextListener
org.jruby.rack.RackInitializationException: An error has occurred, this and all later migrations canceled:
ActiveRecord::JDBCError: The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.: INSERT INTO [groups] ([name], [description], [created_at], [updated_at]) VALUES(N'sonar-administrators', N'System administrators', '2017-01-17 12:32:40', '2017-01-17 12:32:40')
from /apps/eqbld/eqsonar/sonarqube-5.6.4/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `log'
from /apps/eqbld/eqsonar/sonarqube-5.6.4/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract_adapter.rb:212:in `log'
from /apps/eqbld/eqsonar/sonarqube-5.6.4/web/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/jdbc/adapter.rb:183:in `execute'
from /apps/eqbld/eqsonar/sonarqube-5.6.4/web/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/jdbc/adapter.rb:222:in `insert_sql'
from /apps/eqbld/eqsonar/sonarqube-5.6.4/web/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/jdbc/adapter.rb:195:in `jdbc_insert'
このSQL Error: The conversion of a varchar data type to a datetime data type resulted in an out-of-range valueによると、MS SQL Server Management Studioを使用して私のテストTは日付と時刻の間に挿入されたとき、それはこのすなわち作品: INSERT INTO [グループ]([名前]、[説明]、[のcreated_at ]、[updated_at])VALUES(N'sonar-administrators '、N'System administrators'、 '2017-01-17T13:45:01'、 '2017-01-17T13:45:01');
が問題ありません。残念ながら、私は自分の側でどのような回避策も見つけられませんでした(ドライバや環境の設定)。これまでのところ、ソナー側の修正が必要になるようです。
あなたは答えを受け入れる必要があります。 –