Batch mode won't run in headless environment.

Bug #1690577 reported by glank314
6
This bug affects 1 person
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/soundconverter", line 164, in <module>
    from soundconverter.batch import cli_convert_main
  File "/usr/share/soundconverter/python/soundconverter/batch.py", line 31, in <module>
    from soundconverter.gstreamer import TagReader
  File "/usr/share/soundconverter/python/soundconverter/gstreamer.py", line 70, in <module>
    profiles = _GCONF.all_dirs(_GCONF_PROFILE_LIST_PATH)
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.

Revision history for this message
glank314 (glank314) wrote :

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.