Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not connect to host (http://127.0.0.1:18083/) #285

Open
PartisanEntity opened this issue Sep 29, 2021 · 6 comments
Open

Could not connect to host (http://127.0.0.1:18083/) #285

PartisanEntity opened this issue Sep 29, 2021 · 6 comments

Comments

@PartisanEntity
Copy link

Server: Ubuntu 20.04 LTS

Virtualbox Version: 6.1.26r145957

VBoxManage list extpacks

Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      6.1.26
Revision:     145957
Edition:
Description:  Oracle Cloud Infrastructure integration, USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe.
VRDE Module:  VBoxVRDP
Usable:       true
Why unusable:

When checking the status of vboxweb.service:

systemctl status vboxweb.service

● vboxweb.service    Loaded: masked (Reason: Unit vboxweb.service is
masked.)     Active: inactive (dead)
If I try to manually start the service:
sudo systemctl start vboxweb

Failed to start vboxweb.service: Unit vboxweb.service is masked.

phpvirtualbox config.php:

/* Username / Password for system user that runs VirtualBox */
var $username = '***';
var $password = '***';

/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
var $location = 'http://127.0.0.1:18083/';

/* Default language. See languages folder for more language options.
 * Can also be changed in File -> Preferences -> Language in
 * phpVirtualBox.
 */
var $language = 'en';

/* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */
var $vrdeports = '9000-9100';

The user in the config.php is part of the vboxusers group.

The files in the phpvirtualbox web folder belong to this user.

phpvirtualbox error in the browser after logging in with admin/admin (I have also tried the username and password of the user configured in the phpvirtualbox config.php):

Exception Object
(
    [message:protected] => Could not connect to host (http://127.0.0.1:18083/)
    [string:Exception:private] => 
    [code:protected] => 64
    [file:protected] => /mnt/raiddisk/public_html/phpvirtualbox/endpoints/api.php
    [line:protected] => 134
    [trace:Exception:private] => Array
        (
        )

    [previous:Exception:private] => 
)

If I try to look for errors in systemctl:

systemctl --failed

vboxweb-service.service loaded failed failed vboxweb-service.service

I have no idea what else to try. I have installed virtualbox directly using the sources from the virtualbox website. I have also tried uninstalling and reinstalling everything.

From what I can tell the vboxweb-service.service is failing to start. But there is no helpful error message to understand why.

@Infomaniac007
Copy link

File "/usr/lib/virtualbox/vboxwebsrv" is missing from the Linux installer "virtualbox-6.1_6.1.26-145957Ubuntueoan_amd64.deb"
More info in the link below:
https://www.virtualbox.org/ticket/20479

@PartisanEntity
Copy link
Author

Thanks. I have copied vboxwebsrv to /usr/lib/virtualbox and rebooted. When I try to start vboxweb with

sudo systemctl start vboxweb

I still get:

Failed to start vboxweb.service: Unit vboxweb.service is masked.

@snk0752
Copy link

snk0752 commented Sep 29, 2021 via email

@PartisanEntity
Copy link
Author

Thank you so much. Worked!

@pangh-space
Copy link

image

image

这个提示是什么原因导致的呀,求解,该如何解决?

@trasherdk
Copy link

$ cat /etc/default/virtualbox
VBOXWEB_USER=vbox
VBOXWEB_HOST=localhost
VBOXWEB_PORT=18083
VBOXWEB_PIDFILE=/var/run/virtualbox/vboxweb.pid
VBOXWEB_LOGFILE=/var/log/virtualbox/vboxweb.log
INSTALL_DIR=/opt/VirtualBox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants