xpra icon
Bug tracker and wiki

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#73 closed defect (fixed)

Error message when DNS goes wrong

Reported by: pmarek Owned by: Antoine Martin
Priority: minor Milestone: 0.0.7.x
Component: client Version: 0.0.7.35
Keywords: Cc:

Description

If I try to connect too soon, ie. when DNS is not working (resolv.conf not done, etc.), I get this error:

$ xpra attach ssh:host:65
ssh: Could not resolve hostname host: Name or service not known
using dbusnotify: <class 'dbus.proxies.Interface'>(org.freedesktop.Notifications)
Exception in thread write_loop:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/xpra/xpra/protocol.py", line 171, in _write_thread_loop
    written = untilConcludes(self._conn.write, buf)
  File "/usr/lib/xpra/xpra/protocol.py", line 69, in untilConcludes
    return f(*a, **kw)
  File "/usr/lib/xpra/xpra/protocol.py", line 38, in write
    return os.write(self._writeable.fileno(), buf)
ValueError: I/O operation on closed file

connection lost: empty marker in read queue
Connection lost

Xpra 0.0.7.34, svn revision 453 with 0 local changes

Change History (3)

comment:1 Changed 9 years ago by Antoine Martin

Owner: changed from Antoine Martin to Antoine Martin
Status: newaccepted

should be able to detect the error code from ssh, hopefully without breaking putty etc

comment:2 Changed 9 years ago by Antoine Martin

Resolution: fixed
Status: acceptedclosed

done in r459, here is the output now shown:

ssh: Could not resolve hostname blah.dsdsd: Name or service not known
cannot read using ['ssh', '-T', 'blah.dsdsd']: the SSH process has terminated!
cannot write using ['ssh', '-T', 'blah.dsdsd']: the SSH process has terminated!

comment:3 Changed 9 years ago by Antoine Martin

Milestone: current0.0.7.x
Version: 0.0.7.35
Note: See TracTickets for help on using tickets.