Unable to start vboxwebservice

Discussions related to using VirtualBox on Linux hosts.
Post Reply
User_UY4OZ
Posts: 2
Joined: 14. Aug 2021, 11:58
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: LINUX/PIHOLE/WIN

Unable to start vboxwebservice

Post by User_UY4OZ »

Bonjour ,
Under Ubuntu Server edition updated
VERSION="20.04.1 LTS (Focal Fossa)" kernel 5.4.0-80-generic


with Vboxversion : 6.1.26r145957 and Extension Pack Version: 6.1.26 Revision: 145957

When i try to start vboxwebservice,

journalctl -xe :

Code: Select all

ug 14 12:07:43 airvb-serveur systemd[1]: Starting vboxweb-service.service...
-- Subject: A start job for unit vboxweb-service.service has begun execution
-- Defined-By: systemd
-- 
-- A start job for unit vboxweb-service.service has begun execution.
-- 
-- The job identifier is 64456.
Aug 14 12:07:43 airvb-serveur vboxweb-service.sh[871732]: vboxweb-service.sh: Starting VirtualBox web service.
Aug 14 12:07:43 airvb-serveur vboxweb-service.sh[871747]: Starting VirtualBox web service.
Aug 14 12:07:43 airvb-serveur vboxweb-service.sh[871732]: vboxweb-service.sh: failed: VirtualBox web service failed to start.
Aug 14 12:07:43 airvb-serveur vboxweb-service.sh[871753]: failed: VirtualBox web service failed to start.
Aug 14 12:07:43 airvb-serveur systemd[1]: vboxweb-service.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- 
-- An ExecStart= process belonging to unit vboxweb-service.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
Aug 14 12:07:43 airvb-serveur systemd[1]: vboxweb-service.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- 
-- The unit vboxweb-service.service has entered the 'failed' state with result 'exit-code'.
Aug 14 12:07:43 airvb-serveur systemd[1]: Failed to start vboxweb-service.service.
-- Subject: A start job for unit vboxweb-service.service has failed
-- Defined-By: systemd
-- 
-- A start job for unit vboxweb-service.service has finished with a failure.
-- 
-- The job identifier is 64456 and the job result is failed.
Any idea where to search?

Below the information that I think useful

Code: Select all

cat /etc/group | grep vbox
vboxusers:x:113:airvb

Code: Select all

cat /etc/default/virtualbox
VBOXWEB_USER=airvb
VBOXWEB_GROUP=vboxusers
VBOXWEB_HOST=localhost
VBOXAUTOSTART_DB=/etc/vbox
VBOXAUTOSTART_CONFIG=/etc/vbox/autostartvm.cfg
VBOXWEB_LOGFILE=/home/airvb/.config/VirtualBox/vboxwebsrv.log

Code: Select all

cat /etc/systemd/system/multi-user.target.wants/vboxweb-service.service
[Unit]
SourcePath=/usr/lib/virtualbox/vboxweb-service.sh
Description=
Before=runlevel2.target runlevel3.target runlevel4.target runlevel5.target shutdown.target 
After=network-online.target vboxdrv.service 
Conflicts=shutdown.target 

[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start
ExecStop=/usr/lib/virtualbox/vboxweb-service.sh stop

[Install]
WantedBy=multi-user.target
tlasrich
Posts: 1
Joined: 17. Aug 2021, 06:48

Re: Unable to start vboxwebservice

Post by tlasrich »

Hello,

I have the same problem after upgrading from vbox 6.1.24 -> 6.1.26 on a debian buster system. I have already tried various instructions and forum posts unfortunately after the update the web server of vbox can no longer be started. The error message in the log is unfortunately not very meaningful.

Do you already have new information?

Greetings Thorsten
Zer0ne
Posts: 2
Joined: 17. Aug 2021, 08:44

Re: Unable to start vboxwebservice

Post by Zer0ne »

+1

Same here on Debian Buster, after upgrading from 6.1.24 to 6.1.26.

Any1?
User_UY4OZ
Posts: 2
Joined: 14. Aug 2021, 11:58
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: LINUX/PIHOLE/WIN

Re: Unable to start vboxwebservice [ RESOLVED]

Post by User_UY4OZ »

It seems that is linked with our fault
https://www.virtualbox.org/ticket/20479

Working after following the instructions.

Get previous version here :
https://download.virtualbox.org/virtualbox/6.1.24/
For ubuntu i took : virtualbox-6.1_6.1.24-145767~Ubuntu~eoan_amd64.deb
Extract vboxwebsrv from this folder/./usr/lib/virtualbox/

cpy vboxwebserv in /usr/lib/virtualbox/ folder

change owner :

Code: Select all

sudo chown root:root vboxwebsrv
Restart service

Code: Select all

sudo systemctl status vboxweb-service.service


:)
Zer0ne
Posts: 2
Joined: 17. Aug 2021, 08:44

Re: Unable to start vboxwebservice

Post by Zer0ne »

Thanks for your support, though it didn't work for me. Even though the vboxwebsrv file with proper permissions was there now, vboxweb-service.sh still exited with errors.

A downgrade to 6.1.24 revived the whole thing.
Buscho
Posts: 1
Joined: 17. Aug 2021, 19:00

Re: Unable to start vboxwebservice

Post by Buscho »

Hi everybody!
I tried the solution mentioned by User_UY4OZ and I can confirm, that it worked for me on my two machines running VirtualBox 6.1.26 (both Ubuntu 20.04 LTS) :D

Regards!

Buscho
Post Reply