googledatalab / datalab

Interactive tools and developer experiences for Big Data on Google Cloud Platform.
Apache License 2.0
974 stars 249 forks source link

channel_setup_fwd_listener_tcpip: cannot listen to port: 8081 #1993

Open milanleecal opened 6 years ago

milanleecal commented 6 years ago

When using cloud shell to start the tunnel to datalab, I got the following error. This command won't exit. click on the Web Preview (up-arrow button at top-left), select port 8081, and start using Datalab. Tunneling to instance=datalabvm-milanlee bind: Cannot assign requested address channel_setup_fwd_listener_tcpip: cannot listen to port: 8081 Could not request local forwarding.

ojarjur commented 6 years ago

You might have another process already listening to that port.

Try rerunning the datalab connect command while supplying a different port number using the --port flag.

bilousov94 commented 6 years ago

@ojarjur Do you know how to kill process on other port? I have the same problem and my first tunnel was on port 8081, after that I deleted instance, but port is still busy

yebrahim commented 6 years ago

If you have lsof you can try running lsof -i :8081 to list processes using the port.