Seerr Migration Runbook
This runbook migrates gandazgul from Overseerr to Seerr. Use it with the approved plan docs/plans/migrate-overseerr-to-seerr.md. Rafag is out of scope for this run because it is unreachable.
Seerr automatically migrates Overseerr data on first start. Do not start Seerr until Overseerr is stopped and the data backup is complete.
Facts
- New chart:
oci://ghcr.io/seerr-team/seerr/seerr-chart, tag3.9.1. - New app image:
ghcr.io/seerr-team/seerr:v3.4.1. - Existing data stays on
yasr-volume, subPathconfigs/overseerr. - Existing URL stays
https://media.${CLUSTER_DOMAIN_NAME}. - Seerr runs as UID/GID
1000and writes to/app/config. ReadWriteOncedoes not stop two pods on the same node from writing to the same SQLite database. Stop the old pod before Seerr starts.
Required Inputs
Set these values for gandazgul:
export CTX="home"
export CLUSTER="gandazgul"
export NS="default"
export BACKUP_DIR="${HOME}/seerr-migration-${CLUSTER}-$(date +%Y%m%d-%H%M%S)"
Confirm the context before you continue:
kubectl --context "${CTX}" config current-context
kubectl --context "${CTX}" get kustomization "${CLUSTER}" -n kube-system
kubectl --context "${CTX}" get helmrelease overseerr -n "${NS}"
Stop if the context does not match the cluster.
Baseline Before Outage
Create a private working directory. Do not commit files from this directory.
mkdir -p "${BACKUP_DIR}"
chmod 700 "${BACKUP_DIR}"
Record the old Git desired state before you apply migration commits. Use a revision from before this migration, not main after the migration is merged.
git fetch origin main
git rev-parse origin/main > "${BACKUP_DIR}/pre-migration-git-revision.txt"
git show "$(cat "${BACKUP_DIR}/pre-migration-git-revision.txt"):apps/Overseerr.yaml" >/dev/null
git show "$(cat "${BACKUP_DIR}/pre-migration-git-revision.txt"):clusters/gandazgul/apps/kustomization.yaml" >/dev/null
Record the old release and workload data:
kubectl --context "${CTX}" get helmrelease overseerr -n "${NS}" -o yaml \
> "${BACKUP_DIR}/overseerr-helmrelease.yaml"
helm --kube-context "${CTX}" get values overseerr -n "${NS}" --all \
> "${BACKUP_DIR}/overseerr-helm-values.yaml"
helm --kube-context "${CTX}" get manifest overseerr -n "${NS}" \
> "${BACKUP_DIR}/overseerr-helm-manifest.yaml"
kubectl --context "${CTX}" get deploy,statefulset,svc,ingress -n "${NS}" \
| grep -Ei 'overseerr|seerr' | tee "${BACKUP_DIR}/old-resources.txt"
kubectl --context "${CTX}" get pods -n "${NS}" \
-l app.kubernetes.io/instance=overseerr -o wide \
| tee "${BACKUP_DIR}/old-pods.txt"
Record the running image ID:
kubectl --context "${CTX}" get pod -n "${NS}" \
-l app.kubernetes.io/instance=overseerr \
-o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{range .status.containerStatuses[*]}{.image}{"\t"}{.imageID}{"\n"}{end}{end}' \
| tee "${BACKUP_DIR}/old-image-id.txt"
Inspect data layout and ownership without printing secrets:
POD="$(kubectl --context "${CTX}" get pod -n "${NS}" \
-l app.kubernetes.io/instance=overseerr \
-o jsonpath='{.items[0].metadata.name}')"
kubectl --context "${CTX}" exec -n "${NS}" "${POD}" -- \
sh -c 'id; find /app/config -maxdepth 3 -exec stat -c "%u:%g %a %n" {} \; | sed -n "1,80p"' \
| tee "${BACKUP_DIR}/config-ownership-sample.txt"
kubectl --context "${CTX}" exec -n "${NS}" "${POD}" -- \
sh -c 'find /app/config -maxdepth 3 -type f | sed -n "1,80p"' \
| tee "${BACKUP_DIR}/config-file-sample.txt"
Confirm that the app uses the expected local SQLite database. This runbook does not include an external database dump and restore procedure.
kubectl --context "${CTX}" exec -n "${NS}" "${POD}" -- sh -c '
set -e
echo "External database environment keys:"
env | cut -d= -f1 | grep -Ei "^(DATABASE|DB|POSTGRES|MYSQL|MARIADB)" || true
echo "SQLite and database-like files:"
find /app/config -maxdepth 4 \( -name "*.sqlite*" -o -name "*.db*" \) -print
test -f /app/config/db/db.sqlite3
'
Stop if any external database environment key is present, or if /app/config/db/db.sqlite3 is missing. Get a revised procedure with a consistent dump and restore for that external database before you continue.
If sqlite3 is present in the pod, record a small baseline:
kubectl --context "${CTX}" exec -n "${NS}" "${POD}" -- sh -c '
DB="/app/config/db/db.sqlite3"
test -f "${DB}" || exit 0
command -v sqlite3 >/dev/null || exit 0
sqlite3 "${DB}" "PRAGMA integrity_check;"
sqlite3 "${DB}" "SELECT count(*) AS users FROM user;" 2>/dev/null || true
sqlite3 "${DB}" "SELECT count(*) AS media_requests FROM media_request;" 2>/dev/null || true
'
Also collect a manual, secret-free baseline from the UI:
- Login works for an existing admin account.
- User count and a sample of user IDs or names.
- Request count and a sample of request IDs and statuses.
- Plex, Radarr, Sonarr, and Jellyfin integration names or URLs, with tokens hidden.
- Notification provider names, with tokens hidden.
Prepare Git State
The preparation state adds apps/Seerr.yaml to the gandazgul app list with spec.suspend: true. This lets Flux create the suspended HelmRelease without starting Seerr.
After that state is committed and pushed, reconcile only after user approval:
flux --context "${CTX}" reconcile source git k8s-infrastructure -n kube-system
flux --context "${CTX}" reconcile kustomization "${CLUSTER}" -n kube-system
kubectl --context "${CTX}" get helmrelease seerr -n "${NS}" -o jsonpath='{.spec.suspend}{"\n"}'
kubectl --context "${CTX}" get pods -n "${NS}" \
-l app.kubernetes.io/instance=seerr
Expected result: spec.suspend is true and there are no Seerr pods.
Cut Over One Cluster
Run this section for gandazgul only. Rafag is intentionally not changed in this run.
Suspend the parent Flux Kustomization and the old release:
flux --context "${CTX}" suspend kustomization "${CLUSTER}" -n kube-system
flux --context "${CTX}" suspend helmrelease overseerr -n "${NS}"
Stop the old workload. Find its kind first:
kubectl --context "${CTX}" get deploy,statefulset -n "${NS}" \
-l app.kubernetes.io/instance=overseerr
If it is a Deployment:
kubectl --context "${CTX}" scale deployment overseerr -n "${NS}" --replicas=0
kubectl --context "${CTX}" wait -n "${NS}" --for=delete pod \
-l app.kubernetes.io/instance=overseerr --timeout=5m
If it is a StatefulSet:
kubectl --context "${CTX}" scale statefulset overseerr -n "${NS}" --replicas=0
kubectl --context "${CTX}" wait -n "${NS}" --for=delete pod \
-l app.kubernetes.io/instance=overseerr --timeout=5m
Confirm no old pod remains:
kubectl --context "${CTX}" get pods -n "${NS}" \
-l app.kubernetes.io/instance=overseerr
Back Up Stopped Data
Create a helper pod that mounts only yasr-volume. This pod does not run the application.
cat > "${BACKUP_DIR}/backup-pod.yaml" <<EOF
apiVersion: v1
kind: Pod
metadata:
name: seerr-backup
namespace: ${NS}
spec:
restartPolicy: Never
containers:
- name: backup
image: alpine:3.20
command: ["sleep", "3600"]
volumeMounts:
- name: config
mountPath: /data
subPath: configs/overseerr
volumes:
- name: config
persistentVolumeClaim:
claimName: yasr-volume
EOF
kubectl --context "${CTX}" apply -f "${BACKUP_DIR}/backup-pod.yaml"
kubectl --context "${CTX}" wait -n "${NS}" --for=condition=Ready pod/seerr-backup --timeout=2m
Archive with numeric ownership:
kubectl --context "${CTX}" exec -n "${NS}" seerr-backup -- \
tar --numeric-owner -czf /tmp/overseerr-config.tgz -C /data .
kubectl --context "${CTX}" cp \
"${NS}/seerr-backup:/tmp/overseerr-config.tgz" \
"${BACKUP_DIR}/overseerr-config.tgz"
shasum -a 256 "${BACKUP_DIR}/overseerr-config.tgz" \
| tee "${BACKUP_DIR}/overseerr-config.tgz.sha256"
tar -tzf "${BACKUP_DIR}/overseerr-config.tgz" | sed -n '1,80p' \
| tee "${BACKUP_DIR}/archive-contents.txt"
Test extraction on a copy:
mkdir -p "${BACKUP_DIR}/restore-test"
tar -xzf "${BACKUP_DIR}/overseerr-config.tgz" -C "${BACKUP_DIR}/restore-test"
find "${BACKUP_DIR}/restore-test" -maxdepth 3 -type f | sed -n '1,80p'
Validate the stopped backup before you change permissions or start Seerr. The expected layout is a settings file and db/db.sqlite3. The archive includes any SQLite sidecar files, such as db.sqlite3-wal and db.sqlite3-shm, because it contains the full config directory.
SETTINGS="${BACKUP_DIR}/restore-test/settings.json"
DB="${BACKUP_DIR}/restore-test/db/db.sqlite3"
test -s "${SETTINGS}"
test -f "${DB}"
command -v sqlite3 >/dev/null
INTEGRITY="$(sqlite3 "${DB}" 'PRAGMA integrity_check;')"
test "${INTEGRITY}" = "ok"
sqlite3 "${DB}" 'SELECT count(*) FROM user;'
sqlite3 "${DB}" 'SELECT count(*) FROM media_request;'
Stop if settings.json or db/db.sqlite3 is missing, if sqlite3 is not available, if integrity output is not exactly ok, or if the count queries fail. Install local sqlite3 or make a new stopped backup before you continue. Do not run the permission correction or start Seerr with an unchecked, unexpected, or corrupt backup.
Correct Scoped Permissions
If ownership is not UID/GID 1000, fix only this mounted config directory. Do not change /media/yasr or other app directories. Do not follow symlinks.
kubectl --context "${CTX}" exec -n "${NS}" seerr-backup -- \
find /data -xdev -exec chown -h 1000:1000 {} +
Remove the helper pod after the backup and permission check:
kubectl --context "${CTX}" delete pod seerr-backup -n "${NS}" --wait=true
Remove Old Release Before Starting Seerr
Delete the old HelmRelease while the parent Flux Kustomization stays suspended:
kubectl --context "${CTX}" delete helmrelease overseerr -n "${NS}" --wait=true
Wait until Helm removes the old resources:
kubectl --context "${CTX}" get deploy,statefulset,svc,ingress -n "${NS}" \
| grep -Ei 'overseerr|seerr' || true
kubectl --context "${CTX}" get pods -n "${NS}" \
-l app.kubernetes.io/instance=overseerr
Expected result: no Overseerr pod, Service, or Ingress remains. Do not continue if any old writer remains.
Start Seerr
Resume only the new HelmRelease. Keep the parent Flux Kustomization suspended until the final Git state is ready.
flux --context "${CTX}" resume helmrelease seerr -n "${NS}"
flux --context "${CTX}" reconcile helmrelease seerr -n "${NS}"
kubectl --context "${CTX}" rollout status statefulset seerr -n "${NS}" --timeout=10m
kubectl --context "${CTX}" get pods -n "${NS}" \
-l app.kubernetes.io/instance=seerr -o wide
kubectl --context "${CTX}" logs -n "${NS}" statefulset/seerr --tail=200 \
| tee "${BACKUP_DIR}/seerr-startup.log"
Check the health endpoint from inside the cluster:
kubectl --context "${CTX}" run seerr-healthcheck -n "${NS}" \
--rm -i --restart=Never --image=curlimages/curl:8.10.1 -- \
curl -fsS http://seerr/api/v1/settings/public
Functional Checks
For gandazgul:
- Open the existing HTTPS media URL.
- Confirm the page identifies as Seerr, not the old app name.
- Log in with an existing account.
- Compare users, permissions, and request history with the baseline.
- Check Plex, Radarr, Sonarr, and Jellyfin connections that exist on that cluster.
- If notifications are configured, send a test notification.
- Agree on one harmless test request with the user, submit it, and confirm it reaches the correct configured service.
- Delete the Seerr pod and confirm login, settings, and history persist after restart.
Final Git State
After gandazgul passes functional checks:
- Keep
apps/Overseerr.yamlin Git because rafag still uses it. - Remove the
../../../apps/Overseerr.yamlreference from gandazgul only. - Set
apps/Seerr.yamlspec.suspend: false. - Commit and push the final state.
- Reconcile each parent Flux Kustomization.
- Resume only Flux resources that this migration suspended.
Verify final live state:
kubectl --context "${CTX}" get helmrelease overseerr -n "${NS}"
kubectl --context "${CTX}" get helmrelease seerr -n "${NS}"
flux --context "${CTX}" get kustomization "${CLUSTER}" -n kube-system
Expected result: Overseerr is absent. Seerr is ready. The parent Flux Kustomization is ready.
Rollback
Rollback discards requests made after the backup. Get user approval before you restore. Do not point old Overseerr at a database that Seerr already migrated.
Suspend Flux and stop Seerr:
flux --context "${CTX}" suspend kustomization "${CLUSTER}" -n kube-system
flux --context "${CTX}" suspend helmrelease seerr -n "${NS}" || true
kubectl --context "${CTX}" scale statefulset seerr -n "${NS}" --replicas=0 || true
kubectl --context "${CTX}" wait -n "${NS}" --for=delete pod \
-l app.kubernetes.io/instance=seerr --timeout=5m || true
Delete the Seerr release and its Service and Ingress before Overseerr returns:
kubectl --context "${CTX}" delete helmrelease seerr -n "${NS}" --wait=true || true
kubectl --context "${CTX}" get deploy,statefulset,svc,ingress -n "${NS}" \
| grep -Ei 'seerr' || true
Expected result: no Seerr resource remains in the command output. Stop if a Seerr Service or Ingress remains, because it conflicts with Overseerr.
Create a restore helper pod that mounts only the old config directory:
cat > "${BACKUP_DIR}/restore-pod.yaml" <<EOF
apiVersion: v1
kind: Pod
metadata:
name: overseerr-restore
namespace: ${NS}
spec:
restartPolicy: Never
containers:
- name: restore
image: alpine:3.20
command: ["sleep", "3600"]
volumeMounts:
- name: config
mountPath: /data
subPath: configs/overseerr
volumes:
- name: config
persistentVolumeClaim:
claimName: yasr-volume
EOF
kubectl --context "${CTX}" apply -f "${BACKUP_DIR}/restore-pod.yaml"
kubectl --context "${CTX}" wait -n "${NS}" --for=condition=Ready pod/overseerr-restore --timeout=2m
Replace the migrated files, including SQLite sidecars, with the stopped pre-migration archive. Keep the numeric ownership from the archive.
kubectl --context "${CTX}" cp \
"${BACKUP_DIR}/overseerr-config.tgz" \
"${NS}/overseerr-restore:/tmp/overseerr-config.tgz"
kubectl --context "${CTX}" exec -n "${NS}" overseerr-restore -- sh -c '
set -e
rm -rf /data/* /data/.[!.]* /data/..?*
tar --numeric-owner -xzf /tmp/overseerr-config.tgz -C /data
test -s /data/settings.json
test -f /data/db/db.sqlite3
find /data -maxdepth 3 -exec stat -c "%u:%g %a %n" {} \; | sed -n "1,80p"
'
kubectl --context "${CTX}" delete pod overseerr-restore -n "${NS}" --wait=true
Read the recorded old runtime from the baseline:
export OLD_IMAGE_REF="$(awk 'NF {print $3; exit}' "${BACKUP_DIR}/old-image-id.txt" | sed 's#^[^/]\+://##')"
export OLD_REPO="${OLD_IMAGE_REF%@*}"
export OLD_DIGEST="${OLD_IMAGE_REF#*@}"
test "${OLD_IMAGE_REF}" != "${OLD_DIGEST}"
printf '%s\n' "${OLD_IMAGE_REF}"
Restore the old Helm values to the live release and pin the recorded old runtime. The parent Flux Kustomization is still suspended.
helm repo add k8s-at-home https://k8s-at-home.com/charts/ || true
helm repo update k8s-at-home
helm --kube-context "${CTX}" upgrade --install overseerr k8s-at-home/overseerr \
--namespace "${NS}" \
--version 5.4.2 \
--values "${BACKUP_DIR}/overseerr-helm-values.yaml" \
--set image.repository="${OLD_REPO}" \
--set image.tag="latest@${OLD_DIGEST}" \
--set image.pullPolicy=IfNotPresent
Restore the old Git desired state from the recorded pre-migration revision. Then add a gandazgul-only patch that keeps the recorded old runtime selected by Flux. Do not pin the shared apps/Overseerr.yaml image in Git because rafag also uses that file.
PRE_MIGRATION_REV="$(cat "${BACKUP_DIR}/pre-migration-git-revision.txt")"
git restore --source="${PRE_MIGRATION_REV}" -- \
apps/Overseerr.yaml \
clusters/gandazgul/apps/kustomization.yaml
git rm -f apps/Seerr.yaml
cat > clusters/gandazgul/apps/OverseerrRuntimePin.yaml <<EOF
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: overseerr
namespace: default
spec:
values:
image:
repository: ${OLD_REPO}
tag: latest@${OLD_DIGEST}
pullPolicy: IfNotPresent
EOF
cat <<'EOF' >> clusters/gandazgul/apps/kustomization.yaml
patches:
- path: OverseerrRuntimePin.yaml
target:
group: helm.toolkit.fluxcd.io
version: v2
kind: HelmRelease
name: overseerr
namespace: default
EOF
kustomize build --load-restrictor=LoadRestrictionsNone clusters/gandazgul/apps \
| awk '/name: overseerr/{show=1} show && /repository:|tag:|pullPolicy:/{print}'
git diff -- apps/Overseerr.yaml clusters/gandazgul/apps/kustomization.yaml \
clusters/gandazgul/apps/OverseerrRuntimePin.yaml apps/Seerr.yaml
Commit and push this rollback state after review. Then reconcile the old Overseerr release:
flux --context "${CTX}" reconcile source git k8s-infrastructure -n kube-system
flux --context "${CTX}" resume kustomization "${CLUSTER}" -n kube-system
flux --context "${CTX}" reconcile kustomization "${CLUSTER}" -n kube-system
flux --context "${CTX}" reconcile helmrelease overseerr -n "${NS}"
kubectl --context "${CTX}" rollout status deployment overseerr -n "${NS}" --timeout=10m
Verify rollback from the restored backup and the recorded old runtime:
kubectl --context "${CTX}" get helmrelease overseerr -n "${NS}"
kubectl --context "${CTX}" get helmrelease seerr -n "${NS}"
kubectl --context "${CTX}" get helmrelease overseerr -n "${NS}" \
-o jsonpath='{.spec.values.image.repository}{"\n"}{.spec.values.image.tag}{"\n"}{.spec.values.image.pullPolicy}{"\n"}'
kubectl --context "${CTX}" get pods -n "${NS}" \
-l app.kubernetes.io/instance=overseerr \
-o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{range .status.containerStatuses[*]}{.imageID}{"\n"}{end}{end}'
kubectl --context "${CTX}" get ingress -n "${NS}" | grep -Ei 'overseerr|seerr' || true
Expected result: Overseerr is ready, Seerr is absent, the HelmRelease image values match ${OLD_REPO}, latest@${OLD_DIGEST}, and IfNotPresent, and the running pod image ID contains ${OLD_DIGEST}. Only the Overseerr Ingress serves https://media.${CLUSTER_DOMAIN_NAME}. Log in and compare settings, users, and request history with the pre-migration baseline.