mitch
February 9, 2015, 7:07am
#1
Remote debugging used to work fine. Now when I try it, I get the message “Error: That port is already in use.”. I am debugging a Linux AWS machine from Win 7 running Komodo IDE 8. Komodo 7 does the same thing. I have tried both ports 9000 and 9001.
I have loaded the Komodo 8 remote debugging files onto the remote Linux machine. The command I am using on the remote machine is:
~/bin/pydbgp -d my_ip_address:9000 path/to/manage.py runserver --noreload 127.0.0.1:8080
nathanr
February 9, 2015, 3:32pm
#2
Can you check what is using those ports?
mitch
February 9, 2015, 5:24pm
#3
sudo netstat -tulpn says that nothing is using 9000 or 9001:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 1378/memcached
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 22542/apache2
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 22531/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1432/sshd
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 22619/postgres
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1372/exim4
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 22531/nginx: master
tcp6 0 0 :::22 :::* LISTEN 1432/sshd
tcp6 0 0 :::5432 :::* LISTEN 22619/postgres
udp 0 0 0.0.0.0:68 0.0.0.0:* 1411/dhclient3
nathanr
February 9, 2015, 5:27pm
#4
Sorry my bad, you are using WIndows 7 as your dev machine and linux as the server. You need to do the port check on Windows. Try this - http://stackoverflow.com/questions/48198/how-can-you-find-out-which-process-is-listening-on-a-port-on-windows
mitch
February 9, 2015, 5:36pm
#5
For port 9000, Resource Monitor shows only komodo:
Image PID Address Port Protocol Firewall Status
komodo.exe 10104 IPv4 unspecified 9000 TCP Allowed, not restricted
nathanr
February 9, 2015, 5:39pm
#6
And that’s while Komodo is not running? (ie. before starting Komodo, which would give you the “port in use” error)
mitch
February 9, 2015, 5:55pm
#7
No. If I close Komodo, then nothing is using the port.
nathanr
February 9, 2015, 6:18pm
#8
But Komodo still gives you the error when you start it?
mitch
February 9, 2015, 6:40pm
#9
With Komodo not running, nothing is using port 9000. After I start Komodo, it is using the port. Then when I run the debugger on the remote box, I get the error.
nathanr
February 9, 2015, 6:52pm
#10
Wait so are you seeing this error on the server or the client? (Linux or Win)
mitch
February 9, 2015, 7:26pm
#11
Uh oh. You’re right. I wasn’t stopping apache before running the debugger. Sorry for the goose chase.