From 3728649900c3539f37069b2ee9b677b7fe2fd5ed Mon Sep 17 00:00:00 2001 From: Michael Simard Date: Wed, 3 Dec 2025 19:07:04 -0600 Subject: [PATCH] Fix permission denied error on Unraid deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolved Docker container startup failures on Unraid /boot partition. Changes: - Remove development volume mount from docker-compose.yml - Container now uses files baked into image during build - Remove obsolete docker-compose version attribute - Add permission fix in deploy.sh for /boot partition The volume mount was causing permission issues by exposing /boot files with restrictive permissions directly to the container. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- deploy.sh | 5 +++++ docker-compose.yml | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy.sh b/deploy.sh index 7865443..6ee2d0b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -37,6 +37,11 @@ else cd ${REMOTE_PATH} fi +# Fix file permissions for Docker build (required for /boot partition) +echo "Fixing file permissions..." +chmod -R 755 ${REMOTE_PATH} +chmod 644 ${REMOTE_PATH}/*.py ${REMOTE_PATH}/*.txt ${REMOTE_PATH}/*.md 2>/dev/null || true + # Check if .env exists if [ ! -f .env ]; then echo "WARNING: .env file not found!" diff --git a/docker-compose.yml b/docker-compose.yml index 3306645..b81486b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.8' - services: discord-stock-bot: build: . @@ -9,9 +7,6 @@ services: - .env environment: - TZ=America/New_York - volumes: - # Mount source code for development (comment out for production) - - ./:/app logging: driver: "json-file" options: