# 500 Internal Server Error in Ruby

**URL:** <https://community.miniprofiler.com/t/500-internal-server-error-in-ruby/90>\
**Category:** Ruby\
**Created:** [July 27, 2012, 9:32am UTC](https://community.miniprofiler.com/t/500-internal-server-error-in-ruby/90 "2012-07-27T09:32:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjl](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cjl](https://community.miniprofiler.com/u/cjl)\
**Post date:** [July 27, 2012, 9:32am UTC](https://community.miniprofiler.com/t/500-internal-server-error-in-ruby/90/1 "2012-07-27T09:32:13Z")

</div>

Hi,

The mini ruby profiler is causing a “Internal Server Error” the error is:

```
[Fri Jul 27 19:16:22 2012] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch Phusion_Passenger/3.0.13 configured -- resuming normal operations

[pid=5961 thr=3074713984 file=ext/apache2/Hooks.cpp:848 time=2012-07-27 19:16:36.338]: The backend application (process 6009) didn't send a valid HTTP response. It might have crashed during the middle of sending an HTTP response, so please check whether there are crashing problems in your application.

This is the data that it sent: [8dsbp","d4ebq9agdwv8q3d2eod5","moe51mopk64x82bqi71m","ftc0qemnxi3qcqae6qgt","ptdje6lgzh9ursxf6sso","7gpcvxsp72i5904qsntw","wq2m5c6967jrh2hp9wdc","e8ram1eb4l4xcerun1tw","y1lasuksqjugfphc524s","bzif8pmo8alwrld869mr","x9lzg5c5ikdnl8ymlldx","fvhkmfzlsw7urqm81z2l","r9ygdjieyp62p9rv21nc","2hbloqbylsavwvyo309h","5dqzla34i0yvy81vf33q","57djb5gi8c4hvhab426p","ybvh63kiwsso7pez3mtf","45j6timrccma19buw5bz","e5ufyfuvhyvgup3zm0xk","g1mnxdg5lr8u3dthb2xa","wvpsvzkg8erq1axoi3l4","wzpjs4b3enfafwit3tms","zd9ctqkb6jtzndbcip4g","3t9v9lws9go3zse3p5ik","cq7iajrcsjzbzejlnd0o","2tdy26geoxdqrdq11rob","b1jsypaf3s49cjn8yhow","ujyzvflpn0gctgazabq9","rqdjm2so2hef5gmozkju","njvbnpaczzo5poaubs0v","2e44fau36clbbgxp8pql","h479vnu175usg4ur09aa","ivvv3q5lj4vafnlq0cyb","mtb6j207wrsfhtbxzqot"]]

```

I’m using Rails 3.2.6

If you need anything else please let me know.

Many thanks

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [July 28, 2012, 11:12pm UTC](https://community.miniprofiler.com/t/500-internal-server-error-in-ruby/90/2 "2012-07-28T23:12:35Z")

</div>

Can you test the latest source at Github?

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [July 29, 2012, 10:14pm UTC](https://community.miniprofiler.com/t/500-internal-server-error-in-ruby/90/3 "2012-07-29T22:14:25Z")

</div>

should be fixed in latest (0.1.8) please confirm

---

<div class="post-metadata">

**Author:** ![cjl](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cjl](https://community.miniprofiler.com/u/cjl)\
**Post date:** [July 30, 2012, 6:45pm UTC](https://community.miniprofiler.com/t/500-internal-server-error-in-ruby/90/4 "2012-07-30T18:45:11Z")

</div>

@sam I’m still getting it: rails 3.2.7 and 0.1.9 (sorry I didn’t get an email when this thread was updated)

---

<div class="post-metadata">

**Author:** ![Unknown55](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/unknown55/32/992_2.png) [@Unknown55](https://community.miniprofiler.com/u/Unknown55)\
**Post date:** [July 12, 2013, 8:54am UTC](https://community.miniprofiler.com/t/500-internal-server-error-in-ruby/90/5 "2013-07-12T08:54:33Z")

</div>

We’re still seeing this in MiniProfiler 0.1.27.

Usually after a longer wait time where the local development server is not running (say overnight) this will crop up the next morning:

!! Unexpected error while processing request: No such file or directory - /Users/user/code/project/tmp/miniprofiler/mp\_views\_3b8d0774d3f759f36dd96f694bb39df4

---

<div class="post-metadata">

**Author:** ![sam](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/sam/32/377_2.png) [@sam](https://community.miniprofiler.com/u/sam)\
**Post date:** [December 2, 2013, 11:16pm UTC](https://community.miniprofiler.com/t/500-internal-server-error-in-ruby/90/7 "2013-12-02T23:16:19Z")

</div>

> [@Unknown55](#):
>
> No such file or directory

This is likely happening due to purge rules, we only keep data around for 24 hours see:

> <https://github.com/MiniProfiler/rack-mini-profiler/blob/master/lib/mini_profiler/storage/file_store.rb#L29-L30>

Open to have a PR that makes this more configurable.
