环境

Jira 8.20.6
MySQL 5.7.37 Community
Java 1.8.0_211

描述

启用 Roadmaps 后,访问 Plan -> View Plans 红色警告:

Please try refreshing the page.
If the issue continues, please copy and paste the information in the Details button below and send to your Jira Administrator or Atlassian Support.

详细报错,关键部分如下:

"type": "com.atlassian.activeobjects.internal.ActiveObjectsSqlException","message":"There was a SQL exception thrown by the Active objects library:
Database:
- name: MySQL
- version:5.7.32-log
- minor version:7
- major version:5
Driver:
- name: MySQL Connector Java
- version:mysql-connector-java-5.1.49

com.mysql.jdbc.exceptions.jdbc4.MySQLIntergrityConstraintViolationException: Duplicate entry '0' for key 'PRIMARY'",...

解决

mysql 的运行配置文件中未按 Jira 官方建议配置,取消 my.cnf 中的如下行:

sql_mode = NO_AUTO_VALUE_ON_ZERO

停止 jira,重启数据库,重启 Jira。

参考

community.atlassian.com/t5/Advanced-Roadmaps-questions/base-url-secure-PortfolioPlanCreate-jspa-ref-1-keep-giving-error/qaq-p/1182940

最后修改:2022 年 03 月 04 日 01 : 49 PM
如果觉得文章帮助了您,您可以随意赞赏。