O'Reilly Forums: Can't Run "hello" - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Can't Run "hello"

#1 User is offline   scruffy2 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 11-May 09

Posted 11 May 2009 - 07:13 AM

Hi,

I can't run the first hello program (chapter 2).

I generated the hello index successfully, but when I went to localhost:3000/hello I get the following error:

We're sorry, but something went wrong.

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


I also tried all the previous steps (including a new install of ruby and rails) on another computer and got the same results.

Thanks for any help.



0

#2 User is offline   simonstl 

  • Active Member
  • PipPip
  • Group: O'Reilly Editor
  • Posts: 35
  • Joined: 17-September 08

Posted 11 May 2009 - 07:19 AM

Could you let us know what environment you're running it on? The error you're getting sounds like you're in production mode rather than development mode, which doesn't seem quite right either.

Thanks!

0

#3 User is offline   scruffy2 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 11-May 09

Posted 11 May 2009 - 08:06 AM

Thanks for the quick reply!

I'm not sure which environment I'm running it on (how could I find that out?). However, I'm running on Windows XP using the command line. I installed Ruby, Rails, and SQlite-3.

When I start the server it says
"=> booting WEBrick
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
=> Call with - d to detach
=> Ctrl-C to shutdown server
[2009-05-11 08:59:43] Info WEBrick 1.3.1
[2009-05-11 08:59:43] Info ruby 1.8.6 (2008-08-11) [i386-mswin32]
[2009-05-11 08:59:43] Info WEBrick::HTTPServer#start: pid=2688 port=3000 "


Thanks!

QUOTE (simonstl @ May 11 2009, 07:19 AM) <{POST_SNAPBACK}>
Could you let us know what environment you're running it on? The error you're getting sounds like you're in production mode rather than development mode, which doesn't seem quite right either.

Thanks!


0

#4 User is offline   simonstl 

  • Active Member
  • PipPip
  • Group: O'Reilly Editor
  • Posts: 35
  • Joined: 17-September 08

Posted 11 May 2009 - 09:15 AM

Hmmm.... Are you getting any more detailed error messages at the command line, or just the "We're sorry, but something went wrong." message?

By environment, I just mean operating system and Rails version. Also, could you let me know which installation instructions you followed? And do you get the Rails start page at localhost:3000/ ?

Thanks,
Simon
0

#5 User is offline   simonstl 

  • Active Member
  • PipPip
  • Group: O'Reilly Editor
  • Posts: 35
  • Joined: 17-September 08

Posted 12 May 2009 - 08:55 AM

I'm hoping you haven't replied because you figured it out. If not, may I suggest you try Heroku Garden? That's the easiest way I know of to skip all the installation and configuration headaches at first.

There's no real escaping installation questions in the long run, but in the short run, that's an easier path to get started.
0

#6 User is offline   peter.abramowitsch 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 07-March 10

Posted 07 March 2010 - 09:54 AM

Its nearly a year later and I have the very same problem in chapter 1 of the book.

Its definitely depressing for someone who's been developing in perl, c#, c++, c, java, etc for 30 years to not know how to run hello world.

There must be a simple answer...

Freshly re-installed using the defaults

ruby 1.8x
rails 2.3.5
sqlite3-ruby-1.2.5
cgi_multipart_eof_fix-2.5.0
mongrel-1.1.5-x86-mingw32
rack-1.1.0
rake-0.8.7
ffi-0.6.2

System is Windows XP SP2, commands are executed from cygwin pdksh


tried both Mongrel and WEBrick
my application controller and greeting controllers have completely empty index and show methods so as not to confuse the issue.


--------------------------------------------------------------------------------------------

I get the "Sorry, we're looking into it" message
I get the same message when clicking on "Your application's Environment" link of the server home page.

Clearly it's using the development environment because only the development log is filling up. This is what results from a call:

/!\ FAILSAFE /!\ Sun Mar 07 09:37:00 -0800 2010
Status: 500 Internal Server Error
unknown error
c:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'
c:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'
c:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload'
c:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `each'
c:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `dlload'
c:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/driver/dl/api.rb:31
c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
c:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
c:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
c:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
c:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/driver/dl/driver.rb:1
c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
c:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
c:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
c:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
c:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/database.rb:619:in `load_driver'
c:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/database.rb:617:in `each'
c:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/database.rb:617:in `load_driver'
c:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5-x86-mingw32/lib/sqlite3/database.rb:72:in `initialize'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:13:in `new'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:13:in `sqlite3_connection'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `send'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
c:/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in `cache'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:93:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'
c:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in `run'
c:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `each'
c:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/content_length.rb:13:in `call'
c:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:50:in `service'
c:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
c:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
c:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
c:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
c:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
c:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
c:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
c:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
c:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
c:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:14:in `run'
c:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111
c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
c:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
0

#7 User is offline   John Adam 

  • New Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 20-April 10

Posted 03 June 2010 - 04:52 AM

Hello every body!

I am John Adams and i am new here.
0

#8 User is offline   Jinn_21806 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 15-October 12

Posted 15 October 2012 - 07:42 PM

I am new here, nice to meet everybody :rolleyes:
0

#9 User is offline   Love Sms 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 10-December 12

Posted 10 December 2012 - 01:44 AM

I got review access to all of the material and can confirm that, yes, these screencasts are awesome… If you basically want to be able to look “over the shoulder” of an experienced Rails developer and see how a Rails development environment is set up and how multiple apps are built, there’s nothing that can beat this. This isn’t a set of “build a blog in 15 minutes” videos—it’s a complete course that could kick off a new career for you with Rails 3.0.
http://www.smsfick.c...abel/Love%20Sms
0

#10 User is offline   jespinto 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 16
  • Joined: 18-June 13
  • Gender:Male

Posted 26 June 2013 - 04:26 AM

Yes many people do face this problem but I think its only in a particular environment


____________
agile software development
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users