I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.
The bug
TLDR
Main issue.
- Expected: new images show up in memories next day after adding past photos matching "on-this-day" criteria.
Observed: those images will not show up in memories for next 3 days.
A few more issues (can be moved to separate Github issues if needed).
-
Expected: to refresh memories by triggering the generation job in web UI.
Observed: this won't fix next 3 days.
-
Expected: memories are generated even if the Immich server is off during night (probably rare case).
Observed: memories are not created.
UPD: removing this after discussing with @danieldietzler
-
Memories on Jan 1st, 2nd, 3rd will not contain photos for the previous year (if generated 3 days in advance at the end of December of the prev year).
Details
Main issue 1: memories for next 3 days may become stale/incomplete after adding more photos for the past years.
Since Persistent Memories were introduced in 1.127.0 / PR (amazing!), the memories creation job generates them for +/-3 days around the current date (7 days total), BUT only if the memories were not generated for these days yet, right?
For example, let's assume the scheduled job run on July 1st midnight. It generates memories from June 28 till July 4
and records the fact in the system metadata table: memories-state: {"lastOnThisDayDate": "2025-07-04T00:00:00.000Z"}
If later on July 1st I add some new photos covering July 2 till July 5 from past years, then:
- new photos for July 2, 3, 4 will not appear in memories on those days
- new photos for July 5+ will appear in memories on those days
I guess this is a known fact among Immich developers and was done intentionally for the sake of performance/reliability:
- Creating memories for 3 days in advance - improves robustness of persistent memories generation
- Skipping already processed days - performance optimization
Issue 2: manual run of the generation job won't fix memories.
If I re-run the memories generation job, it will skip next 3 days - July 2, 3, 4 - code. So triggering the generation job does not fix memories on these days - contrary to one's expectations.
Workaround includes purging memories-state and memories in the database manually before running the job as described in #16484 (comment). This is kind of common knowledge among advanced Immich users as the link/advice typically appears after another confused user asks on Github/Discord/Reddit.
Issue 3: memories are not generated if the server is off during night.
Scheduled jobs cannot run at midnight when the server is off, so memories are not created. The job has to be run manually.
Indeed, this is expected from tech point of view. Just can be confusing at first.
Issue 4 (UPD): memories on Jan 1st, 2nd, 3rd will not contain photos for the previous year
Example for January 2026
- The generating job runs 3 days in advance at the end of December 2025 (Dec 29-30-31 for Jan 1-2-3)
- The job uses max year as "current year - 1", code:
|
.fn('generate_series', [ |
|
sql`(select date_part('year', min(("localDateTime" at time zone 'UTC')::date))::int from assets)`, |
|
sql`date_part('year', current_date)::int - 1`, |
|
]) |
|
.as('year'), |
- So it will cap years at 2024, thus excluding January 1,2,3 2025 from memories shown on Jan 1,2,3 2026.
Existing related issues
Discussion
Is this correct description of the current behavior/implementation or did I miss/hallucinate anything?
Could you share your thoughts on the rationale, benefits, tradeoffs, possible optimizations to refresh memories for next 2-3 days?
Or maybe this belongs to a bigger plan/roadmap for memories? Could you share a doc/discussion link if there is one already? (I've seen some memories-related feature requests: #2836, #7437)
The OS that Immich Server is running on
Debian 12 Bookworm
Version of Immich Server
1.135.3
Version of Immich Mobile App
1.135.3
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
- Upload images from the past years with date matching tomorrow's "on-this-day" criteria. (Example: if it's 2025-07-01 today then upload photos taken on 2024-07-02 or 2023-07-03)
- Wait for the scheduled memories generation job or trigger it manually from UI.
- Outcome: those new images will not appear in memories tomorrow or day after tomorrow .
Relevant log output
Additional information
No response
I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.
The bug
TLDR
Main issue.
Observed: those images will not show up in memories for next 3 days.
A few more issues (can be moved to separate Github issues if needed).
Expected: to refresh memories by triggering the generation job in web UI.
Observed: this won't fix next 3 days.
Expected: memories are generated even if the Immich server is off during night (probably rare case).Observed: memories are not created.
UPD: removing this after discussing with @danieldietzler
Memories on Jan 1st, 2nd, 3rd will not contain photos for the previous year (if generated 3 days in advance at the end of December of the prev year).
Details
Main issue 1: memories for next 3 days may become stale/incomplete after adding more photos for the past years.
Since Persistent Memories were introduced in 1.127.0 / PR (amazing!), the memories creation job generates them for +/-3 days around the current date (7 days total), BUT only if the memories were not generated for these days yet, right?
For example, let's assume the scheduled job run on July 1st midnight. It generates memories from June 28 till July 4
and records the fact in the system metadata table:
memories-state: {"lastOnThisDayDate": "2025-07-04T00:00:00.000Z"}If later on July 1st I add some new photos covering July 2 till July 5 from past years, then:
I guess this is a known fact among Immich developers and was done intentionally for the sake of performance/reliability:
Issue 2: manual run of the generation job won't fix memories.
If I re-run the memories generation job, it will skip next 3 days - July 2, 3, 4 - code. So triggering the generation job does not fix memories on these days - contrary to one's expectations.
Workaround includes purging
memories-stateandmemoriesin the database manually before running the job as described in #16484 (comment). This is kind of common knowledge among advanced Immich users as the link/advice typically appears after another confused user asks on Github/Discord/Reddit.Issue 3: memories are not generated if the server is off during night.
Scheduled jobs cannot run at midnight when the server is off, so memories are not created. The job has to be run manually.
Indeed, this is expected from tech point of view. Just can be confusing at first.
Issue 4 (UPD): memories on Jan 1st, 2nd, 3rd will not contain photos for the previous year
Example for January 2026
immich/server/src/repositories/asset.repository.ts
Lines 215 to 219 in 25efba8
Existing related issues
Discussion
Is this correct description of the current behavior/implementation or did I miss/hallucinate anything?
Could you share your thoughts on the rationale, benefits, tradeoffs, possible optimizations to refresh memories for next 2-3 days?
Or maybe this belongs to a bigger plan/roadmap for memories? Could you share a doc/discussion link if there is one already? (I've seen some memories-related feature requests: #2836, #7437)
The OS that Immich Server is running on
Debian 12 Bookworm
Version of Immich Server
1.135.3
Version of Immich Mobile App
1.135.3
Platform with the issue
Your docker-compose.yml content
<Default>Your .env content
Reproduction steps
Relevant log output
Additional information
No response