nerfstudio icon indicating copy to clipboard operation
nerfstudio copied to clipboard

Renderer Disconnected

Open TimenoLong opened this issue 9 months ago • 14 comments

When I paste the viewer link{https://viewer.nerf.studio/versions/23-05-15-1/?websocket_url=ws://localhost:7007} into the browser, although I can see the interface, it says "Renderer Disconnection". What should I do?

TimenoLong avatar Sep 20 '23 03:09 TimenoLong

same problem

HHHHH6123 avatar Sep 20 '23 07:09 HHHHH6123

same problem

THUROI0787 avatar Sep 21 '23 12:09 THUROI0787

Are you running the process on a remote server? If so, have you forwarded the port?

tancik avatar Sep 21 '23 20:09 tancik

Are you running the process on a remote server? If so, have you forwarded the port?

Hi dude, thx for your help. I forwarded the port locally with administrator privileges, and now I can see the renderer result.

THUROI0787 avatar Sep 27 '23 06:09 THUROI0787

How can I forward the port locally with administrator privileges? Im a noob

Reloof avatar Oct 11 '23 06:10 Reloof

How can I forward the port locally with administrator privileges? Im a noob

Have you solved it? I'm on Windows, and I set the forward in the firewall, but it didn't help

TIMESTICKING avatar Oct 21 '23 12:10 TIMESTICKING

Turns out I was just using Brave (the web browser) with shields up which is on by default. It worked in Firefox so I tried in Brave with shields down and it worked :)

SebSaga avatar Oct 22 '23 05:10 SebSaga

Turns out I was just using Brave (the web browser) with shields up which is on by default. It worked in Firefox so I tried in Brave with shields down and it worked :)

That actually worked for me too!

davidceka avatar Oct 28 '23 11:10 davidceka

I run the trained command on the remote server ([email protected] with port 22), then use the command "ssh -L 1127:localhost:22 [email protected]" in the command prompt of the local computer to forward the port, and then Go to the browser to visit https://viewer.nerf.studio/versions/23-05-15-1/?websocket_url=ws://localhost:7007. The result still shows Renderer Disconnected. My forwarding port command is wrong. Yet? Or have other questions?

TimenoLong avatar Nov 03 '23 07:11 TimenoLong

just a reminder, as I spent a couple of minutes to figure this out: just try a different browser if you see "renderer disconnected". I tried with Safari and it didn't work. Launched Chrome and voilà!

In Safari Webconsole is a clear warning: [blocked] The page at https://viewer.nerf.studio/versions/23-05-15-1/?websocket_url=ws://localhost:7007 was not allowed to run insecure content from ws://localhost:7007/.

@nerf.studio probably already know: this issue could be fixed by using wss:// which obviously needs a certificate. I would expect more browsers preventing an insecure websocket run from a secure http connection. I guess it would also work for http:// and ws:// or for https:// and wss://, but not for a mix of insecure and secure connections.

@TimenoLong: your port forwarding looks weird to me. You have localhost and a local IP (192.168...). As far as I know, this should be external IPs. But as I didn't get this working on my remote machine either, so I'm not really sure.

#this should get your external IP
curl https://ipinfo.io/ip
#this is what I found on docs.nerf.studio
ssh -L 7007:<training-host-ip>:7007 <username>@<training-host-ip>

check the docs at: https://docs.nerf.studio/quickstart/viewer_quickstart.html#local-vs-remote-compute

Edit: also see: https://docs.nerf.studio/developer_guides/viewer/local_viewer.html

audiocommander avatar Nov 25 '23 13:11 audiocommander

I run the trained command on the remote server ([email protected] with port 22), then use the command "ssh -L 1127:localhost:22 [email protected]" in the command prompt of the local computer to forward the port, and then Go to the browser to visit https://viewer.nerf.studio/versions/23-05-15-1/?websocket_url=ws://localhost:7007. The result still shows Renderer Disconnected. My forwarding port command is wrong. Yet? Or have other questions?

I feel like your port forwarding is wrong it should be ssh -L 7007::7007 @ -p port. So in your case in should be ssh -L 7007:192.168.10.202:7007 [email protected] -p 22. I also tried to use Safari which did not work (Render was disconnected) but Chrome with this URL: https://viewer.nerf.studio/?websocket_url=ws://localhost:7007 worked like a charm.

kramnda1 avatar Jan 20 '24 06:01 kramnda1

Thank you, I have successfully resolved it!

TimenoLong avatar Jan 22 '24 14:01 TimenoLong

Thank you, I have successfully resolved it!

Hi, I have used ssh -L 36073:128.197.173.120:36073 [email protected] -p 22, but it still shows 'renderer disconnected'. The terminal says channel 3: open failed: connect failed: Connection refused. Have you encountered this?

ZekaiYinPKU avatar Feb 09 '24 14:02 ZekaiYinPKU

Thank you, I have successfully resolved it!

Hi, I have used ssh -L 36073:128.197.173.120:36073 [email protected] -p 22, but it still shows 'renderer disconnected'. The terminal says channel 3: open failed: connect failed: Connection refused. Have you encountered this?

Hi, this could be because your remote server is a multi-node cluster and your code is running on one of the compute nodes, not the primary node. In this case, you will need to use: ssh -L [local_port]:[compute_node_ip]:[compute_node_port] [username]@[primary_node_ip] -p [primary_node_port]

ByChelsea avatar Mar 04 '24 15:03 ByChelsea