You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by wouterve <wo...@avr.be> on 2018/02/14 13:19:28 UTC

Connection closed: GnuTLS internal error

Hi, 
I've set up guacamole 0.9.13 on xubuntu 16.04 succesfully, but I'm getting
disconnected regularly.
I'm using VNC protocol (tigervncserver 1.8.0).

Here is the output from syslog:



> VNC server supports protocol version 3.8 (viewer 3.8)
> We have 2 security types to read
> 0) Received security type 19
> Selecting security type 19 (0/2 in the list)
> 1) Received security type 2
> Selected Security Scheme 19
> GnuTLS initialized.
> Got VeNCrypt version 0.2 from server.
> We have 2 security types to read
> 0) Received security type 258
> Selecting security type 258 (0/2 in the list)
> 1) Received security type 2
> TLS session initialized.
> TLS anonymous credential created.
> TLS handshake blocking.
> TLS handshake blocking.
> TLS handshake done.
> VNC authentication succeeded
> Desktop name "servername-22:1 (user1)"
> Connected to VNC server, using protocol version 3.8
> VNC server default format:
>   32 bits per pixel.
>   Least significant byte first in each pixel.
>   TRUE colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
> Error writing to TLS: GnuTLS internal error..
> Error writing to TLS: The specified session has been invalidated for some
> reason..
> Error reading from TLS: The TLS connection was non-properly terminated..
> read (4: Interrupted system call)
> Error handling message from VNC server.
> Internal VNC client disconnected
> User "@00baa295-5925-47c7-9687-28d6f144816a" disconnected (0 users remain)
> Last user of connection "$84f26a12-7fbe-4e00-b53c-1f3ed8944254"
> disconnected

and the matching vnc-log:


> Wed Feb 14 13:05:44 2018
>  Connections: closed: 192.168.216.75::34334 (readTLS: (unknown error code)
> (4))
>  EncodeManager: Framebuffer updates: 65
>  EncodeManager:   CopyRect:
>  EncodeManager:     Copies: 1 rects, 728.994 kpixels
>  EncodeManager:             16 B (1:182249 ratio)
>  EncodeManager:   ZRLE:
>  EncodeManager:     Indexed RLE: 14 rects, 106.496 kpixels
>  EncodeManager:                  5.73633 KiB (1:72.5489 ratio)
>  EncodeManager:     Full Colour: 156 rects, 4.89876 Mpixels
>  EncodeManager:                  1.22004 MiB (1:15.3184 ratio)
>  EncodeManager:   Total: 171 rects, 5.73425 Mpixels
>  EncodeManager:          1.22566 MiB (1:17.8487 ratio)
>  TLS:         TLS session wasn't terminated gracefully
>  ComparingUpdateTracker: 150.216 Mpixels in / 4.2185 Mpixels out
>  ComparingUpdateTracker: (1:35.6088 ratio)
> 
> Wed Feb 14 13:05:46 2018
>  Connections: accepted: 192.168.216.75::34338
>  SConnection: Client needs protocol version 3.8
>  SConnection: Client requests security type VeNCrypt(19)
> 
> Wed Feb 14 13:05:47 2018
>  SVeNCrypt:   Client requests security type TLSVnc (258)
> 
> Wed Feb 14 13:05:49 2018
>  VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian
> rgb888
>  VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian rgb888

and my xstartup file (~/.vnc)


> #!/bin/sh
> 
> unset SESSION_MANAGER
> unset DBUS_SESSION_BUS_ADDRESS
> OS=`uname -s`
> if [ $OS = 'Linux' ]; then
>   case "$WINDOWMANAGER" in
>     *gnome*)
>       if [ -e /etc/SuSE-release ]; then
>         PATH=$PATH:/opt/gnome/bin
>         export PATH
>       fi
>       ;;
>   esac
> fi
> if [ -x /etc/X11/xinit/xinitrc ]; then
>   exec /etc/X11/xinit/xinitrc
> fi
> if [ -f /etc/X11/xinit/xinitrc ]; then
>   exec sh /etc/X11/xinit/xinitrc
> fi
> [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
> xsetroot -solid grey
> xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
> twm &

I don't remember whether I've changed this xstartup or if it's the default
one. 

What could  be the cause of my disconnecting problem please?


kind regards,

wouter



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

Re: Connection closed: GnuTLS internal error

Posted by wouterve <wo...@avr.be>.
Hi,

I think i've solved this problem by changing the config file of vnc
(~/.vnc/config)

I uncommented the line with securitytypes and ommited 'tlsvnc' so it looks
like this now:


>  securitytypes=vncauth
> # desktop=sandbox
> # geometry=2000x1200
> # localhost
> # alwaysshared

when I connect now to a vnc-session in Guacamole I see the following output
in '/var/log/syslog':

> Feb 21 08:46:56 AVR-22 guacd[1366]: Creating new client for protocol "vnc"
> Feb 21 08:46:56 AVR-22 guacd[1366]: Connection ID is
> "$d021843c-7cec-46db-8381-d7d4a70ee635"
> Feb 21 08:46:56 AVR-22 guacd[10734]: Cursor rendering: local
> Feb 21 08:46:56 AVR-22 guacd[10734]: User
> "@ace16b03-8a47-4113-8336-d9aa259e1f72" joined connection
> "$d021843c-7cec-46db-8381-d7d4a70ee635" (1 users now present)
> Feb 21 08:46:56 AVR-22 guacd[10734]: VNC server supports protocol version
> 3.8 (viewer 3.8)
> Feb 21 08:46:56 AVR-22 guacd[10734]: We have 1 security types to read
> Feb 21 08:46:56 AVR-22 guacd[10734]: 0) Received security type 2
> Feb 21 08:46:56 AVR-22 guacd[10734]: Selecting security type 2 (0/1 in the
> list)
> Feb 21 08:46:56 AVR-22 guacd[10734]: Selected Security Scheme 2
> Feb 21 08:46:56 AVR-22 guacd[10734]: VNC authentication succeeded
> Feb 21 08:46:56 AVR-22 guacd[10734]: Desktop name "AVR-22:2 (user2)"
> Feb 21 08:46:56 AVR-22 guacd[10734]: Connected to VNC server, using
> protocol version 3.8
> Feb 21 08:46:56 AVR-22 guacd[10734]: VNC server default format:
> Feb 21 08:46:56 AVR-22 guacd[10734]:   32 bits per pixel.
> Feb 21 08:46:56 AVR-22 guacd[10734]:   Least significant byte first in
> each pixel.
> Feb 21 08:46:56 AVR-22 guacd[10734]:   TRUE colour: max red 255 green 255
> blue 255, shift red 16 green 8 blue 0

So no messages regarding 'TLS' anymore so guess it's fixed as I don't have
sudden disconnections anymore (let's hope it stays like this)

kr,

wouter



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/