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

**URL:** https://meta.discourse.org/t/im-getting-a-server-error-500-and-have-no-idea-why/25010
**Category:** Self-hosting
**Created:** [2015年二月9日 13:52 UTC](https://meta.discourse.org/t/im-getting-a-server-error-500-and-have-no-idea-why/25010 "2015-02-09T13:52:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![limeblast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/limeblast/32/31296_2.png) [@limeblast](https://meta.discourse.org/u/limeblast)
#### Post date: [2015年二月9日 13:52 UTC](https://meta.discourse.org/t/im-getting-a-server-error-500-and-have-no-idea-why/25010/1 "2015-02-09T13:52:31Z")

</div>

I don’t know if this is related to [my previous post](https://meta.discourse.org/t/but-imagemagick-is-not-installed/25007), but I’m currently getting a Server Error 500 on my forum:

[https://talk.birmingham.io/](https://talk.birmingham.io/)

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?

---

<div class="post-metadata">

### Author: ![limeblast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/limeblast/32/31296_2.png) [@limeblast](https://meta.discourse.org/u/limeblast)
#### Post date: [2015年二月9日 13:55 UTC](https://meta.discourse.org/t/im-getting-a-server-error-500-and-have-no-idea-why/25010/2 "2015-02-09T13:55:57Z")

</div>

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

What can I do to check what went wrong?

---

<div class="post-metadata">

### Author: ![rcfox](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rcfox/32/115486_2.png) [@rcfox](https://meta.discourse.org/u/rcfox)
#### Post date: [2015年二月9日 13:59 UTC](https://meta.discourse.org/t/im-getting-a-server-error-500-and-have-no-idea-why/25010/3 "2015-02-09T13:59:47Z")

</div>

Some logs are available under [yoursite.com](http://discourse.yoursite.com/logs) if you’re an admin.

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

---

<div class="post-metadata">

### Author: ![limeblast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/limeblast/32/31296_2.png) [@limeblast](https://meta.discourse.org/u/limeblast)
#### Post date: [2015年二月9日 14:01 UTC](https://meta.discourse.org/t/im-getting-a-server-error-500-and-have-no-idea-why/25010/4 "2015-02-09T14:01:42Z")

</div>

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=“65.201.176.201” HTTP\_X\_FORWARDED\_FOR=“82.30.76.186, 37.201.226.229”)

> 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](https://talk.birmingham.io/assets/vendor-9865d047d5e07f2c98efb2b5cfaa3245.js)  
> Line: 5  
> Column: 20205  
> Window Location: [https://talk.birmingham.io/t/so-why-did-you-ask/833](https://talk.birmingham.io/t/so-why-did-you-ask/833)

> 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.

---

<div class="post-metadata">

### Author: ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)
#### Post date: [2015年二月9日 21:49 UTC](https://meta.discourse.org/t/im-getting-a-server-error-500-and-have-no-idea-why/25010/5 "2015-02-09T21:49:51Z")

</div>

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

> [@Memory is running out and Discourse stops working](https://meta.discourse.org/t/low-memory-imagemagick-white-pages/25038/11):
>
> confirmed, will find the leak and plug it.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年二月18日 23:11 UTC](https://meta.discourse.org/t/im-getting-a-server-error-500-and-have-no-idea-why/25010/6 "2015-02-18T23:11:25Z")

</div>


