turkenh / ansible-interactive-tutorial

Interactive Ansible tutorials with dead simple setup via Docker
Other
1.48k stars 208 forks source link

after selecting menu no shell prompt #12

Open deknos opened 6 years ago

deknos commented 6 years ago

Hi, i used your tutorial yesterday. It is really cool! :) Today i tried to reset it, first with git clean -fdx ; git reset --hard ; docker system prune -a ; ./tutorial.sh --remove and then i restarted it. now if i enter a menu point the shell prompt does not appear, only after tipping CTRL+C.

any idea?

deknos commented 6 years ago

i did: git clean -fdx ; git reset --hard ; ./tutorial.sh --remove ; ./tutorial.sh und exit it with 0. then i ran ./tutorial.sh --test and it seems to stop at after executing ansible-playbook -i hosts -l host1.example.org. apache.yml. any idea? :)

turkenh commented 6 years ago

Could you find a solution?

./tutorial.sh --test may sporadically fail with no response, this is a known issue caused by nutsh.

deknos commented 6 years ago

sadly no, because i am not sure how to debug it. it normally happens the first time at lection 3 or 4 and with CTRL+C and it seems to work then.

deknos commented 6 years ago

only pressing Enter does not seem to help. and hitting more times CTRL+C prints only the "enter exit to terminate the nutshell"

deknos commented 6 years ago

On which system do you do this? i work on debian stable (9.x)

turkenh commented 6 years ago

I am running on mac.

Can you please try on http://play-with-docker.com ?

deknos commented 6 years ago

I have the same behaviour there. start a new instance, clone it, start ./tutorial.sh and choose 6 the shell prompt does not return. it stays on "== Playbooks, pushing files on nodes =="

deknos commented 6 years ago

with CTRL+C and Enter i see the next step again. how do i do strace in docker? :D

turkenh commented 6 years ago

This is really strange, because I cannot reproduce on play-with-docker as well. Selecting 6 and hitting enter simply goes into tutorial.

deknos commented 6 years ago

which browser (and version) do you use? This is really annoying, because i am always anxious to skip a lesson :-D

turkenh commented 6 years ago

It was Chrome Version 63.0.3239.132 (Official Build) (64-bit) just tried on Safari and couldn't reproduce there as well :)

deknos commented 6 years ago

Could you try it with Firefox or Chrome?

git clone ...
./tutorial.sh
exit
./tutorial.sh --remove
git clean -fdx
git reset --hard
./tutorial.sh
6
turkenh commented 6 years ago

Still could not reproduce, what am I missing ? :)

Here it is: https://asciinema.org/a/bCUIjUixczMI5qMuHXjNrVNNP

Recorded on play-with-docker with Chrome Version 63.0.3239.132 (Official Build) (64-bit)

turkenh commented 6 years ago

Ok, I could observe this several times sporadically. Is it happening always on your side?