Menu

vboxweb-service fails preventing phpVirtualBox access

Help
elderpro
2018-11-17
2018-11-19
  • elderpro

    elderpro - 2018-11-17

    I'm trying to understand what to do about correcting a vboxweb-service problem. I use phpVirtualBox for access to VirtualBox on an Ubuntu Server 18.04.

    This setup works from boot up until vboxweb-service is restarted or started. Then phpVirtualBox stops working "An error occurred communicating with your vboxwebsrv." and "Could not connect to host (http://127.0.0.1:18083/)".

    phpVirtualBox working

    sudo  ps aux | grep vboxwebsrv
    (RETURNS)
    vbox      1364  0.0  0.1 555468 14856 ?        Sl   14:47   0:00 /usr/lib/virtualbox/vboxwebsrv --background -H 127.0.0.1 -p 18083
    sudo systemctl status vboxweb-service
    (RETURNS)
     vboxweb-service.service
       Loaded: loaded (/usr/lib/virtualbox/vboxweb-service.sh; enabled; vendor preset: enabled)
       Active: active (running) since Sat 2018-11-17 14:47:26 EST; 13min ago
      Process: 1297 ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start (code=exited, status=0/SUCCES
        Tasks: 27 (limit: 4915)
       CGroup: /system.slice/vboxweb-service.service
               ├─1364 /usr/lib/virtualbox/vboxwebsrv --background -H 127.0.0.1 -p 18083
               ├─1387 /usr/lib/virtualbox/VBoxXPCOMIPCD
               └─1411 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
    

    restart just the vboxweb-service (or also with vboxdrv and apache2 restarted at the same time)

    sudo systemctl start vboxweb-service
    

    phpVirtualBox stops working "An error occurred communicating with your vboxwebsrv."
    and "Could not connect to host (http://127.0.0.1:18083/)"

    sudo systemctl start vboxweb-service
    sudo systemctl status vboxweb-service
    (RETURNS)
     vboxweb-service.service
       Loaded: loaded (/usr/lib/virtualbox/vboxweb-service.sh; enabled; vendor preset: enabled)
       Active: active (exited) since Sat 2018-11-17 15:06:34 EST; 3min 13s ago
      Process: 3729 ExecStop=/usr/lib/virtualbox/vboxweb-service.sh stop (code=exited, status=0/SUCCESS)
      Process: 3738 ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start (code=exited, status=0/SUCCES
    Nov 17 15:06:34 SERGIO systemd[1]: Starting vboxweb-service.service...
    Nov 17 15:06:34 SERGIO systemd[1]: Started vboxweb-service.service.
    

    or reboot the server and phpVirtualBox is again working

    sudo  ps aux | grep vboxwebsrv
    (RETURNS)
    vbox      1364  0.0  0.1 555468 14856 ?        Sl   14:47   0:00 /usr/lib/virtualbox/vboxwebsrv --background -H 127.0.0.1 -p 18083
    sudo systemctl status vboxweb-service
    (RETURNS)
     vboxweb-service.service
       Loaded: loaded (/usr/lib/virtualbox/vboxweb-service.sh; enabled; vendor preset: enabled)
       Active: active (running) since Sat 2018-11-17 14:47:26 EST; 13min ago
      Process: 1297 ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start (code=exited, status=0/SUCCES
        Tasks: 27 (limit: 4915)
       CGroup: /system.slice/vboxweb-service.service
               ├─1364 /usr/lib/virtualbox/vboxwebsrv --background -H 127.0.0.1 -p 18083
               ├─1387 /usr/lib/virtualbox/VBoxXPCOMIPCD
               └─1411 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
    
     
  • Thomas

    Thomas - 2018-11-19

    Hi,

    I am available to answer your questions but please note that this site is no more monitored by phpvirtualbox developers. Please report all issues to Github here: https://github.com/phpvirtualbox/phpvirtualbox/issues

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.