Skip to content

Echo: Error creating bean with name 'microsoftTeamsNotificationService' after retrofit2 update #7014

Open
@joariasl

Description

@joariasl

When you are using the echo-local.yml with the configuration

microsoftteams:
  enabled: true

described in https://spinnaker.io/docs/setup/other_config/features/notifications/#microsoft-teams
a ConfigServletWebServerApplicationContext exeption lock to start the echo service that returns this error

WARN 1 --- [main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'notificationController' defined in URL [jar:file:/opt/echo/lib/echo-notifications-2.44.3.jar!/com/netflix/spinnaker/echo/controller/NotificationController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'microsoftTeamsNotificationService' defined in URL [jar:file:/opt/echo/lib/echo-notifications-2.44.3.jar!/com/netflix/spinnaker/echo/microsoftteams/MicrosoftTeamsNotificationService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'microsoftTeamsService' defined in class path resource [com/netflix/spinnaker/echo/config/MicrosoftTeamsConfig.class]: Unsatisfied dependency expressed through method 'microsoftTeamsService' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'retrofit.client.Client' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
ERROR 1 --- [main] o.s.b.d.LoggingFailureAnalysisReporter   :

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of method microsoftTeamsService in com.netflix.spinnaker.echo.config.MicrosoftTeamsConfig required a bean of type 'retrofit.client.Client' that could not be found.


Action:

Consider defining a bean of type 'retrofit.client.Client' in your configuration.

Related to https://spinnaker.io/changelogs/1.37.0-changelog/

  • retrofit2: upgrade MicrosoftTeamsClient retrofit API interface to retrofit2 ( 6a0e7847 )

Spinnaker Versions: 1.37.2, 1.37.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions