Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get Qusion to use amqp.yml -- parsing fails (NoMethodError) #2

Open
fullofcaffeine opened this issue Sep 15, 2010 · 0 comments
Open

Comments

@fullofcaffeine
Copy link

Hi Daniel,

Great work with Qusion, it saved me a hell lot of time.

I can't seem to get it to load the YAML config file though. Here's its contents:

production:
host: localhost
port: 5672
user: guest
pass: guest
vhost: /
timeout: 3600
logging: false
ssl: false
development:
host: localhost
port: 5672
user: guest
pass: guest
vhost: /
timeout: 3600
logging: false
ssl: false
test:
host: localhost
port: 5672
user: guest
pass: guest
vhost: /
timeout: 3600
logging: false
ssl: false

The application then fails to start because of a NotMethodError exception:

You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.each

Here's the backtrace:

0 /var/www/apps/myapp/releases/20100915161758/vendor/plugins/qusion/lib/qusion/amqp_config.rb 58 in symbolize_keys' 1 /var/www/apps/myapp/releases/20100915161758/vendor/plugins/qusion/lib/qusion/amqp_config.rb 49 inframework_amqp_opts'
2 /var/www/apps/myapp/releases/20100915161758/vendor/plugins/qusion/lib/qusion/amqp_config.rb 39 in load_config_opts' 3 /var/www/apps/myapp/releases/20100915161758/vendor/plugins/qusion/lib/qusion/amqp_config.rb 33 inconfig_opts'
4 /var/www/apps/myapp/releases/20100915161758/vendor/plugins/qusion/lib/qusion.rb 17 in start' 5 ./config/environment.rb 67 6 /home/deploy/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb 614 incall'
7 /home/deploy/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb 614 in after_initialize' 8 /home/deploy/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb 613 ineach'
9 /home/deploy/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb 613 in after_initialize' 10 /home/deploy/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb 179 inprocess'
11 /home/deploy/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb 113 in send' 12 /home/deploy/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb 113 inrun'
13 ./config/environment.rb

Any ideas?

Thanks,

Marcelo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant