-
Notifications
You must be signed in to change notification settings - Fork 43
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
Some media objects fail to load with a 502 error #126
Comments
Could it be that the ones that don't work have absolute paths rather than relative ones? |
I don't think so, but I don't know how to check it in the Gramps Web app :) I am also experiencing a possibly related issue where previews/thumbnails for some of the media files load on first load, but not when use the tile view navigation buttons. It smells like a general bug with loading media objects, but I am not a programmer and I can't really investigate further on my own. I'd be happy to let a developer take a look to investigate, just shoot me a message. I am well aware that Gramps Web is not released, and I'd like to contribute where I can. |
Can you please check the logs with |
You're right, it seems to be absolute paths - at least some of the time. Logs show errors like this:
There's no way to fix this from within Gramps Web, is there? It would also be useful to be able to delete media objects... Once I've found a way to fix the paths I'd like to see if the browsing issue goes away in the tiles view. Could be a different issue, since images are sometimes loaded correctly. |
No, the easiest way right now is to use the Media Manager in desktop to convert absolute to relative paths.
This is tracked in #119. |
Another thing to check is whether you have Windows (backslash) paths: gramps-project/gramps-web-api#187 |
I guess this specific error could also be solved by implementing gramps-project/gramps-web-api#151, i.e. auto-converting absolute media paths to the new base directory. Let me know if changing to relative paths solved the issue. |
Thank you for all your suggestions, I haven't had time to look at the issue again yet, but I will update and close this when I do 🙂 |
I have just recently set up Gramps Web hosted on an old work pc running Linux Mint. I am very new to docker, but eventually got everything set up and working with SSL as per the suggested method in the documentation.
I moved over my tree and media files from my local installation (manually deployed, not via the sync extension), but I am experiencing some issues with media objects - only some are being read correctly from the server:
Inspecting the page with the media object I can see they fail with 502 Bad Gateway.
I looked at the files and I can't really find any pattern as to what fails. Doesn't seem to be related to file format, size, or naming.
The text was updated successfully, but these errors were encountered: