I
Immich2w ago
carbo

After upgrading to version 1.142.1, an error occurred and it won't turn on.

immich_server | [Nest] 7 - 09/19/2025, 3:25:10 PM ERROR [Microservices:DatabaseRepository] Migrations failed: Error: corrupted migrations: expected previously executed migration 1752759108283-ConvertToAbsolutePaths to be at index 27 but 1752267649968-StandardizeNames was found in its place. New migrations must always have a name that comes alphabetically after the last executed migration. immich_server | Error: corrupted migrations: expected previously executed migration 1752759108283-ConvertToAbsolutePaths to be at index 27 but 1752267649968-StandardizeNames was found in its place. New migrations must always have a name that comes alphabetically after the last executed migration. immich_server | at #ensureMigrationsInOrder (/usr/src/app/server/node_modules/.pnpm/kysely@0.28.2/node_modules/kysely/dist/cjs/migration/migrator.js:495:23) An error occurred in the logs, and it won't turn on. Looking at the version_history table, I see versions 1.135.3 and 1.134.0, which suggests the upgrade was from 1.135.3. Can anyone help me solve this problem?
2 Replies
Immich
Immich2w ago
:wave: Hey @carbo, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time). 2. :blue_square: read applicable release notes. 3. :blue_square: reviewed the FAQs for known issues. 4. :blue_square: reviewed Github for known issues. 5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
carbo
carboOP2w ago
The contents of kysely_migrations are: name | timestamp --------------------------------------------+------------------------+ 1744910873969-InitialMigration | 2025-05-31T08:16:31.470Z 1744991379464-AddNotificationsTable | 2025-05-31T08:16:31.504Z 1745244781846-AddUserAvatarColorColumn | 2025-05-31T08:16:31.505Z 1745902563899-AddAssetVisibilityColumn | 2025-05-31T08:16:31.508Z 1746636476623-DropExtraIndexes | 2025-05-31T08:16:31.517Z 1746768490606-AddUserPincode | 2025-05-31T08:16:31.518Z 1746844028242-AddLockedVisibilityEnum | 2025-05-31T08:16:31.519Z 1746987967923-AddPinExpiresAtColumn | 2025-05-31T08:16:31.520Z 1747329504572-AddNewSessionColumns | 2025-05-31T08:16:31.525Z 1747338664832-SessionRename | 2025-05-31T08:16:31.526Z 1747664684909-AddAlbumAuditTables | 2025-05-31T08:16:31.612Z 1749067526135-UserOnboardingDefault | 2025-06-29T12:17:14.731Z 1750107668827-PartnerCreateId | 2025-06-29T12:17:14.778Z 1750189909087-AddAlbumUserCreateFields | 2025-06-29T12:17:14.847Z 1750323941566-UnsetPrewarmDimParameter | 2025-06-29T12:17:14.851Z 1750676477029-AlbumAssetUpdateId | 2025-09-19T13:12:59.109Z 1750694237564-AlbumAssetAuditTable | 2025-09-19T13:12:59.169Z 1750780093818-AddAlbumToAssetDeleteTrigger | 2025-09-19T13:12:59.180Z 1751035357937-MemorySyncChanges | 2025-09-19T13:12:59.294Z 1751304834247-StackSyncChanges | 2025-09-19T13:12:59.340Z 1751924596408-AddOverrides | 2025-09-19T13:12:59.392Z 1752004072340-UpdateIndexOverrides | 2025-09-19T13:12:59.398Z 1752152941084-PeopleAuditTable | 2025-09-19T13:12:59.418Z 1752161055253-RenameGeodataPKConstraint | 2025-09-19T13:12:59.966Z 1752161055254-AddActivityAssetFk | 2025-09-19T13:12:59.978Z 1752169992364-AddIsPendingSyncReset | 2025-09-19T13:12:59.981Z 1752250924342-UserMetadataSync | 2025-09-19T13:13:00.052Z 1752267649968-StandardizeNames | 2025-09-19T13:16:57.409Z 1752759108283-ConvertToAbsolutePaths | 2025-09-19T13:13:13.749Z 1753104909784-AssetFaceUpdateIdAndAuditTable | 2025-09-19T13:13:14.032Z 1753464178233-RenameApiKeyPermissions | 2025-09-19T13:13:14.047Z 1753471866748-AddSharedLinkSlug | 2025-09-19T13:13:14.054Z 1753800911775-ProfileImageCheckpointRemoval | 2025-09-19T13:13:14.057Z 1754389095885-ResetAlbumAssetSync | 2025-09-19T13:13:14.058Z 1756318797207-AssetMetadataTables | 2025-09-19T13:13:14.100Z Restored using the automatically backed-up SQL file.

Did you find this page helpful?