Batch mode won't run in headless environment.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
soundconverter (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I tried running batch mode while ssh'ed into a virtual machine, and got the following error:
$ soundconverter -b -m "audio/mpeg" -s ".mp3" *.flac
soundConverter 2.9.0-beta1
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
using GTK version: 3.0
using Gstreamer version: 1.8.2.0
using 1 thread(s)
(python3:3153): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Traceback (most recent call last):
File "/usr/bin/
from soundconverter.
File "/usr/share/
from soundconverter.
File "/usr/share/
profiles = _GCONF.
GLib.Error: gconf-error-quark: No D-BUS daemon running
(2)
However, running on the exact same virtual machine in a local terminal (so from the VM's desktop) the command runs fine.
A work around is to install and use a virtual frame buffer. Instructions below with others who have the same requirement:
1) Install xvfb (X Virtual Frame Buffer)
sudo apt-get install xvfb
2) Start a virtual frame buffer and switch your terminal onto it. Note the capitalization of Xvfb below, that's not a typo.
Xvfb :99 &
export DISPLAY=:99
3) Run your batch soundconverter command:
soundconverter -b -m "audio/mpeg" -s ".mp3" *.flac