TigerVNC server crashes

Overview Forums Sticky Finger’s Kali-Pi TigerVNC server crashes

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #13701
      Dr0ffo
      Participant

      I am getting a similar problem with VNC Server continually crashing.

      I can get VNC Server started using the Kali-Pi TFT button:

      root@kali-pi:~# netstat -tupln
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
      tcp        0      0 0.0.0.0:5901            0.0.0.0:*               LISTEN      1374/Xtigervnc      
      tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      510/pure-ftpd (SERV 
      tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      666/sshd            
      tcp6       0      0 :::5901                 :::*                    LISTEN      1374/Xtigervnc      
      tcp6       0      0 :::21                   :::*                    LISTEN      510/pure-ftpd (SERV 
      tcp6       0      0 :::22                   :::*                    LISTEN      666/sshd            
      udp        0      0 0.0.0.0:68              0.0.0.0:*                           557/dhclient        
      udp        0      0 0.0.0.0:68              0.0.0.0:*                           503/dhclient        

      I then confirmed the service was visible from my computer which was on the same network:

      $ nmap 192.168.178.132
      Starting Nmap 7.70 ( https://nmap.org ) at 2019-06-25 05:37 EDT
      Nmap scan report for kali-pi.fritz.box (192.168.178.132)
      Host is up (0.0035s latency).
      Not shown: 992 filtered ports
      PORT     STATE SERVICE
      21/tcp   open  ftp
      22/tcp   open  ssh
      80/tcp   open  http
      110/tcp  open  pop3
      143/tcp  open  imap
      993/tcp  open  imaps
      995/tcp  open  pop3s
      5901/tcp open  vnc-1
      
      Nmap done: 1 IP address (1 host up) scanned in 4.61 seconds

      Repeating ‘netstat’ shows VNC Server has now crashed either by itself or in response to the ‘nmap’ scan:

      root@kali-pi:~# netstat -tupln
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
      tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      510/pure-ftpd (SERV 
      tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      666/sshd            
      tcp6       0      0 :::21                   :::*                    LISTEN      510/pure-ftpd (SERV 
      tcp6       0      0 :::22                   :::*                    LISTEN      666/sshd            
      udp        0      0 0.0.0.0:68              0.0.0.0:*                           557/dhclient        
      udp        0      0 0.0.0.0:68              0.0.0.0:*                           503/dhclient        

      The log file ‘.vnc/kali-pi\:1.log’ shows:

      Xvnc TigerVNC 1.9.0 - built Dec  1 2018 21:51:29
      Copyright (C) 1999-2018 TigerVNC Team and many others (see README.rst)
      See http://www.tigervnc.org for information on TigerVNC.
      Underlying X server release 12003000, The X.Org Foundation
      
      Tue Jun 25 05:43:23 2019
       vncext:      VNC extension running!
       vncext:      Listening for VNC connections on all interface(s), port 5901
       vncext:      created VNC server for screen 0
      /usr/bin/startxfce4: X server already running on display :1
      gpg-agent[1657]: WARNING: "--write-env-file" is an obsolete option - it has no effect
      gpg-agent: a gpg-agent is already running - not starting a new one
      
      (xfce4-session:1643): xfce4-session-WARNING **: 05:43:24.305: gpg-agent returned no PID in the variables
      
      (xfce4-session:1643): xfce4-session-WARNING **: 05:43:24.311: xfsm_manager_load_session: Something wrong with /root/.cache/sessions/xfce4-session-kali-pi:1, Does it exist? Permissions issue?
      Connection failure: Connection refused
      pa_context_connect() failed: Connection refused
      
      (xfsettingsd:1680): xfsettingsd-WARNING **: 05:43:25.228: Failed to get the _NET_NUMBER_OF_DESKTOPS property.
      
      (xfwm4:1660): xfwm4-WARNING **: 05:43:25.905: Error opening /dev/dri/card0: No such file or directory
      
      ** (light-locker:1669): ERROR **: 05:43:27.635: Environment variable XDG_SESSION_PATH not set. Is LightDM running?
      
      Tue Jun 25 05:44:19 2019
       TcpSocket:   unable to get peer name for socket
       Connections: accepted: ::0
      terminate called after throwing an instance of 'rdr::SystemException'
      terminate called recursively
      (EE) 
      (EE) Backtrace:
      (EE) 
      (EE) 
      Fatal server error:
      (EE) Caught signal 6 (Aborted). Server aborting
      (EE) 
      Gdk-Message: 05:44:19.435: Thunar: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
      
      wrapper-1.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
      wrapper-1.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
      xfsettingsd: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
      xfce4-panel: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
      Gdk-Message: 05:44:19.448: polkit-gnome-authentication-agent-1: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
      
      xfwm4: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
      Gdk-Message: 05:44:19.451: nm-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
      
      xfdesktop: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
      xfce4-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
      XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
            after 136 requests (136 known processed) with 0 events remaining.

      Any help would be very much appreciated?

    • #13743
      Dr0ffo
      Participant

      So after a rebuild I get this in /root/.vnc/kali:1.log once vncserver has been started:

      `Xvnc TigerVNC 1.9.0 – built Sep 28 2019 10:06:12
      Copyright (C) 1999-2018 TigerVNC Team and many others (see README.rst)
      See http://www.tigervnc.org for information on TigerVNC.
      Underlying X server release 12004000, The X.Org Foundation

      Fri Oct 25 12:15:17 2019
      vncext: VNC extension running!
      vncext: Listening for VNC connections on all interface(s), port 5901
      vncext: created VNC server for screen 0
      /usr/bin/startxfce4: X server already running on display :1
      dbus-update-activation-environment: warning: error sending to systemd: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.systemd1 was not provided by any .service files
      gpg-agent[2422]: WARNING: “–write-env-file” is an obsolete option – it has no effect
      gpg-agent: a gpg-agent is already running – not starting a new one

      (xfce4-session:2372): xfce4-session-WARNING **: 12:15:18.602: gpg-agent returned no PID in the variables

      (xfce4-session:2372): xfce4-session-WARNING **: 12:15:18.607: xfsm_manager_load_session: Something wrong with /root/.cache/sessions/xfce4-session-kali:1, Does it exist? Permissions issue?

      (xfwm4:2424): xfwm4-WARNING **: 12:15:19.716: Unsupported GL renderer (llvmpipe (LLVM 9.0, 128 bits)).

      (xfwm4:2424): xfwm4-WARNING **: 12:15:19.716: Screen is missing required GL renderer, GL support disabled.

      (wrapper-2.0:2454): Gtk-WARNING **: 12:15:21.118: gtk_widget_size_allocate(): attempt to allocate widget with width -1 and height 28

      (wrapper-2.0:2454): Gtk-WARNING **: 12:15:21.119: Negative content width -1 (allocation 1, extents 1×1) while allocating gadget (node border, owner GtkFrame)

      (wrapper-2.0:2455): Gtk-WARNING **: 12:15:21.232: Negative content width -1 (allocation 1, extents 1×1) while allocating gadget (node button, owner XfceArrowButton)

      ** (xiccd:2475): WARNING **: 12:15:22.020: EDID is empty

      ** (light-locker:2474): ERROR **: 12:15:22.155: Environment variable XDG_SESSION_PATH not set. Is LightDM running?’

      There is clearly a problem because trying to connect causes further errors following being prompted for the password:

      ‘ri Oct 25 12:23:18 2019
      Connections: accepted: 192.168.1.180::36366
      SConnection: Client needs protocol version 3.8
      SConnection: Client requests security type VncAuth(2)
      terminate called after throwing an instance of ‘rdr::Exception’
      terminate called recursively
      (EE)
      (EE) Backtrace:
      (EE)
      (EE)
      Fatal server error:
      (EE) Caught signal 6 (Aborted). Server aborting
      (EE)
      Gdk-Message: 12:23:24.413: polkit-gnome-authentication-agent-1: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.

      Gdk-Message: 12:23:24.413: xfsettingsd: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.

      X connection to :1 broken (explicit kill or server shutdown).
      Gdk-Message: 12:23:24.416: xfce4-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.

      Gdk-Message: 12:23:24.419: xfwm4: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.

      Gdk-Message: 12:23:24.419: Thunar: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.

      Gdk-Message: 12:23:24.420: xfdesktop: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.

      Gdk-Message: 12:23:24.420: wrapper-2.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.

      Gdk-Message: 12:23:24.420: wrapper-2.0: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.

      X connection to :1.0 broken (explicit kill or server shutdown).
      Gdk-Message: 12:23:24.421: nm-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.

      Gdk-Message: 12:23:24.449: xfce4-panel: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.’

      Can anyone help with this please because these instructions do not resolve this issue:

      https://whitedome.com.au/re4son/topic/vnc/

Viewing 1 reply thread
  • You must be logged in to reply to this topic.