Welcome Guest | Login

rake freeze_gem error

here is the error, any idea about it?
 [~/catalogue]# rake freeze_gems --trace
(in /home/username/catalogue)
rake aborted!
no such file to load -- /home/username/catalogue/config/../vendor/rails/railties/lib/initializer
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/home/sinodix/catalogue/config/boot.rb:16
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/home/sinodix/catalogue/Rakefile:4
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1828:in `load'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1828:in `load_rakefile'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1900:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
/usr/local/bin/rake:16:in `load'
/usr/local/bin/rake:16
[~/catalogue]#
and here is what my vendor path looks_like :
[~/catalogue/vendor]# ll
total 20
drwxr-xr-x   5 sinodix sinodix 4096 Mar  1 03:53 ./
drwxr-xr-x  14 sinodix sinodix 4096 Mar  1 03:14 ../
drwxr-xr-x   3 sinodix sinodix 4096 Mar  1 03:53 auth_generator-2.0.1/
drwxr-xr-x   2 sinodix sinodix 4096 Mar  1 03:14 plugins/
drwxr-xr-x   3 sinodix sinodix 4096 Mar  1 03:48 rails/
[~/catalogue/vendor]#

2007-03-01 04:18 AM

Sorry for the avatar, but it was a mistake and I am not able to replace this picture by a smaller one! It simply just doesn't work


It's ok now

2007-03-01 04:22 AM

(please don't post account-related info like your username - I made some quick changes in your post)

No worries about the avatar.  It my fault - I fixed it up for you.  Looks like you already have a Rails version frozen in there - you can move it out of there and try it again if you need to.

Cheers,
~William

2007-03-01 04:39 AM

--you can move it out of there and try it again if you need to


I don't understand...

2007-03-01 04:53 AM

Sorry - I meant something like this

[~/catalogue/vendor]# mv rails ~/rails_backup

then if you free gems it will freeze the current Rails (1.2.2)

Also, you're using old syntax -- you'll want to use

rake rails:freeze:gems

for the latest stable

or

rake rails:freeze:edge TAG=rel_1-1-6

to grab another release like 1.1.6

Cheers,
~William

2007-03-01 06:05 AM

it's ok my current rails is freezed, but I still have an error on my page :

We're sorry, but something went wrong.

here is the last error in production.log

Processing CataloguesController#index (for 82.xxx.xx.xx at 2007-03-01 06:56:27) [GET]
 Session ID: ed1c633dd9970ab7e4a42e2621f145b7
 Parameters: {"action"=>"index", "controller"=>"catalogues"}
Rendering layoutfalseactionlist within layouts/catalogues
Rendering catalogues/list


ActionView::TemplateError (undefined method `auth_url' for #<#<Class:0xb74315e0>:0xb75cc3dc>) on line #3 of app/views/auth/_remotelogin.rhtml:
1: <%= form_remote_tag(
2:      :update=> 'accountinfo',
3:      :url => auth_url(:action => 'remotelogin'),
4:      :loading => "Element.show('ident_spinner')"
5: ) %>
6:

   #{RAILS_ROOT}/app/views/auth/_remotelogin.rhtml:3:in `_run_rhtml_47app47views47auth47_remotelogin46rhtml'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:326:in `send'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:326:in `compile_and_render_template'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:275:in `render'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:59:in `render_partial'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/partials.rb:58:in `render_partial'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:287:in `render'
   #{RAILS_ROOT}/app/helpers/auth_helper.rb:40:in `ajax_account_infos'
   #{RAILS_ROOT}/app/views/layouts/catalogues.rhtml:24:in `_run_rhtml_47app47views47layouts47catalogues46rhtml'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:326:in `send'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:326:in `compile_and_render_template'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:301:in `render_template'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/base.rb:260:in `render_file'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/layout.rb:254:in `render_without_benchmark'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
   /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:50:in `render'
   #{RAILS_ROOT}/app/controllers/catalogues_controller.rb:4:in `index'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in `send'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:1095:in `perform_action_without_filters'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:632:in `call_filter'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:634:in `call_filter'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:449:in `call'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
   /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:430:in `send'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:430:in `process_without_filters'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/filters.rb:624:in `process_without_session_management_support'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `process'
   #{RAILS_ROOT}/app/controllers/application.rb:14:in `process'
   #{RAILS_ROOT}/app/controllers/application.rb:13:in `catch'
   #{RAILS_ROOT}/app/controllers/application.rb:13:in `process'
   #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:330:in `process'
   #{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch'
   #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:168:in `process_request'
   #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:143:in `process_each_request!'
   #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:109:in `with_signal_handler'
   #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:142:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi'
   #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:141:in `process_each_request!'
   #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:55:in `process!'
   #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:25:in `process!'
   dispatch.fcgi:24
the method auth_url comes from the auth_generator gem but i can't figure out how to solve this problem

2007-03-01 06:54 AM

OK - you'll need to check with the auth_generator community on that one - it looks like its not getting included correctly.  Is auth_generator installed on your server? (check via gem list) -- if so, try removing the auth_generator-2.0.1/ dir from your vendor folder and giving it a shot.  Besure to kill off your dispatchers or restart your mongrel to load up the new code.  

Cheers,
~William

2007-03-01 07:20 AM

I installed auth_generator using this command:
gem install auth_generator-2.0.1.gem -i ~/.gems
gem list doesn't output the auth_generator.
Then doing
gem unpack auth_generator
logically fails

I finally end up with the same error even after doing what you suggested in your previous post

2007-03-01 08:15 AM

Did you follow this tutorial on freezing your own gems?
http://www.hostingrails.com/forums/wiki_thread/2

You need to set up some custom paths for the unpack feature to work correctly.

Cheers,
~William

2007-03-01 08:21 AM

Yep, it's the one I follow.

2007-03-01 08:33 AM

Can you paste in the URL of the gem in question. I wasn't able to install it with

gem install auth_generator

because it said it couldn't find the gem.  

2007-03-01 08:39 AM

http://penso.info/tmp/auth_generator/auth_generator-2.0.1.gem

2007-03-01 08:41 AM

Hi there.

I was able to successfully install the 'auth_generator' gem from the given link. Please give try now.

2007-03-02 05:31 AM

Thank you, I tried it again and it was done succesfully

2007-03-02 07:28 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.