500 Internal Server Error when trying to upload covers/images
Talk Bug Collectors
Join LibraryThing to post.
1Taliesien
Trying to replace a couple of Amazon covers with higher rez versions and I keep getting the above error.
Uncaught TypeError: $(...) is null
uploadhide https://www.librarything.com/js/arbitrarypics.js?5047:72
ETA: further testing shows same behavior for any image upload attempts
occurs across multiple browsers/devices
Uncaught TypeError: $(...) is null
uploadhide https://www.librarything.com/js/arbitrarypics.js?5047:72
ETA: further testing shows same behavior for any image upload attempts
occurs across multiple browsers/devices
2kristilabrie
I don't see any images on https://www.librarything.com/work/30049556/covers including Amazon covers.
Are you trying to upload a cover from an image URL or as a direct upload? If the image URL, can you give me the link?
I just tested cover uploads on my end and was able to choose a member-uploaded cover, grab one from the web, and upload direct, on a few different books. We'll need to do some more digging.
Are you trying to upload a cover from an image URL or as a direct upload? If the image URL, can you give me the link?
I just tested cover uploads on my end and was able to choose a member-uploaded cover, grab one from the web, and upload direct, on a few different books. We'll need to do some more digging.
3cameroninok
I am also not able to upload images from the web site or from the mobile app.
From the Web, I get "500 Internal Server Error nginx/1.21.6"
From the mobile app, I get "Upload Failed Failed to upload the cover".
From the Web, I get "500 Internal Server Error nginx/1.21.6"
From the mobile app, I get "Upload Failed Failed to upload the cover".
4Taliesien
>2 kristilabrie: local file upload as I have a hi-rez version. Multiple reports of the same issue can be found here -> https://www.librarything.com/topic/353424#8225291 and here -> https://www.librarything.com/topic/353456#8225201
ETA kristilabrie wrote: "I don't see any images on https://www.librarything.com/work/30049556/covers including Amazon covers."
Yeah, that's a whole separate bug that I noticed earlier this year and didn't care enough about to write up since it doesn't impact the results of the coverstats::amazonasin search. I'll add a Kindle book up on Amazon for preorder using the ASIN, weeks or months ahead of publication and get the Amazon cover yet when viewing covers at the work level, it never recognizes that I am using an Amazon cover, e.g.
Member-uploaded covers (0)
No covers
Covers from Amazon (0)
No covers
I added the book above in question 5 months ago and it's had an Amazon cover since day one but as you (didn't) see, has no Amazon covers listed. Separate issue and much lower priority though.
ETA kristilabrie wrote: "I don't see any images on https://www.librarything.com/work/30049556/covers including Amazon covers."
Yeah, that's a whole separate bug that I noticed earlier this year and didn't care enough about to write up since it doesn't impact the results of the coverstats::amazonasin search. I'll add a Kindle book up on Amazon for preorder using the ASIN, weeks or months ahead of publication and get the Amazon cover yet when viewing covers at the work level, it never recognizes that I am using an Amazon cover, e.g.
Member-uploaded covers (0)
No covers
Covers from Amazon (0)
No covers
I added the book above in question 5 months ago and it's had an Amazon cover since day one but as you (didn't) see, has no Amazon covers listed. Separate issue and much lower priority though.
5tarpfarmer
I am trying to upload a cover image from my PC, chrome browser and got the 500 error. I had originally tried to upload it from the android app and it failed. Then I tried the PC but I remembered seeing this bug report.
6kristilabrie
>4 Taliesien: I appreciate the extra details. How large is the file you're trying to upload?
Re: Amazon covers, those are always subject to change but something for us to look at another day, probably.
Re: Amazon covers, those are always subject to change but something for us to look at another day, probably.
7kristilabrie
>5 tarpfarmer: What size file are you trying to upload?
8kristilabrie
Okay, I did some testing and it seems to be failing on images as small as 1.1MB, which we should be handling. @ccatalfo is going to dig on this.
9Taliesien
>6 kristilabrie: Size doesn't seem to matter, I couldn't even upload a 142k screencap to my junk drawer.
10juancho81
Hi, I'm getting the same 500 error with a cover image of 2.5 mb. I'm trying to upload it through spanish site of LibraryThing (https://www.librarything.es) and using Edge.
11parlerodermime
I got the same bug today, but here are some extra details: I got the bug when trying to upload a file saved on my computer, but when I used the "grab one on the web" for a high-res file I was met with limited success. Oddly enough, on a second iteration of the same book (DRM and non-DRM), the listing did not sense the cover was available to choose from.
https://www.librarything.com/work/30292467/covers/248489808
https://www.librarything.com/work/30292467/covers/248489808
12Picathartes
FWIW, I'm getting the same error using (the most updated) Firefox on a PC. Image size that I am trying to upload is 593 KB.
13kristilabrie
Okay, I think we (or rather @ccatalfo) fixed this? As of about 2:14pm ET, if people can check and report back to confirm. Needed to clear some disk space.
14Taliesien
>13 kristilabrie: Yep, working now for me. Had two covers that needed updating as they were published today and I downloaded them this morning.
15tarpfarmer
Sorry I didn't follow up on this earlier. It's working now. Thank You!
16cameroninok
Just got a chance to try again. It is working now. Thank you very much!
17juancho81
>13 kristilabrie: Yep, it's working for me. Thanks!! :)
18kristilabrie
Excellent! Marking as fixed.
19EsotericArchiveofRoc
Hey everyone- I'm experiencing this problem today, 9/9/2023 at 8:35am EST. I had no issues yesterday uploading a bunch of covers, but today I'm getting the 500 Internal Server Error. Below that message, it says "nginx/1.21.6."
20RoboSchro
I'm also seeing this today.
The problem does seem to be related to image size. I had a batch of covers to upload; I was uploading directly from my laptop (Windows / Firefox). The smaller ones all worked - the largest that succeeded was 122KB (800x1218 pixels). The larger ones all failed - the smallest that failed was 168KB (800x1212 pixels).
The problem does seem to be related to image size. I had a batch of covers to upload; I was uploading directly from my laptop (Windows / Firefox). The smaller ones all worked - the largest that succeeded was 122KB (800x1218 pixels). The larger ones all failed - the smallest that failed was 168KB (800x1212 pixels).
21juancho81
>18 kristilabrie: It's happening again! I can not upload any size of file for a cover and i'm getting error 500 again.
22paradoxosalpha
I'm getting the 500 error when I try to upload a venue photo (from my local machine, 1.17 MB file size).
24kristilabrie
Just noting that I'm seeing this and have posted to our developers in case any of them pop on over the weekend. Sorry for the trouble, thanks for your patience in the meantime!
25Taliesien
>24 kristilabrie: Either it's already fixed again or I got lucky because I just uploaded a new cover that was 2.7mb without the error of two days ago.
26paradoxosalpha
I just had success with the same upload that failed for me this morning.
27timspalding
It works for me, both small and large files. If you have problems with a file, email it to tim@librarything.com?
T
T
28vangogan
500 Internal Service error for me too. Images are NOT large--the same size as I've always tried to load, but they're not loading today. Librarything seems to be having quite a few problems lately.
30Taliesien
>27 timspalding: Confirmed, same problem as I reported Thurs. Kristi said something about disk space cleanup resolving the issue that day...
31EsotericArchiveofRoc
The issue I was experiencing yesterday (500 Internal Server Error) in reference to uploading cover images -did- seem to be resolved by that afternoon (est). Today, though, the issue is back. ANY image I attempt to upload gets me that server error.
Size does not seem to be an issue. It's any image. The smallest image I tried uploading was 335 KB and the largest was 2.7 MB.
Size does not seem to be an issue. It's any image. The smallest image I tried uploading was 335 KB and the largest was 2.7 MB.
32kristilabrie
>29 vangogan: Can you email the file to tim@librarything.com, and let us know here how large the file is?
33kristilabrie
>31 EsotericArchiveofRoc: This is good info to have, thank you! Can you try the same uploads later this afternoon and see if the behavior changes?
34JerryMmm
We've encountered this as well, which is frustrating because we're just sorting a big collection this weekend :(
35vangogan
It doesn't matter what size it is--all image sizes lead to the 500 internal service error.
36MarthaJeanne
I sent Tim my picture.
37Maddz
Possibly related to this: I'm seeing broken images on member-uploaded covers when I go to change covers. If I click on the information box, I get a flash of the cover before it reverts to the broken image.
If the book is in a series, the cover there are fine, it's only in the book record.
Amazon covers seem OK.
If the book is in a series, the cover there are fine, it's only in the book record.
Amazon covers seem OK.
38EsotericArchiveofRoc
>33 kristilabrie: As of 11:28 am EST it's the same error message. I'll try again later.
40AnnieMod
>39 vangogan: It is Sunday and the LT people spent the whole last weekend working due to the Ddos attack. Chances are, they are doing the things that did not get done over the long weekend - spend time with families and so on. So I’d just give them some time and check on Monday.
41vangogan
>40 AnnieMod: Okay, thank you. Will wait.
42Taliesien
>41 vangogan: I'm having the best luck if I do my LT edits in the middle of the night, LOL. Was able to upload a cover just after midnight today (EDT) using 3000x2000px/8MB original. Book was published yesterday and I'm glad I took the time to add it before bed or I would have been quite irritated today not being able to when I got up.
43BecM1971
Just weighing in to say that I am having the same 500 server error, but it seems to be random and intermittent. Out of a dozen jpg covers I've uploaded, only two give me this error. All others uploaded without incident. All of them are the same file size, file type and uploaded in the same manner from my PC.
Incidentally, I have never been able to upload a photographed cover using the phone app. The photo upload always fails, which is what I save to my phone photos, email to myself, save to my PC then upload through the online website using Firefox.
Today: 2 fails, many successes.
Incidentally, I have never been able to upload a photographed cover using the phone app. The photo upload always fails, which is what I save to my phone photos, email to myself, save to my PC then upload through the online website using Firefox.
Today: 2 fails, many successes.
44amysisson
I'm getting this error as well, while trying to upload a jpg cover image from my desktop computer using Chrome.
45Bettesbooks
09/10/23 ... 08:02pm (PDT)
not able to upload cover image from my computer
Windows 11, edge
09/10/23 ... 08:18pm (PDT)
able to upload one cover image
09/20/23 ... 08:20pm (PDT)
not able to upload one cover image
https://www.librarything.com/work/30917764/covers/248700301
definitely intermittent
not able to upload cover image from my computer
Windows 11, edge
09/10/23 ... 08:18pm (PDT)
able to upload one cover image
09/20/23 ... 08:20pm (PDT)
not able to upload one cover image
https://www.librarything.com/work/30917764/covers/248700301
definitely intermittent
46Taliesien
All images uploading for me right now. I tested all that failed yesterday and so far no error. 10:32am EDT
47MarthaJeanne
Mine just worked, too.
48paradoxosalpha
I was having trouble yesterday along the lines described by >37 Maddz:. But that seems to have cleared up this morning also.
49kristilabrie
Okay, we think—and, judging by others' posts here—we've fixed this, now, but please reopen if anyone is still having trouble uploading images. Thanks for your patience, all.

