-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Ghost crashes when uploading a post image #12967
Comments
I also tried running ghost directly with
*I just reloaded the editor instead of navigating to a new post. |
@lfuelling can you perhaps share the OS you're running Ghost on? I'm curious if this is at all related to docker-library/ghost#256, where Sharp installed on certain node versions & os combinations results in segmentation faults during image uploads |
I'm running Ghost on Debian 10, Linux 4.19.0-16-amd64. It worked before upgrading to v4 but the issue you linked seems to be about non-amd64 systems. I also tried installing |
@lfuelling yeah there was another issue that came up in the context of the one I linked earlier regarding non-amd64 systems, but the initial issue was related to people experiencing restarts on Alpine Linux amd64. The issue that I found was that sharp seemed to think it installed correctly, but something under the hood wasn't linking correctly, resulting in segmentation faults occurring whenever Ghost attempted to handle image resizing with sharp. |
Since I upgraded to the 4.5 version I have the same issue to upload the image in the post. Error in Nginx access.log :
Error in Nginx error.log
Node version v14.17.0 (updated for the 4.5 version) Force update after the installation of node with the command : Ghost doctor output : I found also this issue #11129 After a restart of ghost I can upload the image but general error and don't save the post On the nginx error In the developer console I have this error Thank you for the help |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I believe this was an issue with the sharp dependency which has since been resolved here: |
Anyone have a solution? I update to 4.11 still same issue. Image upload crash site :( |
Same here, getting a crash when trying to upload any image. I am also running Debian 10. |
@nolo14. @themaster567 you can make sure you have I think there might be something else missing as well but you should be able to solve it by following the logged errors when installing sharp fails with something else than libvips. |
I'm using the official docker image, so unfortunately I don't think this is related. In addition, the error logs contain zero useful information: https://pastebin.com/VkVLpVFW EDIT: I've now made an issue in the proper location docker-library/ghost#267 (comment) |
After ran "sharp is a high-performance image processing module for Node.js. This module assists with UGC management by offering an easy solution for reading, enhancing, and saving image files. sharp compresses images faster than most other Node.js modules, like ImageMagick, Jimp, or Squoosh, and produces high-quality results." |
Thats just removing a node module, it doesnt work on 5.35 latest docker image. Well, it does stop the container from crashing but it also doesnt let you upload the image saying sharp isnt installed(because it was removed) |
Thought it was just the docker based container install but then went ahead with the install in ubuntu also and got the same thing, the process crashes. in dev tools i get an err_conn_refused and then it starts returning 503s after the service crashes. this isnt even going through nginx either, straight to the local ip of my box. must be my cpu on my server. setting the config option to disable image optimization worked, which i found here #13986 |
Issue Summary
When trying to upload a post image in the editor, the
POST
tohttps://<hostname>/ghost/api/canary/admin/images/upload/
causes Ghost to crash resulting in a 502 from NGINX.It really does a full restart, because hitting (spamming) refresh after the 502 results in the "updating our site" loading spinner and then (for a short time) the "starting up" laoding spinner.
To Reproduce
I expected the iimage to be uploaded. The file in question was well under the max filesize limit and I tried
.jpg
as well as.png
.Technical details:
The text was updated successfully, but these errors were encountered: