Welcome Guest | Login

Apps stopped working today

My apps crashed today and won't start up again.  The main app had been running fine for several months, and the add-on app has been running fine for a week.

Message in browser says "Application Error - Rails application failed to start properly."
Nothing in app logs, of course.  
CPanel error log reads "process ... dispatch.fcgi(1054) exit(communication error), terminated by calling exit(), return code: 1"

I figure it was a gem or plugin error, since it hit both apps at the same time, and was not associated with any coding changes or action on my part.

Both of my apps use the fleximage plugin, which requires the gem dsl_accessor as well as RMagick.  I installed dsl_accessor and thought I had frozen my gems.

In the process of trying to troubleshoot the fleximage plugin installation just now, I managed to uninstall it from my main app, and now I can't reinstall it.  When I run the command "ruby script/plugin install svn://rubyforge.org/var/svn/fleximage" from my app root, it always times out without any response.  I suspect it's doing that because the gems are screwed up.

I'm at a loss now about how to troubleshoot my gem environment so I can get the plugin properly installed.  Any suggestions?

Another related question: can I install a plugin by copying the plugin folder from my development environment to the deployed server?



2007-10-15 08:24 PM

If all men were just, there would be no need of valor.
-- Agesilaus, 440 BC
Which server is this on. I am having similar problems on augustine.

I actually get an error with ruby script/about

2007-10-15 10:00 PM

Palerider-

ruby script/about should work fine on th server. Could you check this again ?

2007-10-16 12:32 AM

Biged -

The fleximage plugin can be installed as below.

ruby script/plugin install http://beautifulpixel.com/svn/plugins/flex_image/

The issue with the svn URL is being worked on and we'll update you once we've fixed it.  

2007-10-16 04:38 AM

Hi - We have fixed the issue with the SVN URL. Please verify

2007-10-16 01:29 PM

HostingRails Support
I'm having a similar issue. I discovered today that the site is totally broken. When I ran the console, I got the errors below:

./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:477:in `const_missing':NameError: uninitialized constant XSD::NS::KNOWN_TAG
./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:477:in `const_missing':NameError: uninitialized constant ApplicationController::AuthenticatedSystem

2007-10-16 03:24 PM

Yes, I am using Augustine.

No, the Fleximage plugin still won't install with the BeautifulPixel path.  I think it's a gem problem.

No, ruby script/about doesn't work for me either.  I get the following error:

/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:477:in `const_missing': uninitialized constant XSD::NS::KNOWN_TAG (NameError)
from /usr/local/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/ns.rb:18
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/generator.rb:10
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
 ... 49 levels...
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/commands/about.rb:1
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from script/about:3
I get the same error when I run "./dispatch.fcgi" from the public folder.

Any other tips for diagnosis?  Think I'm gonna do a support ticket.  But I'd like to learn how to diagnose these gem problems myself.

2007-10-16 05:45 PM

If all men were just, there would be no need of valor.
-- Agesilaus, 440 BC
I have already opened a support ticket. The problem is that it is in a system installed gem that is hosed.

2007-10-16 06:16 PM

I figured as much, thanks.  I thought that freezing gems in an app protected you from such things?? :/

2007-10-16 06:49 PM

If all men were just, there would be no need of valor.
-- Agesilaus, 440 BC
Workaround (AVOIDS PROBLEM DOES NOT FIX SERVER ISSUE). Add following line to config/environments.rb in your rails project.

config.frameworks -= [ :action_web_service]

This avoids loading Soap which is what is causing the problem. Of course if you are using web services you might have some issues. If you are not using mailer you might as well uncomment the line with config.frameworks

2007-10-16 06:56 PM

OK forget the work-around the issue has been fixed. Of course it decreases your load time if you do not need webservice or mailer to uncomment the line anyway,

2007-10-16 07:06 PM

Yep, looks like they fixed it, thanks.  I did need mailer.

2007-10-16 08:04 PM

If all men were just, there would be no need of valor.
-- Agesilaus, 440 BC
I have the same problem with my app today. It suddenly stopped working and is giving a "Rails Application Error." The rails version has changed on the server and I'd not frozen my app to the previous version.

However, when I upgraded rails on my own (development) machine and ran the app there, it is working fine! I did change the config/environment.rb file to reflect the current rails version, but no success.

Any help is greatly appreciated!

Thanks
sri

2007-10-24 07:14 AM

Hi Sri - I could see that your apps working fine now with out any issue. If the issue still persist please feel free to post a ticket to the support team with more details of your apps. Thanks.

2007-10-24 08:11 AM

HostingRails Support
Hi Kumar - yes it is working now, thanks! I had tried this hack suggested in an earlier post:
config.frameworks -= [ :action_web_service]

but it didn't work. I then also removed the action_mailer service as well and it started working.

-sri

2007-10-24 10:31 AM

Hi,
Just tried 'ruby script/about' on Augustine for my app and got the following:
/home/username/appname/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:204:in `establish_connection': development database is not configured (ActiveRecord::AdapterNotSpecified)
       from /home/username/appname/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:195:in `establish_connection'
       from ./script/../config/../vendor/rails/railties/lib/initializer.rb:235:in `initialize_database'
       from ./script/../config/../vendor/rails/railties/lib/initializer.rb:92:in `process'
       from ./script/../config/../vendor/rails/railties/lib/initializer.rb:47:in `send'
       from ./script/../config/../vendor/rails/railties/lib/initializer.rb:47:in `run'
       from /home/username/appname/config/environment.rb:15
       from /home/username/appname/vendor/rails/railties/lib/commands/about.rb:1:in `require'
       from /home/username/appname/vendor/rails/railties/lib/commands/about.rb:1
       from script/about:3:in `require'
       from script/about:3
What am I doing wrong?
Thanks,
Jee

2007-11-08 12:59 PM

Life is too short for this ...
Hi - The error message says " development database is not configured". Could you please try this after configuring the development database in config/database.yml. Thank you

2007-11-08 01:22 PM

HostingRails Support
That did it.  Thank you!
Jee

2007-11-08 02:12 PM

Life is too short for this ...

Hello Guest! In order to post you must be an active client with us, please log in or sign up.