Ruby on Rails Thursday, March 29, 2012

Hi Walter,

I did as instructed but now getting a "rake aborted! stack level too
deep" error (in /home/rubys/work/depot/app/assets/stylesheets/
scaffolds.css.scss).

I also tried modified "config.assets.compile = true" (from false)
within config/environments/production.rb but still no good :(

Thanks,

Kal

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

# rake assets:precompile --trace

** Invoke assets:precompile (first_time)
** Execute assets:precompile
/usr/local/bin/ruby /usr/local/bin/rake assets:precompile:all
RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
stack level too deep
(in /home/rubys/work/depot/app/assets/stylesheets/
scaffolds.css.scss)
/usr/local/lib/ruby/1.9.1/rake/task.rb:162
Tasks: TOP => assets:precompile:primary
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby /usr/local/bin/
rake as...]
/usr/local/lib/ruby/1.9.1/rake/file_utils.rb:53:in `block in
create_shell_runner'
/usr/local/lib/ruby/1.9.1/rake/file_utils.rb:45:in `call'
/usr/local/lib/ruby/1.9.1/rake/file_utils.rb:45:in `sh'
/usr/local/lib/ruby/1.9.1/rake/file_utils_ext.rb:39:in `sh'
/usr/local/lib/ruby/1.9.1/rake/file_utils.rb:80:in `ruby'
/usr/local/lib/ruby/1.9.1/rake/file_utils_ext.rb:39:in `ruby'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/
assets.rake:9:in `ruby_rake_task'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/
assets.rake:17:in `invoke_or_reboot_rake_task'
/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/sprockets/
assets.rake:25:in `block (2 levels) in <top (required)>'
/usr/local/lib/ruby/1.9.1/rake/task.rb:205:in `call'
/usr/local/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'
/usr/local/lib/ruby/1.9.1/rake/task.rb:200:in `each'
/usr/local/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
/usr/local/lib/ruby/1.9.1/rake/task.rb:158:in `block in
invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/local/lib/ruby/1.9.1/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.9.1/rake/task.rb:144:in `invoke'
/usr/local/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'
/usr/local/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 levels)
in top_level'
/usr/local/lib/ruby/1.9.1/rake/application.rb:94:in `each'
/usr/local/lib/ruby/1.9.1/rake/application.rb:94:in `block in
top_level'
/usr/local/lib/ruby/1.9.1/rake/application.rb:133:in
`standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake/application.rb:88:in `top_level'
/usr/local/lib/ruby/1.9.1/rake/application.rb:66:in `block in run'
/usr/local/lib/ruby/1.9.1/rake/application.rb:133:in
`standard_exception_handling'
/usr/local/lib/ruby/1.9.1/rake/application.rb:63:in `run'
/usr/local/bin/rake:32:in `<main>'
Tasks: TOP => assets:precompile

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

On Mar 29, 11:37 pm, Walter Lee Davis <wa...@wdstudio.com> wrote:
> On Mar 29, 2012, at 10:51 PM, Kal wrote:
>
> > (Re-posting)
>
> > Thanks Walter,
>
> > I think you are correct.  I had neglected to set up a production
> > version of the database.
>
> > I just ran "rake db:migrate RAILS_ENV=production".  However, I now get
> > a "500 Internal Server Error".
>
> > Anyway, here is the error from production.log.  Any ideas?
>
> Sure. rake assets:precompile and you should be good to go.
>
> Walter
>
>
>
>
>
>
>
>
>
> > Thanks,
>
> > Kal
>
> > -----------------------------------------------------------------------------------------------------------------------------
>
> >  Processing by StoreController#index as HTML
> > Rendered store/index.html.erb within layouts/application (17.9ms)
> > Completed 500 Internal Server Error in 38ms
>
> > ActionView::Template::Error (all.css isn't precompiled):
> >    2: <html>
> >    3: <head>
> >    4:   <title>Depot</title>
> >    5:   <%= stylesheet_link_tag :all %>
> >    6:   <%= javascript_include_tag :defaults %>
> >    7:   <%= csrf_meta_tag %>
> >    8: </head>
> >  app/views/layouts/application.html.erb:5:in
> > `_app_views_layouts_application_html_erb__750878_73537400'
>
> > ---------------------------------------------------------------------------------------------------------------------------
>
> > On Mar 29, 4:12 pm, Walter Lee Davis <wa...@wdstudio.com> wrote:
> >> On Mar 28, 2012, at 8:56 PM, Kal wrote:
>
> >>> Hi All,
>
> >>> Can someone please help?  I've been banging my head against for wall
> >>> for 2 months; all of which has been spent trying to set up ROR.  So I
> >>> actually haven't written 1 line of code :(  Any help would be greatly
> >>> appreciated :)
>
> >>> I'm following the 4th edition of "Agile Web Development with Rails".
> >>> So, I'm able to deploy the site via WEBrick.  However, when I go to my
> >>> URL (without using port 3000), I get the error message below.  What am
> >>> I missing?
> >>> ---------------------------------------------------------------------------------------------------------------
>
> >>> Ruby (Rack) application could not be started
> >>> These are the possible causes:
>
> >>> There may be a syntax error in the application's code. Please check
> >>> for such errors and fix them.  A required library may not installed.
> >>> Please install all libraries that this application requires.  The
> >>> application may not be properly configured. Please check whether all
> >>> configuration files are written correctly, fix any incorrect
> >>> configurations, and restart this application.  A service that the
> >>> application relies on (such as the database server or the Ferret
> >>> search engine server) may not have been started.  Please start that
> >>> service.
>
> >>> Further information about the error may have been written to the
> >>> application's log file. Please check it in order to analyse the
> >>> problem.
>
> >>> Error message:
> >>>    unable to open database file (SQLite3::CantOpenException)
> >>> Exception class:
> >>>    PhusionPassenger::UnknownError
> >>> Application root:
> >>>    /home/rubys/work/depot
> >>> Backtrace
>
> >>> ---------------------------------------------------------------------------------------------------------------
>
> >>> This is the error in /var/log/httpd/error_log
>
> >>> *** Exception PhusionPassenger::UnknownError in
> >>> PhusionPassenger::Rack::ApplicationSpawner (unable to open database
> >>> file (SQLite3::CantOpenException)) (process 3244, thread #<Thread:
> >>> 0xa1db870>):
>
> >>> ---------------------------------------------------------------------------------------------------------------
>
> >>> By the way, I'm running:
>
> >>> Ruby 1.9.3p0
> >>> Rails 3.1.3
> >>> Phusion Passenger version 3.0.11
> >>> CentOS release 5.6
> >>> Server version: Apache/2.2.3
>
> >>> ---------------------------------------------------------------------------------------------------------------
>
> >>> This my vhost configuration from httpd.conf
>
> >>> <VirtualHost *:80>
> >>>   ServerNamewww.mywebpage.com
> >>>   DocumentRoot /home/rubys/work/depot/public/
>
> >>>   <Directory /home/rubys/work/depot/public>
> >>>        Order allow,deny
> >>>        Allow from all
> >>>   </Directory>
>
> >>> </VirtualHost>
>
> >> By any chance, have you run rake:db:migrate RAILS_ENV=production yet? If not, then one possible reason why you can't open the database is that it does not exist.
>
> >> Walter
>
> > --
> > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment