Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian test failure: asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed #81

Closed
sandrotosi opened this issue Mar 6, 2017 · 5 comments

Comments

@sandrotosi
Copy link

Hello,
in Debian we got this report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854701:

======================================================================
ERROR: test_bad_auth_big (tests.test_x11._TestX11)
Test sending bad auth data with big-endian connect
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 430, in test_bad_auth_big
    yield from self._check_x11('connect BX', exit_status=0)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_bad_auth_little (tests.test_x11._TestX11)
Test sending bad auth data with little-endian connect
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 436, in test_bad_auth_little
    yield from self._check_x11('connect lX', exit_status=0)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_connection_refused_big (tests.test_x11._TestX11)
Test the X server refusing connection with big-endian connect
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 417, in test_connection_refused_big
    x11_display='test:1')
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_connection_refused_little (tests.test_x11._TestX11)
Test the X server refusing connection with little-endian connect
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 424, in test_connection_refused_little
    x11_display='test:1')
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_consecutive_different_servers (tests.test_x11._TestX11)
Test X11 forwarding to different X servers consecutively
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 574, in test_consecutive_different_servers
    proc = yield from _create_x11_process(conn)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_display_environment (tests.test_x11._TestX11)
Test getting X11 display from the environment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 474, in test_display_environment
    yield from self._check_x11(x11_display=None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_domain_socket (tests.test_x11._TestX11)
Test matching against an explicit domain socket
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 466, in test_domain_socket
    yield from self._check_x11(x11_display='/test:0')
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_forward_big (tests.test_x11._TestX11)
Test requesting X11 forwarding with big-endian connect
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 404, in test_forward_big
    x11_single_connection=True)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_forward_little (tests.test_x11._TestX11)
Test requesting X11 forwarding with little-endian connect
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 410, in test_forward_little
    yield from self._check_x11('connect l', exit_status=1)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_ipv4_address (tests.test_x11._TestX11)
Test matching against an IPv4 address
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 442, in test_ipv4_address
    yield from self._check_x11(x11_display='0.0.0.1:0')
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_ipv6_address (tests.test_x11._TestX11)
Test matching against an IPv6 address
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 448, in test_ipv6_address
    yield from self._check_x11(x11_display='[::1]:0')
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_local_server (tests.test_x11._TestX11)
Test matching against a local X server
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 460, in test_local_server
    yield from self._check_x11(x11_display=':0')
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_multiple_sessions (tests.test_x11._TestX11)
Test requesting X11 forwarding from two different sessions
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 553, in test_multiple_sessions
    yield from _create_x11_process(conn)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_selective_forwarding (tests.test_x11._TestX11)
Test requesting X11 forwarding from one session and not another
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 544, in test_selective_forwarding
    yield from _create_x11_process(conn, 'sleep', x11_display='test:0')
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_simultaneous_different_servers (tests.test_x11._TestX11)
Test X11 forwarding to different X servers simultaneously
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 586, in test_simultaneous_different_servers
    yield from _create_x11_process(conn, 'sleep')
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_simultaneous_sessions (tests.test_x11._TestX11)
Test X11 forwarding from multiple sessions simultaneously
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 563, in test_simultaneous_sessions
    yield from _create_x11_process(conn, 'sleep')
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_wildcard_address (tests.test_x11._TestX11)
Test matching against a wildcard host entry
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 454, in test_wildcard_address
    yield from self._check_x11(x11_display='wild:0')
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

======================================================================
ERROR: test_xauth_environment (tests.test_x11._TestX11)
Test getting Xauthority path from the environment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1159, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/tests/util.py", line 59, in async_wrapper
    return self.loop.run_until_complete(wrapped_func)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 498, in test_xauth_environment
    yield from self._check_x11()
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 339, in _check_x11
    proc = yield from _create_x11_process(conn, command, **kwargs)
  File "/<<PKGBUILDDIR>>/tests/test_x11.py", line 52, in _create_x11_process
    x11_display=x11_display, **kwargs))
  File "/<<PKGBUILDDIR>>/asyncssh/misc.py", line 152, in __iter__
    return (yield from self._coro)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2487, in create_process
    **kwargs)
  File "/<<PKGBUILDDIR>>/asyncssh/connection.py", line 2408, in create_session
    bool(self._agent_path)))
  File "/<<PKGBUILDDIR>>/asyncssh/channel.py", line 895, in create
    'X11 forwarding request failed')
asyncssh.misc.ChannelOpenError: Channel Open Error: X11 forwarding request failed

----------------------------------------------------------------------
Ran 638 tests in 187.062s

FAILED (errors=18, skipped=2)

version of asyncssh is 1.8.1

could you have a look at what's causing this and how we can address it? currently this problem is creating a bug severe enough that asyncssh may risk to be excluded from the upcoming debian release (aka stretch)

thanks!

@ronf
Copy link
Owner

ronf commented Mar 6, 2017

Would it be possible to try this again with AsyncSSH 1.9.0? I checked in the fix a4aa89a a month or so ago that seems like it might address these failures. This was after 1.8.1 was released, though.

@sandrotosi
Copy link
Author

thanks @ronf for the quick reply! sadly due to the late development phase Debian is at the moment, it is not possible to upgrade to a new release. Do you think that commit is all that needs to be applied to make those failures go again? we could take that and apply it to the 1.8.1 version we have in our archive

@ronf
Copy link
Owner

ronf commented Mar 6, 2017

The fix above was actually a correction to the fix 51545e0, and you'd probably need both changes if you wanted to cherry-pick this.

I don't really know for sure if this will fix the Debian problem, as I haven't seen any failures of this sort in my Linux unit testing on Ubuntu. Unfortunately, there tracebacks don't point at a specific problem, and just indicate the server-side of the X11 forwarding failed for some reason.

If someone can provide me remote access to a VM having this problem, I'd be happy to take a closer look.

@ronf
Copy link
Owner

ronf commented Apr 8, 2017

Closing this for now - feel free to open a new issue if the problem reappears.

@ronf ronf closed this as completed Apr 8, 2017
@vincentbernat
Copy link

Sorry for the very late answer. We already had those patches in Debian. I'll update to the latest version and see if it goes away. I didn't have the failures either in my environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants