Upgrading from 0.6.x to 0.8.0: pages show css + admin error

I’ve just updated my Radiant installation on a shared server
(RailsPlayground) from a 0.6.x version to 0.8.0.
www.milleunacoda.it

Update and migration ended correctly (not a bootstrap) but the result
is:

  • pages are not loaded at first time, they show the css file. Forcing
    browser to recharge them they load correctly.
  • admin page don’t works. After login I receive the “Application error
    (Apache)” page. Log says:

Processing Admin::WelcomeController#login (for 80.174.197.81 at
2009-06-28 15:54:47) [GET]
Parameters: {“action”=>“login”, “controller”=>“admin/welcome”}
Rendering template within layouts/application
Rendering admin/welcome/login
Completed in 9ms (View: 6, DB: 1) | 200 OK
[http://www.milleunacoda.it/admin/login]
/!\ FAILSAFE /!\ Sun Jun 28 15:54:55 -0500 2009
Status: 500 Internal Server Error
wrong number of arguments (1 for 2)
/home/seuck/radiant/vendor/radiant/vendor/rack-cache/lib/rack/cache/metastore.rb:94:in
restore_response' /home/seuck/radiant/vendor/radiant/vendor/rack-cache/lib/rack/cache/metastore.rb:94:in invalidate’
/home/seuck/radiant/vendor/radiant/vendor/rack-cache/lib/rack/cache/metastore.rb:93:in
map' /home/seuck/radiant/vendor/radiant/vendor/rack-cache/lib/rack/cache/metastore.rb:93:in invalidate’
/home/seuck/radiant/vendor/radiant/vendor/rack-cache/lib/rack/cache/context.rb:137:in
invalidate' /home/seuck/radiant/vendor/radiant/vendor/rack-cache/lib/rack/cache/context.rb:69:in call!’
/home/seuck/radiant/vendor/radiant/vendor/rack-cache/lib/rack/cache/context.rb:50:in
`call’

Any clue?

Thanks a lot
Antonio

Lorand Bruhacs wrote:

Toni Bianchetti wrote:

I’ve just updated my Radiant installation on a shared server
(RailsPlayground) from a 0.6.x version to 0.8.0.
www.milleunacoda.it

Update and migration ended correctly (not a bootstrap) but the result
is:

  • pages are not loaded at first time, they show the css file. Forcing
    browser to recharge them they load correctly.
  • admin page don’t works. After login I receive the “Application error
    (Apache)” page. Log says:

I am experiencing the exact same issue with a fresh 0.8.0 install on
shared hosting. Looks to be some incompatibility of Rack::Cache and the
FastCGI execution enviroment.

yes im having the same problem. although it kinda work when i refresh
the page.

Toni Bianchetti wrote:

I’ve just updated my Radiant installation on a shared server
(RailsPlayground) from a 0.6.x version to 0.8.0.
www.milleunacoda.it

Update and migration ended correctly (not a bootstrap) but the result
is:

  • pages are not loaded at first time, they show the css file. Forcing
    browser to recharge them they load correctly.
  • admin page don’t works. After login I receive the “Application error
    (Apache)” page. Log says:

I am experiencing the exact same issue with a fresh 0.8.0 install on
shared hosting. Looks to be some incompatibility of Rack::Cache and the
FastCGI execution enviroment.

Here is a workaround. This works.

http://lists.radiantcms.org/pipermail/radiant/2009-July/013426.html

Geordee Naliyath wrote:

Anyone solved this? I am getting problem in a shared hosting
environment.

Cpx Cpx wrote:

Lorand Bruhacs wrote:

Toni Bianchetti wrote:

I’ve just updated my Radiant installation on a shared server
(RailsPlayground) from a 0.6.x version to 0.8.0.
www.milleunacoda.it

Update and migration ended correctly (not a bootstrap) but the result
is:

  • pages are not loaded at first time, they show the css file. Forcing
    browser to recharge them they load correctly.
  • admin page don’t works. After login I receive the “Application error
    (Apache)” page. Log says:

I am experiencing the exact same issue with a fresh 0.8.0 install on
shared hosting. Looks to be some incompatibility of Rack::Cache and the
FastCGI execution enviroment.

yes im having the same problem. although it kinda work when i refresh
the page.

Thanks a lot. It’s the fist real help of this post.

Btw, I’ve tryed to apply the same change in
/lib/radiant/cache.rb
described in the linked post, restart the server but nothing have
changed.

My modified production file is located in:
/home/seuck/radiant/vendor/

The last post of the linked discussion regarding “mailer.post_to_page? =
true” is quite obscure.

Please, can someone explaing exactly what to do?

Cheers
Toni

Geordee Naliyath wrote:

Here is a workaround. This works.

http://lists.radiantcms.org/pipermail/radiant/2009-July/013426.html

Here is the diff. Change the 48th line in cache.rb. It worked for me in
Site5.

diff --git a/lib/radiant/cache.rb b/lib/radiant/cache.rb
index a825555…2e16de9 100644
— a/lib/radiant/cache.rb
+++ b/lib/radiant/cache.rb
@@ -48,7 +48,7 @@ module Radiant
end
private

  •  def restore_response(hash, body)
    
  •  def restore_response(hash, body=nil)
      # Cribbed from the Rack::Cache source
      status = hash.delete('X-Status').to_i
      response = Rack::Cache::Response.new(status, hash, body)
    

Toni Bianchetti wrote:

Thanks a lot. It’s the fist real help of this post.

Btw, I’ve tryed to apply the same change in
/lib/radiant/cache.rb
described in the linked post, restart the server but nothing have
changed.

My modified production file is located in:
/home/seuck/radiant/vendor/

The last post of the linked discussion regarding “mailer.post_to_page? =
true” is quite obscure.

Please, can someone explaing exactly what to do?

Cheers
Toni

Geordee Naliyath wrote:

Here is a workaround. This works.

http://lists.radiantcms.org/pipermail/radiant/2009-July/013426.html

Anyone solved this? I am getting problem in a shared hosting
environment.

Cpx Cpx wrote:

Lorand Bruhacs wrote:

Toni Bianchetti wrote:

I’ve just updated my Radiant installation on a shared server
(RailsPlayground) from a 0.6.x version to 0.8.0.
www.milleunacoda.it

Update and migration ended correctly (not a bootstrap) but the result
is:

  • pages are not loaded at first time, they show the css file. Forcing
    browser to recharge them they load correctly.
  • admin page don’t works. After login I receive the “Application error
    (Apache)” page. Log says:

I am experiencing the exact same issue with a fresh 0.8.0 install on
shared hosting. Looks to be some incompatibility of Rack::Cache and the
FastCGI execution enviroment.

yes im having the same problem. although it kinda work when i refresh
the page.

As a temporary solution, simply disabling page cache it works again:
In “config/environment.rb”, comments “config.middleware.use
::Radiant::Cache”

Geordee Naliyath wrote:

Here is the diff. Change the 48th line in cache.rb. It worked for me in
Site5.

diff --git a/lib/radiant/cache.rb b/lib/radiant/cache.rb
index a825555…2e16de9 100644
— a/lib/radiant/cache.rb
+++ b/lib/radiant/cache.rb
@@ -48,7 +48,7 @@ module Radiant
end
private

  •  def restore_response(hash, body)
    
  •  def restore_response(hash, body=nil)
      # Cribbed from the Rack::Cache source
      status = hash.delete('X-Status').to_i
      response = Rack::Cache::Response.new(status, hash, body)
    

This change finally entered in 0.8.1.

Unfortunatelly I’ve updated my Radiant installation to version 0.8.1 and
nothing have changed.

I’m experimenting the same problem as before, maybe more predictable:

  • the home page end all other pages appear like the Radiant generated
    main site css: /main.css
  • deleting tmp/cache and restarting dispatch.fcgi shows the home page
    without css in place of whatever page I try to load

Any clue? Thanks in advance.