diff --git a/Dockerfile b/Dockerfile index 821c0a6e..91d44214 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,8 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . /app/ # Create necessary directories -RUN mkdir -p /config/settings /config/stateful /config/user /tmp/huntarr-logs -RUN chmod -R 755 /config /tmp/huntarr-logs +RUN mkdir -p /config/settings /config/stateful /config/user /config/logs +RUN chmod -R 755 /config # Set environment variables ENV PYTHONPATH=/app diff --git a/README.md b/README.md index fa5166ef..01ea8717 100644 --- a/README.md +++ b/README.md @@ -327,7 +327,7 @@ sudo systemctl start huntarr - **Connection Problems**: Ensure the API URL is accessible from where you're running the application - **Login Issues**: If you forget your password, you will need to delete the credentials file at `/config/user/credentials.json` and restart the container - **Web Interface Not Loading**: Make sure port 9705 is exposed in your Docker configuration and not blocked by a firewall -- **Logs**: Check the container logs with `docker logs huntarr` if running in Docker, or use the web interface +- **Logs**: Check the container logs with `docker logs huntarr` if running in Docker, or check the log files in `/config/logs/` within the container/volume, or use the web interface. - **Debug Mode**: Enable Debug Mode in the Advanced Settings to see detailed API responses and process flow - **Settings Not Persisting**: Verify your volume mount for `/config` is configured correctly - **State Files**: The application stores state in `/config/stateful/` - if something seems stuck, you can try deleting these files diff --git a/docker-compose.yml b/docker-compose.yml index 5fa85830..5ad77158 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,8 +8,6 @@ services: - "9705:9705" volumes: - huntarr-config:/config - - /tmp/huntarr-logs:/tmp/huntarr-logs - - /tmp/huntarr-state:/tmp/huntarr-state environment: - TZ=America/New_York restart: unless-stopped diff --git a/src/primary/utils/logger.py b/src/primary/utils/logger.py index 19d0dc18..c29e46ed 100644 --- a/src/primary/utils/logger.py +++ b/src/primary/utils/logger.py @@ -11,7 +11,7 @@ import pathlib from typing import Dict, Optional # Create log directory -LOG_DIR = pathlib.Path("/tmp/huntarr-logs") +LOG_DIR = pathlib.Path("/config/logs") # Changed path LOG_DIR.mkdir(parents=True, exist_ok=True) # Default log file for general messages @@ -19,10 +19,10 @@ MAIN_LOG_FILE = LOG_DIR / "huntarr.log" # App-specific log files APP_LOG_FILES = { - "sonarr": LOG_DIR / "huntarr-sonarr.log", - "radarr": LOG_DIR / "huntarr-radarr.log", - "lidarr": LOG_DIR / "huntarr-lidarr.log", - "readarr": LOG_DIR / "huntarr-readarr.log" + "sonarr": LOG_DIR / "sonarr.log", # Updated filename + "radarr": LOG_DIR / "radarr.log", # Updated filename + "lidarr": LOG_DIR / "lidarr.log", # Updated filename + "readarr": LOG_DIR / "readarr.log" # Updated filename } # Global logger instances