11 Replies Latest reply on Jul 10, 2019 2:20 AM by IamAshwin7

    "the connection to the remote computer ended"

    farrukhndm1 Novice

      hi,

      I have deployed vmware view/Composer/connection server <Vmware view 5.1.1 builed 799444> .i have problem of given error as some time i can connect to connection smoothly and some time it gives an error.

       

      When i checked connection server Monitoring-Events "WARN : The pending session on machine xxxx for user xxx has expired" but i tried again and agin its connects.

       

      I can't find the actual problem . please help me.

      thanks.Screen shots are attached.

       

      2013-03-02, 12_22_54.JPG

       

      2013-02-26, 12_50_22.jpg2013-02-26, 12_50_25.jpg

       

      2013-02-26, 12_50_50.jpg

      It show Black screen then error " The Connection to remote computer ended"

      2013-02-26, 12_50_55.jpg

      View Connection ->Monitoring->Error: WARAN , The pending session on machine xx for user xxxx has expired"

       

      2013-02-25, 10_25_45.JPG

       

      But after few tries it connects smoothly as shown "Event"<Audit Success> .

       

       

      Please help me to resolve problem .

       

      Note!: my vmware view installed on VPS ( remote location ) and i am connecting to Connection server throug Firewall which redirect 443 to my internal connection server ( 10.10.10.155)  , don't install Security server)

       

      thanks and waiting

        • 1. Re: "the connection to the remote computer ended"
          farrukhndm1 Novice

          "

          The connection to the remote computer ended.

          I tried to Connect from windows7, but same black screen come and its disconnected.

          the error logs from Client are

           

          C:\Users\username\AppData\Local\VMware\VDM\logs

          2013-03-03T11:52:23.610+05:00 INFO  (1694-1A74) <6772> [wswc] Log for VMware View Client, version=5.2.1 build-937772
          2013-03-03T11:52:23.611+05:00 INFO  (1694-1A74) <6772> [wswc] hostname=IBM-T61
          2013-03-03T11:52:23.336+05:00 INFO  (1694-0DA0) <3488> [MessageFrameWork] Program 'wswc - VMware View Client' started, version=5.2.1 build-937772, pid=0x1694, buildtype=release, usethread=1, closeafterwrite=0
          2013-03-03T11:52:23.889+05:00 INFO  (1694-0DFC) <logloaded> [MessageFrameWork] Plugin 'wswc_command - VMware View Connection Server Command Handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T11:52:23.904+05:00 INFO  (1694-1018) <logloaded> [MessageFrameWork] Plugin 'wswc_http - VMware View Client HTTP Handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T11:52:23.996+05:00 INFO  (1694-0EB8) <logloaded> [MessageFrameWork] Plugin 'wswc_pcoip - VMware View Client PCoIP Interaction Handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T11:52:24.208+05:00 INFO  (1694-1380) <logloaded> [MessageFrameWork] Plugin 'wswc_rdp - VMware View RDP Handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T11:52:24.209+05:00 INFO  (1694-0FC0) <logloaded> [MessageFrameWork] Plugin 'wswc_rsa - VMware View RSA Handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T11:52:24.350+05:00 INFO  (1694-1860) <logloaded> [MessageFrameWork] Plugin 'wswc_tunnel - VMware View Secure Tunnel Client' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T11:52:24.350+05:00 INFO  (1694-0808) <logloaded> [MessageFrameWork] Plugin 'wswc_ui - VMware View Client UI handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T11:52:25.140+05:00 INFO  (1694-182C) <logloaded> [MessageFrameWork] Plugin 'wssm_uimanager - VMware View Framework UI Host' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T11:52:25.149+05:00 INFO  (1694-17F4) <logloaded> [MessageFrameWork] Plugin 'ws_winauth - VMware View Framework Windows Authentication Support' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T11:52:25.882+05:00 INFO  (1694-0DA0) <Main Thread> [wswc] Windows Client started
          2013-03-03T11:52:59.078+05:00 INFO  (1694-0E44) <MessageFrameWorkDispatch> [wswc_tunnel] Data frame policy set to NEGOTIATE (proposing 0 bytes)
          2013-03-03T11:52:59.078+05:00 INFO  (1694-0E44) <MessageFrameWorkDispatch> [wswc_tunnel] Received chunk window set to 2
          2013-03-03T11:53:00.752+05:00 INFO  (1694-09A4) <TunnelRead> [wswc_tunnel] Tunnel Unnamed: connected to server 'xxx.xxx.xxx.xx', start tunnel protocol
          2013-03-03T11:53:01.537+05:00 INFO  (1694-09A4) <TunnelRead> [wswc_tunnel] Tunnel Unnamed authenticated Ok, set state = running
          2013-03-03T11:53:34.039+05:00 INFO  (15DC-15F0) <5616> [pcoip_mfw] Program 'vmware-remotemks - VMware Remote MKS' started, version=9.0.0 build-821088, pid=0x15DC, buildtype=release, usethread=0, closeafterwrite=0
          2013-03-03T11:53:35.109+05:00 INFO  (15DC-15F0) <5616> [vmware-remotemks] Program 'vmware-remotemks - VMware Remote MKS' started, version=9.0.0 build-821088, pid=0x15DC, buildtype=release, usethread=0, closeafterwrite=0
          2013-03-03T11:53:39.623+05:00 INFO  (15DC-15F0) <5616> [vmware-remotemks] Program 'vmware-remotemks - VMware Remote MKS' started, version=9.0.0 build-821088, pid=0x15DC, buildtype=release, usethread=0, closeafterwrite=0
          2013-03-03T11:53:48.301+05:00 INFO  (1694-1748) <DesktopWindow> [wswc_ui] Connecting client to agent via socket channel
          2013-03-03T11:54:07.127+05:00 INFO  (16FC-1230) <4656> [pcoip_mfw] Program 'vmware-remotemks - VMware Remote MKS' started, version=9.0.0 build-821088, pid=0x16FC, buildtype=release, usethread=0, closeafterwrite=0
          2013-03-03T11:54:07.197+05:00 INFO  (16FC-1230) <4656> [vmware-remotemks] Program 'vmware-remotemks - VMware Remote MKS' started, version=9.0.0 build-821088, pid=0x16FC, buildtype=release, usethread=0, closeafterwrite=0
          2013-03-03T11:54:07.482+05:00 INFO  (16FC-1230) <4656> [vmware-remotemks] Program 'vmware-remotemks - VMware Remote MKS' started, version=9.0.0 build-821088, pid=0x16FC, buildtype=release, usethread=0, closeafterwrite=0
          2013-03-03T11:54:10.057+05:00 INFO  (1694-0838) <DesktopWindow> [wswc_ui] Connecting client to agent via socket channel
          2013-03-03T11:54:31.907+05:00 INFO  (1694-0E44) <MessageFrameWorkDispatch> [wswc] VMware View Windows Client received shutdown signal
          2013-03-03T11:54:33.921+05:00 INFO  (1694-09A4) <TunnelRead> [wswc_tunnel] Tunnel Unnamed: STOPPED by peer, properties:
          reason = Logout request by system
          2013-03-03T11:54:37.594+05:00 INFO  (1694-0DA0) <Main Thread> [wswc] VMware Windows Client stopped (exit code 0)
          2013-03-03T12:05:46.117+05:00 INFO  (1890-15E8) <5608> [MessageFrameWork] Program 'wswc - VMware View Client' started, version=5.2.1 build-937772, pid=0x1890, buildtype=release, usethread=1, closeafterwrite=0
          2013-03-03T12:05:47.861+05:00 INFO  (1890-1038) <logloaded> [MessageFrameWork] Plugin 'wswc_pcoip - VMware View Client PCoIP Interaction Handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T12:05:48.179+05:00 INFO  (1890-1A5C) <logloaded> [MessageFrameWork] Plugin 'wswc_http - VMware View Client HTTP Handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T12:05:48.183+05:00 INFO  (1890-150C) <logloaded> [MessageFrameWork] Plugin 'wswc_rdp - VMware View RDP Handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T12:05:48.185+05:00 INFO  (1890-15DC) <logloaded> [MessageFrameWork] Plugin 'wswc_tunnel - VMware View Secure Tunnel Client' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T12:05:48.199+05:00 INFO  (1890-16B8) <logloaded> [MessageFrameWork] Plugin 'wswc_command - VMware View Connection Server Command Handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T12:05:48.200+05:00 INFO  (1890-1BC8) <logloaded> [MessageFrameWork] Plugin 'wswc_ui - VMware View Client UI handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T12:05:48.338+05:00 INFO  (1890-17D0) <logloaded> [MessageFrameWork] Plugin 'wswc_rsa - VMware View RSA Handler' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T12:05:48.353+05:00 INFO  (1890-15E8) <Main Thread> [wswc] Windows Client started
          2013-03-03T12:05:48.369+05:00 INFO  (1890-10B8) <logloaded> [MessageFrameWork] Plugin 'ws_winauth - VMware View Framework Windows Authentication Support' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T12:05:48.547+05:00 INFO  (1890-0910) <logloaded> [MessageFrameWork] Plugin 'wssm_uimanager - VMware View Framework UI Host' loaded, version=5.2.1 build-937772, buildtype=release
          2013-03-03T12:06:00.846+05:00 INFO  (1890-140C) <MessageFrameWorkDispatch> [wswc_tunnel] Data frame policy set to NEGOTIATE (proposing 0 bytes)
          2013-03-03T12:06:00.846+05:00 INFO  (1890-140C) <MessageFrameWorkDispatch> [wswc_tunnel] Received chunk window set to 2
          2013-03-03T12:06:02.966+05:00 INFO  (1890-0F1C) <TunnelRead> [wswc_tunnel] Tunnel Unnamed: connected to server 'xxx.xxx.xxx.xx', start tunnel protocol
          2013-03-03T12:06:03.617+05:00 INFO  (1890-0F1C) <TunnelRead> [wswc_tunnel] Tunnel Unnamed authenticated Ok, set state = running
          2013-03-03T12:06:35.630+05:00 INFO  (1BF8-122C) <4652> [pcoip_mfw] Program 'vmware-remotemks - VMware Remote MKS' started, version=9.0.0 build-821088, pid=0x1BF8, buildtype=release, usethread=0, closeafterwrite=0
          2013-03-03T12:06:36.322+05:00 INFO  (1BF8-122C) <4652> [vmware-remotemks] Program 'vmware-remotemks - VMware Remote MKS' started, version=9.0.0 build-821088, pid=0x1BF8, buildtype=release, usethread=0, closeafterwrite=0
          2013-03-03T12:06:37.809+05:00 INFO  (1BF8-122C) <4652> [vmware-remotemks] Program 'vmware-remotemks - VMware Remote MKS' started, version=9.0.0 build-821088, pid=0x1BF8, buildtype=release, usethread=0, closeafterwrite=0
          2013-03-03T12:06:43.263+05:00 INFO  (1890-189C) <DesktopWindow> [wswc_ui] Connecting client to agent via socket channel
          2013-03-03T12:07:03.065+05:00 INFO  (1890-189C) <DesktopWindow> [wswc_pcoip] The connection to the remote computer ended.
          2013-03-03T12:07:18.136+05:00 INFO  (1890-0418) <MessageFrameWorkDispatch> [wswc] VMware View Windows Client received shutdown signal
          2013-03-03T12:07:19.461+05:00 INFO  (1890-0F1C) <TunnelRead> [wswc_tunnel] Tunnel Unnamed: STOPPED by peer, properties:
          reason = Logout request by system
          2013-03-03T12:07:20.241+05:00 INFO  (1890-15E8) <Main Thread> [wswc] VMware Windows Client stopped (exit code 0)

           

          • 2. Re: "the connection to the remote computer ended"
            Linjo Champion
            User Moderators

            This could be a few things, most likely that port 4172 UDP/TCP is not opened in the firewall.

             

            Some other possible reasons are:

            Not configured the PCoIP Tunnel correctly, have a look at the config options for the connection broker.

            Not choosing the correct protocol, there is RDP and PCoIP to choose from.

             

            I would strongly recommend not to use IP:s, use proper FQDN:s instead, you will never be able to secure it or loadbalance properly if using IP:s.

             

            // Linjo

            1 person found this helpful
            • 3. Re: "the connection to the remote computer ended"
              farrukhndm1 Novice

              This could be a few things, most likely that port 4172 UDP/TCP is not opened in the firewall.

              As priously 4172 TCp are opend. and now i open both UDP/TCP.

               

               

              Not configured the PCoIP Tunnel correctly, have a look at the config options for the connection broker.

              Connectionwithout pcoip.JPG

              I am directly connection to connection server i dont' have install "Security Server" so i don't enable "PCoIp Secure Gateway"option .

               

              Further ,

               

              I would strongly recommend not to use IP:s, use proper FQDN:s  instead, you will never be able to secure it or loadbalance properly if  using IP:s.

               

              Still for testing we use Ips, for production we may use FQDN.

               

              As i clear priviously , Many of time i connected to Pool as.

               

              Vmware view Error is

               

               

              "User","Severity","Time","Module","Message","Objects"
              "compnay\my.name","Audit success","3/4/2013 2:11 PM","Connection Server","User compnay\my.name has logged out",
              "compnay\my.name","Info","3/4/2013 2:10 PM","Connection Server","User compnay\my.name requested Pool View7Regional02, allocated machine vm-view7r2001","POOL:View7Regional02 DESKTOP:vm-view7r2001 "
              "compnay\my.name","Info","3/4/2013 2:10 PM","Connection Server","User compnay\my.name requested Pool View7Regional02","POOL:View7Regional02 "
              "compnay\my.name","Info","3/4/2013 2:10 PM","Agent","The agent running on machine VM-VIEW7R2001 has accepted an allocated session for user compnay\my.name","POOL:view7regional02 DESKTOP:VM-VIEW7R2001 "
              "compnay\my.name","Audit success","3/4/2013 2:10 PM","Connection Server","User compnay\my.name has logged in",
              "compnay\my.name","Warn","3/4/2013 1:07 PM","Agent","The pending session on machine VM-VIEW7R2001 for user compnay\my.name has expired","POOL:view7regional02 DESKTOP:VM-VIEW7R2001 "

               

              Some of the time i encounter error

              • 4. Re: "the connection to the remote computer ended"
                Linjo Champion
                User Moderators

                The Security-server actually have nothing todo with the PCoIP Secure Gateway.

                There is many ways of setting this up but I think for you its easiest to check the PCoIP Secure Gateway and enter the same IP as for the external URL.

                 

                The way you have set it up now the client need to be able to resolve the hostname of the Virtual Desktop and I guess this is not resolving properly and you get no connection, if you configure it as above then all traffic will go through the connection-broker and there will be no direct connection between the client and the virtual desktop.

                 

                // Linjo

                1 person found this helpful
                • 5. Re: "the connection to the remote computer ended"
                  farrukhndm1 Novice

                  Thanks , Linjo

                  As per your instruction , my connectivity problem is solved Now. i changed these option

                  1)Enabled:PCoIP Secure Gateway , Use PCoIP secure Gateway for PCoIP connection to desktop ( Connection Server settings

                  ConnectionServer-General.JPG

                  2)Open TCP/UDP ports for 4172 in my firewall .

                   

                   

                  Main reason was "the connection to the remote computer ended" was PCoIP secure Gateway was not enabled.

                  • 6. Re: "the connection to the remote computer ended"
                    Linjo Champion
                    User Moderators

                    Well done, I'm happy that its working for you now.

                     

                    // Linjo

                    • 7. Re: "the connection to the remote computer ended"
                      markbenson Master
                      VMware Employees

                      "farrukhndm1" the steps you mentioned are the steps described here - http://communities.vmware.com/docs/DOC-14974

                       

                      Glad it's working for you.

                       

                      Mark

                      • 8. Re: "the connection to the remote computer ended"
                        bigdaddy73 Novice

                        I didn't have the gateway enabled, either, so I thought it would fix my problem (same problem). It didn't. I checked the firewall, and the ports are open. Any ideas?

                        • 9. Re: "the connection to the remote computer ended"
                          markbenson Master
                          VMware Employees

                          Yes, you need to do all 3 steps - http://communities.vmware.com/docs/DOC-14974

                           

                          If any are not done or not done correctly you will get this symptom. This is how others have fixed it.

                           

                          Mark

                          • 10. Re: "the connection to the remote computer ended"
                            charvoworld Novice

                            HI,

                             

                            I am also having similar kind of issue. User logging get ended and in view managers i see warning "the pending session on machine for user has expired". This is RDSH server farm with 3 RDSH server on one farm. User in connection going to RDSH 3 and get disconnect. other user can connect to RDSH 3 or other Server successfully. All user trying to connect by PCoIP.

                            session expire.JPG

                             

                            Believe,

                            Charvo Benjamin

                            • 11. Re: "the connection to the remote computer ended"
                              IamAshwin7 Novice

                              Hi

                               

                              IHAC who is not able to access the VDI environment from the internet using balst. PCOIP works fine. Any Ideas??