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

pry-remote not working with test-kitchen #68

Open
adecarolis opened this issue Sep 1, 2016 · 6 comments
Open

pry-remote not working with test-kitchen #68

adecarolis opened this issue Sep 1, 2016 · 6 comments

Comments

@adecarolis
Copy link

Within test-kitchen initiate instances I cannot manage to use use pry-remote.

Client side:

[root@test123 ~]# /opt/chef/embedded/bin/pry-remote
[root@test123 ~]#

Server side (chef-client):

       Compiling Cookbooks...
       [pry-remote] Waiting for client on druby://127.0.0.1:9876
       [pry-remote] Client received, starting remote session
       [pry-remote] Remote session terminated
       [pry-remote] Ensure stop service

       Frame number: 0/25

       From: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/pry-remote-0.1.8/lib/pry-remote.rb @ line 321 Object#remote_pry:

           319: def remote_pry(host = PryRemote::DefaultHost, port = PryRemote::DefaultPort, options = {})
           320:   PryRemote::Server.new(self, host, port, options).run
        => 321: end

This is what chef 12.13.37 installed:

[root@test123 ~]# /opt/chef/embedded/bin/gem list | grep pry
pry (0.10.4)
pry-byebug (3.4.0)
pry-remote (0.1.8)
pry-stack_explorer (0.4.9.2)
[root@test123 ~]#

This issue can be worked around by downgrading pry-byebug to version 1.1.3

@rtacconi
Copy link

Version 1.1.3 does not exist. I have this issue with or without pry-byebug

@username-is-already-taken2

I thought this issue might be because I'm using windows :) Did you ever manage to resolve it? or find a work around to debugging the client run? TIA

@rtacconi
Copy link

No, I gave up, this gem seems that it is not maintained.

@username-is-already-taken2

@rtacconi - thx for letting me know. Did you ever come up with another way of debugging the run?

@rtacconi
Copy link

rtacconi commented Dec 21, 2016 via email

@g2doug
Copy link

g2doug commented Mar 5, 2018

I have experienced this problem and fixed it by removing pry-byebug.

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

4 participants