You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by dan <da...@gmail.com> on 2017/11/16 22:52:58 UTC

Kill session button in UI?

Is there a way to enable a 'kill session' button on the home screen?
Sometimes a VNC or RDP session will hang up and need killed and it's not
great to dive into settings to do that.  Or maybe a killall sessions button?

Re: Kill session button in UI?

Posted by dan <da...@gmail.com>.
yes, my assumption matches your intent :)

On Fri, Nov 17, 2017 at 11:18 AM, Nick Couchman <vn...@apache.org> wrote:

> On Fri, Nov 17, 2017 at 1:16 PM, dan <da...@gmail.com> wrote:
>
>> I'll try this weekend.
>>
>>
>>
> Great.  And, just to clarify my remark, when I say "pulling the latest
> code," I mean cloning the master branch of the github repo, not the latest
> release on the Guacamole website.  Perhaps you already assumed that, I just
> wasn't overly-clear about it.
>
> -Nick
>

Re: Kill session button in UI?

Posted by Nick Couchman <vn...@apache.org>.
On Fri, Nov 17, 2017 at 1:16 PM, dan <da...@gmail.com> wrote:

> I'll try this weekend.
>
>
>
Great.  And, just to clarify my remark, when I say "pulling the latest
code," I mean cloning the master branch of the github repo, not the latest
release on the Guacamole website.  Perhaps you already assumed that, I just
wasn't overly-clear about it.

-Nick

Re: Kill session button in UI?

Posted by dan <da...@gmail.com>.
I'll try this weekend.

On Fri, Nov 17, 2017 at 11:10 AM, Nick Couchman <vn...@apache.org> wrote:

>
> On Fri, Nov 17, 2017 at 11:50 AM, Nick Couchman <vn...@apache.org> wrote:
>
>>
>>
>> On Fri, Nov 17, 2017 at 11:46 AM, dan <da...@gmail.com> wrote:
>>
>>> On Ubuntu 16.04 LTS and guac 0.9.13
>>>  I do find a number of these entries in the logs:
>>> "segfault at 10 ip 00007f70d4364e52 sp 00007f70d2d6cd50 error 4 in
>>> libguac-client-vnc.so.0.0.0[7f70d435c000+13000]"
>>> note that this hasn't presented with any other issues AFAIK, sessions
>>> run smooth etc and VNC 'freezes' when the internet connection dies or the
>>> remote side reboots.
>>>
>>>
>> Without digging into it much, it's possible this is related to the
>> following issue:
>>
>> https://issues.apache.org/jira/browse/GUACAMOLE-388
>>
>> There's a pull request in the works to resolve this issue at the moment,
>> so might be fixed in the near-future.
>>
>> -Nick
>>
>>
> Actually, there was a change recently committed to the master branch that
> might resolve this issue:
>
> https://github.com/apache/incubator-guacamole-server/pull/120
>
> Any chance you can try pulling the latest code for guacamole-server, build
> that, and see if this resolves your issue?  If it doesn't resolve the issue
> or you can't check out and build the newer code, maybe you can run gdb with
> guacd and provide the trace that shows where it is segfaulting?
>
> -Nick
>

Re: Kill session button in UI?

Posted by Nick Couchman <vn...@apache.org>.
On Fri, Nov 17, 2017 at 11:50 AM, Nick Couchman <vn...@apache.org> wrote:

>
>
> On Fri, Nov 17, 2017 at 11:46 AM, dan <da...@gmail.com> wrote:
>
>> On Ubuntu 16.04 LTS and guac 0.9.13
>>  I do find a number of these entries in the logs:
>> "segfault at 10 ip 00007f70d4364e52 sp 00007f70d2d6cd50 error 4 in
>> libguac-client-vnc.so.0.0.0[7f70d435c000+13000]"
>> note that this hasn't presented with any other issues AFAIK, sessions run
>> smooth etc and VNC 'freezes' when the internet connection dies or the
>> remote side reboots.
>>
>>
> Without digging into it much, it's possible this is related to the
> following issue:
>
> https://issues.apache.org/jira/browse/GUACAMOLE-388
>
> There's a pull request in the works to resolve this issue at the moment,
> so might be fixed in the near-future.
>
> -Nick
>
>
Actually, there was a change recently committed to the master branch that
might resolve this issue:

https://github.com/apache/incubator-guacamole-server/pull/120

Any chance you can try pulling the latest code for guacamole-server, build
that, and see if this resolves your issue?  If it doesn't resolve the issue
or you can't check out and build the newer code, maybe you can run gdb with
guacd and provide the trace that shows where it is segfaulting?

-Nick

Re: Kill session button in UI?

Posted by dan <da...@gmail.com>.
I might have to give in and put a label on the monitor with the hotkey :/
 Not ideal, but workable.

On Fri, Nov 17, 2017 at 9:50 AM, Nick Couchman <vn...@apache.org> wrote:

>
>
> On Fri, Nov 17, 2017 at 11:46 AM, dan <da...@gmail.com> wrote:
>
>> On Ubuntu 16.04 LTS and guac 0.9.13
>>  I do find a number of these entries in the logs:
>> "segfault at 10 ip 00007f70d4364e52 sp 00007f70d2d6cd50 error 4 in
>> libguac-client-vnc.so.0.0.0[7f70d435c000+13000]"
>> note that this hasn't presented with any other issues AFAIK, sessions run
>> smooth etc and VNC 'freezes' when the internet connection dies or the
>> remote side reboots.
>>
>>
> Without digging into it much, it's possible this is related to the
> following issue:
>
> https://issues.apache.org/jira/browse/GUACAMOLE-388
>
> There's a pull request in the works to resolve this issue at the moment,
> so might be fixed in the near-future.
>
> -Nick
>
>

Re: Kill session button in UI?

Posted by Nick Couchman <vn...@apache.org>.
On Fri, Nov 17, 2017 at 11:46 AM, dan <da...@gmail.com> wrote:

> On Ubuntu 16.04 LTS and guac 0.9.13
>  I do find a number of these entries in the logs:
> "segfault at 10 ip 00007f70d4364e52 sp 00007f70d2d6cd50 error 4 in
> libguac-client-vnc.so.0.0.0[7f70d435c000+13000]"
> note that this hasn't presented with any other issues AFAIK, sessions run
> smooth etc and VNC 'freezes' when the internet connection dies or the
> remote side reboots.
>
>
Without digging into it much, it's possible this is related to the
following issue:

https://issues.apache.org/jira/browse/GUACAMOLE-388

There's a pull request in the works to resolve this issue at the moment, so
might be fixed in the near-future.

-Nick

Re: Kill session button in UI?

Posted by dan <da...@gmail.com>.
On Ubuntu 16.04 LTS and guac 0.9.13
 I do find a number of these entries in the logs:
"segfault at 10 ip 00007f70d4364e52 sp 00007f70d2d6cd50 error 4 in
libguac-client-vnc.so.0.0.0[7f70d435c000+13000]"
note that this hasn't presented with any other issues AFAIK, sessions run
smooth etc and VNC 'freezes' when the internet connection dies or the
remote side reboots.

i just apt updated and there is no update available to libvnc so I'm up to
16.04's current "0.9.10+dfsg-3build1"

As far as the hotkey, I remember it just fine, but I have muggles using
this and they can't seem to commit it to memory.




On Fri, Nov 17, 2017 at 9:25 AM, Nick Couchman <vn...@apache.org> wrote:

>
>
> On Fri, Nov 17, 2017 at 11:03 AM, dan <da...@gmail.com> wrote:
>
>> "Well, sounds like the best option would be to get to the root cause of
>> why the VNC connection isn't closing properly?"
>> Where should I start?  I'm using the built-in guac client, I don't know
>> where there are tuning for this.  I feel like this is a fairly common VNC
>> thing though.
>>
>>
> Log files for Guacamole Server I think are probably the best place.
> Normally this gets logged to the standard syslog infrastructure, so it may
> be in /var/log/messages or journalctl or something like that.  You can also
> start guacd in the foreground (-f) and enable debugging (-L debug) and that
> should give you some more verbose output, and you can watch it when you
> terminate the VNC session and see if anything interesting gets logged
> there.  I suspect that it's something with guacd + libVNCServer that is
> causing the issue, and that it's between guacd and VNC, and not between the
> Guacamole client and guacd.
>
> You can also try upgrading or downgrading libVNCServer on the system
> hosting guacd and see if that makes any difference.  What platform/version
> are you running Guacamole on, and what version of Guacamole (sorry if you
> already posted that, I'm just not seeing it at the moment)?
>
>
>> "What if you use the Ctrl-Alt-Shift hot-key to get to the hidden menu
>> and use the "Disconnect" option?  Does this properly terminate the
>> session?  Or does it still list as open on the homepage after doing this?"
>> This does work. The only issue is that ctrl-alt-shift is super hard for
>> people to remember for whatever reason :/  Maybe an option for a small
>> 'tool' bar at the left or top of the window.  That's kind of a different
>> request, but it would be nice to have a 'disconnect|copy|paste' on screen.
>>
>
> I disagree that this key combo is all that hard to remember - many key
> combos both in Linux and Windows include at least Ctrl-Alt
> (Ctrl-Alt-Delete, Ctrl-Alt-F1, Ctrl-Alt-End), but I use Guacamole everyday,
> so maybe I've just had enough time to get used to it :-).  I think adding
> some sort of connection bar has been discussed in the past, and never
> gained much support.
>
> However, much of this discussion is moot if we go back to finding the root
> cause for the original problem, and get those VNC sessions to terminate
> properly :-).
>
> -Nick
>

Re: Kill session button in UI?

Posted by Nick Couchman <vn...@apache.org>.
On Fri, Nov 17, 2017 at 11:03 AM, dan <da...@gmail.com> wrote:

> "Well, sounds like the best option would be to get to the root cause of
> why the VNC connection isn't closing properly?"
> Where should I start?  I'm using the built-in guac client, I don't know
> where there are tuning for this.  I feel like this is a fairly common VNC
> thing though.
>
>
Log files for Guacamole Server I think are probably the best place.
Normally this gets logged to the standard syslog infrastructure, so it may
be in /var/log/messages or journalctl or something like that.  You can also
start guacd in the foreground (-f) and enable debugging (-L debug) and that
should give you some more verbose output, and you can watch it when you
terminate the VNC session and see if anything interesting gets logged
there.  I suspect that it's something with guacd + libVNCServer that is
causing the issue, and that it's between guacd and VNC, and not between the
Guacamole client and guacd.

You can also try upgrading or downgrading libVNCServer on the system
hosting guacd and see if that makes any difference.  What platform/version
are you running Guacamole on, and what version of Guacamole (sorry if you
already posted that, I'm just not seeing it at the moment)?


> "What if you use the Ctrl-Alt-Shift hot-key to get to the hidden menu and
> use the "Disconnect" option?  Does this properly terminate the session?  Or
> does it still list as open on the homepage after doing this?"
> This does work. The only issue is that ctrl-alt-shift is super hard for
> people to remember for whatever reason :/  Maybe an option for a small
> 'tool' bar at the left or top of the window.  That's kind of a different
> request, but it would be nice to have a 'disconnect|copy|paste' on screen.
>

I disagree that this key combo is all that hard to remember - many key
combos both in Linux and Windows include at least Ctrl-Alt
(Ctrl-Alt-Delete, Ctrl-Alt-F1, Ctrl-Alt-End), but I use Guacamole everyday,
so maybe I've just had enough time to get used to it :-).  I think adding
some sort of connection bar has been discussed in the past, and never
gained much support.

However, much of this discussion is moot if we go back to finding the root
cause for the original problem, and get those VNC sessions to terminate
properly :-).

-Nick

Re: Kill session button in UI?

Posted by dan <da...@gmail.com>.
"Well, sounds like the best option would be to get to the root cause of why
the VNC connection isn't closing properly?"
Where should I start?  I'm using the built-in guac client, I don't know
where there are tuning for this.  I feel like this is a fairly common VNC
thing though.

"What if you use the Ctrl-Alt-Shift hot-key to get to the hidden menu and
use the "Disconnect" option?  Does this properly terminate the session?  Or
does it still list as open on the homepage after doing this?"
This does work. The only issue is that ctrl-alt-shift is super hard for
people to remember for whatever reason :/  Maybe an option for a small
'tool' bar at the left or top of the window.  That's kind of a different
request, but it would be nice to have a 'disconnect|copy|paste' on screen.


On Fri, Nov 17, 2017 at 6:43 AM, Nick Couchman <vn...@apache.org> wrote:

> On Thu, Nov 16, 2017 at 10:40 PM, dan <da...@gmail.com> wrote:
>
>> Thanks for the reply Mike.
>>
>> VNC especially isn't disconnecting for instance when a remote machine is
>> rebooted, or the connection is disrupted.  I can connect with realvnc, but
>> guac's VNC will just sit there showing the last image indefinitely.  This
>> is happening on a few remote hosts, running tightvnc (on windows) and
>> realvnc (bundled with raspberry pi).  Maybe something in the connection
>> monitoring on VNC isn't working properly?
>>
>
> Well, sounds like the best option would be to get to the root cause of why
> the VNC connection isn't closing properly?
>
>
>>
>> Going to settings to kill a session is a number of clicks to do something
>> that you are only wanting to do because of a stuck session.  Lets say I
>> have a VNC session in recent connections that is hung.  I have to do
>> menu>settings>select sission> kill sessions>menu>home>select connection.
>> That's a little annoying as an admin, but when I try to get a user to do
>> this they get lost quickly.  It would be a vast improvement to simply have
>> the session thumbnail have an x or disconnect icon.
>>
>
> What if you use the Ctrl-Alt-Shift hot-key to get to the hidden menu and
> use the "Disconnect" option?  Does this properly terminate the session?  Or
> does it still list as open on the homepage after doing this?
>
> -Nick
>

Re: Kill session button in UI?

Posted by Nick Couchman <vn...@apache.org>.
On Thu, Nov 16, 2017 at 10:40 PM, dan <da...@gmail.com> wrote:

> Thanks for the reply Mike.
>
> VNC especially isn't disconnecting for instance when a remote machine is
> rebooted, or the connection is disrupted.  I can connect with realvnc, but
> guac's VNC will just sit there showing the last image indefinitely.  This
> is happening on a few remote hosts, running tightvnc (on windows) and
> realvnc (bundled with raspberry pi).  Maybe something in the connection
> monitoring on VNC isn't working properly?
>

Well, sounds like the best option would be to get to the root cause of why
the VNC connection isn't closing properly?


>
> Going to settings to kill a session is a number of clicks to do something
> that you are only wanting to do because of a stuck session.  Lets say I
> have a VNC session in recent connections that is hung.  I have to do
> menu>settings>select sission> kill sessions>menu>home>select connection.
> That's a little annoying as an admin, but when I try to get a user to do
> this they get lost quickly.  It would be a vast improvement to simply have
> the session thumbnail have an x or disconnect icon.
>

What if you use the Ctrl-Alt-Shift hot-key to get to the hidden menu and
use the "Disconnect" option?  Does this properly terminate the session?  Or
does it still list as open on the homepage after doing this?

-Nick

Re: Kill session button in UI?

Posted by dan <da...@gmail.com>.
Thanks for the reply Mike.

VNC especially isn't disconnecting for instance when a remote machine is
rebooted, or the connection is disrupted.  I can connect with realvnc, but
guac's VNC will just sit there showing the last image indefinitely.  This
is happening on a few remote hosts, running tightvnc (on windows) and
realvnc (bundled with raspberry pi).  Maybe something in the connection
monitoring on VNC isn't working properly?

Going to settings to kill a session is a number of clicks to do something
that you are only wanting to do because of a stuck session.  Lets say I
have a VNC session in recent connections that is hung.  I have to do
menu>settings>select sission> kill sessions>menu>home>select connection.
That's a little annoying as an admin, but when I try to get a user to do
this they get lost quickly.  It would be a vast improvement to simply have
the session thumbnail have an x or disconnect icon.



On Thu, Nov 16, 2017 at 8:33 PM, Mike Jumper <mi...@guac-dev.org>
wrote:

> On Thu, Nov 16, 2017 at 2:52 PM, dan <da...@gmail.com> wrote:
>
>> Is there a way to enable a 'kill session' button on the home screen?
>>
>
> You could write an extension to add such a button, but I'm not sure
> exactly why this would be necessary (more on this below).
>
>
>> Sometimes a VNC or RDP session will hang up and need killed ...
>>
>
> VNC/RDP sessions should not be hanging as a matter of course. Once the
> user leaves their session, it should automatically get closed within around
> 15 seconds.
>
> ... and it's not great to dive into settings to do that.
>>
>
> Can you elaborate on why going to the settings area is not a good
> solution? It seems to me to be exactly where such administrative actions
> should live.
>
> Thanks,
>
> - Mike
>
>

Re: Kill session button in UI?

Posted by Mike Jumper <mi...@guac-dev.org>.
On Thu, Nov 16, 2017 at 2:52 PM, dan <da...@gmail.com> wrote:

> Is there a way to enable a 'kill session' button on the home screen?
>

You could write an extension to add such a button, but I'm not sure exactly
why this would be necessary (more on this below).


> Sometimes a VNC or RDP session will hang up and need killed ...
>

VNC/RDP sessions should not be hanging as a matter of course. Once the user
leaves their session, it should automatically get closed within around 15
seconds.

... and it's not great to dive into settings to do that.
>

Can you elaborate on why going to the settings area is not a good solution?
It seems to me to be exactly where such administrative actions should live.

Thanks,

- Mike