-
Notifications
You must be signed in to change notification settings - Fork 301
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
Media upload not working #4159
Comments
What is the response from this POST request? I'm guessing a 500. After a sucess response, the page would reload - showing the new image. |
Yes, I do get 500. More findings on uploading the original image as well as smaller versions:
I initially thought it could be the super high resolution, but yeah, it turns out I need to make the image a lot smaller for it to succeed. Notice that in the upload popup it says |
Almost certainly the memory (or some other) limit of your server See also https://webtrees.net/faq/thumbnails/ |
My Image Magick shows that it supports JPG, JPEG and PNG For what concerns the processor, my NAS has a quad-core Intel Celeron J3455. Even in this case, I doubt this is causing the issue? More details on the HTTP response:
request:
|
If it works for small images, but not large ones, it hints at a resource limit of some sort. What are the details of the 500 response. It would generally contain an error message. If you don't know how to use the developer tools in your browser, there are instructions here: |
The response is, sadly, just a generic 500 error in html code
|
For some extra info, I bashed into the docker container and did both I also ran these commands from outside the containers, and they both return In both cases this doesn't seem to be the issue, but I agree with you that if some sizes work it must be a server-side problem |
If this was a catchable error (code or logic error), then webtrees would have generated a formatted 500 response. Since it didn't - and we have a generic response from the webserver - then it also suggests a resource (cpu/memory/etc.) limit was reached, and the PHP process was terminated forcibly. |
But how can this happen on a Additionally, is there a way to trigger the thumbnail generation that doesn't go through a POST request? (ie manually uploading in a folder?) Really appreciate the help so far! |
Thumbnails are generated when a page tries to view them - not when you upload an image. The upload simply saves the file in the |
Maybe your disk has less than 165kb free? Could be so many things. Difficult to guess. |
To answer the question, I have Terabytes of available space and it fails even if I rename the file abcd.jpg 🤷♂️It also fails with other images, so yeah...I dunno :( |
Still having this issue and not sure why this has been marked as closed? I haven't done any progress, but feels like maybe someone else might bump onto the same issue? The issue seems to be caused bu the file resolution. I can shrink images and they eventually manage to upload, but I don't see any setting/warning related to this :S |
Because I am pretty certain this is a server limitation, not a code issue. Did you check the policy.xml file for the ImageMagick library? |
Even if it's a server issue it makes sense to explore what could be the cause, I think. I have terabytes of free space, 32Gb of ram, CPU is almost entirely available. I guess I will ask on the webtrees-docker repo and see if they can provide some extra help, thank you. |
As I said in my last post, you might have TB of RAM, but if your imagick policy says to use only 128MB, then it won't be used. |
Running webtrees 2.0.19 on docker, behind reverse proxy.
Whenever I try and add a media file, nothing really happens. I select the file, give it a title and media type, i click Save but nothing happens, the popup dialog stays open.
docker logs
only showsIf I check the network tab of Firefox, I do see the
POST
request, but it shows 117 bytes for an image that is actually 500 Kb.Uploading media used to work, but I believe it broke now that I made webtrees reachable through an external url.
Nginx config:
Any idea what could be the cause of this?
The text was updated successfully, but these errors were encountered: