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

Fedora 20 and 21 0.15.0 builds are failing to stop on command #852

Closed
totaam opened this issue May 1, 2015 · 8 comments
Closed

Fedora 20 and 21 0.15.0 builds are failing to stop on command #852

totaam opened this issue May 1, 2015 · 8 comments

Comments

@totaam
Copy link
Collaborator

totaam commented May 1, 2015

Issue migrated from trac ticket # 852

component: server | priority: major | resolution: fixed

2015-05-01 22:35:59: maxmylyn created the issue


Running Fedora 20 and 21 r9137 0.15.0 servers

On running a xpra stop :13 I get the following output:


2015-05-01 14:23:01,863 Shutting down in response to request
2015-05-01 14:23:02,863 Disconnecting client Protocol(SocketConnection(('10.0.32.137', 2200) - ('10.0.11.124', 55435))): server shutdown
2015-05-01 14:23:02,884 xpra client disconnected.
2015-05-01 14:23:02,884 Disconnecting client Protocol(SocketConnection(/home/max/.xpra/ueberraschung.spikes.eng-13)): server shutdown
2015-05-01 14:23:02,885 xpra client disconnected.
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/xpra/server/server_core.py", line 279, in clean_quit
    self.cleanup()
  File "/usr/lib64/python2.7/site-packages/xpra/x11/server.py", line 326, in cleanup
    X11ServerBase.cleanup(self)
  File "/usr/lib64/python2.7/site-packages/xpra/x11/x11_server_base.py", line 489, in cleanup
    GTKServerBase.cleanup(self)
  File "/usr/lib64/python2.7/site-packages/xpra/server/server_base.py", line 577, in cleanup
    self.cleanup_pulseaudio()
  File "/usr/lib64/python2.7/site-packages/xpra/server/server_base.py", line 361, in cleanup_pulseaudio
    if self.is_child_alive(proc):
  File "/usr/lib64/python2.7/site-packages/xpra/server/server_base.py", line 562, in is_child_alive
    return proc is not None and proc.poll() is None and proc.pid not in self.child_reaper._dead_pids
AttributeError: 'ChildReaper' object has no attribute '_dead_pids'
2015-05-01 14:23:02,936 New connection received: SocketConnection(/home/max/.xpra/ueberraschung.spikes.eng-13)
2015-05-01 14:23:02,938 Connection lost
2015-05-01 14:23:03,438 New connection received: SocketConnection(/home/max/.xpra/ueberraschung.spikes.eng-13)
2015-05-01 14:23:03,439 Connection lost
2015-05-01 14:23:03,938 New connection received: SocketConnection(/home/max/.xpra/ueberraschung.spikes.eng-13)
2015-05-01 14:23:03,940 Connection lost
2015-05-01 14:23:04,439 New connection received: SocketConnection(/home/max/.xpra/ueberraschung.spikes.eng-13)
2015-05-01 14:23:04,441 Connection lost
2015-05-01 14:23:04,940 New connection received: SocketConnection(/home/max/.xpra/ueberraschung.spikes.eng-13)
2015-05-01 14:23:04,941 Connection lost
2015-05-01 14:23:05,441 New connection received: SocketConnection(/home/max/.xpra/ueberraschung.spikes.eng-13)
2015-05-01 14:23:05,443 Connection lost

The server then kicks the client, and then fails to stop. I can then reconnect if I so choose.

@totaam
Copy link
Collaborator Author

totaam commented May 2, 2015

2015-05-02 05:20:29: antoine changed owner from antoine to maxmylyn

@totaam
Copy link
Collaborator Author

totaam commented May 2, 2015

2015-05-02 05:20:29: antoine commented


Good catch, should be fixed in r9209.

@totaam
Copy link
Collaborator Author

totaam commented May 2, 2015

2015-05-02 05:21:12: antoine commented


(fix milestone)

@totaam
Copy link
Collaborator Author

totaam commented May 4, 2015

2015-05-04 20:26:14: maxmylyn commented


Re-attempted with a Fedora 21 r9210 server:

  • xpra stop :13 now shuts down the server.

However, I am still getting Failed to shut down xpra at :13 before the server exits. The ssh session that I had the xpra server running on (with --no-daemon) shows the Xpra server exiting completely, but it does not terminate the x server. If I do a ps auxf I can see a floating Xorg.

Also I get a traceback on a shutdown request before the server exits:

2015-05-04 12:17:32,396 Shutting down in response to request
2015-05-04 12:17:33,398 Disconnecting client '/home/max/.xpra/ueberraschung.spikes.eng-13': server shutdown
2015-05-04 12:17:33,399 xpra client disconnected.
2015-05-04 12:17:33,401 stopping pulseaudio with pid 906
2015-05-04 12:17:33,452 New unix-domain connection received
2015-05-04 12:17:33,456 Connection lost
2015-05-04 12:17:33,931 xpra is terminating.
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/xpra/server/server_core.py", line 282, in quit_timer
    self.quit(upgrading)
  File "/usr/lib64/python2.7/site-packages/xpra/server/server_core.py", line 300, in quit
    self.do_quit()
  File "/usr/lib64/python2.7/site-packages/xpra/server/gtk_server_base.py", line 50, in do_quit
    gtk_main_quit_on_fatal_exceptions_disable()
  File "/usr/lib64/python2.7/site-packages/xpra/gtk_common/quit.py", line 76, in gtk_main_quit_on_fatal_exceptions_disable
    oh = _oldhook
UnboundLocalError: local variable '_oldhook' referenced before assignment
2015-05-04 12:17:34,226 New unix-domain connection received
2015-05-04 12:17:34,229 Connection lost
2015-05-04 12:17:34,453 New unix-domain connection received
2015-05-04 12:17:34,455 Connection lost
2015-05-04 12:17:34,955 New unix-domain connection received
2015-05-04 12:17:34,957 Connection lost
2015-05-04 12:17:35,455 New unix-domain connection received
2015-05-04 12:17:35,457 Connection lost
2015-05-04 12:17:35,956 New unix-domain connection received
2015-05-04 12:17:35,957 Connection lost

@totaam
Copy link
Collaborator Author

totaam commented May 5, 2015

2015-05-05 04:59:40: antoine commented


Oh, that's odd.
This is a different one, which was caused by r9197 for #626. This is fixed in trunk in r9250 and v0.15.x in 9251.

@totaam
Copy link
Collaborator Author

totaam commented May 13, 2015

2015-05-13 22:12:33: maxmylyn commented


Running against an 9285 0.15.0 Fedora 21 Server I am no longer getting any warnings or errors on running xpra stop :13, and the server then shuts down cleanly.

@totaam
Copy link
Collaborator Author

totaam commented May 14, 2015

2015-05-14 03:46:30: antoine changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented May 14, 2015

2015-05-14 03:46:30: antoine set resolution to fixed

@totaam totaam closed this as completed May 14, 2015
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

1 participant