-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConfigException when used together with spring boot devtools #1567
Comments
AbstractCouchbaseConfiguration has the @configuration annotation. It might be useful to investigate your class that starts the spring application. |
Wether I use AbstractCouchbaseConfiguration or not does not make a difference. What seemingly makes a difference is the tide, the weather, the phase of the moon or altogether - as sometimes my application comes up with that exception, sometimes without it. I looked into the code and found a remark on race conditions in I simplified the cluster setup to bind to standard ports on 127.0.0.1-4, all bound to loopback on the docker host, as there are a number of issues both on the client and the server side when changing the standard ports of a node, but those are unrelated to the topic here. So the connection string is now just couchbase://127.0.0.1,127.0.0.2,127.0.0.3. The fourth node on 127.0.0.4 is just offering backup services and not supposed to handle clients. If I do not separate the backup service to the fourth node and remove that service from the other nodes, rebalancing the cluster is no longer working. I assign an alternate address to the backup node nevertheless, as not doing so is causing a Nullpointer exception in the couchbase drivers. I notified Couchbase about this and they confirmed the issue. This is all due to using the "alternate address setup" as described in the couchbase documentation, which appears to be full of bugs. And this is the exception, with some lines added to make clear where it happens, when it happens:
Maybe its a bug to address to Couchbase? |
Thanks for the stacktrace. I've created CBSE-12736 for you. The same issue has also been reported by another organization. |
There is an open issue https://issues.couchbase.com/browse/JCBC-1883 - if alternate address is used, there is an assumption that everything has an alternate address. If you are experiencing a different issue, let me know.
I didn't find any open issues on the alternate address setup documentation. Can you please let me know what needs to be fixed? Thanks. |
According to the other CBSE - it's just an informational message that should be output at DEBUG without the stack trace. Here's the text from the other CBSE - it's not the same as your situation, but the result is the same.
|
Oh, that is a misunderstanding. It is not that the documentation is "full of bugs", but setting up alternate addresses and ports reveals many bugs in the software, at least when using a java client. One thing I noticed is that the client when in java only uses the alternate hostnames but not the alternate port assignments, that is why I switched to a 127.0.0.1-4 and standard ports on all nodes setup. There are server issues as well with such a setup as I mentioned. As with the Nullpointer exception I reported those on the Couchbase forum, but issues are yet unconfirmed. |
Aside from this issue and the NPE/JCBC-1883, I find one other post : btw - you should be able to report bugs directly at issues.couchbase.com. forums.couchbase.com is mainly for user discussion. If you are an Enterprise customer, you should contact support directly. |
after upgraded Spring Boot 3.3, I also encountered this issue, Could not locate a single global configuration |
@hantsy - "Could not locate a single global configuration" is just a warning message and the sdk will retry on it's own. |
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:
The text was updated successfully, but these errors were encountered: