6

I have been trying to start the JACK audio server in QJackCtl, but I get the message:

DBUS: Jack server could not be started.
Sorry

So the symptoms of my problem are exactly the same as in this question or this question. However, none of the solutions named in those questions answers worked for me:

  • When I do sudo qjackctl, nothing changes at all.
  • When I do

    pulseaudio --kill
    
    jack_control start
    

    I get:

    DBus exception: org.jackaudio.Error.Generic: Failed to open server
    

Any help would be highly appreciated as the existing answers couldn't help me. I am using Ubuntu 14.04 (64-bit).

Here is the error log of QJackCtl:

Cannot connect to server socket err = Datei oder Verzeichnis nicht gefunden
Cannot connect to server request channel
jack server is not running or cannot be started
Sun Sep 27 22:17:50 2015: Starting jack server...
Sun Sep 27 22:17:50 2015: JACK server starting in realtime mode with priority 10
Sun Sep 27 22:17:50 2015: ERROR: Cannot lock down 82274202 byte memory area (Cannot allocate memory)
Sun Sep 27 22:17:50 2015: ERROR: cannot register object path "/org/freedesktop/ReserveDevice1/Audio0": A handler is already registered for /org/freedesktop/ReserveDevice1/Audio0
Sun Sep 27 22:17:50 2015: ERROR: Failed to acquire device name : Audio0 error : A handler is already registered for /org/freedesktop/ReserveDevice1/Audio0
Sun Sep 27 22:17:50 2015: ERROR: Audio device hw:0 cannot be acquired...
Sun Sep 27 22:17:50 2015: ERROR: Cannot initialize driver
Sun Sep 27 22:17:50 2015: ERROR: JackServer::Open failed with -1
Sun Sep 27 22:17:50 2015: ERROR: Failed to open server
Sun Sep 27 22:17:51 2015: Saving settings to "/home/username/.config/jack/conf.xml" ...
Lukas D. Sauer
  • 305
  • 4
  • 11
  • did you look this: http://www.linuxquestions.org/questions/linux-newbie-8/using-jack2-dbus-jack_control-start-gives-error-dbus-exception-org-jackaudio-error-4175501811/ – laugeo Sep 27 '15 at 18:00
  • I tried the hints on that website, but it doesn't help for me. I added the error log so you can see it. – Lukas D. Sauer Sep 27 '15 at 20:28
  • I found something here and was able to thereby remove the first error: Cannot lock down 82274202 byte memory area (Cannot allocate memory) by first doing sudo dpkg-reconfigure -p high jackd2, then picking Yes, when asked about the realtime latency. Afterwards, I ran sudo adduser <username> audio and restarted, and the first error was gone. However, ERROR: Audio device hw:0 cannot be acquired... still persists. – Lukas D. Sauer Sep 27 '15 at 21:15

3 Answers3

2

I get this error when I use "default" as the jack audio device. When I specifically select my hardware soundcard or outboard card from the drop-down window under setup in qjackctl, it starts without a problem.

dlo
  • 45
2

Switch input/output from default to your audio interface. I'm not a linux wiz but a music producer dabbling in linux and this worked for me.

Sean
  • 21
  • 1
1

Has it worked before now? Try using Cadence from kx-studio. I had lots of headache trying to run Qjackctl. Discovered Cadence, and bingo! Everything settled. First purge whatever jack you have before installing Cadence. Check here. http://kxstudio.linuxaudio.org/Repositories

Can you check the log through Cadence? Is it same error? I did not document the steps I took then.

If you use pulseaudio, you may have to install pulseaudio-module-jack. Only use jack2

odifek
  • 56
  • Ok, I just tried Cadence as you suggested, however, the problem still persists. – Lukas D. Sauer Sep 29 '15 at 09:47
  • After playing with the settings of Cadence, I managed to get it working a couple of days later, however I cannot precisely reconstruct, which change did the trick. Now it also works in QJackCtl. – Lukas D. Sauer May 12 '16 at 15:39