I'm getting a Server Error 500, and have no idea why

(Daniel Hollands) #1

I don’t know if this is related to my previous post, but I’m currently getting a Server Error 500 on my forum:

I had reports that it was down over the weekend for an amount of time also, but appears to have sorted itself out last time.

Any ideas?

(Daniel Hollands) #2

Quick update - I rebooted the server, and the site is back up again now.

What can I do to check what went wrong?

(Ryan Fox) #3

Some logs are available under yoursite.com if you’re an admin.

More logs are available by SSHing into your Docker installation and looking in /var/www/discourse/log

(Daniel Hollands) #4

I’m looking at the logs in /logs, and I’m getting entries like this:

Job exception: Cannot allocate memory - df -Pk /var/www/discourse/public/uploads/default | awk ‘NR==2 {print $4 * 1024;}’

Job exception: undefined method `merge’ for nil:NilClass

ActionDispatch::RemoteIp::IpSpoofAttackError (IP spoofing attack?! HTTP_CLIENT_IP=“” HTTP_X_FORWARDED_FOR=“,”)

QuotaExceededError: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota.
Url: https://talk.birmingham.io/assets/vendor-9865d047d5e07f2c98efb2b5cfaa3245.js
Line: 5
Column: 20205
Window Location: So why did you ask? - The Lounge - Community

Errno::ENOMEM (Cannot allocate memory - convert -size 240x240 xc:‘rgb(236,194,58)’ -pointsize 200 -fill white -gravity Center -font ‘Helvetica’ -stroke ‘rgb(188,155,46)’ -strokewidth 2 -annotate -5+25 ‘O’ ‘public/uploads/letter_avatars/2/O/236_194_58/240.png’)

I’m running on DO’s $20 a month box.

I can’t access the server logs until I get home.

(Jens Maier) #5

Looks like you’re experiencing the recent memory leak bug, too:

(Jeff Atwood) #6