Ruby
--
Questions
--
Followers
Top Experts
** Daemonized, any open files are closed. Â Look at log/mongrel.pid and log/mongrel.log for info.
** Starting Mongrel listening at 0.0.0.0:2013
** Starting Rails with production environment...
/home/66747/data/rubygems/
      from /home/66747/data/rubygems/
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      ... 11 levels...
      from /home/66747/data/rubygems/
      from /home/66747/data/rubygems/
      from /home/66747/data/rubygems/
      from /home/66747/data/rubygems/
I have tried running "gem cleanup" and when I type in "gem list" I get:
*** LOCAL GEMS ***
actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.1)
gem_plugin (0.2.3)
mongrel (1.1.5)
mysql (2.7)
postgres (0.7.9.2008.01.28)
rails (2.3.2)
rake (0.8.4)
rmagick (1.15.15)
validatable (1.6.7)
Any ideas on what I can do? My database config looks like:
production:
 adapter: mysql
 database: db66747_bestqualitypools_p
 username: db66747_pools
 password: pw_here
 host: internal-db.s66747.gridser
The username does have read/write permissions and the database is completed.
Not sure what else to do, i have googled the problem and checked on various google groups.
Thanks,
Ryan
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Do you have AR specified twice in your environment.rb file? Â Check out the lines with "config.gem".
How would I check this? I am fairly new with Ruby on Rails.
Here is my environment.rb: http://pastie.org/467269
Thanks,
Ryan
RAILS_GEM_VERSION = '2.1.2' unless defined? RAILS_GEM_VERSION
This says "use version 2.1.2" but your gem list doesn't show that 2.1.2 is installed.
Either:
* (sudo) gem install rails -v 2.1.2
* Change the RAILS_GEM_VERSION to be 2.3.2
The first is safer, because you don't know if your application will work on the new version without some tweaking.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
** Daemonized, any open files are closed. Â Look at log/mongrel.pid and log/mongrel.log for info.
** Starting Mongrel listening at 0.0.0.0:2013
** Starting Rails with production environment...
/home/66747/data/rubygems/
      from /home/66747/data/rubygems/
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      from /home/66747/containers/rai
      ... 11 levels...
      from /home/66747/data/rubygems/
      from /home/66747/data/rubygems/
      from /home/66747/data/rubygems/
      from /home/66747/data/rubygems/
And my gem list is now:
actionmailer (2.1.2)
actionpack (2.1.2)
activerecord (2.1.2)
activeresource (2.1.2)
activesupport (2.1.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.1)
gem_plugin (0.2.3)
mongrel (1.1.5)
mysql (2.7)
postgres (0.7.9.2008.01.28)
rails (2.3.2, 2.1.2)
rake (0.8.4)
rmagick (1.15.15)
validatable (1.6.7)
And in my environment:
RAILS_GEM_VERSION = '2.1.2' unless defined? RAILS_GEM_VERSION

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
If so, you can try removing it.
If not, you can unpack rails with:
rake rails:freeze:gems
That'll unpack it into the vendor/rails directory so that you KNOW what version is running.
"rake rails:freeze:gems"
I get:
"rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/home/66747/data/rubygems/
(See full trace by running task with --trace)
"
There is "Rakefile" inside application directory in the root.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
SSH would be better if that's an option.
activesupport/
railties/
It gets hung up like I said on the Argentia folder within activesupport/ - language folder maybe?
Ryan

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
rm -rf vendor/rails/
... from the application's base directory.
Then, try the rake freeze command, again from the application's base directory.
I get:
Freezing to the gems for Rails 2.3.2
rm -rf vendor/rails
mkdir -p vendor/rails
cd vendor/rails
ERROR: Â Gem 'activesupport' not installed.
mv  activesupport
rm -rf vendor/rails
rake aborted!
undefined method `to_str' for nil:NilClass
(See full trace by running task with --trace)
Should I run gem install activesupport?
Huh. Â Your gem list --local from above shows activesupport.
Check it again:
gem list --local
Do you see:
 activesupport (2.1.2)
If you run the 'gem install' you'll get the latest version, not 2.1.2, fyi.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
activesupport (2.1.2)
I do have that installed, not sure why that is not running.
I ran that and I got:
bestqualitypools.info@n11:
(in /nfs/c04/h04/mnt/66747/con
cd vendor
Downloading Rails from http://dev.rubyonrails.org/archives/rails_2.1.2.zip
Unpacking Rails
rm -rf rails
rm -f rails.zip
rm -f rails/Rakefile
rm -f rails/cleanlogs.sh
rm -f rails/pushgems.rb
rm -f rails/release.rb
cd -
Updating current scripts, javascripts, and configuration settings

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
So it was the activerecord causing the problem?






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Ruby
--
Questions
--
Followers
Top Experts
Ruby is an open-source dynamic object-oriented interpreted language that supports multiple programming frameworks including functional, object oriented and imperative. It also has a dynamic type system and automatic memory management. Ruby focuses on simplicity and productivity. Ruby's market share spiked due to Ruby on Rails, a model-view-controller (MVC) framework for building web applications.