calmond / neatx

Automatically exported from code.google.com/p/neatx
0 stars 0 forks source link

Unresumable session after server reboot (hard) #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Open a session
2. shutdown -r now
3. Try to refetch the session, impossible.

Latest SVN (rev. 40).

Any ideas ?

Original issue reported on code.google.com by i...@unity-web.ch on 20 Aug 2009 at 10:08

GoogleCodeExporter commented 9 years ago
My 2 cents:
NX Server need a start/stop daemon like script to clean session db. When 
something goes 
wrong you must have a way to perform a clean restart: restarting the server may 
be 
usefull to clean the db during the starting procedure. If the NX Server is not 
running 
simply there can't be session running so during the starting if db is reporting 
a 
running session, simply clean up the session or mark it as failed/error.

Original comment by jokerulez on 20 Aug 2009 at 12:50

GoogleCodeExporter commented 9 years ago
What I did for now is a simple bash to run on startup : 

#!/bin/sh
rm -rf /usr/local/var/lib/neatx/sessions/*

But, it means that there's no way to 'resume' a session, if there's a 
crash/unplanned
reboot; i hope this would be a 'feature' in the next release(s)

Original comment by i...@unity-web.ch on 20 Aug 2009 at 12:56

GoogleCodeExporter commented 9 years ago
Of course the running/suspended sessions are lost when computer switch off, 
actually. 
In this condition there is no way to resume a session except if you are Henry 
Potter 
(^_^)

Original comment by jokerulez on 20 Aug 2009 at 1:04

GoogleCodeExporter commented 9 years ago
jokerulez is spot on. This is already covered by
http://code.google.com/p/neatx/issues/detail?id=21 , so i'm gonna mark it as a
duplicate. Thanks,

Steve

Original comment by kormat on 23 Aug 2009 at 4:28