gotty icon indicating copy to clipboard operation
gotty copied to clipboard

Failed to execute command

Open DrPyser opened this issue 2 years ago • 2 comments

My attempts to use gotty consistently fail with "Failed to execute command".

My example is with tmux, but any command gives the same result.

I installed with go get.

What version of GoTTY are you using (gotty --version)?

gotty version 1.0.1

What operating system and browser are you using?

Ubuntu 20.04, Firefox

What did you do?

gotty --address gotty.localhost --port 8081 tmux new -A -s gotty htop

What did you expect to see?

(In the browser) A new terminal with tmux session attached.

What did you see instead?

❯ gotty --address gotty.localhost --port 8081 tmux new -A -s gotty htop2022/05/04 14:22:57 Server is starting with command: tmux new -A -s gotty htop
2022/05/04 14:28:48 Server is starting with command: tmux new -A -s gotty htop
2022/05/04 14:28:48 URL: http://gotty.localhost:8081/
2022/05/04 14:28:52 127.0.0.1:42478 200 GET /
2022/05/04 14:28:52 127.0.0.1:42478 200 GET /auth_token.js
2022/05/04 14:28:52 127.0.0.1:42480 200 GET /js/gotty.js
2022/05/04 14:28:52 127.0.0.1:42480 200 GET /js/hterm.js
2022/05/04 14:28:52 New client connected: 127.0.0.1:42482
2022/05/04 14:28:52 Failed to execute command
2022/05/04 14:28:52 127.0.0.1:42482 101 GET /ws
2022/05/04 14:28:52 127.0.0.1:42480 304 GET /
2022/05/04 14:28:52 127.0.0.1:42478 200 GET /auth_token.js
2022/05/04 14:28:52 127.0.0.1:42478 304 GET /js/gotty.js
2022/05/04 14:28:52 127.0.0.1:42480 304 GET /js/hterm.js
2022/05/04 14:28:53 New client connected: 127.0.0.1:42484
2022/05/04 14:28:53 Failed to execute command
2022/05/04 14:28:53 127.0.0.1:42484 101 GET /ws

DrPyser avatar May 04 '22 18:05 DrPyser

For anyone coming across this problem - what worked for me is using the prebuilt binaries available in the tags section. I used version 1.0.1: https://github.com/yudai/gotty/releases/tag/v1.0.1

WeaselScience avatar Oct 03 '22 19:10 WeaselScience

Works perfect! Thank you very much!

rmacster avatar Oct 12 '22 17:10 rmacster