Comments (18)
Would it be possible to try the docker compose files as described by me in the comment above? I think in your case the issue may be that depending on how you start the containers, the AAS Environment may not have access to the mongoDB container via "localhost".
from basyx-java-server-sdk.
@lenaxus Finally i could find a credit card to get a DB :)
As Azure Cosmos DB MongoDB is just an emulation and not an official MongoDB product, such issues probably going to happen.
If you want a short workaround, instead of RU try to deploy Azure Cosmos DB for MongoDB (vCore). It is going to cost more money, but it is closer to the real mongodb.
So I could run the whole aas environment (from the source code) on vCore instances. MongoDB Atlas was also working without any issue.
@FrankSchnicke I don't work with Azure in my daily life, but probably the solution shouldn't be too complicated, most likely some extra configuration or parameter is needed. But is there any intention to actually cover CosmosDB MongoDB?
from basyx-java-server-sdk.
@mhrimaz Thanks for your additional input! Yes, we would like to cover CosmosDB.
We have acquired access to CosmosDB and will take a look at this issue.
from basyx-java-server-sdk.
Is it possible that you are not using the latest SNAPSHOT release? We fixed a bug that prevented MongoDB from loading some time ago. Could you delete the local SNAPSHOT and pull it again from DockerHub to double-check?
from basyx-java-server-sdk.
Thanks for your fast reply!
We also found that closed issue about the mongoDB bug here. So unfortunately we have already done that and we are sure that we have the latest release.
from basyx-java-server-sdk.
@lenaxus probably something wrong in db configuration, or maybe mongodb version. can you setup the dev environment and test with local db to see if it works?
command to run mongodb:
docker run -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=mongoAdmin -e MONGO_INITDB_ROOT_PASSWORD=mongoPassword mongo:5.0.10
sample config for concept description repository:
basyx.backend = MongoDB
spring.data.mongodb.host=localhost
#or spring.data.mongodb.host=127.0.0.1
spring.data.mongodb.port=27017
spring.data.mongodb.database=concepts
spring.data.mongodb.authentication-database=admin
spring.data.mongodb.username=mongoAdmin
spring.data.mongodb.password=mongoPassword
from basyx-java-server-sdk.
I just pushed a new version of the aas-environment that should fix an unrelated issue. Nevertheless, can you double-check if the error persists?
Alternatively, you can start the docker compose file in the repo root to start up a MongoDB instance and the start the docker compose in the examples folder. Please note that for now due to an unrelated bug you need to remove the "basyx.aasrepository.feature.mqtt.enabled = true" line in aas-env.properties
from basyx-java-server-sdk.
Thank you for your help.
We tried all the suggested scenarios of you: we use the latest basyx release published two hours ago und started the mongoDB local.
So right now, we get the following error:
| _ \ / ____|
| |_) | __ _ | (___ _ _ __ __
| _ < / _` | \___ \ | | | |\ \/ /
| |_) || (_| | ____) || |_| | > <
|____/ \__,_||_____/ \__, |/_/\_\
======================== __/ |======
AAS Environment |___/
2.0.0-PREVIEW
2023-08-24 08:20:26.977 INFO 1 --- [ main] o.e.d.b.a.c.AasEnvironmentComponent : Starting AasEnvironmentComponent v2.0.0-SNAPSHOT using Java 11.0.19 on 139a1963bf1e with PID 1 (/application/basyxExecutable.jar started by nobody in /application)
2023-08-24 08:20:27.024 INFO 1 --- [ main] o.e.d.b.a.c.AasEnvironmentComponent : No active profile set, falling back to 1 default profile: "default"
2023-08-24 08:20:38.592 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
2023-08-24 08:20:38.712 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 91 ms. Found 0 MongoDB repository interfaces.
2023-08-24 08:20:43.478 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8081 (http)
2023-08-24 08:20:43.549 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-08-24 08:20:43.550 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.73]
2023-08-24 08:20:44.092 INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-08-24 08:20:44.093 INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 16468 ms
2023-08-24 08:20:45.745 INFO 1 --- [ main] o.e.d.b.a.c.AasRepositoryFeaturePrinter : -------------------- Aas Repository Features: --------------------
2023-08-24 08:20:45.745 INFO 1 --- [ main] o.e.d.b.a.c.AasRepositoryFeaturePrinter : -----------------------------------------------------------------
2023-08-24 08:20:45.754 INFO 1 --- [ main] o.e.d.b.a.c.AasServiceFeaturePrinter : ------------------ Aas Service Found Features: ------------------
2023-08-24 08:20:45.754 INFO 1 --- [ main] o.e.d.b.a.c.AasServiceFeaturePrinter : -----------------------------------------------------------------
2023-08-24 08:20:46.639 INFO 1 --- [ main] org.mongodb.driver.client : MongoClient with metadata {"driver": {"name": "mongo-java-driver|sync|spring-boot", "version": "4.6.1"}, "os": {"type": "Linux", "name": "Linux", "architecture": "amd64", "version": "5.15.49-linuxkit-pr"}, "platform": "Java/Amazon.com Inc./11.0.19+7-LTS"} created with settings MongoClientSettings{readPreference=primary, writeConcern=WriteConcern{w=null, wTimeout=null ms, journal=null}, retryWrites=true, retryReads=true, readConcern=ReadConcern{level=null}, credential=MongoCredential{mechanism=null, userName='mongoAdmin', source='admin', password=<hidden>, mechanismProperties=<hidden>}, streamFactoryFactory=null, commandListeners=[io.micrometer.core.instrument.binder.mongodb.MongoMetricsCommandListener@777c9dc9], codecRegistry=ProvidersCodecRegistry{codecProviders=[ValueCodecProvider{}, BsonValueCodecProvider{}, DBRefCodecProvider{}, DBObjectCodecProvider{}, DocumentCodecProvider{}, IterableCodecProvider{}, MapCodecProvider{}, GeoJsonCodecProvider{}, GridFSFileCodecProvider{}, Jsr310CodecProvider{}, JsonObjectCodecProvider{}, BsonCodecProvider{}, EnumCodecProvider{}, com.mongodb.Jep395RecordCodecProvider@71b1a49c]}, clusterSettings={hosts=[localhost:27017], srvServiceName=mongodb, mode=SINGLE, requiredClusterType=UNKNOWN, requiredReplicaSetName='null', serverSelector='null', clusterListeners='[]', serverSelectionTimeout='30000 ms', localThreshold='30000 ms'}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, receiveBufferSize=0, sendBufferSize=0}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=10000, receiveBufferSize=0, sendBufferSize=0}, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000, connectionPoolListeners=[io.micrometer.core.instrument.binder.mongodb.MongoMetricsConnectionPoolListener@73e132e0], maxConnecting=2}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500, serverListeners='[]', serverMonitorListeners='[]'}, sslSettings=SslSettings{enabled=false, invalidHostNameAllowed=false, context=null}, applicationName='null', compressorList=[], uuidRepresentation=JAVA_LEGACY, serverApi=null, autoEncryptionSettings=null, contextProvider=null}
2023-08-24 08:20:46.646 INFO 1 --- [localhost:27017] org.mongodb.driver.cluster : Exception in monitor thread while connecting to server localhost:27017
com.mongodb.MongoSocketOpenException: Exception opening socket
at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:70) ~[mongodb-driver-core-4.6.1.jar!/:na]
at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:180) ~[mongodb-driver-core-4.6.1.jar!/:na]
at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.lookupServerDescription(DefaultServerMonitor.java:193) ~[mongodb-driver-core-4.6.1.jar!/:na]
at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:157) ~[mongodb-driver-core-4.6.1.jar!/:na]
at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:na]
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412) ~[na:na]
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255) ~[na:na]
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237) ~[na:na]
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:na]
at java.base/java.net.Socket.connect(Socket.java:609) ~[na:na]
at com.mongodb.internal.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:107) ~[mongodb-driver-core-4.6.1.jar!/:na]
at com.mongodb.internal.connection.SocketStream.initializeSocket(SocketStream.java:79) ~[mongodb-driver-core-4.6.1.jar!/:na]
at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:65) ~[mongodb-driver-core-4.6.1.jar!/:na]
... 4 common frames omitted```
from basyx-java-server-sdk.
How did you start the mongoDB locally? Can you provide your docker compose file/ application.properties that produces your output?
from basyx-java-server-sdk.
I started the mongoDB locally with this command from @mhrimaz :
docker run -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=mongoAdmin -e MONGO_INITDB_ROOT_PASSWORD=mongoPassword mongo:5.0.10
The application.properties file:
server.port=8081
spring.application.name=AASEnvironment
basyx.backend=MongoDB
spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017
spring.data.mongodb.database=concepts
spring.data.mongodb.authentication-database=admin
spring.data.mongodb.username=mongoAdmin
spring.data.mongodb.password=mongoPassword
from basyx-java-server-sdk.
Yes we tried the docker compose variant and it was successful. But for our case docker compose is not feasible because we want to host it on Azure. Do you have any other clue here?
With the old version (v1) we had no problems with that setup. We had a wep app with this configured environment variable to connect to the mongoDB:
BaSyxMongoDB_dbconnectionstring
Is there any equal alternative in the new v2-0-0-snapshot?
from basyx-java-server-sdk.
With docker commands that's also possible, you just need to take care of networking and make sure two container can communicate.
@lenaxus Can you try with mogodb_uri? I don't have Azure but maybe there are some connection parameters that you need to pass. See if the following config would work.
basyx.backend = MongoDB
#alternative
spring.data.mongodb.database=aas
spring.data.mongodb.uri=mongodb://mongodb:password@localhost:10255/admin?ssl=true
from basyx-java-server-sdk.
Thank you again for your help, we are right now a step further :)
With the spring.data.mongodb.uri
configuration we get a connection established with our setup on Azure including a CosmosDB for a mongoDB account. But unfortunately we get now a different error:
2023-08-25T06:13:58.336161620Z ____ _____
2023-08-25T06:13:58.336245421Z | _ \ / ____|
2023-08-25T06:13:58.336252521Z | |_) | __ _ | (___ _ _ __ __
2023-08-25T06:13:58.336257121Z | _ < / _` | \___ \ | | | |\ \/ /
2023-08-25T06:13:58.336261821Z | |_) || (_| | ____) || |_| | > <
2023-08-25T06:13:58.336266121Z |____/ \__,_||_____/ \__, |/_/\_\
2023-08-25T06:13:58.336270421Z ======================== __/ |======
2023-08-25T06:13:58.336274421Z AAS Environment |___/
2023-08-25T06:13:58.336278221Z 2.0.0-PREVIEW
2023-08-25T06:13:58.336293621Z
2023-08-25T06:13:58.748383839Z 2023-08-25 06:13:58.742 INFO 1 --- [ main] o.e.d.b.a.c.AasEnvironmentComponent : Starting AasEnvironmentComponent v2.0.0-SNAPSHOT using Java 11.0.19 on c7d04b8321b8 with PID 1 (/application/basyxExecutable.jar started by nobody in /application)
2023-08-25T06:13:58.756590429Z 2023-08-25 06:13:58.756 INFO 1 --- [ main] o.e.d.b.a.c.AasEnvironmentComponent : No active profile set, falling back to 1 default profile: "default"
2023-08-25T06:14:02.990329661Z 2023-08-25 06:14:02.989 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
2023-08-25T06:14:03.028975584Z 2023-08-25 06:14:03.027 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 20 ms. Found 0 MongoDB repository interfaces.
2023-08-25T06:14:04.848323855Z 2023-08-25 06:14:04.847 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8081 (http)
2023-08-25T06:14:04.887802486Z 2023-08-25 06:14:04.887 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-08-25T06:14:04.889048300Z 2023-08-25 06:14:04.887 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.73]
2023-08-25T06:14:05.245261191Z 2023-08-25 06:14:05.240 INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-08-25T06:14:05.246320202Z 2023-08-25 06:14:05.240 INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 6252 ms
2023-08-25T06:14:05.979828514Z 2023-08-25 06:14:05.979 INFO 1 --- [ main] o.e.d.b.a.c.AasRepositoryFeaturePrinter : -------------------- Aas Repository Features: --------------------
2023-08-25T06:14:05.979873015Z 2023-08-25 06:14:05.979 INFO 1 --- [ main] o.e.d.b.a.c.AasRepositoryFeaturePrinter : -----------------------------------------------------------------
2023-08-25T06:14:05.987427997Z 2023-08-25 06:14:05.987 INFO 1 --- [ main] o.e.d.b.a.c.AasServiceFeaturePrinter : ------------------ Aas Service Found Features: ------------------
2023-08-25T06:14:05.987481398Z 2023-08-25 06:14:05.987 INFO 1 --- [ main] o.e.d.b.a.c.AasServiceFeaturePrinter : -----------------------------------------------------------------
2023-08-25T06:14:06.321411345Z 2023-08-25 06:14:06.315 INFO 1 --- [ main] org.mongodb.driver.cluster : Adding discovered server basyx:10255 to client view of cluster
2023-08-25T06:14:06.490499492Z 2023-08-25 06:14:06.483 INFO 1 --- [ main] org.mongodb.driver.client : MongoClient with metadata {"driver": {"name": "mongo-java-driver|sync|spring-boot", "version": "4.6.1"}, "os": {"type": "Linux", "name": "Linux", "architecture": "amd64", "version": "5.10.177.1-1.cm1"}, "platform": "Java/Amazon.com Inc./11.0.19+7-LTS", "application": {"name": "@basyx@"}} created with settings MongoClientSettings{readPreference=primary, writeConcern=WriteConcern{w=null, wTimeout=null ms, journal=null}, retryWrites=false, retryReads=true, readConcern=ReadConcern{level=null}, credential=MongoCredential{mechanism=null, userName='basyx', source='admin', password=<hidden>, mechanismProperties=<hidden>}, streamFactoryFactory=null, commandListeners=[io.micrometer.core.instrument.binder.mongodb.MongoMetricsCommandListener@53cdecf6], codecRegistry=ProvidersCodecRegistry{codecProviders=[ValueCodecProvider{}, BsonValueCodecProvider{}, DBRefCodecProvider{}, DBObjectCodecProvider{}, DocumentCodecProvider{}, IterableCodecProvider{}, MapCodecProvider{}, GeoJsonCodecProvider{}, GridFSFileCodecProvider{}, Jsr310CodecProvider{}, JsonObjectCodecProvider{}, BsonCodecProvider{}, EnumCodecProvider{}, com.mongodb.Jep395RecordCodecProvider@71ea1fda]}, clusterSettings={hosts=[basyx:10255], srvServiceName=mongodb, mode=MULTIPLE, requiredClusterType=REPLICA_SET, requiredReplicaSetName='globaldb', serverSelector='null', clusterListeners='[]', serverSelectionTimeout='30000 ms', localThreshold='30000 ms'}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, receiveBufferSize=0, sendBufferSize=0}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=10000, receiveBufferSize=0, sendBufferSize=0}, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=120000, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000, connectionPoolListeners=[io.micrometer.core.instrument.binder.mongodb.MongoMetricsConnectionPoolListener@62b3df3a], maxConnecting=2}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500, serverListeners='[]', serverMonitorListeners='[]'}, sslSettings=SslSettings{enabled=true, invalidHostNameAllowed=false, context=null}, applicationName='@basyx@', compressorList=[], uuidRepresentation=JAVA_LEGACY, serverApi=null, autoEncryptionSettings=null, contextProvider=null}
2023-08-25T06:14:08.037757091Z 2023-08-25 06:14:08.025 INFO 1 --- [azure.com:10255] org.mongodb.driver.connection : Opened connection [connectionId{localValue:1, serverValue:1734611606}] to basyx.mongo.cosmos.azure.com:10255
2023-08-25T06:14:08.037835292Z 2023-08-25 06:14:08.029 INFO 1 --- [azure.com:10255] org.mongodb.driver.connection : Opened connection [connectionId{localValue:2, serverValue:197268065}] to basyx.mongo.cosmos.azure.com:10255
2023-08-25T06:14:08.039777114Z 2023-08-25 06:14:08.039 INFO 1 --- [azure.com:10255] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=basyx-aas-env-v2-mongodb.mongo.cosmos.azure.com:10255, type=REPLICA_SET_PRIMARY, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=8, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=905798693, setName='globaldb', canonicalAddress=basyx:10255, hosts=[basyx:10255', tagSet=TagSet{[Tag{name='region', value='West Europe'}]}, electionId=null, setVersion=1, topologyVersion=null, lastWriteDate=null, lastUpdateTimeNanos=3351943212909546}
2023-08-25T06:14:08.057815211Z 2023-08-25 06:14:08.057 INFO 1 --- [azure.com:10255] org.mongodb.driver.cluster : Adding discovered server basyx:10255 to client view of cluster
2023-08-25T06:14:08.059428028Z 2023-08-25 06:14:08.049 INFO 1 --- [ main] org.mongodb.driver.cluster : No server chosen by com.mongodb.client.internal.MongoClientDelegate$1@21f9277b from cluster description ClusterDescription{type=REPLICA_SET, connectionMode=MULTIPLE, serverDescriptions=[ServerDescription{address=basyx:10255, type=UNKNOWN, state=CONNECTING}]}. Waiting for 30000 ms before timing out
2023-08-25T06:14:08.068588128Z 2023-08-25 06:14:08.067 INFO 1 --- [azure.com:10255] org.mongodb.driver.cluster : Server basyx:10255 is no longer a member of the replica set. Removing from client view of cluster.
2023-08-25T06:14:08.090806571Z 2023-08-25 06:14:08.090 INFO 1 --- [azure.com:10255] org.mongodb.driver.cluster : Setting max set version to 1 from replica set primary basyx:10255
2023-08-25T06:14:08.090968273Z 2023-08-25 06:14:08.090 INFO 1 --- [azure.com:10255] org.mongodb.driver.cluster : Discovered replica set primary basyx:10255
2023-08-25T06:14:08.159940826Z 2023-08-25 06:14:08.159 INFO 1 --- [azure.com:10255] org.mongodb.driver.connection : Opened connection [connectionId{localValue:3, serverValue:1704237709}] to basyx:10255
2023-08-25T06:14:08.160302430Z 2023-08-25 06:14:08.160 INFO 1 --- [azure.com:10255] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=basyx:10255, type=REPLICA_SET_PRIMARY, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=8, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=65901720, setName='globaldb', canonicalAddress=basyx:10255, hosts=[basyx:10255], passives=[], arbiters=[], primary='basyx:10255', tagSet=TagSet{[Tag{name='region', value='West Europe'}]}, electionId=null, setVersion=1, topologyVersion=null, lastWriteDate=null, lastUpdateTimeNanos=3351943347862620}
2023-08-25T06:14:08.161261840Z 2023-08-25 06:14:08.161 INFO 1 --- [azure.com:10255] org.mongodb.driver.cluster : Discovered replica set primary basyx:10255
2023-08-25T06:14:08.167388407Z 2023-08-25 06:14:08.167 INFO 1 --- [azure.com:10255] org.mongodb.driver.connection : Opened connection [connectionId{localValue:4, serverValue:2002059060}] to basyx:10255
2023-08-25T06:14:08.495871095Z 2023-08-25 06:14:08.495 INFO 1 --- [ main] org.mongodb.driver.connection : Opened connection [connectionId{localValue:5, serverValue:1323565871}] to basyx:10255
2023-08-25T06:14:08.656309947Z 2023-08-25 06:14:08.655 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aasRepositoryApiHTTPController' defined in URL [jar:file:/application/basyxExecutable.jar!/BOOT-INF/lib/basyx.aasrepository-http-2.0.0-SNAPSHOT.jar!/org/eclipse/digitaltwin/basyx/aasrepository/http/AasRepositoryApiHTTPController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getAasRepository' defined in class path resource [org/eclipse/digitaltwin/basyx/aasrepository/component/AasRepositoryConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.eclipse.digitaltwin.basyx.aasrepository.AasRepository]: Factory method 'getAasRepository' threw exception; nested exception is org.springframework.data.mongodb.UncategorizedMongoDbException: Command failed with error 85 (IndexOptionsConflict): 'Index with name _id_1 already exists with different options.' on server basyx:10255. The full response is {"ok": 0.0, "errmsg": "Index with name _id_1 already exists with different options.", "code": 85, "codeName": "IndexOptionsConflict"}; nested exception is com.mongodb.MongoCommandException: Command failed with error 85 (IndexOptionsConflict): 'Index with name _id_1 already exists with different options.' on server basyx:10255. The full response is {"ok": 0.0, "errmsg": "Index with name _id_1 already exists with different options.", "code": 85, "codeName": "IndexOptionsConflict"}
2023-08-25T06:14:08.690816824Z 2023-08-25 06:14:08.690 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-08-25T06:14:08.744935015Z 2023-08-25 06:14:08.744 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener :
2023-08-25T06:14:08.744982516Z
2023-08-25T06:14:08.744989616Z Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-08-25T06:14:08.833045078Z 2023-08-25 06:14:08.826 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed
2023-08-25T06:14:08.833130179Z
2023-08-25T06:14:08.833152479Z org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aasRepositoryApiHTTPController' defined in URL [jar:file:/application/basyxExecutable.jar!/BOOT-INF/lib/basyx.aasrepository-http-2.0.0-SNAPSHOT.jar!/org/eclipse/digitaltwin/basyx/aasrepository/http/AasRepositoryApiHTTPController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getAasRepository' defined in class path resource [org/eclipse/digitaltwin/basyx/aasrepository/component/AasRepositoryConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.eclipse.digitaltwin.basyx.aasrepository.AasRepository]: Factory method 'getAasRepository' threw exception; nested exception is org.springframework.data.mongodb.UncategorizedMongoDbException: Command failed with error 85 (IndexOptionsConflict): 'Index with name _id_1 already exists with different options.' on server basyx:10255. The full response is {"ok": 0.0, "errmsg": "Index with name _id_1 already exists with different options.", "code": 85, "codeName": "IndexOptionsConflict"}; nested exception is com.mongodb.MongoCommandException: Command failed with error 85 (IndexOptionsConflict): 'Index with name _id_1 already exists with different options.' on server basyx:10255. The full response is {"ok": 0.0, "errmsg": "Index with name _id_1 already exists with different options.", "code": 85, "codeName": "IndexOptionsConflict"}
2023-08-25T06:14:08.833174779Z at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833181779Z at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833186379Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833190579Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833194879Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833199779Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833204080Z at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833208280Z at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833212580Z at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833216780Z at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833221080Z at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833225280Z at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920) ~[spring-context-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833229580Z at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833233980Z at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) ~[spring-boot-2.7.10.jar!/:2.7.10]
2023-08-25T06:14:08.833242880Z at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) ~[spring-boot-2.7.10.jar!/:2.7.10]
2023-08-25T06:14:08.833247180Z at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) ~[spring-boot-2.7.10.jar!/:2.7.10]
2023-08-25T06:14:08.833251480Z at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) ~[spring-boot-2.7.10.jar!/:2.7.10]
2023-08-25T06:14:08.833255580Z at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303) ~[spring-boot-2.7.10.jar!/:2.7.10]
2023-08-25T06:14:08.833259780Z at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292) ~[spring-boot-2.7.10.jar!/:2.7.10]
2023-08-25T06:14:08.833263880Z at org.eclipse.digitaltwin.basyx.aasenvironment.component.AasEnvironmentComponent.main(AasEnvironmentComponent.java:42) ~[classes!/:2.0.0-SNAPSHOT]
2023-08-25T06:14:08.833268080Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
2023-08-25T06:14:08.833272180Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
2023-08-25T06:14:08.833276280Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
2023-08-25T06:14:08.833280380Z at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
2023-08-25T06:14:08.833284480Z at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[basyxExecutable.jar:2.0.0-SNAPSHOT]
2023-08-25T06:14:08.833288680Z at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[basyxExecutable.jar:2.0.0-SNAPSHOT]
2023-08-25T06:14:08.833292881Z at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[basyxExecutable.jar:2.0.0-SNAPSHOT]
2023-08-25T06:14:08.833296981Z at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65) ~[basyxExecutable.jar:2.0.0-SNAPSHOT]
2023-08-25T06:14:08.833301781Z Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getAasRepository' defined in class path resource [org/eclipse/digitaltwin/basyx/aasrepository/component/AasRepositoryConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.eclipse.digitaltwin.basyx.aasrepository.AasRepository]: Factory method 'getAasRepository' threw exception; nested exception is org.springframework.data.mongodb.UncategorizedMongoDbException: Command failed with error 85 (IndexOptionsConflict): 'Index with name _id_1 already exists with different options.' on server basyx:10255. The full response is {"ok": 0.0, "errmsg": "Index with name _id_1 already exists with different options.", "code": 85, "codeName": "IndexOptionsConflict"}; nested exception is com.mongodb.MongoCommandException: Command failed with error 85 (IndexOptionsConflict): 'Index with name _id_1 already exists with different options.' on server basyx:10255. The full response is {"ok": 0.0, "errmsg": "Index with name _id_1 already exists with different options.", "code": 85, "codeName": "IndexOptionsConflict"}
2023-08-25T06:14:08.833312381Z at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833316981Z at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833321081Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833325381Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833329681Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833333881Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833338281Z at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833342581Z at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833346681Z at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833350881Z at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833354981Z at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833359181Z at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833363581Z at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833367781Z at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833371881Z at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833376081Z ... 27 common frames omitted
2023-08-25T06:14:08.833380381Z Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.eclipse.digitaltwin.basyx.aasrepository.AasRepository]: Factory method 'getAasRepository' threw exception; nested exception is org.springframework.data.mongodb.UncategorizedMongoDbException: Command failed with error 85 (IndexOptionsConflict): 'Index with name _id_1 already exists with different options.' on server basyx:10255. The full response is {"ok": 0.0, "errmsg": "Index with name _id_1 already exists with different options.", "code": 85, "codeName": "IndexOptionsConflict"}; nested exception is com.mongodb.MongoCommandException: Command failed with error 85 (IndexOptionsConflict): 'Index with name _id_1 already exists with different options.' on server basyx:10255. The full response is {"ok": 0.0, "errmsg": "Index with name _id_1 already exists with different options.", "code": 85, "codeName": "IndexOptionsConflict"}
2023-08-25T06:14:08.833390682Z at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833394982Z at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833399182Z ... 41 common frames omitted
2023-08-25T06:14:08.833403182Z Caused by: org.springframework.data.mongodb.UncategorizedMongoDbException: Command failed with error 85 (IndexOptionsConflict): 'Index with name _id_1 already exists with different options.' on server basyx:10255. The full response is {"ok": 0.0, "errmsg": "Index with name _id_1 already exists with different options.", "code": 85, "codeName": "IndexOptionsConflict"}; nested exception is com.mongodb.MongoCommandException: Command failed with error 85 (IndexOptionsConflict): 'Index with name _id_1 already exists with different options.' on server basy:10255. The full response is {"ok": 0.0, "errmsg": "Index with name _id_1 already exists with different options.", "code": 85, "codeName": "IndexOptionsConflict"}
2023-08-25T06:14:08.833409182Z at org.springframework.data.mongodb.core.MongoExceptionTranslator.translateExceptionIfPossible(MongoExceptionTranslator.java:140) ~[spring-data-mongodb-3.4.10.jar!/:3.4.10]
2023-08-25T06:14:08.833413282Z at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConvertRuntimeException(MongoTemplate.java:3029) ~[spring-data-mongodb-3.4.10.jar!/:3.4.10]
2023-08-25T06:14:08.833417482Z at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:581) ~[spring-data-mongodb-3.4.10.jar!/:3.4.10]
2023-08-25T06:14:08.833421582Z at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:564) ~[spring-data-mongodb-3.4.10.jar!/:3.4.10]
2023-08-25T06:14:08.833425882Z at org.springframework.data.mongodb.core.DefaultIndexOperations.execute(DefaultIndexOperations.java:212) ~[spring-data-mongodb-3.4.10.jar!/:3.4.10]
2023-08-25T06:14:08.833444782Z at org.springframework.data.mongodb.core.DefaultIndexOperations.ensureIndex(DefaultIndexOperations.java:121) ~[spring-data-mongodb-3.4.10.jar!/:3.4.10]
2023-08-25T06:14:08.833451482Z at org.eclipse.digitaltwin.basyx.aasrepository.MongoDBAasRepository.configureIndexForAasId(MongoDBAasRepository.java:71) ~[basyx.aasrepository-backend-mongodb-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
2023-08-25T06:14:08.833455882Z at org.eclipse.digitaltwin.basyx.aasrepository.MongoDBAasRepository.<init>(MongoDBAasRepository.java:66) ~[basyx.aasrepository-backend-mongodb-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
2023-08-25T06:14:08.833464782Z at org.eclipse.digitaltwin.basyx.aasrepository.MongoDBAasRepositoryFactory.create(MongoDBAasRepositoryFactory.java:57) ~[basyx.aasrepository-backend-mongodb-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
2023-08-25T06:14:08.833469282Z at org.eclipse.digitaltwin.basyx.aasrepository.feature.DecoratedAasRepositoryFactory.create(DecoratedAasRepositoryFactory.java:48) ~[basyx.aasrepository-core-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
2023-08-25T06:14:08.833473482Z at org.eclipse.digitaltwin.basyx.aasrepository.component.AasRepositoryConfiguration.getAasRepository(AasRepositoryConfiguration.java:53) ~[basyx.aasrepository.component-2.0.0-SNAPSHOT.jar!/:2.0.0-SNAPSHOT]
2023-08-25T06:14:08.833478583Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
2023-08-25T06:14:08.833482783Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
2023-08-25T06:14:08.833486883Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
2023-08-25T06:14:08.833490983Z at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
2023-08-25T06:14:08.833494983Z at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.26.jar!/:5.3.26]
2023-08-25T06:14:08.833499183Z ... 42 common frames omitted
2023-08-25T06:14:08.833503683Z Caused by: com.mongodb.MongoCommandException: Command failed with error 85 (IndexOptionsConflict): 'Index with name _id_1 already exists with different options.' on server basyx:10255. The full response is {"ok": 0.0, "errmsg": "Index with name _id_1 already exists with different options.", "code": 85, "codeName": "IndexOptionsConflict"}
2023-08-25T06:14:08.833508683Z at com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:198) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833512783Z at com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:413) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833519483Z at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:337) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833523683Z at com.mongodb.internal.connection.UsageTrackingInternalConnection.sendAndReceive(UsageTrackingInternalConnection.java:116) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833528283Z at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection.sendAndReceive(DefaultConnectionPool.java:644) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833532883Z at com.mongodb.internal.connection.CommandProtocolImpl.execute(CommandProtocolImpl.java:71) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833536983Z at com.mongodb.internal.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:240) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833541183Z at com.mongodb.internal.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:226) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833549283Z at com.mongodb.internal.connection.DefaultServerConnection.command(DefaultServerConnection.java:126) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833553683Z at com.mongodb.internal.connection.DefaultServerConnection.command(DefaultServerConnection.java:116) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833557883Z at com.mongodb.internal.connection.DefaultServer$OperationCountTrackingConnection.command(DefaultServer.java:345) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833561983Z at com.mongodb.internal.operation.CommandOperationHelper.executeCommand(CommandOperationHelper.java:250) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833566684Z at com.mongodb.internal.operation.CreateIndexesOperation$1.call(CreateIndexesOperation.java:197) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833570984Z at com.mongodb.internal.operation.CreateIndexesOperation$1.call(CreateIndexesOperation.java:192) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833575184Z at com.mongodb.internal.operation.OperationHelper.withConnectionSource(OperationHelper.java:556) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833579384Z at com.mongodb.internal.operation.OperationHelper.withConnection(OperationHelper.java:547) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833583584Z at com.mongodb.internal.operation.CreateIndexesOperation.execute(CreateIndexesOperation.java:192) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833587784Z at com.mongodb.internal.operation.CreateIndexesOperation.execute(CreateIndexesOperation.java:72) ~[mongodb-driver-core-4.6.1.jar!/:na]
2023-08-25T06:14:08.833591984Z at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:212) ~[mongodb-driver-sync-4.6.1.jar!/:na]
2023-08-25T06:14:08.833596084Z at com.mongodb.client.internal.MongoCollectionImpl.executeCreateIndexes(MongoCollectionImpl.java:848) ~[mongodb-driver-sync-4.6.1.jar!/:na]
2023-08-25T06:14:08.833600284Z at com.mongodb.client.internal.MongoCollectionImpl.createIndexes(MongoCollectionImpl.java:831) ~[mongodb-driver-sync-4.6.1.jar!/:na]
2023-08-25T06:14:08.833604484Z at com.mongodb.client.internal.MongoCollectionImpl.createIndexes(MongoCollectionImpl.java:826) ~[mongodb-driver-sync-4.6.1.jar!/:na]
2023-08-25T06:14:08.833608684Z at com.mongodb.client.internal.MongoCollectionImpl.createIndex(MongoCollectionImpl.java:811) ~[mongodb-driver-sync-4.6.1.jar!/:na]
2023-08-25T06:14:08.833612884Z at org.springframework.data.mongodb.core.DefaultIndexOperations.lambda$ensureIndex$0(DefaultIndexOperations.java:131) ~[spring-data-mongodb-3.4.10.jar!/:3.4.10]
2023-08-25T06:14:08.833617084Z at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:579) ~[spring-data-mongodb-3.4.10.jar!/:3.4.10]
2023-08-25T06:14:08.833621284Z ... 55 common frames omitted
2023-08-25T06:14:08.833625284Z
So it seems that the cosmosDB is complaining about duplicate indexes: Index with name _id_1 already exists with different options.
Do you maybe have here also an workaround?
from basyx-java-server-sdk.
@lenaxus I can't test with Azure. Is your database fresh and without anydata? First try to run a single component like concept description.
At the end, maybe Azure behaviour is different.
from basyx-java-server-sdk.
Yes, our database is fresh and without any data. After starting the basyx environment it also creates the first collection assetAdministrationShell in there successfully but the other collections are missing.
We tried to run a single component eclipsebasyx/conceptdescription-repository:2.0.0-SNAPSHOT but there we have the same Index with name _id_1 already exists with different options.
exception.
from basyx-java-server-sdk.
No clue. With mongodb atlas it is fine. Maybe put the information of currently generated collections and their index information so other people can debug it.
from basyx-java-server-sdk.
Thanks anyway for the help @mhrimaz!
The currently generated collections and their index look like that:
- A aasenvironments database is created
- In this DB there exists (only) one collection: assetAdministrationShell
- This collection has one index:
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"name" : "_id_",
"ns" : "aasenvironments.assetAdministrationShell"
}
]
from basyx-java-server-sdk.
Fixed in the referenced PR. We will release an updated image this week containing the fix.
from basyx-java-server-sdk.
Related Issues (20)
- Docker HealthCheck failing after enabling authorization HOT 2
- Event Bus for Registry and Environment HOT 4
- Graceful failure/conflict strategy on finding existing semantic IDs in MongoDB HOT 3
- Compilation failure when mvn install HOT 2
- How to add an example file to 'test_demo_full_example.xml' HOT 8
- Upload AAS endpoint CORS HOT 5
- 424 Error when delegating an Operation HOT 5
- Superpath methods missing from the AAS Repository? HOT 1
- Internal Server error on updating $value of file SubmodelElement HOT 7
- SubmodelElementCollection valueOnly serialization HOT 1
- Error on retrieving files from the /attachment endpoint after restarting BaSyx HOT 1
- Dependency Conflict with Spring Boot HOT 2
- Registry - RBAC Authorization HOT 5
- In submodel service, what's the purpose of `inputVariables` and `outputVariables` of the operation SME? HOT 2
- Submodel service cannot create and update submodel elements HOT 3
- AASX contains wrong Relationship namespace for Asset Interfaces Description (Version 1.0) HOT 3
- AASX file cannot be uploaded again after deleting the AASs and Submodels HOT 3
- Multiple Repository Endpoints For Registry Integration
- GUI "Error while parsing the Submodel References!" HOT 6
- Error on starting AAS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basyx-java-server-sdk.