dgzyk / phpvirtualbox

Automatically exported from code.google.com/p/phpvirtualbox
Other
0 stars 0 forks source link

Snapshot creation/restore causes errors #672

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If you have just updated phpVirtualBox, don't forget to clear your
browser's cache!!!

Please see the Common Errors and Issues wiki page located at
http://code.google.com/p/phpvirtualbox/wiki/CommonErrors before posting
here.

What steps will reproduce the problem?
1.Creating or restoring any snapshot for a VM

What is the expected output? What do you see instead?
It creates or restores a snapshot of a VM without error

What version of phpVirtualBox, VirtualBox, and PHP are you using? On what
operating system?
phpVirtualBox 4.2-4
virtualbox: 4.2.6-82870~Ubuntu~precise
php: 5.3.10-1ubuntu3.5
OS: Ubuntu 12.04.2 LTS

Please provide any additional information below.
Connecting via Chrome on an Ubuntu 12.10 machine to phpvirtualbox, any time I 
try to create or restore a snapshot I get an error message.  Example error:
SoapFault Object
(
    [message:protected] => VirtualBox error: Invalid managed object reference "c0a7b6e2e7b6c929-0000000000000499"
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /btrfs/subvol_web/www/phpvirtualbox/lib/vboxServiceWrappers.php
    [line:protected] => 9664
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /btrfs/subvol_web/www/phpvirtualbox/lib/vboxServiceWrappers.php
                    [line] => 9664
                    [function] => __soapCall
                    [class] => SoapClient
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ISnapshotEvent_getSnapshotId
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [_this] => c0a7b6e2e7b6c929-0000000000000499
                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /btrfs/subvol_web/www/phpvirtualbox/lib/vboxServiceWrappers.php
                    [line] => 54
                    [function] => getSnapshotId
                    [class] => ISnapshotEvent
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [2] => Array
                (
                    [file] => /btrfs/subvol_web/www/phpvirtualbox/lib/vboxconnector.php
                    [line] => 785
                    [function] => __get
                    [class] => VBox_ManagedObject
                    [type] => ->
                    [args] => Array
                        (
                            [0] => snapshotId
                        )

                )

            [3] => Array
                (
                    [file] => /btrfs/subvol_web/www/phpvirtualbox/lib/vboxconnector.php
                    [line] => 387
                    [function] => _getEventData
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => IEvent Object
                                (
                                    [connection:protected] => SoapClient Object
                                        (
                                            [location] => http://127.0.0.1:18083/
                                            [_features] => 5
                                            [_connection_timeout] => 20
                                            [_soap_version] => 1
                                            [sdl] => Resource id #10
                                            [httpurl] => Resource id #54
                                            [httpsocket] => Resource id #45
                                            [_use_proxy] => 0
                                        )

                                    [handle:protected] => c0a7b6e2e7b6c929-0000000000000499
                                )

                            [1] => vbox
                        )

                )

            [4] => Array
                (
                    [file] => /btrfs/subvol_web/www/phpvirtualbox/lib/vboxconnector.php
                    [line] => 918
                    [function] => remote_getEvents
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [_persist] => Array
                                        (
                                            [vboxEventListeners] => Array
                                                (
                                                    [vbox] => Array
                                                        (
                                                            [listener] => c0a7b6e2e7b6c929-0000000000000475
                                                            [source] => c0a7b6e2e7b6c929-0000000000000474
                                                        )

                                                )

                                            [vboxHandle] => c0a7b6e2e7b6c929-0000000000000473
                                        )

                                    [fn] => getEvents
                                )

                        )

                )

            [5] => Array
                (
                    [file] => /btrfs/subvol_web/www/phpvirtualbox/lib/ajax.php
                    [line] => 306
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => getEvents
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [_persist] => Array
                                                (
                                                    [vboxEventListeners] => Array
                                                        (
                                                            [vbox] => Array
                                                                (
                                                                    [listener] => c0a7b6e2e7b6c929-0000000000000475
                                                                    [source] => c0a7b6e2e7b6c929-0000000000000474
                                                                )

                                                        )

                                                    [vboxHandle] => c0a7b6e2e7b6c929-0000000000000473
                                                )

                                            [fn] => getEvents
                                        )

                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => Array
                                                        (
                                                            [responseData] => Array
                                                                (
                                                                    [0] => Array
                                                                        (
                                                                            [eventType] => OnSessionStateChanged
                                                                            [sourceId] => vbox
                                                                            [dedupId] => vbox-OnSessionStateChanged-7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                            [machineId] => 7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                            [state] => Locked
                                                                        )

                                                                    [1] => Array
                                                                        (
                                                                            [eventType] => OnMachineDataChanged
                                                                            [sourceId] => vbox
                                                                            [dedupId] => vbox-OnMachineDataChanged-7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                            [machineId] => 7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                            [enrichmentData] => Array
                                                                                (
                                                                                    [id] => 7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                                    [name] => UbuntuSVR64
                                                                                    [OSTypeId] => Ubuntu_64
                                                                                    [owner] => 
                                                                                    [groups] => Array
                                                                                        (
                                                                                            [0] => /
                                                                                        )

                                                                                )

                                                                        )

                                                                    [2] => Array
                                                                        (
                                                                            [eventType] => OnMachineStateChanged
                                                                            [sourceId] => vbox
                                                                            [dedupId] => vbox-OnMachineStateChanged-7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                            [machineId] => 7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                            [state] => PoweredOff
                                                                            [enrichmentData] => Array
                                                                                (
                                                                                    [lastStateChange] => 1361588001.68
                                                                                    [currentStateModified] => 
                                                                                )

                                                                        )

                                                                )

                                                            [success] => 1
                                                            [key] => b4863d2664764dc00ff22c83b2d23842
                                                            [persist] => Array
                                                                (
                                                                    [vboxEventListeners] => Array
                                                                        (
                                                                            [vbox] => Array
                                                                                (
                                                                                    [listener] => c0a7b6e2e7b6c929-0000000000000475
                                                                                    [source] => c0a7b6e2e7b6c929-0000000000000474
                                                                                )

                                                                        )

                                                                    [vboxHandle] => c0a7b6e2e7b6c929-0000000000000473
                                                                )

                                                        )

                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                    [messages] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [6] => Array
                (
                    [file] => /btrfs/subvol_web/www/phpvirtualbox/lib/ajax.php
                    [line] => 306
                    [function] => getEvents
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [_persist] => Array
                                        (
                                            [vboxEventListeners] => Array
                                                (
                                                    [vbox] => Array
                                                        (
                                                            [listener] => c0a7b6e2e7b6c929-0000000000000475
                                                            [source] => c0a7b6e2e7b6c929-0000000000000474
                                                        )

                                                )

                                            [vboxHandle] => c0a7b6e2e7b6c929-0000000000000473
                                        )

                                    [fn] => getEvents
                                )

                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [data] => Array
                                                (
                                                    [responseData] => Array
                                                        (
                                                            [0] => Array
                                                                (
                                                                    [eventType] => OnSessionStateChanged
                                                                    [sourceId] => vbox
                                                                    [dedupId] => vbox-OnSessionStateChanged-7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                    [machineId] => 7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                    [state] => Locked
                                                                )

                                                            [1] => Array
                                                                (
                                                                    [eventType] => OnMachineDataChanged
                                                                    [sourceId] => vbox
                                                                    [dedupId] => vbox-OnMachineDataChanged-7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                    [machineId] => 7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                    [enrichmentData] => Array
                                                                        (
                                                                            [id] => 7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                            [name] => UbuntuSVR64
                                                                            [OSTypeId] => Ubuntu_64
                                                                            [owner] => 
                                                                            [groups] => Array
                                                                                (
                                                                                    [0] => /
                                                                                )

                                                                        )

                                                                )

                                                            [2] => Array
                                                                (
                                                                    [eventType] => OnMachineStateChanged
                                                                    [sourceId] => vbox
                                                                    [dedupId] => vbox-OnMachineStateChanged-7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                    [machineId] => 7cc9c472-0452-4c1c-9cc1-bff78aa46bdb
                                                                    [state] => PoweredOff
                                                                    [enrichmentData] => Array
                                                                        (
                                                                            [lastStateChange] => 1361588001.68
                                                                            [currentStateModified] => 
                                                                        )

                                                                )

                                                        )

                                                    [success] => 1
                                                    [key] => b4863d2664764dc00ff22c83b2d23842
                                                    [persist] => Array
                                                        (
                                                            [vboxEventListeners] => Array
                                                                (
                                                                    [vbox] => Array
                                                                        (
                                                                            [listener] => c0a7b6e2e7b6c929-0000000000000475
                                                                            [source] => c0a7b6e2e7b6c929-0000000000000474
                                                                        )

                                                                )

                                                            [vboxHandle] => c0a7b6e2e7b6c929-0000000000000473
                                                        )

                                                )

                                            [errors] => Array
                                                (
                                                )

                                            [persist] => Array
                                                (
                                                )

                                            [messages] => Array
                                                (
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
    [faultstring] => VirtualBox error: Invalid managed object reference "c0a7b6e2e7b6c929-0000000000000499"
    [faultcode] => SOAP-ENV:Client
    [detail] => stdClass Object
        (
            [InvalidObjectFault] => stdClass Object
                (
                    [badObjectID] => c0a7b6e2e7b6c929-0000000000000499
                )

        )

)

Original issue reported on code.google.com by JMcDade42 on 23 Feb 2013 at 2:54

GoogleCodeExporter commented 8 years ago
I'm seeing the same issue here on two machines.
Cenoto 6.3 64bit
Virtualbox 4.2.6 64bit
phpVirtualBox 4.2-4
php 5.3.3

Centos 6.3 64bit
Virtualbox 4.2.8 64bit
phpVirtualBox 4.2-4
php 5.3.3

Previously running on Centos 5.x without any issues.

Original comment by cdka...@gmail.com on 4 Mar 2013 at 5:48

GoogleCodeExporter commented 8 years ago

Original comment by imooreya...@gmail.com on 11 Jul 2013 at 4:26