Coder Social home page Coder Social logo

Comments (8)

FrankSchnicke avatar FrankSchnicke commented on July 21, 2024 1

The fix was merged and the SNAPSHOT images were updated.

from basyx-java-server-sdk.

FrankSchnicke avatar FrankSchnicke commented on July 21, 2024

Thank you very much for pointing this out. We are aware of this issue - Azure Cosmos DB does not support text based indexing which we are using at the moment. We will look for alternatives and update the images.

from basyx-java-server-sdk.

mm-mse avatar mm-mse commented on July 21, 2024

The new Docker images did not work for me. I set up a Azure Cosmos DB for Mongo DB and tried to connect a submodel repository and an aas repository. Both fail, the logs are attached.

docker-compose:

networks:
  basyx:
    internal: false

services:
  submodel-repo:
    container_name: submodel-repo
    image: eclipsebasyx/submodel-repository:2.0.0-SNAPSHOT
    environment:
      BASYX_BACKEND: MongoDB
      SPRING_DATA_MONGODB_DATABASE: submodels     
      SPRING_DATA_MONGODB_URI: mongodb://${MONGODB_USERNAME}:${MONGODB_PASSWORD}@${MONGODB_HOST}:${MONGODB_PORT}/?tls=true
    ports:
      - 8081:8081
    networks:
      - basyx

  aas-repo:
    container_name: aas-repo  
    image: eclipsebasyx/aas-repository:2.0.0-SNAPSHOT
    ports:
      - 8082:8081
    environment:
      BASYX_BACKEND: MongoDB
      SPRING_DATA_MONGODB_DATABASE: shells     
      SPRING_DATA_MONGODB_URI: mongodb://${MONGODB_USERNAME}:${MONGODB_PASSWORD}@${MONGODB_HOST}:${MONGODB_PORT}/?tls=true
    networks:
      - basyx

aas-repo.log
submodel-repo.log

from basyx-java-server-sdk.

FrankSchnicke avatar FrankSchnicke commented on July 21, 2024

Unfortunately CosmosDB is again handling something differently than MongoDB. This issue was already reported in a separate ticket, see #80

from basyx-java-server-sdk.

mm-mse avatar mm-mse commented on July 21, 2024

Thanks for the quick answer and pointing that out. For the AAS Repo I am having the same issue as in the other ticket but the submodel repo does not even connect to Azure Cosmos DB. There seems to be another issue:

The bean 'getSubmodelServiceFactory', defined in class path resource [org/eclipse/digitaltwin/basyx/submodelrepository/MongoDBSubmodelRepositoryConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/eclipse/digitaltwin/basyx/submodelrepository/component/SubmodelRepositoryConfiguration.class] and overriding is disabled.

from basyx-java-server-sdk.

mhrimaz avatar mhrimaz commented on July 21, 2024

@mm-mse Are you trying to run directly the code form IDE or you are using the Docker? Is your docker image updated?
I haven't tested it with the docker, but I can run the code directly without any issue.

Regarding Azure Cosmos DB compatibility issue, follow the other issue. #80

from basyx-java-server-sdk.

FrankSchnicke avatar FrankSchnicke commented on July 21, 2024

Thanks for the quick answer and pointing that out. For the AAS Repo I am having the same issue as in the other ticket but the submodel repo does not even connect to Azure Cosmos DB. There seems to be another issue:

The bean 'getSubmodelServiceFactory', defined in class path resource [org/eclipse/digitaltwin/basyx/submodelrepository/MongoDBSubmodelRepositoryConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/eclipse/digitaltwin/basyx/submodelrepository/component/SubmodelRepositoryConfiguration.class] and overriding is disabled.

This was fixed in PR #82. However, we did not push a new snapshot version until now. This will happen at the end of this week.

from basyx-java-server-sdk.

mm-mse avatar mm-mse commented on July 21, 2024

alright, thanks. I was using the latest docker image

from basyx-java-server-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.