mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-03-02 22:57:22 -05:00
Prowlarr (and Sonarr) fail to restart on Windows – index UC_Version already exists (SQLite migration loop) #1294
Labels
No labels
Area: API
Area: Database
Area: Db-migration
Area: Download Clients
Area: Indexer
Area: Metadata API
Area: Notifications
Area: Tooling
Area: UI
Area: Update API
Priority: High
Priority: Low
Priority: Medium
Status: Cannot Reproduce
Status: Confirmed
Status: Help Wanted
Status: In Progress
Status: Indexer - need invite
Status: Info Needed
Status: Investigating
Status: Logs Needed
Status: Maybe One Day
Status: Needs Triage
Status: Unlikely
Status: Waiting for OP
Status: Won't Fix
Type: Bug
Type: Bug
Type: Documentation
Type: Duplicate
Type: Enhancement
Type: External Bug
Type: Feature Request
Type: Regression
Type: Support
Type: Support.
lidarr-pull
radarr-pull
sonarr upstream
sonarr-pull
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Prowlarr#1294
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kalinka98 on GitHub (Feb 18, 2026).
I attest that there is not an existing issue for this?
I attest this is not related to a Cardigann YML Indexer.
Current Behavior
On a fresh install:
After closing the application and attempting to start it again, startup fails with a fatal error.
If the database file (e.g., prowlarr.db and logs.db) is deleted:
What Has Been Tested:
Deleting individual entries does not resolve the issue — the error simply shifts to the next migration/index step.
Expected Behavior
After the initial successful run, subsequent restarts should not attempt to recreate existing SQLite indexes or fail on migration steps that were already applied.
Steps To Reproduce
I am not sure how reproducable it is, since it is a fresh install with default settings
Environment
What branch are you running?
Master
Trace Logs?
Edit: Trace logs: https://gist.github.com/Kalinka98/e2db67b375a257037cec048dbb7cea6a
I attest that Trace Logs have been provided as applicable. Reports will be closed if the required logs are not provided.
trace- that are relevant and show this issue.@mynameisbogdan commented on GitHub (Feb 18, 2026):
Do you have the same issue with Radarr, Sonarr or Lidarr?
VersionUniqueMigrationis a migration coming fromFluentMigrator.Prowlarr uses v3.3.2, same goes for Sonarr.
Radarr uses v6.2.0, same as Lidarr.
There are some changes upstream, but since this version is being used for years I'm inclined to say it might a possible corruption with your setup.
Could you run
.schema VersionInfoinsqlite3 prowlarr.dbor in DB Browser for SQLite, and share the output?@Kalinka98 commented on GitHub (Feb 18, 2026):
Here is the output:
CREATE TABLE IF NOT EXISTS "VersionInfo" ("Version" INTEGER NOT NULL, "AppliedOn" DATETIME, "Description" TEXT);
CREATE UNIQUE INDEX "UC_Version" ON "VersionInfo" ("Version" ASC);
Also can confirm, Sonarr and Prowlarr are not working,
Radarr and Lidarr are working fine
@mynameisbogdan commented on GitHub (Feb 18, 2026):
I guess Prowlarr needs
github.com/Sonarr/Sonarr@3796c9e30f,github.com/Sonarr/Sonarr@52d7f67627andgithub.com/Sonarr/Sonarr@255f1c37c3to be same version as Radarr and Lidarr.Sonarr v4 is frozen, and v5-develop is already using latest version which is 8.0.1.
@Kalinka98 commented on GitHub (Feb 18, 2026):
Yup, can confirm, switching Sonnar to v5-develop fixed the issue for it. Thanks! Waiting for Prowlarr
@mynameisbogdan commented on GitHub (Feb 18, 2026):
How did you switched Sonarr? There are no available builds yet.
@Kalinka98 commented on GitHub (Feb 18, 2026):
I changed the branch in
config.xmlto v5-develop.People in discord adviced me to not use it, I just wanted to test
@mynameisbogdan commented on GitHub (Feb 18, 2026):
Go to system > status > about, what version is shown there?
@Kalinka98 commented on GitHub (Feb 18, 2026):
4.0.16.2944. Nvm, I was too excited and forgot to fully close it before rebooting. Sorry, I am new to this...
@mynameisbogdan commented on GitHub (Feb 18, 2026):
Like I said, there are no v5 builds anyway. Weird that it's working now. 😅
@Kalinka98 commented on GitHub (Feb 18, 2026):
No, no, it's not. I deleted the *.db files and opened it up, but then when closing the browser window I forgot to exit it from the tray, hence me thinking that it was working when reopening it, but it was the same instance