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

First change the directory to use the correct Gemfile. #560

Merged
merged 1 commit into from
Nov 24, 2014
Merged

First change the directory to use the correct Gemfile. #560

merged 1 commit into from
Nov 24, 2014

Conversation

raskhadafi
Copy link
Contributor

I set the prune_bundler option for a graceful restart and during the deployment with capistrano I found out that puma used allways the Gemfile from the previous release.
After a day of trying to fix it with several different deployments and options.
I found out that puma does the prune_bundler option before changing the directory.
So the old Gemfile is used which seams wrong to me.

Can anyone look at my fix and help me with that?
Thanks in advance.

@raskhadafi
Copy link
Contributor Author

With this change I got this error

13889] + Gemfile in context: /services/private/apps/root/test/spoc/releases/20140723153744/Gemfile
[13889] Worker directory /services/private/apps/root/test/spoc/releases/20140723153744
[13893] + Gemfile in context: /services/private/apps/root/test/spoc/releases/20140723153744/Gemfile
[13893] Worker directory /services/private/apps/root/test/spoc/releases/20140723153744
[12601] - Worker 1 (pid: 13893) booted, phase: 3
[12601] - Worker 0 (pid: 13889) booted, phase: 3
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/client.rb:35: [BUG] Segmentation fault at 0x00000000002d86
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0008 p:---- s:0033 e:000032 CFUNC  :new
c:0007 p:0064 s:0030 e:000029 METHOD /services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/client.rb:35 [FINISH]
c:0006 p:---- s:0025 e:000024 CFUNC  :new
c:0005 p:0060 s:0020 e:000019 BLOCK  /services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:295 [FINISH]
c:0004 p:---- s:0015 e:000014 CFUNC  :each
c:0003 p:0066 s:0012 e:000011 METHOD /services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:289
c:0002 p:0007 s:0004 e:000003 BLOCK  /services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:273 [FINISH]
c:0001 p:---- s:0002 e:000001 TOP    [FINISH]

-- Ruby level backtrace information ----------------------------------------
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:273:in `block in run'
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:289:in `handle_servers'
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:289:in `each'
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/client.rb:35: /services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:295:in `block in handle_servers'
[BUG] /services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:295:in `new'
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/client.rb:35:in `initialize'
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/client.rb:35:in `new'
Segmentation fault at 0x00000000002d86
ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]


-- C level backtrace information -------------------------------------------
-- Control frame information -----------------------------------------------
c:0008 p:---- s:0033 e:000032 CFUNC  :new
c:0007 p:0064 s:0030 e:000029 METHOD /services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/client.rb:35 [FINISH]
c:0006 p:---- s:0025 e:000024 CFUNC  :new
c:0005 p:0060 s:0020 e:000019 BLOCK  /services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:295 [FINISH]
c:0004 p:---- s:0015 e:000014 CFUNC  :each
c:0003 p:0066 s:0012 e:000011 METHOD /services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:289
c:0002 p:0007 s:0004 e:000003 BLOCK  /services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:273 [FINISH]
c:0001 p:---- s:0002 e:000001 TOP    [FINISH]

-- Ruby level backtrace information ----------------------------------------
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:273:in `block in run'
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:289:in `handle_servers'
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:289:in `each'
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:295:in `block in handle_servers'
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/server.rb:295:in `new'
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/client.rb:35:in `initialize'
/services/private/apps/root/test/spoc/shared/bundle/ruby/2.1.0/bundler/gems/puma-50c31e9f288a/lib/puma/client.rb:35:in `new'

-- C level backtrace information -------------------------------------------

evanphx added a commit that referenced this pull request Nov 24, 2014
First change the directory to use the correct Gemfile.
@evanphx evanphx merged commit f9b31d5 into puma:master Nov 24, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants