Tropy Support Request - Database Migration and Search Issues
System Information
- Original Tropy Version: 1.9.0 (installed ~2020)
- Current Tropy Version: 1.17.3
- Operating System: macOS 25.2.0 (Apple Silicon)
- Database Size: ~27,000 photos, 10,000+ items
Primary Issue: Search Function Malfunction in 1.9.0
The main problem: Search function in Tropy 1.9.0 returns incomplete results.
Specific behavior:
- Example: Tag “THEORY VIRUS WAS OR RESEMBLED PLAGUE” has 68 items
- Clicking the tag in sidebar correctly displays all 68 items
- Searching for exact tag text “THEORY VIRUS WAS OR RESEMBLED PLAGUE” in search box returns only 2 items
- This pattern occurs across all searches - consistently incomplete results
- Otherwise, 1.9.0 database is fully functional (all photos display, tags work, notes accessible, folders intact)
Visual indicator: Yellow exclamation point warning appears in 1.9.0 interface
Attempted Migration to 1.17.3
Why migration was attempted: To resolve search issues and upgrade to current version
Migration Attempt #1: Direct Upgrade
Process:
- Upgraded from Tropy 1.9.0 to 1.17.3
- Attempted to open existing
Spanish Flu.tpydatabase
Result: Complete failure - database won’t open in 1.17.3
Error Log:
{"level":40,"time":1769813421571,"type":"renderer","name":"project","stack":"*** in database main ***\nTree 21 page 21 cell 168: Rowid 3848290697217 out of order\nTree 21 page 21 cell 167: Rowid 3710851743746 out of order\nmalformed inverted index for FTS5 table main.fts_notes","msg":"integrity check failed!"}
{"level":40,"time":1769813421572,"type":"renderer","name":"project","stack":"Error: 2 integrity check(s) failed\n at Connection.check (file:///Applications/Tropy.app/Contents/Resources/app.asar/lib/bootstrap.mjs:17818:15)","msg":"unexpected error in *project.open"}
Key corruption details:
- Tree 21 page 21: Rowid ordering corruption
- Malformed inverted index for FTS5 table (full-text search) - explains search issues in 1.9.0
Migration Attempt #2: Fresh Import via JSON-LD Export
Process:
- Exported all items from 1.9.0 database as JSON-LD (62MB file)
- Created fresh project in 1.17.3
- Imported all photos (~27,000 files)
- Edited JSON file to update file paths (find/replace: 111,111 instances)
- Imported edited JSON-LD metadata
Results:
What Works:
- All photos imported and display correctly
- All tags imported and functional
- All notes imported and visible
- Item metadata (dates, locations, etc.) intact
What Doesn’t Work:
Problem 1 - Search Still Broken:
- Same search issue persists in 1.17.3 after JSON import
- Example: Tag with 68 items only returns 2 items when searched
- Corrupted FTS5 search index appears to transfer through JSON export/import
Problem 2 - Folder/List Organization Missing:
- Original database had extensive folder/list organization
- After JSON import, all folder/list structures missing
- All items show as “Unlisted Items”
- Only tags survived export/import
Problem 3 - Duplicate Items with Broken Photo Links:
- Many items appear as duplicates with different photo link statuses:
- Working duplicate: All photos display correctly
- Broken duplicate: First photo shows, remaining photos show exclamation marks (“photo not found”)
- Hundreds of photos remain as unorganized single-file items (IMG_1234.jpg)
- Despite path find/replace (111,111 corrections), duplicates still created
Current Situation
Using Tropy 1.9.0:
- Database fully functional except search returns incomplete results
- All photos, tags, notes, and folders accessible
- Prefer to stay on 1.9.0 if search can be fixed
Questions for Tropy Support
- Can the FTS5 search index be rebuilt in 1.9.0 without affecting data? This would solve the primary issue and allow continued use of stable 1.9.0 database.
- If 1.9.0 repair isn’t possible, what’s the proper migration path to 1.17.3 for a database with corrupted search index?
- Why does JSON-LD export/import transfer search index corruption? Is there a way to export data without carrying over corrupted indexes?
- Why don’t folder/list structures export in JSON-LD format? Is there an alternative export method that preserves organizational structure?
Files Available for Debugging
- Original
Spanish Flu.tpy(1.9.0 database - functional except search) - Fresh
Spanish Flu 2025.tpy(1.17.3 database - post-import with issues) flu_export_CURRENT.json(62MB JSON-LD export)- Full error logs from migration attempts
Preferred Outcome
Repair search functionality in existing 1.9.0 database to continue using stable, fully-organized database or cleanly and completely migrate everything to 1.17.