Displaying 20 results from an estimated 600 matches similar to: "NoMemoryError on "gem install rails""
2005 Mar 08
3
is there any rails hosting out there?
anyone?
-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| When you do something, you should burn yourself completely, like a good
| bonfire, leaving no trace of yourself. --Shunryu Suzuki
===============================================================================
2005 Mar 09
6
auto increment id
looking at the unit tests of activerecord leads me to think the db is
completely responsible for auto-incrementing the id field and rails does no
magic here. can someone confirm that this is a true statement?
that being the case - what is the preferred way to write database agnostic sql
for one''s schema since each of the dbs has slightly different syntax for this
functionality... does
2005 Mar 09
21
Converting time retrieved from MySQL
I''m having a problem converting a date retrieved from my MySQL database
and I''m hoping someone can help.
MySQL stores the date/time as this:
2005-03-08 17:00:34.0
and according to my Pickaxe book Ruby stores times as "the number of
seconds and microseconds since [...] January 1, 1970". All well and good.
Unfortunately, RoR is converting my date to this:
2005 Mar 09
4
max requests for fcgi interface
I think my rails app has a slow memory leak that degrades performance
over the course of several days. I''d like to get to the bottom of it
but in the meantime I''d prefer to just bandage it and force the fcgi
library to start a new instance of my app every so often. Is there a
clean way to do this? Calling break in the each_cgi loop causes an
error. Sending SIGUSR1, which
2005 Mar 09
10
mysql vs postgres
I''ve used mysql for quite some time now. Other than crashing when the
partition gets full, I''ve had no problems with it.
But I''ve heard great things about postgres and have seen some people
say it''s much superior to mysql.
So, with a Rails application, is there any reason why I would want to
learn/use another DB besides mysql? Any pragmatic benefits?
2005 Mar 10
7
Forking FCGI dispatcher
I hacked a forking FCGI dispatcher for Rails. I have no idea if this is
the correct way to do it, but it seems to work fine. It improves memory
usage a bit; after it is started the processes share almost 10 MB (of 12
MB total), but unfortunately it drops to 2 MB after a few requests.
=====================================
#!/usr/local/bin/ruby
require File.dirname(__FILE__) +
2006 Aug 04
2
MacOS + darwinport + rubygems
Hi,
Installing ruby (following wiki recommandations) with darwinport, I have
the following error when I want to install rails gem:
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'': no such file to load -- sources (LoadError)
from
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
`require''
from
2005 Mar 03
12
bug in postgresql ''now'' time handling??
line 212 of postgresql_adapter.rb is
return Time.now.to_s if value =~ /^\(''now''::text\)::(date|timestamp)/
i don''t think this will work. in postgresql the field ''now'' is pinned to the
SAME TIME for the duration of a transaction. eg. if you do
begin transaction;
insert into t values(42, ''now'');
# sleep one minute
2005 Mar 15
15
Web-based Ruby Syntax Highlighter
Hi all,
Last night, I wrote a web-based syntax highlighter that takes Ruby and
produces nice HTML of the code, ready for including on web pages, or in blog
posts, or whatever. I don''t know how useful it will be for other people, but
feel free to use it. Anyway, the URL is :
http://syntax.carldr.com/
Any comments/suggestions would be gratefully received. Enjoy!
2006 Jul 30
0
Rails installation problem - activesupport
I am trying to install Ruby on Rails on my G5 PowerPC, I followed <a
href="http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger">these</a>
instructions. Everything seems to be working fine until i try to install
Rails with Rubygems, then I get the following error-message:
<blockquote>Install required dependency activesupport? [Yn] y
ERROR:
2005 Mar 10
6
Expiring Cache Fragments and fcgi
First let me say that Rails caching is very very cool. The traffic
(and responsiveness) I''ve saved by added 10 lines of ruby code would
be enourmous, if I actually had traffic... ;)
Sweepers as observers are great, btw. Since every page of my side is
dynamic, once I did some DB optimization I''m caching the content of
the index page which was taking the bulk of the time to load
2006 Apr 28
3
NoMemoryError Oracle
Hello,
I''m trying to run rails on a Solaris 10 box with Ruby/OCI8, but I''m
getting the following errors when trying to start up.
# script/server
=> Booting WEBrick...
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/
webrick.rb:49:in `[]='': failed to allocate memory (NoMemoryError)
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/
2006 Jan 23
0
gem install login_generator
I am trying to install a gem into my Dreamhost account:
http://wiki.dreamhost.com/index.php/Ruby_on_Rails#Using_gems_installed_in_your_home_directory
But it doesn''t work. I don''t quite understand the error message:
pico$ gem update --source http://gems.rubyonrails.com
Upgrading installed gems...
Updating Gem source index for: http://gems.rubyonrails.com
Gems: [] updated
pico$
2005 Mar 10
5
dispatch.fcgi dieing randomly
Recently my application has refused to start on my production
environment. The setup is debian(unstable)/apache2/fastcgi/mysql
Rails 0.10 (upgrading to 0.10.1 as we speak)
When I first start up apache the machine grinds to a crawl starting up
the dispatch.cfi processes. It''s a VPS with 256M of ram, but still
(in addition to user time) it''s spending 30% of time in system
2006 Apr 18
1
NoMemoryError
I am using the Openbase adapter and have had a similar glitch here
and there, but after I go into production I consistently get an error
on one page.
ActionView::TemplateError (NoMemoryError: failed to allocate memory:
SELECT * FROM ...
I cannot track down the exact location of the error, but the
production log says it was around:
2006 Jan 23
5
can''t install model_security_generator
I''m trying to install Bruce Perens'' ModelSecurity gem, but it keeps asking me if I want to
install rails too (I have already installed rails). It exits if I say no and crashes if I
say yes:
C:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install model_security_generator
Attempting local installation of ''model_security_generator''
Local gem
2006 Jul 31
6
Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
I followed Duncan Davidson''s Sandboxing Rails with Darwin Ports guide and
everything went fine up till the part where I had to install gems using gem
install. I would get this stacktrace:
Attempting local installation of ''rake''
Local gem file not found: rake*.gem
Attempting remote installation of ''rake''
2007 Jun 19
0
NoMemoryError ActiveSupportMultibyte - Normalize
Hello all,
I am importing large word documents. I have a test file which is 30mb
in length. I run this through a series of processes to clean it up
and extract the data i need to inject bits of it into a database.
The 30mb file runs fine on my Mac. But on the FreeBSD server dies
with a NoMemoryError at one of the first steps, which is normalizing
the file.
Basically, the sequence is the user
2005 Feb 16
1
[OT] mysql and selinux
i''ve been bashing my head against the screen for about two hours... for the
life of me i could not figure out why connections to mysql were failing when
view through browser but NOT from the command line as user apache... i
confirmed that all connection parameters were correct and still no go.
eventually i disabled selinux and all is well. there was a configuration
section that claimed
2006 Jan 10
0
Problem installing rubygems-0.8.11
I''m having an issue installing rubygems-0.8.11 on 2 different boxes
but get the same error on both. The first box is a host environment
where I am cross-compiling things for the arm-linux architecture. It
is a debian sarge box using the ruby1.8 package which is ruby-1.8.2.
I successfully cross-compiled ruby 1.8.4 for the arm-linux
architecture and it runs well on the embedded