Skip to content
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

Trying to index RO filesystem, getting " index has read-only-allow-delete block" #487

Open
jaxjexjox opened this issue Jul 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jaxjexjox
Copy link

Ubuntu 22.04 host.
RO SMB mounted mapping out of /mnt/ (it's critical data, no room for mistakes)

Docker compose:

version: "3"

services:
  elasticsearch:
    image: elasticsearch:7.17.9
    restart: unless-stopped
    volumes:
      # This directory must have 1000:1000 permissions (or update PUID & PGID below)
      - ./elastisearch-sist2-es-data/:/usr/share/elasticsearch/data
    environment:
      - "discovery.type=single-node"
      - "ES_JAVA_OPTS=-Xms2g -Xmx2g"
      - "PUID=1000"
      - "PGID=1000"
  sist2-admin:
    image: simon987/sist2:3.4.2-x64-linux
    restart: unless-stopped
    volumes:
      - ./elastisearch-sist2-admin-data/:/sist2-admin/
      - /mnt/DataOnARRAY:/DataOnARRAY
    ports:
      - 4090:4090
      # NOTE: Don't expose this port publicly!
      - 8055:8080
    working_dir: /root/sist2-admin/
    entrypoint: python3
    command:
      - /root/sist2-admin/sist2_admin/app.py

Added /DataOnARRAY as a mount inside the container
Can :
sudo docker exec (Container name) and perform ls to see contents.
Unsure what this could be

@jaxjexjox jaxjexjox added the bug Something isn't working label Jul 3, 2024
@jtvn
Copy link

jtvn commented Jul 26, 2024

@jaxjexjox
I have it running with read-only access. But I have configured the mount as such (so Docker also knows it is read-only):

/mnt/DataOnARRAY:/DataOnARRAY:ro

My full mount path is:

/data-r1:/data:ro

Can you try that - and also clearly specify what you have tried? Maybe attach a log if it does not work :)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants