-
-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could not get media by media_id and user_id from database: record not found in home page #729
Comments
You can try to open Photoview, disable connection to the Internet (or disable Photoview server) and open info about this picture. You will see name of image, it's directory and other information. As I think, this error means that this image aren't scanned yet or don't have preview. I believe, you can keep Photoview active for scanning media and this trouble will resolve itself. A small flaw |
I have already tried to wait 24 hours but the problem is still there... |
I have the same issue, problem persists after done scanning. Are you using Docker? [yes ] |
I have migrate to Photoprism but yes I was on this version |
+1 on this issue. Currently running the Edit: I reverted to 2.3.12, dropped the database and rescanned everything and that seems to have fixed the issue. Something in 2.3.13 seems to have broken some of the scanner functionality. Probably something about this #727 - it's still not fully fixed in |
Switched to photoprism
Love the simplicity of photo view but waiting for the issue to be solved
…On Sun, Sep 4, 2022 at 7:26 AM Hugo ***@***.***> wrote:
+1 on this issue. Currently running the edge docker image, and also tried
completely deleting the database and redoing the entire library from
scratch, did not help
—
Reply to this email directly, view it on GitHub
<#729 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZYU2DRUVXVOZE4VYV4GCTV4PNCPANCNFSM56HYOXLQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I just installed latest Photoview and the issue continues. Is this intended to be fixed? |
I installed 2.3.12 and removed old db which solved the problem for time being. |
The same issue. |
Has anyone identified why this occurs? How can I know the version I am using? Release Version I tried pulling other version than this, in portainer, changing the tag and selecting recreate and pull image but I can't seem to fix it, can someone point me how can I be sure which version I am running? Thank you. |
Had exactly the same issue on 2.3.13 using docker compose " image: viktorstrate/photoview:2 " |
Which tag version should i use to revert to .12 version? Ty |
In your docker compose just use "image: viktorstrate/photoview:2.3.12"" after that clean cookies for your website and just do a normal scan. |
Hello and ty for your help. Before doing what you said, I went to see the version, it was as I posted. If i create and login with another user, in timeline the photos appear and in albums aswell. But if I press in the i from info, it says on the tab itself "Server error Then I went to try what you told. Now it says 2.3.12 (0b9d04e) 2022-02-11T12:07:25Z" So I assume it is OK. I did a scan, let it finish and nothing changed. Any more ideas? |
Try scanning for all users and than see. It worked for me where on timeline i
had only white images instead of photo and when clicking "i" i had similar error.
If not maybe you will have to delete db and recreate it again but i didn't do that (and don't know how exactly).
…On Mon, Nov 7, 2022, 10:20 fmnamado ***@***.***> wrote:
Hello and ty for your help.
Before doing what you said, I went to see the version, it was as I posted.
Symptoms:
In timeline I could only see blurhashes, if I pressed the I of the photo,
it would open the tab on the right, but without seing the photo.
If I went to albums, it appeared NOTHING.
If i create and login with another user, in timeline the photos appear and
in albums aswell. But if I press in the i from info, it says on the tab
itself
"Error: could not get media by media_id and user_id from database: record
not found"
And in the main window, notification like, says:
"Server error
You are being logged out in an attempt to recover. Cannot query field
"description" on type "MediaEXIF".
Something went wrong
Server error: Cannot query field "description" on type "MediaEXIF". at
(undefined)
Something went wrong
Server error: could not get media by media_id and user_id from database:
record not found at (media)
Something went wrong
Server error: could not get media by media_id and user_id from database:
record not found at (media)"
Then I went to try what you told.
I changed the tag in my stack and recreated.
I even went to portainer to press in recereate and for IMAGE PULL.
Now it says
"Photoview Version
Release Version
2.3.12 (0b9d04e
<0b9d04e>
)
Build date
2022-02-11T12:07:25Z"
So I assume it is OK.
I did a scan, let it finish and nothing changed.
Same non-appearing images, etc, as I mentioned above.
Any more ideas?
—
Reply to this email directly, view it on GitHub
<#729 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNRU534ZYK3KCJ4HN3UYT3WHDCVRANCNFSM56HYOXLQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Every time I mentioned "scan" i meant "scan all users", that's the button I always press. Did you got white images or blurhashes? EDIT/continuation: I tried scanning all users and it stayed the same. |
I had white images and i was using scan option for my user only.
…On Mon, Nov 7, 2022, 15:41 fmnamado ***@***.***> wrote:
Every time I mentioned "scan" i meant "scan all users", that's the button
I always press.
Did you got white images or blurhashes?
Because in timeline I have blurhashes and not white images.
—
Reply to this email directly, view it on GitHub
<#729 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNRU5YVI2D4V2MBN34TB3TWHEIJHANCNFSM56HYOXLQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
For anyone else running into this issue where you get some sporadic white thumbnails in your timeline and albums and the error: Once you run the Scan All Users button, it should fix the issue. Hope this helps someone. |
I did it, but it does not solve the issue :/ |
Problem still persists in docker:master White images on the homepage and this error coming up on the right hand side when clicking the "i". Rescanning all users (without nuking the DB) now and see what happens... |
I also have this. |
For me a full rescan helped. Seems like the scan was interrupted somewhere before which led to incomplete caching and DB entries... |
I did some research in the code for this problem, the cause of this problem is missing records in the media_urls table which results in 0 records when retrieving the media, I didn't find the cause for the missing records. |
After some more investigation it seems (at least in my case) that it had problems with corrupted images. It looks like it stops scanning after it fails to process a corrupted image. When I found out which images it struggled with, I deleted them and the directory was scanned correctly after that. It looks like the software doesn't recover from faulty images. I also couldn't find an easy way to find which image is corrupt. [edit] It seems there is a PR available for this problem #892 |
Describe the bug
I just installed Photoview, when I go to the WEB interface I have no photo loaded and this error appears in a loop.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No photo of the reception desk loads
Screenshots
https://share.jordand.fr/yUPI7/JoneQiMI00.png
Your environment:
Feel free to remove and add what you think might be useful.
The text was updated successfully, but these errors were encountered: