C
Coder.com•2mo ago
Ben.Ng

kasm-vnc Module: Failed to connect to server

Dear Dev-team. I have designed a system using kasm-vnc Module but the issue reported is Failed to connect to server My url use HTTP, but log show HTTPS: šŸš€ Starting KasmVNC server... New 'dev:1 (coder)' desktop is dev:1 Users configured: coder (can use keyboard and mouse, add/remove users) Log file is /home/coder/.vnc/dev:1.log Starting applications specified in /home/coder/.vnc/xstartup Paste this url in your browser: https://172.17.0.2:6800 šŸš€ KasmVNC server started successfully! Is this the cause of the error? I have set subdomain = false in main.tf file to match HTTP
No description
11 Replies
matifali
matifali•2mo ago
please share logs from Coder agent they should be in /tmp in the workspace
Ben.Ng
Ben.NgOP•2mo ago
Dear @matifali I 'd like share log in /tmp.
Ben.Ng
Ben.NgOP•2mo ago
Could you check it for me?
Ben.Ng
Ben.NgOP•2mo ago
Dear @matifali , As I understand it, the Coder-Dev team configured VNC to use HTTPS. Is there a way to reconfigure it to use HTTP instead? I use F12 to check the system as follows. I saw a similar issue at https://discord.com/channels/747933592273027093/1290646810234454046
No description
matifali
matifali•2mo ago
Hi @Ben.Ng do you have the CODER_WILDCARD_ACESS_URL set up?
Ben.Ng
Ben.NgOP•2mo ago
Dear @matifali . You are referring to the CODER_WILDCARD_ACCESS_URL option. I set it is DNS.(Created by IT team.) Can you help me confirm that kasmvnc supports both HTTP, HTTPS. I use kasmvnc at https://github.com/coder/registry/tree/0ccee611922da3972e6c933340305c834a6de2fa/registry/coder/modules/kasmvnc
GitHub
registry/registry/coder/modules/kasmvnc at 0ccee611922da3972e6c9333...
Publish Coder modules and templates for other developers to use. - coder/registry
No description
matifali
matifali•2mo ago
Yes it should work with both
matifali
matifali•2mo ago
We set it to run with http here. As it's peroxied through Coder and gets SSL
GitHub
registry/registry/coder/modules/kasmvnc/run.sh at 0ccee611922da3972...
Publish Coder modules and templates for other developers to use. - coder/registry
Ben.Ng
Ben.NgOP•2mo ago
Thank sir, I can use it. Could you help me close the threads?
Phorcys
Phorcys•2mo ago
@Ben.Ng you can run the /close command i'll do it
Codercord
Codercord•2mo ago
@Phorcys closed the thread.

Did you find this page helpful?