Building A Fully Automated Media Server: How To Create An Arr Stack In CasaOS
An Arr stack in CasaOS is a collection of containerized media management applications that automate the downloading, organizing, and streaming of digital content through a unified, centralized dashboard. By leveraging Docker-based deployment within the CasaOS interface, users can achieve a high-availability media environment requiring minimal manual intervention for file management and library indexing.
Infrastructure Requirements and Pre-Deployment Checklist
Before initiating the deployment of your Arr stack, ensure your host hardware is optimized for persistent background processing. CasaOS serves as a simplified management layer for Docker, meaning your system stability depends on proper storage mapping and consistent network identity for each container.
- Essential Hardware: A dedicated x86_64 server or a high-performance ARM64 single-board computer (such as a Raspberry Pi 4 or 5) with at least 4GB of RAM.
- Storage Standards: A robust storage pool using a Union Filesystem or standard RAID configuration; ensure sufficient disk space for the media library and the underlying Docker volumes.
- Network Requirements: A static local IP address assigned to the host machine to prevent connection drops between the various Arr services.
- Software Prerequisites: CasaOS installed on a base Linux distribution, such as Debian 11 or 12, with active root access and necessary permissions for Docker daemon communication.
- Estimated Duration: Expect to spend between 45 and 90 minutes for initial installation, container configuration, and path mapping adjustments.
Orchestrating the Arr Stack Installation in CasaOS
The Arr stack consists of core components: Sonarr for television, Radarr for motion pictures, Prowlarr for indexer management, and Bazarr for subtitle synchronization. Follow these steps to standardize your deployment.
Step 1: Deploying the Foundation with Prowlarr
Prowlarr acts as the central hub for your indexers, meaning you only need to configure your tracker credentials once rather than repeating the process for every application.
- Navigate to your CasaOS dashboard and select the App Store.
- Search for Prowlarr and click the install button.
- Once the container is active, open the web interface and log in.
- Navigate to Settings and then Indexers to add your preferred trackers.
- Record your API key from the General settings page, as this will be required for linking Prowlarr to Sonarr and Radarr.
Step 2: Implementing Sonarr and Radarr
These applications handle the identification and download requests for your content.
- Install Sonarr and Radarr through the CasaOS App Store.
- Inside each application, navigate to the Connect menu.
- Link the applications to your download client (typically Transmission or qBittorrent, also installable via CasaOS).
- Configure the Indexers by providing the Prowlarr URL and the API key obtained in the previous step.
- Set your Root Folder path to the directory where your media is stored, ensuring the Docker container has read and write permissions to this path.
Step 3: Integrating Bazarr for Subtitle Automation
Bazarr automates the search and download of subtitles based on the media files already indexed by your Sonarr and Radarr databases.
- Install the Bazarr container from the App Store.
- Inside Bazarr settings, navigate to Sonarr and Radarr tabs.
- Input the URLs and API keys for both Sonarr and Radarr to allow Bazarr to pull your existing library lists.
- Configure your preferred subtitle providers and language profiles.
Pro-Tip: Always ensure your download client is configured to move completed files to a specific directory that is mapped as a volume in your media apps. This prevents a "disk full" error where the app thinks the file is still in the download folder while the media library remains empty.
Step 4: Finalizing Path Mappings and Permissions
The most common failure in an Arr stack is a mismatch between the Docker container path and the host filesystem path.
- Open the settings menu for each container in CasaOS.
- Verify that the volume mapping points to the correct root folder on your host OS.
- Ensure the User ID and Group ID environment variables match the user running the CasaOS service to prevent permission denied errors during file movement.
CasaOS is an amazing, beginner-friendly way to create a private cloud
Technical Parameters and Software Integration Matrix
The following table outlines the function and port requirements for the primary components of an automated media stack.
| Application | Primary Function | Default Port | Internal Data Dependency |
|---|---|---|---|
| Prowlarr | Indexer Management | 9696 | API Key Integration |
| Sonarr | TV Show Automation | 8989 | Download Client + Prowlarr |
| Radarr | Movie Automation | 7878 | Download Client + Prowlarr |
| Bazarr | Subtitle Sync | 6767 | Sonarr / Radarr Database |
| qBittorrent | Torrent Processing | 8080 | Sonarr / Radarr Webhook |
Troubleshooting Common Deployment Failures
Despite the automated nature of CasaOS, the complexity of Docker networking and Linux permissions can result in common operational issues.
- Issue: "Folder is not writable" error.
- Root Cause: The Docker container is running under a user identity that does not have write access to the host's physical mount point.
- Actionable Fix: Use the terminal to change ownership of the library directory to the user ID defined in your Docker settings using the chown command.
- Issue: API connection failures between apps.
- Root Cause: Incorrect URL usage within the containerized network; attempting to reach an app via localhost from within another container fails.
- Actionable Fix: Use the container network name or the host's actual local IP address instead of "localhost" in the application settings.
- Issue: Media not showing up in the library after download.
- Root Cause: The download client is not reporting the finished status to the Arr app, or path mappings differ between the client and the Arr app.
- Actionable Fix: Verify that the "Remote Path Mapping" settings in the application are correctly configured to reflect the mount points inside the Docker environment.
Frequently Asked Questions
Can I install these apps without Docker?
While possible on a bare-metal Linux installation, it is highly discouraged. Docker (which CasaOS uses) ensures that each application runs in a sandboxed environment, preventing dependency conflicts between different software versions.
Do I need a VPN for my Arr stack?
Yes, using a VPN is standard practice when interacting with torrent indexers to mask your public-facing IP address. Many users integrate a VPN container within their Docker setup to route all traffic from their download client through an encrypted tunnel.
How do I update my Arr stack in CasaOS?
Updating is simplified through the CasaOS dashboard; simply navigate to the App page and click the update button provided for each specific container. CasaOS will pull the latest image and restart the container with your existing settings intact.
Is an Arr stack legal to use?
The software components themselves are open-source and legal tools for media management. However, you are solely responsible for ensuring that all content downloaded or managed via these tools adheres to the copyright laws and regulations in your specific jurisdiction.
Optimize Your Digital Media Environment
By standardizing your workflow with an Arr stack, you eliminate the manual friction of searching, downloading, and renaming your digital library. Start building your automated server today to enjoy a high-availability media experience managed entirely through your intuitive CasaOS interface.