SOLVED - Re: HELP! working refinery installation stopped working

1 view
Skip to first unread message

Fabio Barone

unread,
Sep 1, 2010, 2:09:59 PM9/1/10
to Refinery CMS
We have found the problem.
This might clutter your inbox but I feel I need to respond :)

Firstly, their suggested gems freeze caused some problems.
After I removed vendor/rails I got a step further.
(But I guess also because I did various other configuration changes
in order to try to fix everything...).

Then I found an old vendor/plugins/themes
directory where I had put a theme_server.rb for
debugging purposes, as the hosting was missing
an environment variable. That file helped discover.

However after their upgrade this might have broken the app.

Also, in my various attempts, I put
RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION

in config/application.rb

However I have rails 2.3.5 in my path first, so not sure which is really loaded now,
but as it is working I don't dare changing anything back.
(this of course reveals my lack of RoR experience/knowledge).

I apologize again for verbosity.

best
fabio


2010/9/1 Fabio Barone <holon...@gmail.com>
Unfortunately, my working refinery 0.9.6.31 stopped working.

All happened after an announced rails upgrade by the hosting.
They suggested to do:

rake rails:freeze:edge RELEASE=2.3.5

to freeze our version of rails. Which I did. I have a rails directory in the vendor dir:

ls vendor
./  ../  plugins/  rails/

ls vendor/rails
./   actionmailer/  activemodel/   activeresource/  ci/   .gitignore  REVISION
../  actionpack/    activerecord/  activesupport/   doc/  railties/

After I did that I briefly tested the application and it was still working.
It stopped to work however yesterday.
My debugging session does show me that it stops working in the code block

Refinery::Initializer.run do |config|
  # Settings in config/environments/* take precedence over those specified here.
  # Application configuration should go into files in config/initializers
  # -- all .rb files in that directory are automatically loaded.
  # See Rails::Configuration for more options.

  config.action_controller.session = {
    :session_key => '_refinery_session',
    :secret      => 'bf2223bee2dda5ea0fd8925b4eca24c4e69d281498564307db13165a4cfd5fdac0ed93317c1577cd4a0d809cddaf8eecbc1ef1814131865faea6d3b4'
  }

end

The production.log does not show any entry.
I have no clue where else to look.

Unfortunately this is a troubled hosting we had anyway, hostmonster.com which uses apache with fastcgi.
I will suggest to change hosting, but that will require some time to set up (we were just handing over to the client; a new heroku set up would require a new S3 account for the client, etc.), so we would like to have the app back up first.

I have tried to unpack all gems into vendor/gems,
but no joy.

Any suggestions what else I could do?
Thanks very much for all help, really appreciated now...

P.S. This is the announced upgrade list:
ImageMagick 6.5.9-9 => 6.6.3-2
   rmagick 2.13.0 => 2.13.1
   actionmailer 2.3.5 => 2.3.8
   actionpack 2.3.5 => 2.3.8
   activerecord 2.3.5 => 2.3.8
   activeresource 2.3.5 => 2.3.8
   activesupport 2.3.5 => 2.3.8
   daemons 1.0.10 => 1.1.0
   rack 1.0.1 => 1.1.0
   rack-contrib 1.0.1 (new)
   rails 2.3.5 => 2.3.8
   tzinfo 0.3.18 => 0.3.22
   rubygems 1.3.5 => 1.3.7

Philip Arndt

unread,
Sep 1, 2010, 5:07:32 PM9/1/10
to refine...@googlegroups.com
Hey,

I think it's important that you posted back to say what fixed it as this may help someone in future!

Glad you got it working :)

Phil

Reply all
Reply to author
Forward
0 new messages