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

posix storage driver: cannot open files #9909

Closed
wkloucek opened this issue Aug 24, 2024 · 2 comments
Closed

posix storage driver: cannot open files #9909

wkloucek opened this issue Aug 24, 2024 · 2 comments

Comments

@wkloucek
Copy link
Contributor

DISCLAIMER: this is a ticket I opened as a private person and not as an employee of ownCloud

Describe the bug

When using the posix storage driver with oCIS 6.3.0, I can't open files

Steps to reproduce

  1. start the docker-compose
  2. create a text file
  3. try to open it

Expected behavior

Being able to open and edit the file

Actual behavior

See a HTTP 404 status code

Setup

Following docker-compose:

---
services:
  ocis:
    image: owncloud/ocis-rolling:6.3.0
    entrypoint:
      - /bin/sh
    command: ["-c", "ocis init || true; ocis server"]
    environment:
      OCIS_URL: https://localhost:9200
      OCIS_LOG_LEVEL: info
      PROXY_TLS: "true"
      OCIS_INSECURE: "true"
      STORAGE_USERS_DRIVER: posix
    ports:
      - 9200:9200
    volumes:
      - ./data/ocis-config:/etc/ocis
      - ./data/ocis-data:/var/lib/ocis
    networks:
      - ocis
    logging:
      driver: "local"
    restart: always
@micbar
Copy link
Contributor

micbar commented Sep 2, 2024

@aduffeck @butonic Did you see that?

@aduffeck aduffeck self-assigned this Sep 10, 2024
aduffeck added a commit to aduffeck/reva that referenced this issue Sep 10, 2024
@aduffeck
Copy link
Contributor

The problem seems to be the missing id cache, The posix driver requires a shared cache so that storageprovider and dataprovider can always look up the paths for all ids.

Adding something like

      STORAGE_USERS_ID_CACHE_STORE: "nats-js-kv"
      STORAGE_USERS_ID_CACHE_STORE_NODES: "localhost:9233"

to your docker-compose.yml should fix the problem. And once cs3org/reva#4779 has been merged the driver will refuse to run without a shared cache.

aduffeck added a commit to aduffeck/reva that referenced this issue Sep 10, 2024
aduffeck added a commit to aduffeck/reva that referenced this issue Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants