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

ECONNREFUSED 127.0.0.1:4822 #48

Open
ptorrent opened this issue Dec 11, 2022 · 6 comments
Open

ECONNREFUSED 127.0.0.1:4822 #48

ptorrent opened this issue Dec 11, 2022 · 6 comments

Comments

@ptorrent
Copy link

Hello there,

I just updated guacd to 1.4 and now I'm not able to connectu guacamole-lite to the guacd server.

Guacamole proxy daemon (guacd) version 1.4.0 started
guacd[16907]: INFO:     Listening on host ::1, port 4822
[Connection 1]  Closing connection with error:  { Error: connect ECONNREFUSED 127.0.0.1:4822

Any idea ?

Thanks for your help !

@nTorre
Copy link

nTorre commented Jan 18, 2024

I have the same problem, did you find a solution? This is the log, I tried to solve it, but I failed.
[2024-01-18 19:52:23] [Connection 1] Closing connection with error: Error: connect ECONNREFUSED 127.0.0.1:4822 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) { errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 4822 }

@vadimpronin
Copy link
Owner

This error means that either your guacd is not running, or not accessible via 127.0.0.1:4822

@nTorre
Copy link

nTorre commented Jan 19, 2024

This error means that either your guacd is not running, or not accessible via 127.0.0.1:4822

Now I started the guacd server with docker:
docker run -d \ --name=guacd \ -p 4822:4822 \ --restart unless-stopped \ lscr.io/linuxserver/guacd:latest

I used the basic server and the client example for react, but I can't see anything and I get this from the basic server:
Starting guacamole-lite websocket server [2024-01-19 11:25:29] [Connection 1] Client connection open [2024-01-19 11:25:29] [Connection 1] Opening guacd connection [2024-01-19 11:25:29] [Connection 1] guacd connection open [2024-01-19 11:25:29] [Connection 1] Selecting connection type: rdp [2024-01-19 11:25:29] [Connection 1] Sending opCode: 6.select,3.rdp; [2024-01-19 11:25:29] [Connection 2] Client connection open [2024-01-19 11:25:29] [Connection 2] Opening guacd connection [2024-01-19 11:25:29] [Connection 1] Closing guacd connection [2024-01-19 11:25:29] [Connection 1] Client connection closed [2024-01-19 11:25:29] [Connection 2] guacd connection open [2024-01-19 11:25:29] [Connection 2] Selecting connection type: rdp [2024-01-19 11:25:29] [Connection 2] Sending opCode: 6.select,3.rdp; [2024-01-19 11:25:29] [Connection 2] Closing guacd connection [2024-01-19 11:25:29] [Connection 2] Client connection closed

In the html page it prints this in the html:
<noscript>You need to enable JavaScript to run this app.</noscript>
And I tried adding this "proxy": "http://localhost:8080" to the package.json of the react project, but I still can't see anything. What can I do? Thanks a lot

@nTorre
Copy link

nTorre commented Jan 19, 2024

I found the solution. I started with the wrong command the docker guacd server. Here the right one: docker run --name some-guacd -d -p 4822:4822 guacamole/guacd

@vadimpronin
Copy link
Owner

Thanks! I think I will add this to the documentation

@nTorre
Copy link

nTorre commented Jan 19, 2024

Thanks to you for your amazing work!

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