Once I got Ghost up and running, I got some errors and there was venting around the usual places. Image uploads were failing. I cried. Then I solved it. Then someone asked a logical question.
How did you fix the image upload issue?
What happened was that I found I was getting a Wiggly Cat whenever I uploaded an image. Eventually the upload failed.
The cat bounced up and down. My wife eyed it and said “That’s not much of a chuffing SOS now, is it?” (no, she’s not British, but what else can you say about that?). Thankfully, after years of WordPress support I went right into the file system and checked if the images were being uploaded at all. Answer? Sort of.
$ ls -lah total 0 drwxr-xr-x 2 elfghost elfgroup 131 Apr 15 17:22 . drwxr-xr-x 3 elfghost elfgroup 23 Apr 15 17:12 .. -rw-r--r-- 1 elfghost elfgroup 0 Apr 15 17:13 f4c134eb021e026414a1bd23d3c5c927-1.jpeg -rw-r--r-- 1 elfghost elfgroup 0 Apr 15 17:12 f4c134eb021e026414a1bd23d3c5c927.jpeg -rw-r--r-- 1 elfghost elfgroup 0 Apr 15 17:22 unicorn.jpeg
0 bytes isn’t right. But again, WordPress support history to the rescue. I checked my
/tmp folder, saw it was full, turfed the entire thing, and the upload worked. Rather fast, too, since it’s not making an image resizes. I will note, had that fix failed, I’d have started playing with folder permissions, but since I got the 0-byte version, I was reasonably sure that wasn’t my issue.
Two humor tidbits for you.
Bing thinks I write in Turkish:
Here’s a cute bouncing cat: