SonarQube 5.2 升级失败
SonarQube 5.2 Upgrade failed
我尝试将 SonarQube 从 5.1.2 升级到 5.2,但升级失败。我在 Sonar.log 中有以下消息:
2015.11.23 07:44:36 ERROR web[o.s.s.d.m.PlatformDatabaseMigration] DB Migration or container restart failed. Process ended with an exception
org.jruby.exceptions.RaiseException: (StandardError) An error has occurred, this and all later migrations canceled:
ActiveRecord::JDBCError: Cannot find the object "project_links" because it does not exist or you do not have permissions.: ALTER TABLE project_links ADD [component_uuid] NVARCHAR(50)
2015.11.23 08:03:50 INFO app[o.s.p.m.TerminatorThread] Process[web] is stopping
2015.11.23 08:03:51 INFO web[o.s.p.StopWatcher] Stopping process
2015.11.23 08:03:51 INFO web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-0.0.0.0-9000"]
2015.11.23 08:03:52 INFO web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-0.0.0.0-9000"]
2015.11.23 08:03:53 INFO web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-0.0.0.0-9000"]
2015.11.23 08:03:53 INFO web[o.s.s.a.TomcatAccessLog] Web server is stopped
当我在 SQL Server Management Studio 中执行失败的 ALTER TABLE 命令时,它确实有效。我能够使用 Visual Studio 和 SonarQube 使用的 user/password 连接到声纳数据库。我给了声纳用户架构所有者和读写权限。我尝试将加密密码更改为明文密码。有什么问题吗?
数据库用户有权读取多个 SonarQube 模式。它必须仅限于单个架构。
我尝试将 SonarQube 从 5.1.2 升级到 5.2,但升级失败。我在 Sonar.log 中有以下消息:
2015.11.23 07:44:36 ERROR web[o.s.s.d.m.PlatformDatabaseMigration] DB Migration or container restart failed. Process ended with an exception
org.jruby.exceptions.RaiseException: (StandardError) An error has occurred, this and all later migrations canceled:
ActiveRecord::JDBCError: Cannot find the object "project_links" because it does not exist or you do not have permissions.: ALTER TABLE project_links ADD [component_uuid] NVARCHAR(50)
2015.11.23 08:03:50 INFO app[o.s.p.m.TerminatorThread] Process[web] is stopping
2015.11.23 08:03:51 INFO web[o.s.p.StopWatcher] Stopping process
2015.11.23 08:03:51 INFO web[o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-0.0.0.0-9000"]
2015.11.23 08:03:52 INFO web[o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-0.0.0.0-9000"]
2015.11.23 08:03:53 INFO web[o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-0.0.0.0-9000"]
2015.11.23 08:03:53 INFO web[o.s.s.a.TomcatAccessLog] Web server is stopped
当我在 SQL Server Management Studio 中执行失败的 ALTER TABLE 命令时,它确实有效。我能够使用 Visual Studio 和 SonarQube 使用的 user/password 连接到声纳数据库。我给了声纳用户架构所有者和读写权限。我尝试将加密密码更改为明文密码。有什么问题吗?
数据库用户有权读取多个 SonarQube 模式。它必须仅限于单个架构。