opentargets / standalone-deployment-platform

Standalone local deployment for Open Targets Platform
Apache License 2.0
4 stars 1 forks source link

rahulmaurya1507@gmail.com #5

Closed rahulmaurya1507 closed 1 month ago

rahulmaurya1507 commented 1 month ago

I am trying to run the standalone-deployment-platform repository to access the open-targets UI from my local.

This is the docker compose content for ot-es container which is causing some java.lang.UnsupportedOperationException: sun.misc.Unsafe unavailable error. I have tried to resolve this issue but have been unsuccessful and got nowhere close to resolving it.

  elasticsearch:
    image: ${OTOPS_PROFILE_ELASTIC_SEARCH_DOCKER_IMAGE_NAME}:${OTOPS_PROFILE_ELASTIC_SEARCH_DOCKER_IMAGE_TAG}
    container_name: ot-es
    ports:
      - "9200:9200"
      - "9300:9600"
    environment:
      - "path.data=/usr/share/opensearch/data"
      - "path.logs=/usr/share/opensearch/logs"
      - "cluster.name=ot-es-cluster"
      - "network.host=0.0.0.0"
      - "discovery.type=single-node"
      - "discovery.seed_hosts=[]"
      - "bootstrap.memory_lock=true"
      - "search.max_open_scroll_context=5000"
      - "DISABLE_SECURITY_PLUGIN=true"
      - "logger.level=DEBUG"
      - "OPENSEARCH_JAVA_OPTS=-Xms2g -Xmx4g"
    volumes:
      - "esdata:/usr/share/opensearch/data"
    ulimits:
      memlock: -1
      nofile: 65536
    healthcheck:
      test: ["CMD", "curl", "http://localhost:9200/_cluster/health?wait_for_status=green"]
      interval: 30s
      timeout: 30s
      retries: 5
      start_period: 30s
    networks:
      - ot-platform

I am attaching the logs generated from the ot-es container for the referance. Kindly help me with this regards. @ ot-es.log

mbdebian commented 1 month ago

Thanks for submitting the issue @rahulmaurya1507

It looks like a problem with accessing the underlying filesystem from the container through the docker volume.

Would you mind providing more context, e.g. profile being used, host OS and version, etc?

Thanks

rahulmaurya1507 commented 1 month ago

Thank you for your prompt response.

Sharing additional details:

  1. Profiles: I used multiple profiles config.dev, config.2403, config.2406.
  2. OS & Version: Ubuntu 22.04 and Ubuntu 24.04.
  3. Docker Version: 27.2.1, build 9e34c9b

After trying multiple profiles and trying with update compose file with the help of ChatGPT for a possible solution related to Netty (one example update in environment: "OPENSEARCH_JAVA_OPTS=-Xms2g -Xmx4g -Dio.netty.noUnsafe=true --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED") and other similar possible updates, but I could not make it work.

GPT was giving me possible solutions based on what I had given as errors present in the shared log file.

Please do let me know if any additional information is required.

kenibrewer commented 1 month ago

I've been getting the same error messages as well. Also from Ubuntu 22.04 but using docker version 24.0.7.

kenibrewer commented 1 month ago

Here are the logs of what I'm getting with my deploy. It also includes the java.lang.UnsupportedOperationException: sun.misc.Unsafe unavailable message.

ot-es.log

rahulmaurya1507 commented 1 month ago

Dear @mbdebian, has there been any update in the issue? I tried resolving it but still no success.

remo87 commented 1 month ago

it seems like a similar issue to 6

remo87 commented 1 month ago

@rahulmaurya1507 Issue 5 seems to something different to your issue but in your case the command chmod 777 -R deployment should work. This is an issue with the folder permissions. We'll create an item to work in a permanent solution for Linux.

remo87 commented 1 month ago

@rahulmaurya1507 @kenibrewer we've done a fix that might help you if you pull the latest version

rahulmaurya1507 commented 1 month ago

Sounds great. I'll try it out.

Thanks

On Thu, 3 Oct 2024, 20:09 remo87, @.***> wrote:

@rahulmaurya1507 https://github.com/rahulmaurya1507 we've done a fix that might help you if you pull the latest version

— Reply to this email directly, view it on GitHub https://github.com/opentargets/standalone-deployment-platform/issues/5#issuecomment-2391594784, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD46UMBMW4KLLMQC46FEZITZZVJINAVCNFSM6AAAAABORT7OECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRGU4TINZYGQ . You are receiving this because you were mentioned.Message ID: @.*** com>

mbdebian commented 1 month ago

This is now addressed