New Bamboo installation fails at admin creation screen with: Failed to retrieve or create group: bamboo-admin

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

問題

New Bamboo installation fails at the admin creation screen and the following error appears in the user interface and <bamboo-home>/logs/atlassian-bamboo.log

com.atlassian.core.exception.InfrastructureException: Failed to retrieve or create group: bamboo-admin
at bucket.user.DefaultUserAccessor.getGroupCreateIfNecessary(DefaultUserAccessor.java:347)
at bucket.user.DefaultUserAccessor.addUser(DefaultUserAccessor.java:80)
... 
Caused by: org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet
at org.springframework.orm.hibernate5.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:230)
... 
Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:63)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111)
... 
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUPS defaulthib0_ where defaulthib0_.GROUPNAME='bamboo-admin'' at line 1
at sun.reflect.GeneratedConstructorAccessor55.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
...

診断

環境

  • MySQL Version 8

原因

In MySQL 8, GROUPS is a reserved keyword however Bamboo has a table that shares the same name. 

ソリューション

Create a new Bamboo database on a supported version of MySQL and perform the installation again.

At the time of writing, the current version of Bamboo (6.5.0) does not support MySQL 8. MySQL 5.7 is the latest supported version. The supported version of MySQL for each version of Bamboo can be found in the below documentation:

最終更新日 2018 年 11 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.