Skip to content

Lidarr

Lidarr Server.

Migrated to ansible collection

Use r_pufky.arr.lidarr.

Tip

  • The UID/GID should be set to a user/group that has access to your media. All media clients should run under the same user to run correctly.
  • Your downloader will report the download path mapped in the downloader service. You need to map this exact path in Radarr for it to be able to post-process downloads properly.

Migrate to PostgreSQL

Complete authoritative migration instructions are here.

Manual Migration Overview:

  1. Install pgloader on postgres server.
  2. Create postgres databases

    systemctl stop lidarr
    sqlite3 lidarr.db vacuum
  3. Update config.xml with postgres settings (or apply role with postgres).

  4. Confirm lidarr running (appears empty).
  5. Migrate Database.

    # Starting lidarr will initialize the Postgres DB but Lidarr appears empty.
    # This is expected until we migrate actual data.
    systemctl stop lidarr
    cp lidarr.db postgres:/tmp
    
    # Login to postgres and clear any pre-existing metadata.
    psql -d lidarr
    DELETE FROM "QualityProfiles";
    DELETE FROM "QualityDefinitions";
    DELETE FROM "DelayProfiles";
    DELETE FROM "Metadata";
    DELETE FROM "Config";
    DELETE FROM "VersionInfo";
    DELETE FROM "ScheduledTasks";
    \q
    
    # Load the SQLite DB into Postgres.
    # Many WARNINGS may appear; these can be ignored.
    pgloader --with "quote identifiers" --with "data only" lidarr.db 'postgresql://qstick:qstick@localhost/lidarr-main' --with "prefetch rows = 100" --with "batch size = 1MB"
    
    # Restart Sonarr. Existing data should appear.
    systemctl start lidarr

Reverse Proxy

Lidarr should be run via a Reverse Proxy, allowing you to isolate and wrap connections in SSL. See NGINX for more details. See Base Proxy Control for basic proxy configuration.

/etc/nginx/conf.d/reverse_proxy.conf

0644 root:root

# Subdomain
server {
  listen       443 ssl http2;
  server_name  lidarr.{DOMAIN} lidarr;

  location / {
    proxy_pass http://lidarr:8686;
    include    /etc/nginx/conf.d/proxy_control.conf;
  }
}

/etc/nginx/conf.d/reverse_proxy.conf

0644 root:root

# Subpath
server {
  location /lidarr {
    proxy_pass http://lidarr:8686/lidarr;
    include    /etc/nginx/conf.d/proxy_control.conf;
  }
}