[wingide-users] WingIDE Debugger couldn't start due to iptables

一凡 裴 josephpei at yahoo.com.cn
Wed Jul 4 00:10:50 MDT 2012


I have two network cards, my os is ubuntu 12.04 lts, and i want share my internet connect to another computer.

When i clear iptables rules, the WingIDE could work  fine.

When i add the rules below, my ethernet works fine, but the WingIDE Debugger couldn't start.

sudo iptables -A FORWARD -o eth0 -i eth1 -s 192.168.0.0/24 -m conntrack --ctstate NEW -j ACCEPT sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT sudo iptables -A POSTROUTING -t nat -j MASQUERADE
WingIDE message:

The debug process never connected back to Wing IDE:  Aborting debug session.  See Trouble-shooting Failure to Debug in the product manual.

error-log:


wingide - 2012/07/04 14:00:52 - Debugger: Listening for back-connection
wingide - 2012/07/04 14:00:52 - popenE with ['/usr/bin/python', '-u', u'/usr/lib/wingide4.1/bin/wingdb.py', '127.0.0.1:55713', '-1', '--first-stop', "r'/run/shm/log'+chr(46)+r'txt'", '--very-verbose-log', '--nowait-on-exit', '--stdout-encoding=UTF-8', '--stdin-encoding=UTF-8', "r'/usr/lib/wingide4'+chr(46)+r'1/src/debug/tserver/_sandbox'+chr(46)+r'py'"]
wingide - 2012/07/04 14:00:52 - popenE done
wingide - 2012/07/04 14:00:52 - Runtime failure details:
wingide - 2012/07/04 14:00:52 - Exception: "<class 'debug.tserver.channel.CBadPacket'>"
wingide - 2012/07/04 14:00:52 - Value = 'Connection from invalid host!'
wingide - 2012/07/04 14:00:52 - Traceback:
wingide - 2012/07/04 14:00:52 -   File "/usr/lib/wingide4.1/bin/wing.py", line 649, in <module>
wingide - 2012/07/04 14:00:52 -     Main()
wingide - 2012/07/04 14:00:52 -   File "/usr/lib/wingide4.1/bin/wing.py", line 638, in Main
wingide - 2012/07/04 14:00:52 -     Run(sys.argv[:], squelch_output)
wingide - 2012/07/04 14:00:52 -   File "/usr/lib/wingide4.1/bin/wing.py", line 535, in Run
wingide - 2012/07/04 14:00:52 -     main.main(squelch_output, remote_open == 0, pref_files, args, cmdlinefiles)
wingide - 2012/07/04 14:00:52 -   File "2.5/src/main.pyo", line 166, in main
wingide - 2012/07/04 14:00:52 -   File "2.5/src/wingide/wingapp.pyo", line 653, in Run
wingide - 2012/07/04 14:00:52 -   File "2.5/src/guimgr/guimanager.pyo", line 1173, in RunGUI
wingide - 2012/07/04 14:00:52 -   File "2.5/src/guiutils/wgtk_gtk.pyo", line 4731, in callback_wrapper
wingide - 2012/07/04 14:00:52 -   File "2.5/src/wingutils/callutils.pyo", line 83, in wrapper
wingide - 2012/07/04 14:00:52 -   File "2.5/src/debug/client/runstate.pyo", line 1002, in __CB_Idle
wingide - 2012/07/04 14:00:52 -   File "2.5/src/wingutils/callutils.pyo", line 83, in wrapper
wingide - 2012/07/04 14:00:52 -   File "2.5/src/debug/client/runstate.pyo", line 2024, in _PollConnectionForListen
wingide - 2012/07/04 14:00:52 -   File "2.5/src/debug/client/runstate.pyo", line 2022, in _PollConnectionForListen
wingide - 2012/07/04 14:00:52 -   File "2.5/src/debug/client/tnetproxy.pyo", line 302, in Listen
wingide - 2012/07/04 14:00:52 -   File "2.5/src/debug/tserver/channel.pyo", line 405, in Listen
wingide - 2012/07/04 14:00:52 - /usr/lib/wingide4.1/bin/2.5/src.zip/debug/client/runstate.py:1143: DeprecationWarning: integer argument expected, got float
wingide - 2012/07/04 14:00:52 - Debugger: No debug process / not listening for connections
wingide - 2012/07/04 14:00:52 - Debugger: Connection Failed::The debug process never connected back to Wing IDE:  Aborting debug session.  See Trouble-shooting Failure to Debug in the product manual.
wingide - 2012/07/04 14:00:56 - General: Skipping update check -- done too recently
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/wingide-users/attachments/20120704/cd07777e/attachment.html>


More information about the wingide-users mailing list