justvanbloom / phpvirtualbox

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

"Error loggin in to vboxwebsrv" ... #202

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install phpvirtualbox 
2. configure apache directory alias '/phpvbox/' linked to installation folder.
3. navigate to http://localhost/phpvbox/

What is the expected output? What do you see instead?
I Don't know, I've never seen it work! :-/

I see an error message that says "Error logging in to vboxwebsrv"  which a link 
to the following details: 
[error details]
Exception Object
(
    [message:protected] => Error logging in to vboxwebsrv.
    [string:Exception:private] => 
    [code:protected] => 32
    [file:protected] => /home/jeff/www/phpVirtualBox/phpvirtualbox-4.0-3/lib/vboxconnector.php
    [line:protected] => 96
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/jeff/www/phpVirtualBox/phpvirtualbox-4.0-3/lib/vboxconnector.php
                    [line] => 2328
                    [function] => __vboxwebsrvConnect
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [1] => Array
                (
                    [file] => /home/jeff/www/phpVirtualBox/phpvirtualbox-4.0-3/lib/vboxconnector.php
                    [line] => 199
                    [function] => getMediumsCached
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [fn] => getMediums
                                )

                            [1] => Array
                                (
                                    [data] => 
                                    [errors] => Array
                                        (
                                        )

                                    [persist] => Array
                                        (
                                        )

                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/jeff/www/phpVirtualBox/phpvirtualbox-4.0-3/lib/ajax.php
                    [line] => 96
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => getMediums
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [fn] => getMediums
                                        )

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

                                                    [persist] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [3] => Array
                (
                    [file] => /home/jeff/www/phpVirtualBox/phpvirtualbox-4.0-3/lib/ajax.php
                    [line] => 96
                    [function] => getMediums
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [fn] => getMediums
                                )

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

                                            [persist] => Array
                                                (
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
)

[/error details]  

the next time i navigate to localhost/phpvbox/ (refreshing via F5 has no 
effect) i see this error prior to seeing the aforementioned error message: 

"An error occurred communicating with your vboxwebsrv. No more requests will be 
sent by phpVirtualBox until the error is corrected and this page is refreshed. 
The details of this connection error should be displayed in a subsequent dialog 
box."

What version of phpVirtualBox, VirtualBox, and PHP are you using? On what
operating system?

* phpvirtualbox 4.0-3
* php 5.3.3 installation (Zend Server Community Edition 5.04)
* Ubuntu 10.10 Desktop

Please provide any additional information below.
I have followed all instructions I could for configuring vboxwebsrv (which to 
my knowledge is up and running).  I have setup my user "jeff"  as a member of 
the "vboxusers" group, apache is fining the directory just fine.  i suppose 
using a page alias may have some effect, though I would not expect so.

Any help is appreciated :)

Original issue reported on code.google.com by TechJeff...@gmail.com on 22 Feb 2011 at 4:48

GoogleCodeExporter commented 9 years ago
Ooops!  I forgot my VirtualBox version number :P

VirtualBox Graphical User Interface 4.0.4 r70112

Original comment by TechJeff...@gmail.com on 22 Feb 2011 at 4:51

GoogleCodeExporter commented 9 years ago
I suppose I got a little too excited with my issue post..

On the Common Errors page 
(http://code.google.com/p/phpvirtualbox/wiki/CommonErrors) I found this: 
"Error logging in or connecting to vboxwebsrv
This typically indicates that the username and / or password is incorrect in 
config.php. These must be set to the system username / password of the user 
that administers your VirtualBox virtual machines.

If you have upgraded from VirtualBox 3.2.x and this was working before, you may 
have to run the following commands on your VirtualBox host:

VBoxManage setproperty vrdeauthlibrary default
VBoxManage setproperty websrvauthlibrary default"

Upon running these commands, it has connected me an interface for the first 
time, yay!  I'll play around and see if I can't break it ;)

I'm so excited! thanks for all the hard work!

Original comment by TechJeff...@gmail.com on 22 Feb 2011 at 5:16

GoogleCodeExporter commented 9 years ago

Original comment by imooreya...@gmail.com on 22 Feb 2011 at 1:23

GoogleCodeExporter commented 9 years ago
Update: everything is working great and I've had no problems.  Awesome 
resource, thank you!

out of curiosity, does phpVirtualBox have a gui tool for editing vRDP settings?

Original comment by TechJeff...@gmail.com on 23 Feb 2011 at 12:03