Prerequisites
Before installing Plank on bare metal, ensure you have:- Node.js: Version 22 or higher
- npm: Comes with Node.js
- ffmpeg: For video transmuxing and subtitle processing
- Git: For cloning the repository
- Prowlarr: (Optional) For torrent search functionality
- FlareSolverr: (Optional) For captcha solving on torrent sites
Install Dependencies
Installation Steps
Access Plank at
http://localhost:3300.
Optional: Install Prowlarr & FlareSolverr
For full torrent search functionality, install these services separately.Prowlarr Installation
FlareSolverr Installation
Configure Prowlarr
Running as a System Service
systemd (Linux)
Create a systemd service file for automatic startup:Create service file
/etc/systemd/system/plank.service
your_usernamewith your system username/path/to/plankwith the full path to your Plank installation
PM2 (Cross-Platform)
PM2 is a process manager that works on Linux, macOS, and Windows.Build and Development Commands
| Command | Description |
|---|---|
npm install | Install dependencies |
npm run build | Build for production |
npm run dev | Start development server with live reload |
npm run preview | Preview production build |
npm run check | Run type checking and linting |
npx drizzle-kit migrate | Run database migrations |
npx drizzle-kit generate | Generate new migrations |
node build | Start production server |
Updating Plank
Troubleshooting
Build fails with memory errors
Build fails with memory errors
Increase Node.js memory limit:
Database migration fails
Database migration fails
Check database file permissions:If the database is corrupted, restore from backup or delete and recreate:
Can't connect to Prowlarr
Can't connect to Prowlarr
Verify Prowlarr is running:Check the API key in
.env matches Prowlarr’s settings:- Go to Prowlarr → Settings → General
- Copy the API key
- Update
PROWLARR_API_KEYin.env - Restart Plank
Port already in use
Port already in use
Check what’s using the port:
FFmpeg not found
FFmpeg not found
Verify ffmpeg installation:If not found, install it:
Performance Optimization
Node.js Optimization
Database Optimization
Systemd Resource Limits
Add to your systemd service file:Next Steps
Environment Variables
Complete configuration reference
Prowlarr Setup
Configure torrent indexers
Security Guide
VPN setup and best practices
Troubleshooting
Common issues and solutions