Skip to content

container ID Logik Recommender restart aufter upgrade attempt #55

@jorgeBIH

Description

@jorgeBIH

hello,
I just tried to upgrade inception-idlogik-recommender:0.2.2 to v0.2.3 by doing the following:

sudo cd /path/to/logik_recommender/
sudo vim -c ':%s/:0\.2\.2/:0\.2\.3/' -c ':wq' docker-compose.yml
sudo docker compose down
sudo docker compose up -d

but

sudo docker ps
CONTAINER ID   IMAGE                                                                             COMMAND                  CREATED          STATUS                                  PORTS                                                                                      NAMES                                     
3b3c748f83e1   ghcr.io/medizininformatik-initiative/gemtex/inception-idlogik-recommender:0.2.3   "java -jar id-logik-…"   26 minutes ago   Restarting (1) Less than a second ago                                                                                              logik_recommender-id-logik-recommender-1

logs propose the following:

The bean 'messageConverters', defined in class path resource [org/springframework/boot/http/converter/autoconfigure/HttpMessageConvertersAutoConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/boot/autoconfigure/http/HttpMessageConvertersAutoConfiguration.class] and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

full log:

$ sudo docker logs -f logik_recommender-id-logik-recommender-1

....

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/                                                                                                                     :: Spring Boot ::                (v3.1.5)                                                                                                                                                                                                                                                                              2025-09-05T09:24:11.839Z  INFO 1 --- [           main] c.i.i.InceptionRecommenderApplication    : Starting InceptionRecommenderApplication v0.2.1 using Java
 17.0.16 with PID 1 (/inception_idlogik_recommender/id-logik-recommender.jar started by root in /inception_idlogik_recommender)
2025-09-05T09:24:11.841Z  INFO 1 --- [           main] c.i.i.InceptionRecommenderApplication    : No active profile set, falling back to 1 default profile:
"default"
2025-09-05T09:24:12.160Z  WARN 1 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - canc
elling refresh attempt: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'messageConverters' defined in class path resource [org/springframework/boot/http/converter/autoconfigure/HttpMessageConvertersAutoConfiguration.class]: Cannot register bean definition [Root bean: class [null]; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBean
Name=org.springframework.boot.http.converter.autoconfigure.HttpMessageConvertersAutoConfiguration; factoryMethodName=messageConverters; initMethodNames=null
; destroyMethodNames=[(inferred)]; defined in class path resource [org/springframework/boot/http/converter/autoconfigure/HttpMessageConvertersAutoConfigurat
ion.class]] for bean 'messageConverters' since there is already [Root bean: class [null]; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration; factoryMethodName=messageConverters; initMethodNames=null; destroyMethodNames=[(inferred)]; defined in class path resource [org/springframework/boot/autoconfigure/http/HttpMessageConvertersAutoConfiguration.class]] bound.                                                                                                    2025-09-05T09:24:12.170Z  INFO 1 --- [           main] .s.b.a.l.ConditionEvaluationReportLogger :

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.                                 2025-09-05T09:24:12.180Z ERROR 1 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   :

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

Description:

The bean 'messageConverters', defined in class path resource [org/springframework/boot/http/converter/autoconfigure/HttpMessageConvertersAutoConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/boot/autoconfigure/http/HttpMessageConvertersAutoConfiguration.class] and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

I have stopped the container.

how shall we proceed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions