# Error when running things through the public directory

**URL:** <https://www.ruby-forum.com/t/error-when-running-things-through-the-public-directory/126131>\
**Category:** Rails\
**Created:** [January 15, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/error-when-running-things-through-the-public-directory/126131 "2008-01-15T18:12:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 15, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/error-when-running-things-through-the-public-directory/126131/1 "2008-01-15T18:12:53Z")

</div>

Hi,

I’m running the latest version of Ruby on Rails on Fedora Core 6  
Linux. I created the simple “hello world” application found on the  
RoR site ([http://wiki.rubyonrails.org/rails/pages/Tutorial](http://wiki.rubyonrails.org/rails/pages/Tutorial)). B/c of  
the hosting company I’m using, I would like to be able to run

[http://mydomain.com/myapp/public/hello/world](http://mydomain.com/myapp/public/hello/world)

but when I try entering this URL on my dev server, I get this error:

"We’re sorry, but something went wrong.

We’ve been notified about this issue and we’ll take a look at it  
shortly."

What does it mean and how can I troubleshoot?

Thanks, - Dave

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 15, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/error-when-running-things-through-the-public-directory/126131/2 "2008-01-15T18:44:06Z")

</div>

On 1/15/08, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> but when I try entering this URL on my dev server, I get this error:
> 
> "We’re sorry, but something went wrong.
> 
> We’ve been notified about this issue and we’ll take a look at it  
> shortly."
> 
> What does it mean and how can I troubleshoot?

The actual errors will appear in the log files, log/development.log  
when running in development mode for example.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 15, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/error-when-running-things-through-the-public-directory/126131/3 "2008-01-15T19:20:01Z")

</div>

Thanks, but there is nothing in the logs. I am running under the  
Apache 2 web server. Is there something I should do there? Since  
the .htaccess is routing everythinng to dispatch.cgi, I didn’t think I  
had to, but I’m a beginner at this stuff. - Dave

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 15, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/error-when-running-things-through-the-public-directory/126131/4 "2008-01-15T19:29:27Z")

</div>

You also checked ALL the logs (production too), right? That error is a  
RoR generated error, meaning that RoR will have logged something  
somewhere.

RoR is being activated correctly, so it’s something in the program  
itself that isn’t working… and without logs it’s really really hard  
to guess what that might be.

-Ryan

On Jan 15, 12:19 pm, “removed\_email\_address@domain.invalid”

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 15, 2008, 8:13pm UTC](https://www.ruby-forum.com/t/error-when-running-things-through-the-public-directory/126131/5 "2008-01-15T20:13:38Z")

</div>

Ok, I reset the logs, visited the page above and here is what is in  
the development.log file. Not sure what it all means:

file /usr/local/apache2/htdocs/testrails/tmp/sessions//ruby\_sess.  
343c99faad95793e not readable^M  
/usr/local/lib/ruby/1.8/pstore.rb:100:in `initialize'^M /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/ action_controller/cgi_ext/pstore_performance_fix.rb:25:in`new’^M  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/  
action\_controller/cgi\_ext/pstore\_performance\_fix.rb:25:in  
`initialize'^M /usr/local/lib/ruby/1.8/cgi/session.rb:273:in`new’^M  
/usr/local/lib/ruby/1.8/cgi/session.rb:273:in `initialize'^M /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/ action_controller/cgi_process.rb:132:in`new’^M  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/  
action\_controller/cgi\_process.rb:132:in `session'^M /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/ action_controller/cgi_process.rb:164:in`stale\_session\_check!’^M  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/  
action\_controller/cgi\_process.rb:116:in `session'^M /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/ action_controller/base.rb:1058:in`assign\_shortcuts\_without\_flash’^M  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/  
action\_controller/flash.rb:140:in `assign_shortcuts'^M /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/ action_controller/base.rb:429:in`process\_without\_filters’^M  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/  
action\_controller/filters.rb:684:in  
`process_without_session_management_support'^M /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/ action_controller/session_management.rb:114:in`process’^M  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/  
action\_controller/base.rb:334:in `process'^M /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/dispatcher.rb:41:in`dispatch’^M  
/usr/local/apache2/htdocs/testrails/public/dispatch.cgi:10

Thanks for any help, - Dave
