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


ADVERTISEMENT

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

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 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

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 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 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

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

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 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

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

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







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