[Users] WG: No spice connection - Remote-Viewer quits after a few seconds

David Jaša djasa at redhat.com
Thu Jan 10 12:55:14 UTC 2013


Hi Dennis,

as you use remote-viewer, the steps below won't work for you, I thought you were still using spicec based previous information. Here are the steps for remote-viewer:

1. download debug-helper binary and place it to where remote-viewer.exe resides: http://elmarco.fedorapeople.org/debug-helper.exe

2. install windows build of gdb:
* get latest mingw-get-inst-BUILD_DATE.exe
* In "Select Components" choose : "MinGW Developer Toolkit" (last option)
* add path with gdb.exe to (system-wide) %PATH%

3. change registry entry:
HKCU\Software\spice-space.org\spicex\client
to point to debug-helper instead of remote-viewer from:
"$DIR\remote-viewer.exe --spice-controller"
to:
"$DIR\debug-helper.exe remote-viewer.exe --spice-controller"

4. connect to the VM

You should now see a cmd window running gdb that will print stdout/stderr of remote-viewer - could you copy the output from there?

David


Dennis Böck píše v Čt 10. 01. 2013 v 07:38 +0000:
> Hi David,
> 
> do you have any new information about this problem?
> Do you know, whether there is anyone out there who managed to get a spice session with a Windows (Internet Explorer) client?
> 
> Best regards and thanks in advance
> Dennis
> ________________________________________
> Von: users-bounces at ovirt.org [users-bounces at ovirt.org]" im Auftrag von "Dennis Böck [dennis at webdienstleistungen.com]
> Gesendet: Mittwoch, 2. Januar 2013 13:16
> An: users at oVirt.org
> Betreff: Re: [Users] No spice connection - Remote-Viewer quits after a few seconds
> 
> Hi David,
> 
> I set SPICEC_LOG_LEVEL=0 rebooted the machine but no spicec log was written in %temp%.
> If I perform a search in this folder for "spice" only two files appear:
> %temp%/spicex.log
> %temp%/low/spicex.log
> I even tried a new installation of http://spice-space.org/download/gtk/windows/virt-viewer-0.5.3_x86.exe but nothing changed.
> 
> Best regards
> Dennis
> 
> ________________________________________
> Von: David Jaša [djasa at redhat.com]
> Gesendet: Mittwoch, 2. Januar 2013 11:10
> An: Dennis Böck
> Cc: users at oVirt.org
> Betreff: Re: [Users] No spice connection - Remote-Viewer quits after a few seconds
> 
> Hi Dennis,
> 
> this log isn't exactly helpful either. :( Spicec just quits before it could receive any connection info from the plugin... Could you try to set another variable: SPICEC_LOG_LEVEL=0 and find spicec log (also in %temp%)?
> 
> David
> 
> 
> Dennis Böck píše v Čt 27. 12. 2012 v 14:12 +0000:
> > Hi David,
> >
> > here is my %temp%/low/spicex.log (%temp%/spicex.log is not updated!), after setting the system variable spicex_debug_level=0:
> > 1356616807 INFO [4944:5044] spicex_init_logger: started
> > 1356616807 DEBUG [4944:5044] COSpiceX::put_DynamicMenu: DynamicMenu
> > 1356616807 INFO [4944:5044] COSpiceX::put_FullScreen: New FullScreen request newVal=0x0
> > 1356616807 DEBUG [4944:5044] COSpiceX::Connect: Running spicec (C:\Users\Dennis\AppData\Local\virt-viewer\bin\remote-viewer.exe --spice-controller)
> > 1356616807 INFO [4944:5044] COSpiceX::Connect: spicec pid 5996
> > 1356616809 DEBUG [4944:5044] COSpiceX::Connect: connecting to spice client's pipe
> > 1356616814 ERROR [4944:5044] COSpiceX::Connect: failed to connect to spice client pipe
> >
> > Best regards
> > Dennis
> > ________________________________________
> > Von: David Jaša [djasa at redhat.com]
> > Gesendet: Dienstag, 4. Dezember 2012 12:16
> > An: Einav Cohen
> > Cc: Dennis Böck; users at oVirt.org
> > Betreff: Re: [Users] No spice connection - Remote-Viewer quits after a few seconds
> >
> > Einav,
> >
> > Dennis's previous logs suggest that he's using spicex/IE/windows, not xpi/firefox/linux.
> >
> >
> > Dennis,
> >
> > could you go through my last week conversation with Karli Sjöberg and repeat the debugging steps described there?
> >
> > David
> >
> >
> > Einav Cohen píše v Po 03. 12. 2012 v 14:52 -0500:
> > > Hi Dennis,
> > >
> > > We need some more information that can be useful to us in order to try solving the problem.
> > > Can you please follow the instructions below for getting more detailed logs and reply with the results?
> > >
> > > 1. Set spice-xpi log level to DEBUG (for versions < 2.8, modify
> > > logger.ini).
> > >
> > > 2. Verify which client is running (we should get that from 1), e.g.
> > > by using top, or checking alternatives.
> > >
> > > 3. Getting version: rpm -q spice-xpi virt-viewer spice-client
> > >
> > > 4. client/remote-viewer logs:
> > >
> > >   For spicec, there should be a file ~/.spicec/spicec.log
> > >
> > >   For remote-viewer:
> > >     In order to also get log messages of remote-viewer, run firefox from shell.
> > >     For debug level log messages, the following environment variables should
> > >     be set, for example
> > >     $ export SPICE_DEBUG=1
> > >     $ export G_DEBUG_MESSAGES=all
> > >     $ firefox
> > >
> > > ----
> > > Thanks,
> > > Einav
> > >
> > > ----- Original Message -----
> > > > From: "Dennis Böck" <dennis at webdienstleistungen.com>
> > > > To: "Itamar Heim" <iheim at redhat.com>
> > > > Cc: "users at oVirt.org" <users at ovirt.org>
> > > > Sent: Sunday, December 2, 2012 5:28:58 PM
> > > > Subject: Re: [Users] No spice connection - Remote-Viewer quits after a few seconds
> > > >
> > > > I have the same problem, if I try to connect from admin portal.
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Itamar Heim [mailto:iheim at redhat.com]
> > > > Gesendet: Samstag, 24. November 2012 23:47
> > > > An: Dennis Böck
> > > > Cc: users at oVirt.org
> > > > Betreff: Re: [Users] No spice connection - Remote-Viewer quits after
> > > > a few seconds
> > > >
> > > > On 11/23/2012 11:04 PM, Dennis Böck wrote:
> > > > > Here are some logs:
> > > >
> > > > is the same working from admin portal?
> > > >
> > > > >
> > > > > 1351785267 INFO [4504:4560] spicex_log_cleanup: done
> > > > > 1351785268 INFO [3788:5440] spicex_log_cleanup: done
> > > > > 1351867007 INFO [4868:4916] spicex_init_logger: started
> > > > > 1351867007 INFO [4868:4916] COSpiceX::put_FullScreen: New
> > > > > FullScreen
> > > > > request newVal=0x0
> > > > > 1351867007 INFO [4868:4916] COSpiceX::Connect: spicec pid 4948
> > > > > 1351867013 ERROR [4868:4916] COSpiceX::Connect: failed to connect
> > > > > to
> > > > > spice client pipe
> > > > > 1351867038 INFO [4868:4916] COSpiceX::put_FullScreen: New
> > > > > FullScreen
> > > > > request newVal=0x0
> > > > > 1351867038 INFO [4868:4916] COSpiceX::Connect: spicec pid 2732
> > > > > 1351867043 ERROR [4868:4916] COSpiceX::Connect: failed to connect
> > > > > to
> > > > > spice client pipe
> > > > > 1351867169 INFO [4868:4916] spicex_log_cleanup: done
> > > > > 1353687854 INFO [4568:2008] spicex_init_logger: started
> > > > > 1353687854 INFO [4568:2008] COSpiceX::put_FullScreen: New
> > > > > FullScreen
> > > > > request newVal=0x0
> > > > > 1353687854 INFO [4568:2008] COSpiceX::Connect: spicec pid 5776
> > > > > 1353687860 ERROR [4568:2008] COSpiceX::Connect: failed to connect
> > > > > to
> > > > > spice client pipe
> > > > > 1353687901 INFO [3064:6084] spicex_init_logger: started
> > > > > 1353687901 INFO [3064:6084] COSpiceX::put_FullScreen: New
> > > > > FullScreen
> > > > > request newVal=0x0
> > > > > 1353687901 INFO [3064:6084] COSpiceX::Connect: spicec pid 1576
> > > > > 1353687906 ERROR [3064:6084] COSpiceX::Connect: failed to connect
> > > > > to
> > > > > spice client pipe
> > > > > 1353687928 INFO [3064:6084] COSpiceX::put_FullScreen: New
> > > > > FullScreen
> > > > > request newVal=0x0
> > > > > 1353687928 INFO [3064:6084] COSpiceX::Connect: spicec pid 2412
> > > > > 1353687934 ERROR [3064:6084] COSpiceX::Connect: failed to connect
> > > > > to
> > > > > spice client pipe
> > > > > 1353688155 INFO [3064:6084] COSpiceX::put_FullScreen: New
> > > > > FullScreen
> > > > > request newVal=0x0
> > > > > 1353688155 INFO [3064:6084] COSpiceX::Connect: spicec pid 3108
> > > > > 1353688161 ERROR [3064:6084] COSpiceX::Connect: failed to connect
> > > > > to
> > > > > spice client pipe
> > > > > 1353688247 INFO [3064:6084] COSpiceX::put_FullScreen: New
> > > > > FullScreen
> > > > > request newVal=0x0
> > > > > 1353688247 INFO [3064:6084] COSpiceX::Connect: spicec pid 3792
> > > > > 1353688252 ERROR [3064:6084] COSpiceX::Connect: failed to connect
> > > > > to
> > > > > spice client pipe
> > > > > 1353688564 INFO [3064:6084] COSpiceX::put_FullScreen: New
> > > > > FullScreen
> > > > > request newVal=0x0
> > > > > 1353688564 INFO [3064:6084] COSpiceX::Connect: spicec pid 5472
> > > > > 1353688569 ERROR [3064:6084] COSpiceX::Connect: failed to connect
> > > > > to
> > > > > spice client pipe
> > > > >
> > > > > ________________________________________
> > > > > Von: Itamar Heim [iheim at redhat.com]
> > > > > Gesendet: Donnerstag, 1. November 2012 19:33
> > > > > An: Simon Grinberg
> > > > > Cc: Dennis Böck; users at oVirt.org
> > > > > Betreff: Re: [Users] No spice connection - Remote-Viewer quits
> > > > > after a
> > > > > few seconds
> > > > >
> > > > > On 11/01/2012 06:04 PM, Simon Grinberg wrote:
> > > > >> Make sure your host is accessible and resolvable  from the client
> > > > >> machine Check the Spice ports are open on the host
> > > > >
> > > > > and provide spice client side logs
> > > > >
> > > > >>
> > > > >> ---------------------------------------------------------------------
> > > > >> -
> > > > >> --
> > > > >>
> > > > >>      *From: *"Dennis Böck" <dennis at webdienstleistungen.com>
> > > > >>      *To: *"users at oVirt.org" <users at ovirt.org>
> > > > >>      *Sent: *Thursday, November 1, 2012 5:32:25 PM
> > > > >>      *Subject: *[Users] No spice connection - Remote-Viewer quits
> > > > >>      after a
> > > > >>      few        seconds
> > > > >>
> > > > >>      Dear oVirt-User-List,
> > > > >>
> > > > >>      when I try to connect to a spice-VM by clicking the
> > > > >>      console-button
> > > > >>      in the user portal the "Remote Viewer" appears with the text
> > > > >>      "Setting up spice session", but a few seconds later it just
> > > > >>      quits
> > > > >>      without an error message.
> > > > >>
> > > > >>      Here are a few corresponding log-lines of engine.log:
> > > > >>
> > > > >>      2012-10-31 16:21:39,041 INFO
> > > > >>      [org.ovirt.engine.core.bll.SetVmTicketCommand]
> > > > >>      (ajp--0.0.0.0-8009-9)
> > > > >>      [14c13c60] Running command: SetVmTicketCommand internal:
> > > > >>      false.
> > > > >>      Entities affected :  ID: cce2dc1a-a6d5-48b2-8fcc-52aa71d9016b
> > > > >>      Type: VM
> > > > >>      2012-10-31 16:21:39,046 INFO
> > > > >>      [org.ovirt.engine.core.vdsbroker.vdsbroker.SetVmTicketVDSCommand]
> > > > >>      (ajp--0.0.0.0-8009-9) [14c13c60] START,
> > > > >>      SetVmTicketVDSCommand(vdsId
> > > > >>      = 277891b0-1cdc-11e2-b51a-002590533f86,
> > > > >>      vmId=cce2dc1a-a6d5-48b2-8fcc-52aa71d9016b,
> > > > >>      ticket=Yckfn2IndYcE,
> > > > >>      validTime=120,m userName=admin at internal
> > > > >>      <mailto:userName=admin at internal>,
> > > > >>      userId=fdfc627c-d875-11e0-90f0-83df133b58cc), log id:
> > > > >>      64b13c0e
> > > > >>      2012-10-31 16:21:39,088 INFO
> > > > >>      [org.ovirt.engine.core.vdsbroker.vdsbroker.SetVmTicketVDSCommand]
> > > > >>      (ajp--0.0.0.0-8009-9) [14c13c60] FINISH,
> > > > >>      SetVmTicketVDSCommand, log
> > > > >>      id: 64b13c0e
> > > > >>      2012-10-31 16:21:39,205 WARN
> > > > >>      [org.ovirt.engine.core.bll.GetConfigurationValueQuery]
> > > > >>      (ajp--0.0.0.0-8009-1) calling GetConfigurationValueQuery
> > > > >>      (SSLEnabled) with null version, using default general for
> > > > >>      version
> > > > >>      2012-10-31 16:21:39,206 WARN
> > > > >>      [org.ovirt.engine.core.bll.GetConfigurationValueQuery]
> > > > >>      (ajp--0.0.0.0-8009-1) calling GetConfigurationValueQuery
> > > > >>      (CipherSuite) with null version, using default general for
> > > > >>      version
> > > > >>      2012-10-31 16:21:39,207 WARN
> > > > >>      [org.ovirt.engine.core.bll.GetConfigurationValueQuery]
> > > > >>      (ajp--0.0.0.0-8009-1) calling GetConfigurationValueQuery
> > > > >>      (EnableSpiceRootCertificateValidation) with null version,
> > > > >>      using
> > > > >>      default general for version
> > > > >>      2012-10-31 16:21:39,212 WARN
> > > > >>      [org.ovirt.engine.core.bll.GetConfigurationValueQuery]
> > > > >>      (ajp--0.0.0.0-8009-1) calling GetConfigurationValueQuery
> > > > >>      (SpiceToggleFullScreenKeys) with null version, using default
> > > > >>      general
> > > > >>      for version
> > > > >>      2012-10-31 16:21:39,213 WARN
> > > > >>      [org.ovirt.engine.core.bll.GetConfigurationValueQuery]
> > > > >>      (ajp--0.0.0.0-8009-1) calling GetConfigurationValueQuery
> > > > >>      (SpiceReleaseCursorKeys) with null version, using default
> > > > >>      general
> > > > >>      for version
> > > > >>
> > > > >>      Anyone any ideas?
> > > > >>
> > > > >>      Best regards
> > > > >>
> > > > >>      Dennis
> > > > >>
> > > > >>
> > > > >>      _______________________________________________
> > > > >>      Users mailing list
> > > > >>      Users at ovirt.org
> > > > >>      http://lists.ovirt.org/mailman/listinfo/users
> > > > >>
> > > > >>
> > > > >>
> > > > >>
> > > > >> _______________________________________________
> > > > >> Users mailing list
> > > > >> Users at ovirt.org
> > > > >> http://lists.ovirt.org/mailman/listinfo/users
> > > > >>
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Users mailing list
> > > > Users at ovirt.org
> > > > http://lists.ovirt.org/mailman/listinfo/users
> > > >
> > > _______________________________________________
> > > Users mailing list
> > > Users at ovirt.org
> > > http://lists.ovirt.org/mailman/listinfo/users
> >
> > --
> >
> > David Jaša, RHCE
> >
> > SPICE QE based in Brno
> > GPG Key:     22C33E24
> > Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24
> > _______________________________________________
> > Users mailing list
> > Users at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> 
> --
> 
> David Jaša, RHCE
> 
> SPICE QE based in Brno
> GPG Key:     22C33E24
> Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

-- 

David Jaša, RHCE

SPICE QE based in Brno
GPG Key:     22C33E24 
Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24






More information about the Users mailing list