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

Permission Denied Issues in Dockerized Cardano Node with Ratarmount Integration #147

Open
Ishannaik opened this issue Jan 27, 2025 · 1 comment

Comments

@Ishannaik
Copy link

Ishannaik commented Jan 27, 2025

I am facing issues running a Dockerized Cardano Node where I'm integrating ratarmount to handle compressed immutable DB files. The container keeps crashing due to permission errors

  1. Docker Compose Configuration:

    services:
      cardano-node:
        image: ghcr.io/intersectmbo/cardano-node:10.1.4
        container_name: cardano-node
        restart: always
        ports:
          - "3001:3001"
          - "12798:12798"
        volumes:
          - ./config:/config
          - ./db:/db
          - ./scripts:/scripts
          - ./socket:/socket
        command: >
          run
          --topology /config/topology.json
          --database-path /db
          --socket-path /socket/node.socket
          --host-addr 0.0.0.0
          --port 3001
          --config /config/config.json
  2. Ratarmount Command Used:

    ratarmount --write-overlay /home/pixashield/cardano-node/db/ratar/writeoverlay \
               /home/pixashield/cardano-node/db/ratar/archive/*.tar.xz \
               /home/pixashield/cardano-node/db/immutable
  3. Key Issues:

    • Container restarts due to FsInsufficientPermissions for /db/immutable.
  4. Environment:

    • Host: Debian
    • Docker
    • Ratarmount: Latest (via pip in a conda environment)
  5. Steps Tried:

    • Ensured correct ownership (chown -R 1000:1001 ./db).
    • Verified execution permissions inside the container.
    • Enabled privileged: true for the container.
    • Mounted volumes with appropriate paths and permissions.
  6. Error Logs:

    • On startup:
      FsInsufficientPermissions for /db/immutable: Permission denied
      
  7. Expected Behavior:

    • The container should correctly access the mounted volumes and process the immutable DB files.

Request:

  • How can I properly configure ratarmount and Docker to avoid these permission issues?
  • Are there known limitations with mounting volumes managed by ratarmount into Docker?

reference url: https://forum.cardano.org/t/proof-of-concept-compressed-chain-database/119263/

@Ishannaik Ishannaik changed the title Permission Denied and /usr/local/bin/env Issues in Dockerized Cardano Node with Ratarmount Integration Permission Denied Issues in Dockerized Cardano Node with Ratarmount Integration Jan 27, 2025
@mxmlnkn
Copy link
Owner

mxmlnkn commented Jan 27, 2025

Are there known limitations with mounting volumes managed by ratarmount into Docker?

Yes, the notes about enabling FUSE inside Docker apply:

I.e., did you try adding: --cap-add SYS_ADMIN --device /dev/fuse to the Docker call?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants