# Problems freezing rails

**URL:** <https://www.ruby-forum.com/t/problems-freezing-rails/149039>\
**Category:** Rails\
**Created:** [September 19, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/problems-freezing-rails/149039 "2008-09-19T16:41:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cam295](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/73ab20/32.png) [@cam295](https://www.ruby-forum.com/u/cam295)\
**Post date:** [September 19, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/problems-freezing-rails/149039/1 "2008-09-19T16:41:19Z")

</div>

I’ve got a site at Dreamhost, and am trying to freeze rails, but am  
getting this error message:

[larchmont]$ rake rails:freeze:gems --trace  
(in /home/.input/cmills/fsilg.dreamhosters.com)  
rake aborted!  
Don’t know how to build task ‘rails:freeze:gems’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1634:in `[]' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1930:in`invoke\_task’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in`each’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in`standard\_exception\_handling’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in`run’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in  
`standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in`run’  
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31  
/usr/bin/rake:19:in `load’  
/usr/bin/rake:19

I created a new test rails app on the same server and had no problem  
freezing rails. Any ideas out there?

---

<div class="post-metadata">

**Author:** ![cam295](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/73ab20/32.png) [@cam295](https://www.ruby-forum.com/u/cam295)\
**Post date:** [September 19, 2008, 6:25pm UTC](https://www.ruby-forum.com/t/problems-freezing-rails/149039/2 "2008-09-19T18:25:35Z")

</div>

On Sep 19, 9:41 am, Charley M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each’  
> /usr/bin/rake:19
> 
> ## I created a new test rails app on the same server and had no problem freezing rails. Any ideas out there?
> 
> Posted viahttp://www.ruby-forum.com/.

Are you sure you’re running this from your RAILS\_ROOT directory?  
Looks like it can’t find the rakefile.

Jeff

---

<div class="post-metadata">

**Author:** ![cam295](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/73ab20/32.png) [@cam295](https://www.ruby-forum.com/u/cam295)\
**Post date:** [September 19, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/problems-freezing-rails/149039/3 "2008-09-19T19:30:14Z")

</div>

Jeff C. wrote:

> Are you sure you’re running this from your RAILS\_ROOT directory?  
> Looks like it can’t find the rakefile.
> 
> Jeff

I’m running it in the correct directory, and the rakefile exists as  
this:

* * *

# Add your own tasks in files placed in lib/tasks ending in .rake,

# for example lib/tasks/switchtower.rake, and they will automatically be

available to Rake.

require(File.join(File.dirname( **FILE** ), ‘config’, ‘boot’))

require ‘rake’  
require ‘rake/testtask’  
require ‘rake/rdoctask’

## require ‘tasks/rails’

Is there a config file that tells rails where the rakefile is? That’s  
my only other thought - I’m not an expert with ruby or rails, and so am  
a bit in the dark.

---

<div class="post-metadata">

**Author:** ![cam295](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/73ab20/32.png) [@cam295](https://www.ruby-forum.com/u/cam295)\
**Post date:** [September 21, 2008, 8:22pm UTC](https://www.ruby-forum.com/t/problems-freezing-rails/149039/4 "2008-09-21T20:22:28Z")

</div>

On 19 Sep 2008, at 15:41, Charley M. wrote:

> I’ve got a site at Dreamhost, and am trying to freeze rails, but am  
> getting this error message:

is this app using an older version of rails where the task had a  
different name ? (rake -T shows tasks)

Fred

---

<div class="post-metadata">

**Author:** ![cam295](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/73ab20/32.png) [@cam295](https://www.ruby-forum.com/u/cam295)\
**Post date:** [September 21, 2008, 10:55pm UTC](https://www.ruby-forum.com/t/problems-freezing-rails/149039/5 "2008-09-21T22:55:23Z")

</div>

On 21 Sep 2008, at 21:32, Charley M.  
\<removed\_email\_address@domain.invalid

> wrote:

> Frederick C. wrote:
> 
> > On 19 Sep 2008, at 15:41, Charley M. wrote:
> > 
> > is this app using an older version of rails where the task had a  
> > different name ? (rake -T shows tasks)
> 
> Here is the output:

You don’t need my help to read through that list and find the freeze  
task 🙂  
Do just check it’s not already frozen ( does vendor/rails exist?) -  
those task names look pretty old - possibly before the whole setting  
your version in environment.rb was added

Fred

---

<div class="post-metadata">

**Author:** ![cam295](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/73ab20/32.png) [@cam295](https://www.ruby-forum.com/u/cam295)\
**Post date:** [September 21, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/problems-freezing-rails/149039/6 "2008-09-21T22:32:43Z")

</div>

Frederick C. wrote:

> On 19 Sep 2008, at 15:41, Charley M. wrote:
> 
> is this app using an older version of rails where the task had a  
> different name ? (rake -T shows tasks)

Here is the output:

[larchmont]$ rails -v  
Rails 2.1.0  
[larchmont]$ rake -T  
(in /home/.input/cmills/fsilg.dreamhosters.com)  
rake add\_new\_scripts # Add new scripts to the application  
script/ …  
rake apidoc # Build the apidoc HTML Files  
rake appdoc # Build the appdoc HTML Files  
rake clear\_logs # Clears all \*.log files in log/  
rake clobber\_apidoc # Remove rdoc products  
rake clobber\_appdoc # Remove rdoc products  
rake clobber\_plugindoc # Remove plugin documentation  
rake clone\_schema\_to\_test # Recreate the test database from the  
current…  
rake clone\_structure\_to\_test # Recreate the test databases from the  
develo…  
rake create\_sessions\_table # Creates a sessions table for use with  
CGI::…  
rake db\_schema\_dump # Create a db/schema.rb file that can be  
port…  
rake db\_schema\_import # Import a schema.rb file into the  
database.  
rake db\_structure\_dump # Dump the database structure to a SQL  
file  
rake default # Run all the tests on a fresh test  
database  
rake deploy # Deploy application directories / Push  
the l…  
rake drop\_sessions\_table # Drop the sessions table  
rake freeze\_edge # Lock this application to the Edge Rails  
(by…  
rake freeze\_gems # Lock this application to the current  
gems (…  
rake load\_fixtures # Load fixtures into the current  
environment’…  
rake migrate # Migrate the database according to the  
migra…  
rake plugindoc # Generate documation for all installed  
plugins  
rake prepare\_test\_database # Prepare the test database and load the  
schema  
rake purge\_sessions\_table # Drop and recreate the session table  
(much f…  
rake purge\_test\_database # Empty the test database  
rake reapidoc # Force a rebuild of the RDOC files  
rake reappdoc # Force a rebuild of the RDOC files  
rake recent # Run tests for  
recentprepare\_test\_database  
rake remote\_exec # Execute a specific action using the  
release…  
rake rollback # Rollback to the release before the  
current …  
rake show\_deploy\_tasks # Enumerate all available deployment tasks  
rake stats # Report code statistics (KLOCs, etc) from  
th…  
rake test\_functional # Run tests for  
test\_functionalprepare\_test\_d…  
rake test\_plugins # Run tests for test\_pluginsenvironment  
rake test\_units # Run tests for  
test\_unitsprepare\_test\_database  
rake unfreeze\_rails # Unlock this application from freeze of  
gems…  
rake update\_javascripts # Update your javascripts from your  
current r…
