【问题标题】:404 after upgrading Artifactory Pro升级 Artifactory Pro 后出现 404
【发布时间】:2019-08-16 04:41:12
【问题描述】:

我当前的 Artifactory Pro 6.5.2 版本。我可以从 6.5.2 逐步升级到 6.5.9 再到 6.0.0。如果我尝试升级到 6.0.0 以上,在尝试访问 Artifactory 时会收到 404 错误。

HTTP Status 404 – Not Found
Type Status Report

Message /artifactory/webapp/

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Apache Tomcat/8.5.32

我在/var/opt/jfrog/artifactory/logs/catalina/catalina.out 中看到以下错误

Failed to ensure db table 'master_key_status' exists

Error creating bean with name 'accessJdbcHelperImpl': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Could not initialize database: Not supported

org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/access]]

我使用的数据库是 MySQL

mysql Ver 15.1 Distrib 5.5.60-MariaDB, for Linux (x86_64) using readline 5.1

有没有人在升级 Artficatory Pro 时遇到过类似的问题?

谢谢

【问题讨论】:

  • 我从4.9.0升级到6.1.0的时候也遇到了上面的错误。几点可以请确认。数据库有什么变化吗?即将数据库从德比迁移到玛丽亚。而且描述也不是很清楚。您已从 6.0.0 升级到 6.5.2 再升级到 6.5.9 ?
  • 抱歉,对6.0.0 的引用应该是6.6.0。没有数据库更改。
  • 是根据工件的数据库驱动程序版本。您还检查了 maria dB 主机的可访问性。我假设工件用户具有访问表的权限。值得用用户工件检查数据库中的表
  • 感谢您的建议。我必须更新 JDBC 驱动程序并将适当的 serverTimezone 值添加到 db.properties 中的 JDBC url。

标签: artifactory


【解决方案1】:

只是标记答案。

问题出在 Maria DB 的 JDBC 驱动程序版本上。

您完成的另一项更新是添加时区值。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多