Welcome Guest | Login

Deploying Joyent Connector

Is it possible to deploy Joyent Connector using FastCGI? I've set it up to use FastCGI, but when I try to run
rake db:migrate RAILS_ENV=production
I get the following error:

rake aborted!
uninitialized constant Rails::Initializer::JoyentConfig
Any pointers would be appreciated. Thanks!

2008-06-22 09:12 AM

Ryan Riley
PanesOfGlass
What's the full application trace (to see what JoyentConfig should/where be) ?  You should be able to use FastCGI no problem.  

2008-06-22 10:16 AM

The following is the full trace:
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant Rails::Initializer::JoyentConfig
/home/jrileyc/connector/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:477:in `const_missing'
/home/jrileyc/connector/config/environments/production.rb:29:in `load_environment'
/home/jrileyc/connector/config/../vendor/rails/railties/lib/initializer.rb:209:in `load_environment'
/home/jrileyc/connector/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/home/jrileyc/connector/config/../vendor/rails/railties/lib/initializer.rb:205:in `load_environment'
/home/jrileyc/connector/config/../vendor/rails/railties/lib/initializer.rb:89:in `process'
/home/jrileyc/connector/config/../vendor/rails/railties/lib/initializer.rb:47:in `send'
/home/jrileyc/connector/config/../vendor/rails/railties/lib/initializer.rb:47:in `run'
/home/jrileyc/connector/config/../config/environment.rb:27
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/home/jrileyc/connector/vendor/rails/railties/lib/tasks/misc.rake:3
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19

2008-06-23 07:54 PM

Ryan Riley
PanesOfGlass
Hi Riles,

I have now installed missing gem "ezcrypto"  required for the application on the server. I have also copied the "lib/joyent_config.rb.dist" to "lib/joyent_config.rb". as given in the wiki link : https://dev.joyent.com/projects/connector/wiki/Installation+Instructions Now while running the command "rake db:migrate RAILS_ENV=production". I am getting the following error:

==
sh: /opt/csw/bin/svn: No such file or directory
sh: /opt/csw/bin/svn: No such file or directory
rake aborted!
undefined method `[]' for false:FalseClass
/home/username/connector/lib/joyent_config.rb:21
==

It seems like you have to configure the "joyent_config.rb" file with exact credentials.

2008-06-23 09:09 PM


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