Application error (Rails) - Typo 4.0.3 production

Hi,

I´m running Typo 4.0.3 from gems. It works in development mode with
webrick, but not production. The current database I´m using is 46, 50
is the one Typo suggests me upgrading to, but I haven´t done that.
When running in production mode, I´m getting “Application error
(Rails)” on the main page, and “login unsuccsessfull” on the admin
page.

$ tail -f log/production.log
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' .//vendor/rails/railties/lib/webrick_server.rb:67:indispatch’
.//vendor/rails/railties/lib/commands/servers/webrick.rb:59
.//vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in
`require’
.//vendor/rails/railties/lib/commands/server.rb:30
script/server:3

The original production database can be found at
http://martin.stabenfeldt.net/typo_.db
Original development database: http://martin.stabenfeldt.net/typo_dev.db

I´m using ruby-1.8.4-3.fc4, global rails version (1.1.6, 1.1.2, 1.0.0,
0.14.2) shouldn’t have anything to say, since the one I´m using is
frozen in the vendors catalog?

Any suggestions to what I may do? Let me know if I can provide any
other information!

run rake migrate it will fix your DB issue.

Thanks,

I have now upgraded both the production and the development database.
But, I still get the “Application error (Rails)” when trying to view
my frontpage in production.
(I´m running Fedora Core 4)

This is what the logs say when loading the main page in production:

Processing ArticlesController#index (for 80.213.141.195 at 2006-09-12
23:32:58) [GET] Parameters: {“action”=>“index”,
“controller”=>“articles”}Rendering within
…/…/themes/chocomod/layouts/defaultRendering articles/indexInvalid
API Key (Key has expired) ActionView::ActionViewError (No rhtml,
rxml, rjs or delegate template found for
…/…/themes/chocomod/layouts/default):
.//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’
.//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' .//vendor/rails/actionpack/lib/action_controller/base.rb:942:inperform_action_without_filters’
.//vendor/rails/actionpack/lib/action_controller/filters.rb:368:in
perform_action_without_benchmark' .//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' .//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
.//vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in
perform_action' .//vendor/rails/actionpack/lib/action_controller/base.rb:408:inprocess_without_filters’
.//vendor/rails/actionpack/lib/action_controller/filters.rb:377:in
process_without_session_management_support' .//vendor/rails/actionpack/lib/action_controller/session_management.rb:117:inprocess’ .//vendor/rails/railties/lib/dispatcher.rb:38:in
dispatch' .//vendor/rails/railties/lib/webrick_server.rb:115:inhandle_dispatch’
.//vendor/rails/railties/lib/webrick_server.rb:81:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' .//vendor/rails/railties/lib/webrick_server.rb:67:indispatch’
.//vendor/rails/railties/lib/commands/servers/webrick.rb:59
.//vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in
`require’ .//vendor/rails/railties/lib/commands/server.rb:30
script/server:3 Rendering actionerrorlayoutfalse within
…/…/themes/chocomod/layouts/defaultRendering articles/error
Processing Base#index (for 80.213.141.195 at 2006-09-12 23:33:00)
[GET] Parameters: {“action”=>“index”, “controller”=>“articles”}

Parameters: {“action”=>“index”,
“controller”=>“articles”}ActionView::ActionViewError (No rhtml, rxml,
rjs or delegate template found for
…/…/themes/chocomod/layouts/default):
.//vendor/rails/actionpack/lib/action_view/base.rb:389:in
find_template_extension_for' .//vendor/rails/actionpack/lib/action_view/base.rb:323:inpick_template_extension’
.//vendor/rails/actionpack/lib/action_view/base.rb:240:in
render_file' .//vendor/rails/actionpack/lib/action_controller/layout.rb:251:inrender_without_benchmark’
.//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’
.//vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' .//app/controllers/articles_controller.rb:73:inrescue_action_in_public’
.//vendor/rails/actionpack/lib/action_controller/rescue.rb:33:in
rescue_action' .//vendor/rails/actionpack/lib/action_controller/rescue.rb:108:inperform_action’
.//vendor/rails/actionpack/lib/action_controller/base.rb:408:in
process_without_filters' .//vendor/rails/actionpack/lib/action_controller/filters.rb:377:inprocess_without_session_management_support’
.//vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in
process' .//vendor/rails/railties/lib/dispatcher.rb:38:indispatch’ .//vendor/rails/railties/lib/webrick_server.rb:115:in
handle_dispatch' .//vendor/rails/railties/lib/webrick_server.rb:81:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/lib/ruby/1.8/webrick/server.rb:92:instart’
/usr/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:instart’
.//vendor/rails/railties/lib/webrick_server.rb:67:in dispatch' .//vendor/rails/railties/lib/commands/servers/webrick.rb:59 .//vendor/rails/activesupport/lib/active_support/dependencies.rb:147:inrequire’ .//vendor/rails/railties/lib/commands/server.rb:30
script/server:3

Best regards,
Martin S.

Are you using a theme that isn’t in the typo you’re upgrading to?
This Breaks Stuff.

Have you cleared out the rails cache and sessions? Typically that fixes
my
development vs production issues. With an old version of a class
cached.

Linda D.


From: [email protected]
[mailto:[email protected]] On Behalf Of Steve L.
Sent: Tuesday, September 12, 2006 5:15 PM
To: [email protected]
Subject: Re: [typo] Application error (Rails) - Typo 4.0.3 production

run rake migrate it will fix your DB issue.

On 9/12/06, Martin S. [email protected] wrote:

Hi,

I´m running Typo 4.0.3 from gems. It works in development mode with
webrick, but not production. The current database I´m using is 46, 50
is the one Typo suggests me upgrading to, but I haven´t done that.
When running in production mode, I´m getting “Application error
(Rails)” on the main page, and “login unsuccsessfull” on the admin
page.

$ tail -f log/production.log
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' .//vendor/rails/railties/lib/webrick_server.rb:67:indispatch’
.//vendor/rails/railties/lib/commands/servers/webrick.rb:59
.//vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in
`require’
.//vendor/rails/railties/lib/commands/server.rb:30
script/server:3

The original production database can be found at
http://martin.stabenfeldt.net/typo_.db
Original development database: http://martin.stabenfeldt.net/typo_dev.db

I´m using ruby-1.8.4-3.fc4, global rails version (1.1.6, 1.1.2, 1.0.0,
0.14.2) shouldn’t have anything to say, since the one I´m using is
frozen in the vendors catalog?

Any suggestions to what I may do? Let me know if I can provide any
other information!


Best regards,
Martin S.

On 13/09/06, Martin S. [email protected] wrote:

Hi,

I´m using the azure theme that came with the gem package.

That’s wierd - the errors is talking about a theme called ‘chocomod’:

“controller”=>“articles”}Rendering within
…/…/themes/chocomod/layouts/defaultRendering articles/indexInvalid
API Key (Key has expired) ActionView::ActionViewError (No rhtml,
rxml, rjs or delegate template found for
…/…/themes/chocomod/layouts/default):

Ring any bells?

Despite making use of such references as
http://www.crazybarbour.com/blog/2006/03/16/setting-up-typo-on-dreamhost/
and
http://blog.aidenbordner.com/articles/2006/07/24/getting-typo-4-0-0-running-on-dreamhost
and
http://www.masterofnil.com/articles/2006/08/07/installing-typo-4-0-1-on-dreamhost
and even http://fo64.com/articles/2005/10/19/typo-dreamhost
I’m having no success.

Also …
Installing via gem as described in
http://www.typosphere.org/trac/wiki/DownloadStable
fail since this needs Ruby 1.8.4

A ‘rake install’ fails trying to find a rakefile

A ‘~/typo-4.0.3/bin/typo’ install fails trying to find an include.

Any suggestions?

Anton J Aylward, [email protected]
System Integrity

I know nothing about dreamhost what versions of ruby and rails are you
running?
-Linda

Hi,

I´m using the azure theme that came with the gem package.
Both tmp/session* and tmp/cache is empty.

Regards,
Martin

Dreamhost has ruby 1.8.2.
I don’t think rails matters as its included with Typo.

Right now I’m compiling 1.8.4 locally.

Are you doing this from the trunk? I ran into this when I downloaded
the latest version from trunk. This happens when you migrate a blog
without setting it up first. I fixed it by editing the migration so
that it doesn’t error out on the blank settings. If you apply this
patch, or just edit the file like the patch will it should get you
going again.

Now, with a local copy of ruby 1.8.4 I get

$ rake migrate RAILS_ENV=production --trace
** Invoke migrate (first_time)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== FixCanonicalServerUrl: migrating

rake aborted!
Couldn’t find FixCanonicalServerUrl::Blog with ID=1

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs