spurin / diveintoansible-lab

Dive Into Ansible Lab
850 stars 531 forks source link

Words dont appear after writing #117

Closed Sajiyah-Salat closed 5 months ago

Sajiyah-Salat commented 11 months ago

Hello James, I am following your ansible course and I am on plybook video. Till now everythong was working well. but now when I type words appear after a minute. I cant see results or commands that have been typed. This is really a frustrating issue currently. What should I do? I have remove the lab installed it again. Still the same things happen. Please help. Screenshot from 2023-10-18 16-14-24

spurin commented 11 months ago

Hi @Sajiyah-Salat

Can you please confirm what OS and browser you are using at present?

spurin commented 11 months ago

I suspect that it may be something with the xterm.js library that is used to render the terminal. Can we try a quick experiment pls.

Log into one of the ubuntu nodes as root/password

And then paste the following -

(cd /tmp; wget https://github.com/tsl0922/ttyd/releases/download/1.7.4/ttyd.x86_64; wget https://github.com/tsl0922/ttyd/releases/download/1.7.4/ttyd.aarch64; chmod 755 ttyd.*; mv ttyd.* /bin/)

Then please refresh that page in your browser and log in again as ansible. We'll see then if it's any better. This will update to the latest version of ttyd which in turn will be using a much newer version of xterm.js which then, hopefully has already addressed the issue you're seeing.

Sajiyah-Salat commented 11 months ago

Screenshot from 2023-10-18 21-01-30

when there is a question at the end of the script I tried using enter or yes or y. none of them worked and permission denied. What should I do?

spurin commented 11 months ago

You'll need to be logged in as root, do the initial login with the username of root and then password as the password, then paste the command.

Sajiyah-Salat commented 11 months ago

I logged in as root, and pasted the command, command runs well. But still the same issue or I would say its been worse as its crashing now as well. I am on ubuntu 22 and the web browser is chrome I have 8gb of ram as well. Still its not working why?

spurin commented 11 months ago

Thanks @Sajiyah-Salat - appreciate your time troubleshooting this. For anyone else following the thread, a recent chrome update has identified some issues with the xterm.js rendering used in the lab. At present you'll need to use a different browser to work around. I'm going to update the lab with a newer version to get around this.

spurin commented 11 months ago

Closed the issue by mistake, will close once the new lab is released

Sajiyah-Salat commented 11 months ago

Let me know if I could help you in any way.

spurin commented 11 months ago

Hi @Sajiyah-Salat

I'm pleased to let you know that an updated lab has been rolled out. If you issue the following commands, this should fix the issues you were encountering. Again, appreciate your time in troubleshooting this.

Please check and confirm all is as expected from Chrome on your side, in the diveintoansible-lab directory -

docker compose down
docker compose rm
docker compose pull
docker compose up

Best Regards

James

Sajiyah-Salat commented 11 months ago

Yes, will do that soon! Thank you for upgrading