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

Unable to load application #913

Closed
Casara opened this issue Mar 1, 2016 · 4 comments
Closed

Unable to load application #913

Casara opened this issue Mar 1, 2016 · 4 comments

Comments

@Casara
Copy link

Casara commented Mar 1, 2016

When upgrading from version 2.16.0 to 3.0.2 this happened:

[5102] Puma starting in cluster mode...
[5102] * Version 3.0.2 (ruby 2.3.0-p0), codename: Plethora of Penguin Pinatas
[5102] * Min threads: 1, max threads: 6
[5102] * Environment: development
[5102] * Process workers: 1
[5102] * Preloading application
[5102] ! Unable to load application: NoMethodError: undefined method `fetch' for #<Puma::LeveledOptions:0x00000002ffa8a0>
@evanphx
Copy link
Member

evanphx commented Mar 6, 2016

Are you doing '@options.fetch' in your config file?

@evanphx evanphx closed this as completed in 495e0d7 Mar 6, 2016
@Casara
Copy link
Author

Casara commented Mar 7, 2016

I had the following code in an initializer:

Puma.cli_config.options.fetch(:max_threads)

So I did the following:

Puma.cli_config.options[:max_threads]

But Anyway thanks!

@evanphx
Copy link
Member

evanphx commented Mar 7, 2016

@Casara Why are you reading the max threads? Also, in 3.0+, you can do get(:max_threads) in the config files to read that value.

@Casara
Copy link
Author

Casara commented Mar 14, 2016

@evanphx I'm reading the max threads to set ActiveRecord connection pool size: UPDATED - Setting ActiveRecord's connection pool size on Heroku with Puma or Sidekiq.

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

2 participants