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

Failed to execute command #330

Open
DrPyser opened this issue May 4, 2022 · 2 comments
Open

Failed to execute command #330

DrPyser opened this issue May 4, 2022 · 2 comments

Comments

@DrPyser
Copy link

DrPyser commented May 4, 2022

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
@WeaselScience
Copy link

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

@rmacster
Copy link

Works perfect! Thank you very much!

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

3 participants