Skip to content

ConfigException when used together with spring boot devtools  #1567

Open
@tallinn1960

Description

@tallinn1960

In a Spring Boot application (Spring Boot 2.7.3) using both spring-boot-starter-couchbase and spring-boot-starter-devtools during application startup this exception happens:

com.couchbase.client.core.error.ConfigException: Could not locate a single global configuration

The application runs fine nevertheless and is passing all tests.

[ Edit: later discovered it was not related to devtools ]
However, if I boot the application with devtools disabled (spring.devtools.add-properties=false), the exception does not happen. So it looks like spring devtools and spring boot data couchbase interfere with each other.

This is with a dockerized couchbase cluster setup and a connection string contacting each node via localhost on different management ports. This is the connection string:

spring.couchbase.connection-string=couchbase://127.0.0.1?io.networkResolution=external&timeout.kvTimeout=10s,\
  couchbase://127.0.0.1:11210?io.networkResolution=external&timeout.kvTimeout=10s,\
  couchbase://127.0.0.1:12210?io.networkResolution=external&timeout.kvTimeout=10s

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions