No notifications sent when requested item is already available
Description
When I get a request for an item that is already available, the end user doesn't get any notifications. When I see the request waiting approval it will already show its status as Available. I approve the request, and the status remains Available because its already on the server. The user never gets an email that the request was approved, nor do they get one that it is available. This appears to only happen if Overseerr doesn't realize the movie is available until after the request is made. I cannot request an item that is already available when I search it. But at least once a month I get a request, that is waiting approval, that shows available and the user never gets any notifications. Seems like the request triggers some sort of scan and then it realizes the item is available.
Version
1.34.0
Steps to Reproduce
Going to be hard to reproduce because you're going to have to search for an item that is already on the server, but Overseerr doesn't realize it is.
Screenshots
No response
Logs
Platform
desktop
Device
Lenovo
Operating System
Windows 11
Browser
Chrome
Additional Context
No response
Code of Conduct
- [x] I agree to follow Overseerr's Code of Conduct
Is your recently added job in Overseerr configured correctly?
I believe the job runs every 5 minutes by default, therefore the chances of something being added and then someone requesting it within that 5 minute window to be quite slim?
The instance that happened yesterday, Radarr shows the movie downloaded in October 2021, but it wasn't showing available in Overseerr until after someone requested it. In the Overseerr jobs, the full library scan and the media availability scan both run daily.
I went back through the log files, the movie that had the issue was Grizzly Man (2005). Here are the log entries from the Plex and Radarr scans that occurred early morning yesterday showing that the movie already existed, and Radarr indicates it was downloaded October 24 2021, so it has been present for some time.
2025-03-31T07:06:05.131Z [debug][Plex Scan]: GUIDs are cached. Skipping metadata request. {"mediaIds":{"imdbId":"tt0427312","tmdbId":501,"tvdbId":6695},"title":"Grizzly Man"} 2025-03-31T08:06:53.888Z [debug][Radarr Scan]: Title already exists and no changes detected for Grizzly Man
Here are the log entries from when the request came in
2025-04-01T03:41:55.575Z [info][Notifications]: Sending notification(s) for MEDIA_PENDING {"subject":"Grizzly Man (2005)"} 2025-04-01T03:41:55.578Z [debug][Notifications]: Sending webhook notification {"type":"MEDIA_PENDING","subject":"Grizzly Man (2005)"}
A few minutes later the same person made another request
2025-04-01T03:44:22.420Z [info][Notifications]: Sending notification(s) for MEDIA_PENDING {"subject":"The Act of Killing (2012)"} 2025-04-01T03:44:22.422Z [debug][Notifications]: Sending webhook notification {"type":"MEDIA_PENDING","subject":"The Act of Killing (2012)"}
A short time later I approved both requests, the request for Grizzly Man shows
2025-04-01T04:10:51.764Z [warn][Media Request]: Media became available before request was approved. Skipping approval notification {"requestId":1714,"mediaId":2641} 2025-04-01T04:10:51.768Z [warn][Media Request]: Media already exists, marking request as APPROVED {"requestId":1714,"mediaId":2641}
The other request shows all the expected logs that would occur for a new request that was not already present
2025-04-01T04:11:24.304Z [info][Media Request]: Request has an override root folder: /mnt/media/ForeignMovies {"requestId":1715,"mediaId":12449} 2025-04-01T04:11:24.322Z [info][Notifications]: Sending notification(s) for MEDIA_APPROVED {"subject":"The Act of Killing (2012)"} 2025-04-01T04:11:24.322Z [debug][Notifications]: Sending email notification {"recipient":"SeaOfStars","type":"MEDIA_APPROVED","subject":"The Act of Killing (2012)"} 2025-04-01T04:11:24.324Z [debug][Notifications]: Sending webhook notification {"type":"MEDIA_APPROVED","subject":"The Act of Killing (2012)"} 2025-04-01T04:11:24.345Z [info][Media Request]: Sent request to Radarr {"requestId":1715,"mediaId":12449} 2025-04-01T04:11:25.036Z [info][Radarr]: Radarr accepted request 2025-04-01T04:11:25.036Z [debug][Radarr]: Radarr add details {"movie":{"title":"The Act of Killing","originalTitle":"Jagal","originalLanguage":{"id":44,"name":"Indonesian"},"alternateTitles":[],"secondaryYearSourceId":0,"sortTitle":"act killing","sizeOnDisk":0,"status":"released","overview":"Filmmakers expose the horrifying mass executions of accused communists in Indonesia and those who are celebrated in their country for perpetrating the crime.","inCinemas":"2012-11-01T00:00:00Z","digitalRelease":"2013-06-28T00:00:00Z","releaseDate":"2013-06-28T00:00:00Z","images":[{"coverType":"poster","url":"/MediaCover/9310/poster.jpg","remoteUrl":"https://image.tmdb.org/t/p/original/sp5B7Tz5ttsgOLnIlCP5uEhtesI.jpg"},{"coverType":"fanart","url":"/MediaCover/9310/fanart.jpg","remoteUrl":"https://image.tmdb.org/t/p/original/1jLaJPdu7dMl0Nk3vLuafDx9PWS.jpg"}],"website":"http://theactofkilling.com/","year":2012,"youTubeTrailerId":"cTozJLf-Px0","studio":"Final Cut for Real","path":"/mnt/media/ForeignMovies/The Act of Killing (2012) {imdb-tt2375605}","qualityProfileId":4,"hasFile":false,"movieFileId":0,"monitored":true,"minimumAvailability":"released","isAvailable":true,"folderName":"/mnt/media/ForeignMovies/The Act of Killing (2012) {imdb-tt2375605}","runtime":117,"cleanTitle":"theactkilling","imdbId":"tt2375605","tmdbId":123678,"titleSlug":"123678","rootFolderPath":"/mnt/media/ForeignMovies/","certification":"NR","genres":["Documentary"],"tags":[12],"added":"2025-04-01T04:11:24Z","addOptions":{"searchForMovie":true,"addMethod":"manual","ignoreEpisodesWithFiles":false,"ignoreEpisodesWithoutFiles":false,"monitor":"movieOnly"},"ratings":{"imdb":{"votes":42176,"value":8.2,"type":"user"},"tmdb":{"votes":685,"value":7.7,"type":"user"},"metacritic":{"votes":0,"value":92,"type":"user"},"rottenTomatoes":{"votes":0,"value":96,"type":"user"},"trakt":{"votes":1349,"value":7.9103,"type":"user"}},"popularity":1.0734,"statistics":{"movieFileCount":0,"sizeOnDisk":0,"releaseGroups":[]},"id":9310}}
So the person that made the request was not aware that it was already available when they made the request, nor did they get any notification that the request had been approved or that it was available.
I still think your issue is what Overseerr thinks is in your Plex library and what is actually there is wrong.
Not sending a notification because the item already exists is just a side effect of this?
That sounds correct, my confusion is, the logs show the movie existing on the full scans that morning for Plex and Radarr, but then still allows someone to make the request. So for some reason even though the scan shows it existing it doesn’t get recorded that way.
Overseerr keeps its own database of what is already available, it does this with Plex full library scan and recently added scan.
I assume I may have some sort of corruption in the DB then, how should I check that?
The database is located inside the /config/db/ directory.
The available media appears to be stored in media:
sqlite> .schema media CREATE TABLE IF NOT EXISTS "media" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "mediaType" varchar NOT NULL, "tmdbId" integer NOT NULL, "tvdbId" integer, "imdbId" varchar, "status" integer NOT NULL DEFAULT (1), "createdAt" datetime NOT NULL DEFAULT (datetime('now')), "updatedAt" datetime NOT NULL DEFAULT (datetime('now')), "lastSeasonChange" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP), "status4k" integer NOT NULL DEFAULT (1), "mediaAddedAt" datetime, "serviceId" integer, "serviceId4k" integer, "externalServiceId" integer, "externalServiceId4k" integer, "externalServiceSlug" varchar, "externalServiceSlug4k" varchar, "ratingKey" varchar, "ratingKey4k" varchar, CONSTRAINT "UQ_41a289eb1fa489c1bc6f38d9c3c" UNIQUE ("tvdbId")); CREATE INDEX "IDX_7ff2d11f6a83cb52386eaebe74" ON "media" ("imdbId") ; CREATE INDEX "IDX_41a289eb1fa489c1bc6f38d9c3" ON "media" ("tvdbId") ; CREATE INDEX "IDX_7157aad07c73f6a6ae3bbd5ef5" ON "media" ("tmdbId") ;
sqlite> select * from media limit 20; id|mediaType|tmdbId|tvdbId|imdbId|status|createdAt|updatedAt|lastSeasonChange|status4k|mediaAddedAt|serviceId|serviceId4k|externalServiceId|externalServiceId4k|externalServiceSlug|externalServiceSlug4k|ratingKey|ratingKey4k 1|movie|65|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:05:01.000|0||12||65||9997| 2|movie|12230|||5|2021-08-18 20:32:59|2021-08-18 20:49:22|2021-08-18 20:32:59|1|2021-06-29 07:04:07.000|0||440||12230||14859| 3|movie|584|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:04:33.000|0||7||584||9970| 4|movie|520946|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:05:07.000|0||2||520946||10004| 5|movie|82700|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:04:10.000|0||24||82700||9943| 6|movie|431580|||5|2021-08-18 20:32:59|2023-06-16 04:00:01|2021-08-18 20:32:59|1|2023-03-18 15:03:58.000|0||22||431580||39787| 7|movie|6557|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:03:56.000|0||8||6557||9937| 8|movie|10923|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:05:38.000|0||25||10923||10034| 9|movie|3049|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:03:48.000|0||23||3049||9925| 10|movie|4951|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:05:47.000|0||1||4951||10041| 11|movie|2752|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:05:37.000|0||9||2752||10033| 12|movie|11674|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:05:56.000|0||3||11674||10056| 13|movie|8452|||5|2021-08-18 20:32:59|2021-08-18 20:49:35|2021-08-18 20:32:59|1|2021-06-29 07:03:20.000|0||565||8452||14521| 14|movie|150|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:03:15.000|0||10||150||9897| 15|movie|34544|||5|2021-08-18 20:32:59|2021-08-18 20:49:35|2021-08-18 20:32:59|1|2016-08-16 10:08:34.000|0||566||34544||780| 16|movie|17047|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:05:42.000|0||26||17047||10036| 17|movie|1824|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:05:27.000|0||11||1824||10023| 18|movie|530915|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:05:50.000|0||6||530915||10046| 19|movie|10096|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:04:13.000|0||4||10096||9945| 20|movie|16996|||5|2021-08-18 20:32:59|2021-08-18 20:48:47|2021-08-18 20:32:59|1|2021-06-28 18:04:22.000|0||5||16996||9957| sqlite>
I've no idea how you would go about resolving the mis-match far short of starting again, you could try deleting all the media database entries but I'd take a backup of the database first!
I've tried cleaning the media table but that also appears to clear the request history
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.