Ruby On Rails Slowness

Aug 20, 2007

Ruby on Rails is running quite slow. I've had my server administration company look at it after I looked at it myself. I'm running out of ideas and was planning on trying a last-ditch memory upgrade to see if it helps. I'm not so sure it will.

Everything is installed and the app. is working, it just takes ~5-7 seconds to load. There are no errors or anything. Has anyone had this problem or could anyone suggest something to try?

This is a cPanel server. I've monitored the loading and dispatch.cgi runs during the load and all like it should.

View 14 Replies


ADVERTISEMENT

Ruby On Rails

Jan 21, 2007

I was thinking about getting Ruby on Rails on one of my VPSs. But my host said that it might cause problems. I DO NOT WANT PROBLEMS. Ruby on rails really looks cool. I want to use it to run a CMS written in Ruby on Rails.

Here are the specs:

OS: Centos
Panel: WHM/Cpanel
Memory: 512

View 4 Replies View Related

Uninstalling Ruby On Rails

Nov 22, 2006

I installed RoR on my Mac OS X, but then I decided to use Locomotive and the RMagick bundle. I want to remove the copy I uninstalled, but how do you remove it on a mac?

View 2 Replies View Related

Ruby On Rails Hosting

Nov 8, 2007

I am currently a 1 and 1 customer, and unfortinately they do not support ROR . Anyways that put to one side can anyone recommend a free ROR hosting company, or a company that will charge around £20.00 to get my ROR website hosted?

View 13 Replies View Related

Ruby On Rails: MissingSourceFile Sqlite3

Jul 25, 2008

I'm trying to get Ruby on Rails to work on my cPanel 11 box. I followed the instruction on the cPanel website and it seems like Ruby on Rails is now properly installed. I created a RoR project via cPanel and added a rewrite rule.

Now when I visit the URL, I get the following error message in my browser:

We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly.

The production log shows:

MissingSourceFile (no such file to load -- sqlite3):
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/kernel/requires.rb:7:in `require_library_or_gem'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/kernel/requires.rb:5:in `require_library_or_gem'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/sqlite3_adapter.rb:10:in `sqlite3_connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:292:in `send'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:292:in `connection='
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:260:in `retrieve_connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
/usr/local/bin/mongrel_rails:19:in `load'
/usr/local/bin/mongrel_rails:19

I have sqlite3 installed as well as the sqlite3-ruby gem. I've been Googling for hours but I just can't find to seem the solution. The only thing I can find is that I have to install sqlite3-ruby gem, sqlite3 and sqlite3-dev but I already have them. I also found a permissions-fix which changes permissions on the gem to 644 but that didn't fix it either.

View 5 Replies View Related

Plesk & The Ruby On Rails Component

Jan 6, 2007

In the Plesk updater there is an option for "Ruby on Rails support" does anyone know if this is actually installs Ruby onto my server?

View 0 Replies View Related

Ruby-on-Rails On Windows Hosting

Jan 4, 2007

Have some question about Ruby-on-Rails.

We've searched the web and discovered that it's offered only at Linux-based hosting.

Windows installation is also possible, however nobody provides RoR on Wibndows. We just thought what if offer RoR for our Windows users as well?

View 2 Replies View Related

Best Shared Host For Ruby On Rails Support

Feb 6, 2009

What do most of you view as the best shared hosts in terms of hosting Ruby on Rails applications?

View 3 Replies View Related

Running Plesk 9 In Conjunction With Ruby On Rails

Mar 6, 2009

if anyone has managed to get to get Ruby on Rails (RoR) running on a Plesk server WITHOUT using Mongrel or other such proxied servers? The problem I have is that it should work out of the box - Parallels (who created Plesk) state that Plesk 9 is RoR ready and just required FastCGI support to be enabled - however after reading lots of instructions and FAQ's I am no closer to getting it up and running.

View 1 Replies View Related

Ruby Rails :: Service Temporarily Unavailable

Jul 9, 2009

I setup Ruby Rails via Cpanel > Ruby Rails area.

I have uploaded typo files to /etc/rails_apps/typo and setup mysql database user password. When I visit the domain at [url]typo I get a 503 / Service Temporarily Unavailable error message.

View 8 Replies View Related

Ruby Rails Gives Error : Mysql Required

Apr 5, 2008

We have installed ruby on rails on our server.
root@Server [~]# gem list |grep mysql
mysql (2.7, 2.6)

But when we try to connect it still says "mysql required".

View 1 Replies View Related

Ruby

Mar 11, 2008

My rails application does not start, it displays a 404 error. The application log (public_html/user/log/production.log) contains:

"MissingSourceFile (no such file to load -- postgres)"

The error message in the log file contains:
MissingSourcefile (no such file to load)

I installed Ruby Gems via whm > apache update and Ruby Rails manually. What else am I to do to get this working? Postgres was compiled as well and has always been installed.

root@server [~]# which postgres
/usr/bin/postgres

root@server [~]# php -m
[PHP Modules]
bcmath
calendar
ctype
curl
domxml
eAccelerator
exif
ftp
gd
gettext
ionCube Loader
mbstring
mcrypt
mysql
openssl
overload
pcre
pdf
pgsql
posix
pspell
session
sockets
standard
swf
tokenizer
xml
xmlrpc
Zend Optimizer
zlib

[Zend Modules]
Zend Extension Manager
Zend Optimizer
the ionCube PHP Loader

View 3 Replies View Related

Ruby / Mongrel Down

Nov 24, 2008

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

a 503 Service Temporarily Unavailable error was encountered while trying to use an ErrorDocument to handle the request.

Cpanel server / Centos 5 / PHP 5
The rubygems installer first displays an error message: "Warning ... broken gem detected.. reinstalling!"

The server itself gives a "Service Temporarily Unavailable" error
** 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:12001
** Starting Rails with production environment...
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb:713:in `initialize': FATAL: password authentication failed for user "user" (PGError)
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb:713:in `connect'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb:713:in `connect'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb:237:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb:23:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb:23:in `postgresql_connection'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:291:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:291:in `connection='
from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:259:in `retrieve_connection'
... 26 levels...
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/../lib/mongrel/command.rb:212:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281
from /usr/local/bin/mongrel_rails:19:in `load'
from /usr/local/bin/mongrel_rails:19
.htaccess content:

Quote:

AddHandler fastcgi-script .fcgi
Options +FollowSymLinks +ExecCGI
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^(.*)$ http://127.0.0.1:12001%{REQUEST_URI} [P,QSA,L]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com/.*$ [NC]
RewriteRule .(gif|jpg|png|js|css)$ - [F]
#LoadModule fastcgi_module libexec/mod_fastcgi.so
#<IfModule mod_fastcgi.c>
# FastCgiIpcDir /tmp/fcgi_ipc/
# AddHandler fastcgi-script .fcgi
#</IfModule>
#FastCgiConfig -maxClassProcesses 20 -maxProcesses 20 -minProcesses 1 -processSlack 1 -initial-env RAILS_ENV=production -idle-timeout 120
#ErrorDocument 404 /user/public/404.html

View 4 Replies View Related

Ruby Fails

Mar 6, 2008

I tried to install my rails application. However it does not work properly (the rails welcome screen's "About your application environment" link gives a "Application error Rails application failed to start properly" message), and the error log shows plenty of FastCGI warnings and fcg incomplete header errors:

[Thu Mar 6 07:44:20 2008] [warn] FastCGI: (dynamic) server "/home/user/public_html/dir/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Mar 6 07:39:47 2008] [error] [client 91.120.172.159] FastCGI: incomplete headers (0 bytes) received from server "/home/user/public_html/dir/public/dispatch.fcgi"
[Thu Mar 6 07:39:47 2008] [warn] FastCGI: (dynamic) server "/home/user/public_html/dir/public/dispatch.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Mar 6 07:39:47 2008] [error] [client 91.120.172.159] FastCGI: comm with (dynamic) server "/home/user/public_html/dir/public/dispatch.fcgi" aborted: (first read) idle timeout (30 sec)

I have cpanel 11 / centos 5 / php w/ suexec

View 10 Replies View Related

HP Rails

Aug 26, 2009

I have a few quick questions about rails on our HP servers, if you think you are good or have lots of experience with HP rails,

View 9 Replies View Related

Rails

May 27, 2008

we just bought a bunch of R200 1U rackmounts from Dell and need rails so we can get them setup in our colocation rack. I was just wondering where most of you tend to purchase your rails and what type of price you pay.

View 13 Replies View Related

Ruby On Rail Host

Mar 24, 2007

I am planning to develop a few sites in Ruby on Rail.

Could anybody recommend me a reliable private label Ruby on Rail hosting provider?

View 9 Replies View Related

Best Hosting For Rails

Apr 10, 2008

I don't wanna say "rails-specific" hosts because I'll be hosting some python/PHP, but I want a host run by a team who actually know and use Ruby on Rails themselves. Deployment shouldn't be a pain, and it should be VPS. My budget is $25/mo for now, as I don't need much space or bandwidth until I begin scaling the sites.

I will be hosting numerous rails sites, so memory might be a problem if I'm using mongrel... but performance wise, is mongrel the best?

Right now I'm looking at SliceHost, HostingRails, and Linode.

View 1 Replies View Related

4u Generic Rails

May 16, 2008

Could someone recomend some cheap rails(or a supplier of) for a 4u generic box with the screw holes along the middle?

I stumbled accross webhostingtalk.com/showthread.php?t=564036 from a few years back, but it seems to talk mostly about shelving.

Chenbro.co.uk have a set to fit "99%" of cases, does anyone have any experiences with these?

View 4 Replies View Related

Versa Rails

May 14, 2007

Where is the best place to get Versa rails at the lowest cost for dell servers?

View 4 Replies View Related

Installing Plesk Components / Ruby

Jan 5, 2007

In the components part of Plesk 8.01 you can install a "ruby on rails support" component, does anyone know if this is actually Ruby? And how can I see if Ruby is actually running, through SSH?

View 11 Replies View Related

Rails Application Error

Mar 29, 2007

When I try and run a Rails application, I got this error:

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:406:in `initialize_components': undefined method `first' for :notification_viewsymbol (NoMethodError)
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:340:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:616:in `connect'
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:645:in `named_route'
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:651:in `method_missing'
from /Users/Mike/Documents/dotherightthing/config/../config/routes.rb:2
from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:625:in `draw'
from /Users/Mike/Documents/dotherightthing/config/../config/routes.rb:1
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load'
... 11 levels...
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:85:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:211:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:231
from /usr/local/bin/mongrel_rails:18

How do I fix this?

View 0 Replies View Related

In Search Of Rails (rail Kit)

Jun 2, 2008

I'm building some servers to get colocated. I am currently using the

ASUS RS100-E4/PI2 1U Barebone Server
[url]

And was having trouble finding some rails. I've tried google and such and haven't found rails built for this machine. I am building budget servers so I would like to find the cheapest rails possible.

View 8 Replies View Related

Servers Missing Rails

Oct 30, 2007

I have some cheap servers, a couple years old, that are missing the rails. I'm looking for options for mounting them, preferably without taking-up space with 1U shelves.

View 5 Replies View Related

Ruby RIng Tech Shared Server Down

Oct 2, 2009

I was a happy client of Ruby Ring tech, but few days ago my Shared server Cpenl got missing in action... It showed some issue on listens... i submit a ticket to Ruby Ring tech and they said they will fix it soon... but for about 3 days nothing happen... suddenly today my shared server is also gone missing... cant connect to any of my websites and page cannot be displayed on cpanel also.. I submitted tickets.. but still no answer, now about 12 + hours downtime....

View 8 Replies View Related

Ruby RIng Tech Shard Server......

Oct 1, 2009

I was a happy client of Ruby Ring tech, but few days ago my Shared server Cpenl got missing in action... It showed some issue on listens... i submit a ticket to Ruby Ring tech and they said they will fix it soon... but for about 3 days nothing happen... suddenly today my shared server is also gone missing... cant connect to any of my websites and page cannot be displayed on cpanel also.. I submitted tickets.. but still no answer, now about 5 -6 hours downtime....

I'm wonder whats happening.....? hope that they will fix the things soon.... plzz if any 1 of Ruby Ring tech see this reply to this thread.... i like to know whats going and how soon you can give the server back

View 5 Replies View Related

Linux Host Supporting Ruby, Php 5 And Python

Oct 24, 2007

Any good stable, secure Linux web host providing the same you know of?

View 3 Replies View Related

New Dell Poweredge Rails Too Short

May 6, 2008

We have a rack with a bunch of Dell servers in them. The distance between the front vertical mounting brackets and the rear vertical mounting brackets is just over 28 inches (715 mm). We've always used Dell static rails they and they have always fitted perfectly.

We have recently received some new Poweredge 2970s with Rapid / Versa rails, and it seems that the front and rear mounting brackets are only 24 inches (609 mm) apart.

Am I missing something? I can't find any way of adjusting the length of the Rapid / Versa rails.

It looks like we are going to have to pull all the gear out of the rack, move the rear mounting brackets forward, and put everything back in. This is a real nuisance (and I would do pretty much anything to avoid it).

View 5 Replies View Related

Looking For Rails Hosting (mongrel, Adult Content)

Jan 4, 2008

I'm looking for some hosting for a couple of small projects. I want a place I can host them with until they need to be moved to a dedicated host (if they ever do).

Need the following: ...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved