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 character cropped from command #1

Open
jomagam opened this issue Nov 3, 2016 · 5 comments
Open

First character cropped from command #1

jomagam opened this issue Nov 3, 2016 · 5 comments

Comments

@jomagam
Copy link

jomagam commented Nov 3, 2016

Running through the tutorial there were at least a couple of times when the command failed because the first character was left off.

Move the binaries to a path folder
================================================================================
Command to be run is:
	mv cfssl_linux-amd64 /usr/local/bin/cfssl
================================================================================


Enter the command to continue (or "s" to skip typing it in): s
OK!
mv cfssl_linux-amd64 /usr/local/bin/cfssl
v cfssl_linux-amd64 /usr/local/bin/cfssl
v: command not found
load_balancer#9oyORwSp# 
================================================================================
Check all is ok with the kubernetes certificate
================================================================================
Command to be run is:
	openssl x509 -in kubernetes.pem -text -noout
================================================================================


Enter the command to continue (or "s" to skip typing it in): s
OK!
openssl x509 -in kubernetes.pem -text -noout
penssl x509 -in kubernetes.pem -text -noout
No command 'penssl' found, did you mean:
 Command 'openssl' from package 'openssl' (main)
penssl: command not found

Ran this after installing a fresh shutit. Thanks for the tutorial !

@ianmiell
Copy link
Owner

ianmiell commented Nov 3, 2016

No problem. Thanks for using!

I'm not able to repro the problem - could you let me know:

  • the base OS (kernel, distribution, etc)
  • the output of running with '-l debug'

thanks!

On Thu, Nov 3, 2016 at 6:01 PM, jomagam notifications@github.com wrote:

Running through the tutorial there were at least a couple of times when
the command failed because the first character was left off.

`===========================================================

Move the binaries to a path folder Command to be run is:
mv cfssl_linux-amd64 /usr/local/bin/cfssl

Enter the command to continue (or "s" to skip typing it in): s
OK!
mv cfssl_linux-amd64 /usr/local/bin/cfssl
v cfssl_linux-amd64 /usr/local/bin/cfssl
v: command not found
load_balancer#9oyORwSp#
Check all is ok with the kubernetes certificate Command to be run is:
openssl x509 -in kubernetes.pem -text -noout

Enter the command to continue (or "s" to skip typing it in): s
OK!
openssl x509 -in kubernetes.pem -text -noout
penssl x509 -in kubernetes.pem -text -noout
No command 'penssl' found, did you mean:
Command 'openssl' from package 'openssl' (main)
penssl: command not found
`

Ran this after installing a fresh shutit. Thanks for the tutorial !


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGrczQx0-OHmtn01ZKmQ7ORb_dSqVUWkks5q6iGXgaJpZM4KouU9
.

My book on Docker in Practice: Get 39% off with the code 39miell
http://manning.com/miell/?a_aid=zwischenzugs&a_bid=e0d48f62

@jomagam
Copy link
Author

jomagam commented Nov 3, 2016

Happened again. I'm on Ubuntu 16.04 with all patches up-to-date. I'm not a big Python person, so let me know if I can provide better debug info on it.

$ uname -a
Linux miles 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ pip -V
pip 9.0.0 from /usr/local/lib/python2.7/dist-packages (python 2.7)
$ python -V
Python 2.7.12
================================================================================
Copying the key files to the various servers
================================================================================
Command to be run is:
    ls *pem
================================================================================


Enter the command to continue (or "s" to skip typing it in): s
OK!
2016-11-03 12:20:55,946 DEBUG: ================================================================================
2016-11-03 12:20:55,946 DEBUG: Sending>>>ls *pem<<<
2016-11-03 12:20:55,946 DEBUG: Expecting>>>load_balancer#6I9TREU3# <<<
ls *pem
s *pem
s: command not found
load_balancer#6I9TREU3# 2016-11-03 12:20:56,132 DEBUG: Output (squashed): s *pems: command not foundload [...]
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.buffer(hex)>>>

<<<
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.buffer>>>

<<<
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.before (hex)>>>
73202a70656d0d0a733a20636f6d6d616e64206e6f7420666f756e640d0a
<<<
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.before>>>
s *pem
s: command not found

<<<
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.after (hex)>>>
6c6f61645f62616c616e6365722336493954524555332320
<<<
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.after>>>
load_balancer#6I9TREU3# 
<<<
2016-11-03 12:20:56,132 DEBUG: Retrieving output from command:  echo $TMUX
2016-11-03 12:20:56,132 DEBUG: Sending in session: target_child
2016-11-03 12:20:56,133 DEBUG: ================================================================================
2016-11-03 12:20:56,133 DEBUG: Sending>>> echo $TMUX<<<
2016-11-03 12:20:56,133 DEBUG: Expecting>>>load_balancer#6I9TREU3# <<<
 echo $TMUX
 echo $TMUX

load_balancer#6I9TREU3# 2016-11-03 12:20:56,184 DEBUG: Output (squashed): load_balancer#6I9TREU3#  [...]
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.buffer(hex)>>>

<<<
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.buffer>>>

<<<
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.before (hex)>>>
206563686f2024544d55580d0a0d0a
<<<
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.before>>>
 echo $TMUX


<<<
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.after (hex)>>>
6c6f61645f62616c616e6365722336493954524555332320
<<<
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.after>>>
load_balancer#6I9TREU3# 
<<<
2016-11-03 12:20:56,184 DEBUG: Retrieving output from command:  echo $TERM
2016-11-03 12:20:56,184 DEBUG: Sending in session: target_child
2016-11-03 12:20:56,184 DEBUG: ================================================================================
2016-11-03 12:20:56,184 DEBUG: Sending>>> echo $TERM<<<
2016-11-03 12:20:56,184 DEBUG: Expecting>>>load_balancer#6I9TREU3# <<<
 echo $TERM
 echo $TERM
xterm-256color
load_balancer#6I9TREU3# 2016-11-03 12:20:56,235 DEBUG: Output (squashed): xterm-256colorload_balancer#6I [...]
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.buffer(hex)>>>

<<<
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.buffer>>>

<<<
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.before (hex)>>>
206563686f20245445524d0d0a787465726d2d323536636f6c6f720d0a
<<<
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.before>>>
 echo $TERM
xterm-256color

<<<
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.after (hex)>>>
6c6f61645f62616c616e6365722336493954524555332320
<<<
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.after>>>
load_balancer#6I9TREU3# 

@ianmiell
Copy link
Owner

ianmiell commented Nov 5, 2016

Is this behaviour consistent? Always on this command?

On Thu, Nov 3, 2016 at 6:24 PM, jomagam notifications@github.com wrote:

Happened again. I'm on Ubuntu 16.04 with all patches up-to-date. I'm not a
big Python person, so let me know if I can provide better debug info on it.

$ uname -a
Linux miles 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ pip -V
pip 9.0.0 from /usr/local/lib/python2.7/dist-packages (python 2.7)
$ python -V
Python 2.7.12

Copying the key files to the various servers

Command to be run is:

ls *pem

Enter the command to continue (or "s" to skip typing it in): s
OK!
2016-11-03 12:20:55,946 DEBUG: ================================================================================
2016-11-03 12:20:55,946 DEBUG: Sending>>>ls *pem<<<
2016-11-03 12:20:55,946 DEBUG: Expecting>>>load_balancer#6I9TREU3# <<<
ls *pem
s *pem
s: command not found
load_balancer#6I9TREU3# 2016-11-03 12:20:56,132 DEBUG: Output (squashed): s *pems: command not foundload [...]
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.buffer(hex)>>>

<<<
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.buffer>>>

<<<
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.before (hex)>>>
73202a70656d0d0a733a20636f6d6d616e64206e6f7420666f756e640d0a
<<<
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.before>>>
s *pem
s: command not found

<<<
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.after (hex)>>>
6c6f61645f62616c616e6365722336493954524555332320
<<<
2016-11-03 12:20:56,132 DEBUG: shutit_pexpect_child.after>>>
load_balancer#6I9TREU3#
<<<
2016-11-03 12:20:56,132 DEBUG: Retrieving output from command: echo $TMUX
2016-11-03 12:20:56,132 DEBUG: Sending in session: target_child
2016-11-03 12:20:56,133 DEBUG: ================================================================================
2016-11-03 12:20:56,133 DEBUG: Sending>>> echo $TMUX<<<
2016-11-03 12:20:56,133 DEBUG: Expecting>>>load_balancer#6I9TREU3# <<<
echo $TMUX
echo $TMUX

load_balancer#6I9TREU3# 2016-11-03 12:20:56,184 DEBUG: Output (squashed): load_balancer#6I9TREU3# [...]
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.buffer(hex)>>>

<<<
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.buffer>>>

<<<
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.before (hex)>>>
206563686f2024544d55580d0a0d0a
<<<
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.before>>>
echo $TMUX

<<<
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.after (hex)>>>
6c6f61645f62616c616e6365722336493954524555332320
<<<
2016-11-03 12:20:56,184 DEBUG: shutit_pexpect_child.after>>>
load_balancer#6I9TREU3#
<<<
2016-11-03 12:20:56,184 DEBUG: Retrieving output from command: echo $TERM
2016-11-03 12:20:56,184 DEBUG: Sending in session: target_child
2016-11-03 12:20:56,184 DEBUG: ================================================================================
2016-11-03 12:20:56,184 DEBUG: Sending>>> echo $TERM<<<
2016-11-03 12:20:56,184 DEBUG: Expecting>>>load_balancer#6I9TREU3# <<<
echo $TERM
echo $TERM
xterm-256color
load_balancer#6I9TREU3# 2016-11-03 12:20:56,235 DEBUG: Output (squashed): xterm-256colorload_balancer#6I [...]
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.buffer(hex)>>>

<<<
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.buffer>>>

<<<
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.before (hex)>>>
206563686f20245445524d0d0a787465726d2d323536636f6c6f720d0a
<<<
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.before>>>
echo $TERM
xterm-256color

<<<
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.after (hex)>>>
6c6f61645f62616c616e6365722336493954524555332320
<<<
2016-11-03 12:20:56,235 DEBUG: shutit_pexpect_child.after>>>
load_balancer#6I9TREU3#


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGrczdqbxnP7CDep5ntx9bPvz0dI_qkiks5q6ibGgaJpZM4KouU9
.

My book on Docker in Practice: Get 39% off with the code 39miell
http://manning.com/miell/?a_aid=zwischenzugs&a_bid=e0d48f62

@jomagam
Copy link
Author

jomagam commented Nov 5, 2016

It seems random. FWIW it did not happen when I did the install in non-interactive mode without --training

@jomagam
Copy link
Author

jomagam commented Nov 5, 2016

... and since I saw your last comment in the other issue: I have a pretty beefy machine, so it wasn't swapping and I'm sure there was a free core to run the code.

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