-
Notifications
You must be signed in to change notification settings - Fork 632
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
0.74.0 foreman start fails with undefined method `spawn' #473
Comments
Downgrading to 0.73.0 resolved the problem. |
What version of Ruby? I'm not sure why Process.spawn didn't exist for you but please try again. |
Same problem here. How did you downgrade to 0.73.0? I'm running Ubuntu 12.04 and |
Hi Thomas, I believe I followed some instruction that involved checking out its source Cheers, On Thu, Sep 4, 2014 at 10:19 AM, Thomas Vanesse notifications@github.com
|
Thanks kakerzev. @ddollar I have |
I am receiving the same exact error as mentioned. I currently have foreman 0.75.0. I could use some help fixing this. |
@mthomas610 Check which version of Ruby you are using and see if it is one of the supported versions. I was having the same problem (same context as OP) and then I saw I was running an unsupported older version of it. It works now :) |
hey... i'm getting the same problem, and I'm running a supported Ruby version: $ ruby --version $ foreman start web |
Turns out I must've been running an older version of Foreman? I did
and tried again, and it worked! |
Thanks Brad Parks! $ gem install foreman |
I fixed this by switching to ruby 1.9 roughly as following:
|
When I try to install foreman, I get the error And when I try sudo gem install foreman |
Hey, I'm following the heroku getting started with python instructions on a mac. Got the same error when I tried to run [$ foreman start web]. Following recommendations found on this thread and some others, I tried to upgrade my foreman version with [$ gem install foreman]. It says the update was successful to version 0.77.0, but when I check [$ foreman --version] it tells me it is still 0.75.0, and [$ foreman start web] still doesn't work. Why am I not operating with the upgraded version of foreman and how can I fix that? (as a side question, I'm new to writing on github – how do I write with the special highlighted/plain text format for terminal commands?) |
Hey sowright. You actually should be downgrading your version of foreman, not upgrading it.
|
I’m just following the Ruby version of this Heroku tutorial and have the same issue. Using Ruby 2.0.0p598 on OS X 10.7 (Lion), RVM 1.26.3, Bundler 1.7.7, Foreman 0.75. The important bit is that Foreman was installed with Heroku Toolbelt and was not installed as gem in my gemset. And this is expected according to https://devcenter.heroku.com/articles/getting-started-with-ruby#run-the-app-locally But I followed the advices above and installed it again as gem: |
I'm also coming here from the Heroku Tutorial. I'm running Mac OS X 10.8.5 with ruby 2.2.0p0 installed. To workaround the problem I did
Then I needed to open up a new(!) terminal window and inside this new window foreman finally worked as expected:
|
I have exactly the same problem on OSX 10.7.5. I updated to Ruby 2.2.2p95 and tried several versions of foreman 0.61, 0.75, 0.77. 0.78. No luck so far…
|
Correction, I should have read better what asmaier wrote:
Downgrade to foreman version 0.75 worked |
When I get to foreman start, it fails:
/usr/local/foreman/lib/foreman/process.rb:54:in
run': undefined method
spawn' for Process:Module (NoMethodError)from /usr/local/foreman/lib/foreman/process.rb:53:in
chdir' from /usr/local/foreman/lib/foreman/process.rb:53:in
run'from /usr/local/foreman/lib/foreman/engine.rb:356:in
spawn_processes' from /usr/local/foreman/lib/foreman/engine.rb:353:in
upto'from /usr/local/foreman/lib/foreman/engine.rb:353:in
spawn_processes' from /usr/local/foreman/lib/foreman/engine.rb:352:in
each'from /usr/local/foreman/lib/foreman/engine.rb:352:in
spawn_processes' from /usr/local/foreman/lib/foreman/engine.rb:57:in
start'from /usr/local/foreman/lib/foreman/cli.rb:41:in
start' from /usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/command.rb:27:in
send'from /usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/command.rb:27:in
run' from /usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/invocation.rb:126:in
invoke_command'from /usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor.rb:359:in
dispatch' from /usr/local/foreman/vendor/gems/thor-0.19.1/lib/thor/base.rb:440:in
start'from /usr/bin/foreman:18
The text was updated successfully, but these errors were encountered: