Page 1 of 1

[SOLVED] Extra content at the end of the document

Posted: 25. Mar 2017, 13:57
by Connor0308
Dear,

I am using Virtualbox on a Debian 7 system using OMV as headend.
So far, the VM was really working fine, but a week ago, the VM was down and I was unable to start it again.

The error message shows:

Code: Select all

VirtualBox error: rc=0x80004005 Extra content at the end of the document. Location: '/media/3c9d366f-10ed-4d58-a7ef-32dc9542500f/VMs/Debian Jessie/Debian Jessie.vdi', line 1 (0), column 2. /home/vbox/vbox-4.3.34/src/VBox/Main/src-server/MachineImpl.cpp[472] (nsresult Machine::initFromSettings(VirtualBox*, const com::Utf8Str&, const com::Guid*)) (0x80004005)
The "deatils" showed:

Code: Select all

SoapFault Object
(
    [message:protected] => VirtualBox error: rc=0x80004005 Extra content at the end of the document.
Location: '/media/3c9d366f-10ed-4d58-a7ef-32dc9542500f/VMs/Debian Jessie/Debian Jessie.vdi', line 1 (0), column 2.
/home/vbox/vbox-4.3.34/src/VBox/Main/src-server/MachineImpl.cpp[472] (nsresult Machine::initFromSettings(VirtualBox*, const com::Utf8Str&, const com::Guid*)) (0x80004005)
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /usr/share/phpvirtualbox/lib/vboxServiceWrappers.php
    [line:protected] => 850
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /usr/share/phpvirtualbox/lib/vboxServiceWrappers.php
                    [line] => 850
                    [function] => __soapCall
                    [class] => SoapClient
                    [type] => ->
                    [args] => Array
                        (
                            [0] => IVirtualBox_openMachine
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [_this] => 3fa3061a37111b7c-0000000000000040
                                            [settingsFile] => /media/3c9d366f-10ed-4d58-a7ef-32dc9542500f/VMs/Debian Jessie/Debian Jessie.vdi
                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /usr/share/phpvirtualbox/lib/vboxconnector.php
                    [line] => 2307
                    [function] => openMachine
                    [class] => IVirtualBox
                    [type] => ->
                    [args] => Array
                        (
                            [0] => /media/3c9d366f-10ed-4d58-a7ef-32dc9542500f/VMs/Debian Jessie/Debian Jessie.vdi
                        )

                )

            [2] => Array
                (
                    [file] => /usr/share/phpvirtualbox/lib/vboxconnector.php
                    [line] => 938
                    [function] => remote_machineAdd
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [file] => /media/3c9d366f-10ed-4d58-a7ef-32dc9542500f/VMs/Debian Jessie/Debian Jessie.vdi
                                    [fn] => machineAdd
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /usr/share/phpvirtualbox/lib/ajax.php
                    [line] => 304
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => machineAdd
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [file] => /media/3c9d366f-10ed-4d58-a7ef-32dc9542500f/VMs/Debian Jessie/Debian Jessie.vdi
                                            [fn] => machineAdd
                                        )

                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => Array
                                                        (
                                                            [responseData] => Array
                                                                (
                                                                )

                                                        )

                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                    [messages] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [4] => Array
                (
                    [file] => /usr/share/phpvirtualbox/lib/ajax.php
                    [line] => 304
                    [function] => machineAdd
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [file] => /media/3c9d366f-10ed-4d58-a7ef-32dc9542500f/VMs/Debian Jessie/Debian Jessie.vdi
                                    [fn] => machineAdd
                                )

                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [data] => Array
                                                (
                                                    [responseData] => Array
                                                        (
                                                        )

                                                )

                                            [errors] => Array
                                                (
                                                )

                                            [persist] => Array
                                                (
                                                )

                                            [messages] => Array
                                                (
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
    [faultstring] => VirtualBox error: rc=0x80004005 Extra content at the end of the document.
Location: '/media/3c9d366f-10ed-4d58-a7ef-32dc9542500f/VMs/Debian Jessie/Debian Jessie.vdi', line 1 (0), column 2.
/home/vbox/vbox-4.3.34/src/VBox/Main/src-server/MachineImpl.cpp[472] (nsresult Machine::initFromSettings(VirtualBox*, const com::Utf8Str&, const com::Guid*)) (0x80004005)
    [faultcode] => SOAP-ENV:Client
    [detail] => stdClass Object
        (
            [RuntimeFault] => stdClass Object
                (
                    [resultCode] => -2147467259
                    [returnval] => 3fa3061a37111b7c-0000000000000041
                )

        )

)
When trying to check the .vdi file, I realise that I couldn't really read it. The only files that I was able to read were the .vbox-prev and the .vbox-tmp file.
These showed nothing that I was able to identify as a problem.

What I did so far was to delete the VM-entry, as in a thread I read that it might help to recreate it by opening the .vdi-file.

Any suggestions from your side - as I would at least love to save my data from this VM.

Thank you for your help,
best regards,

Connor

Re: Extra content at the end of the document

Posted: 25. Mar 2017, 14:13
by Perryg
I would like to see the *.vbox file and the VirtualBox.xml file for this guest. compress and post here as an attachment.
Also the actual file size of the vdi.

Probably best to not use this guest until it gets sorted out.

Re: Extra content at the end of the document

Posted: 25. Mar 2017, 20:59
by Connor0308
Thank you for your feedback.
As I have mentioned, I have deleted the VM while trying to get it working.
That is why I can't odder a vbox or an xml file.
What I have included are the files available, which are the .vbox-prev and .vbos-tmp files.

The vdi-file has a size of 9.882.828.800 bytes.

Thank you for your support.

Re: Extra content at the end of the document

Posted: 25. Mar 2017, 21:29
by Perryg
I suspect that this was recoverable in the beginning as the error usually means a corruption in one or the other of the files I asked for. This is usually repaired by replacing the *.vbox file with the *.vbox-prev file or reconstructing the VirtualBox.xml file by deleting the original and then re-adding the original guest with the add feature.

If the guest ( *.vdi ) itself was not corrupt it is possible to add it as a second drive to a new guest which should allow you to retrieve the data.

For the future I would make sure to do frequent backups since this is running from a NAS.

Re: Extra content at the end of the document

Posted: 26. Mar 2017, 09:59
by Connor0308
Thank you for your support.

Just as an additional question: How would I extract SQL-data in such a scenario?

Re: Extra content at the end of the document

Posted: 26. Mar 2017, 13:25
by Perryg
I assume you mean by attaching the old virtual drive to the new guest as a second drive. In that case it should be a simple copy/paste of the data from the original drive to the new one. This would all be done from within the guest of course.

Re: Extra content at the end of the document

Posted: 26. Mar 2017, 13:39
by Connor0308
Perfect, I'll try it.
Thank you,
best regards,

Connor