Skip to content

Fatal error, can't open config file '/usr/local/etc/redis/redis.conf': Permission denied #446

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

Open
janusn opened this issue May 6, 2025 · 1 comment
Labels

Comments

@janusn
Copy link

janusn commented May 6, 2025

Since updated to image tag '8.0.0', 'latest' or 'bookworm' the container cannot start with the following error logged:

 1:C 06 May 2025 16:14:37.089 # Fatal error, can't open config file '/usr/local/etc/redis/redis.conf': Permission denied

It runs fine with image tagged '7.4.3'

Environment:
Host:

# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

compose.yaml:

---
services:
  redis:
    image: "redis:latest"
    container_name: nextcloud-redis
    deploy:
      resources:
        limits:
          memory: 128M
    command: /usr/local/bin/redis-server /usr/local/etc/redis/redis.conf
    sysctls:
      - net.core.somaxconn=65535
    volumes:
      - "./config:/usr/local/etc/redis"
      - "redis-data:/data"
    restart: unless-stopped
@adamiBs
Copy link
Collaborator

adamiBs commented May 7, 2025

Hi thanks for opening this issue. Looking into this.

@adamiBs adamiBs added the bug label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants