I got the following error when trying to run an python app with the debugger ( app itself can be started standalone ) :
Any hint appreciated to track down root cause !
**Eclipse Console says :**
pydev debugger: starting
server timed out after 10 seconds, could not connect to localhost: 44314
Exiting. Bye!
**Eclipse Log Entry:**
Message: Unexpected error setting up the debugger
Callstack: java.net.SocketException:
Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:358)
at java.net.ServerSocket.implAccept(ServerSocket.java:470)
at java.net.ServerSocket.accept(ServerSocket.java:438)
at org.python.pydev.debug.model.remote.ListenConnector.run(ListenConnector.java:40)
at java.lang.Thread.run(Thread.java:636)
**Session Data:**
eclipse.buildId=M20090917-0800
java.version=1.6.0_0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
Command-line arguments: -os linux -ws gtk -arch x86
I've seen some problems when having the network setting misconfigured in linux… pydev will open a connection to 127.0.0.1 and it can fail if things are not ok in your system.
Cheers,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I changed the timeout from 20000 to 40000 but the problem still exists. The error message popup appears very short after I hit the debug-button. The timeout does not seem to be used at all !?
The console message still complains 10 seconds timeout !?
kind regards
Manuel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are 2 timeouts, one in the java side and one at the python side (which is fixed in 10 secs - because the java side should be already up when the python side is started). That configuration changes the java configuration.
Now, if the popup appears very soon it means that it doesn't close because of the timeout but because of some other error…
Seems really weird that the socket just closes without giving any info on why that happens (the classic error for that is a firewall or some network card misconfiguration).
Now after quite some time has past I just wanted to update my eclipse installation and noticed that eclipse is not able to contact _any_ update site ( even though I have access to the internet with my browser ). Eclipse always complains about "network not reachable". After searching the internet I found something that eventually fixed the update issue _and_ my strange debugger issue :
After adding "-Djava.net.preferIPv4Stack=trueb" to my eclipse.ini file everything works again !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got the following error when trying to run an python app with the debugger ( app itself can be started standalone ) :
Any hint appreciated to track down root cause !
**Eclipse Console says :**
pydev debugger: starting
server timed out after 10 seconds, could not connect to localhost: 44314
Exiting. Bye!
**Eclipse Log Entry:**
Message: Unexpected error setting up the debugger
Callstack: java.net.SocketException:
Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:358)
at java.net.ServerSocket.implAccept(ServerSocket.java:470)
at java.net.ServerSocket.accept(ServerSocket.java:438)
at org.python.pydev.debug.model.remote.ListenConnector.run(ListenConnector.java:40)
at java.lang.Thread.run(Thread.java:636)
**Session Data:**
eclipse.buildId=M20090917-0800
java.version=1.6.0_0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
Command-line arguments: -os linux -ws gtk -arch x86
**Versions:**
Eclipse 3.5.1
PyDev 1.5.3.1260479439
Python 2.5.4
Do you have some active firewall that may be blocking communication?
Cheers,
Fabio
No firewall running
I've seen some problems when having the network setting misconfigured in linux… pydev will open a connection to 127.0.0.1 and it can fail if things are not ok in your system.
Cheers,
Fabio
How can I check whether connection to localhost works in general ?
Can I change a PyDev configuration to get more debug output ?
kind regards
Manuel
Can you ping localhost? (I've just seen that pydev uses access with localhost and not 127.0.0.1).
Cheers,
Fabio
ping and traceroute work as expected
kind regards
Manuel
Try raising the timeout at window > preferences > pydev > debug.
Cheers,
Fabio
I changed the timeout from 20000 to 40000 but the problem still exists. The error message popup appears very short after I hit the debug-button. The timeout does not seem to be used at all !?
The console message still complains 10 seconds timeout !?
kind regards
Manuel
There are 2 timeouts, one in the java side and one at the python side (which is fixed in 10 secs - because the java side should be already up when the python side is started). That configuration changes the java configuration.
Now, if the popup appears very soon it means that it doesn't close because of the timeout but because of some other error…
Seems really weird that the socket just closes without giving any info on why that happens (the classic error for that is a firewall or some network card misconfiguration).
It seems a possible cause could be: https://bugs.eclipse.org/bugs/show_bug.cgi?id=176471 can you check that?
Cheers,
Fabio
Now after quite some time has past I just wanted to update my eclipse installation and noticed that eclipse is not able to contact _any_ update site ( even though I have access to the internet with my browser ). Eclipse always complains about "network not reachable". After searching the internet I found something that eventually fixed the update issue _and_ my strange debugger issue :
After adding "-Djava.net.preferIPv4Stack=trueb" to my eclipse.ini file everything works again !
Sorry for the typo: It must be "-Djava.net.preferIPv4Stack=true"
I found the tip here: http://stackoverflow.com/questions/1500646/eclipse-3-5-unable-to-install-plugins