【问题标题】:Sonarqube SQLServer errorSonarqube SQLServer 错误
【发布时间】:2016-08-03 10:38:50
【问题描述】:

每次我在身份验证中选中“记住我”时都会出现此错误。 可能是什么问题呢 ? 谢谢

Dom

2016.04.12 18:49:27 ERROR web[o.s.s.ui.JRubyFacade] Fail to render: http://cerbere:9001/sessions/login
ActiveRecord::JDBCError: La conversion d'un type de donn?es varchar en type de donn?es datetime a cr?? une valeur hors limites.: UPDATE [users] SET [remember_token_expires_at] = '2016-04-26 16:49:26', [remember_token] = N'4fa37dcb929dce851bb153cebc204bc300518d14', [updated_at] = 1460479767007 WHERE [id] = N'2'
/opt/sonar/sonarqube-5.4/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `log'
/opt/sonar/sonarqube-5.4/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract_adapter.rb:212:in `log'
/opt/sonar/sonarqube-5.4/web/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/jdbc/adapter.rb:183:in `execute'
/opt/sonar/sonarqube-5.4/web/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.1.3/lib/arjdbc/jdbc/adapter.rb:199:in `jdbc_update'
/opt/sonar/sonarqube-5.4/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/connection_adapters/abstract/query_cache.rb:26:in `update_with_query_dirty'
/opt/sonar/sonarqube-5.4/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/base.rb:2946:in `update'
/opt/sonar/sonarqube-5.4/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/locking/optimistic.rb:81:in `update_with_lock'
/opt/sonar/sonarqube-5.4/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/dirty.rb:146:in `update_with_dirty'
/opt/sonar/sonarqube-5.4/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/timestamp.rb:64:in `update_with_timestamps'
/opt/sonar/sonarqube-5.4/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record/callbacks.rb:282:in `update_with_callbacks'

【问题讨论】:

  • 你的版本是什么?
  • MySQL 列 USERS.REMEMBER_TOKEN_EXPIRES_AT 和 USERS.UPDATED_AT 的类型是什么?另外MySQL的版本是多少?
  • 我设法解决了这个问题。我的声纳版本是 5.4。

标签: sql-server sonarqube sonarqube-ops


【解决方案1】:

问题出在 soanrqube 5.4 上。这是由于我的 sqlserver 用户语言不是英语。 又看了一遍sonarqube安装文档,不太清楚MS SQLServer该做什么。

【讨论】:

    猜你喜欢
    • 2016-02-05
    • 1970-01-01
    • 1970-01-01
    • 2011-07-12
    • 1970-01-01
    • 1970-01-01
    • 2016-11-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多