AtlassianHostRepository Error: Unable to implement Session Management in Atlassian Connect app

Hi Team,

We have an Atlassian Connect add-on installed at www.xyx.atlassian.net .

Trying to implement Session Management with redis and followed this link,
https://docs.spring.io/spring-session/docs/current/reference/html5/guides/boot-redis.html

When followed the link above, the code get the errors as below,


APPLICATION FAILED TO START


Description:

atlassian-connect-spring-boot requires a bean of type ‘com.atlassian.connect.spring.AtlassianHostRepository’ that could not be found. This repository is used for storing installation data.

Action:
Choose a Spring Data implementation to use with AtlassianHostRepository, and enable Repository scanning with the appropriate @Enable${store}Repositories annotation. If you choose Spring Data JPA, consider using atlassian-connect-spring-boot-jpa-starter.

Any further implementation needed?

Please help!

1 Like

Hi @ramjeevan.tadi,

we can’t provide detailed support on this kind of advanced usage, but your application needs to have exactly one AtlassianHostRepository component. How that component is created will depend on which Spring Data implementation you use (or if you use something else entirely).

If you use one Spring Data implementation for AtlassianHostRepository and also use spring-data-redis for your sessions, you will need to be careful to get the configuration right.

Cheers,
Einar

Hi @epehrson Thank you for the quick response!

Sure, I will try to implement one of the Spring data implementation with ATlassianHostRepository.

Thanks,

Ramjeevan Tadi

Hello @ramjeevan.tadi , did you solve this problem? I get the same error while trying to use redis.

2 Likes