Ardour Could not start jack

hej, i just ran into a quite similar problem, jack doesnt want to start because theres something else blocking … and when i try to kill the process this happens:

2977 pts/0 S+ 0:00 grep --color=auto PID
kalimerox@kalimeroxx:~$ kill 2977
bash: kill: (2977) - No such process

someone has an idea? I run on alsa (no pulseaudio)…and its lucid with studio package on a thinkpad T60…

the command to use is either:

fuser /dev/snd/pcmC0D0p

or

lsof | grep /dev/snd/pcmC0D0p

both examples above assume that you want to use your first audio interface’s first device (C0 … D0). You will need to change the zeroes to something else for a different card and/or device.

And the reason the kill command fails is that you seem to be trying to kill the grep command you presumably ran just before, and which has already exited.

If you run say ‘ps ax | grep getty’ you’ll see that the grep command even greps itself. To avoid that you can run ‘ps ax | grep getty | grep -v grep’

It worked for me.

But it stops sound in other apps. I need other apps to preview what I am editing at Ardour :frowning:

Thanks, for the major problem is solved.

Which other apps are you trying to run?

when i reboot,
then type

kalimerox@kalimeroxx:~$ lsof | grep dev/snd
kalimerox@kalimeroxx:~$

i get no output, same with the other commands. so

kalimerox@kalimeroxx:~$ fuser /dev/snd/pcmC0D0p
kalimerox@kalimeroxx:~$

kalimerox@kalimeroxx:~$ lsof | grep /dev/snd/pcmC0D0p
kalimerox@kalimeroxx:~$

that was the correct command for the first sound device in my case, right?

@peder yeah i had the exaile player running in the case i posted, but unfortunately that was not the problem…

For the fuser command you should use ‘fuser /dev/snd/*’ to see info for every device and the same goes for ‘lsof | grep dev/snd’.

But, did you try running jack directly after the reboot, and did you get the same error message “Device or resource busy” ?

What does ‘cat /proc/asound/cards’ say?

yes, i ran it directly after restart… ;( still the same,

ah, i had to do sudo with the fuser command, then i get this:

kalimerox@kalimeroxx:~$ sudo fuser /dev/snd/*
[sudo] password for kalimerox:
/dev/snd/controlC0: 1589
/dev/snd/pcmC0D0c: 1589m
/dev/snd/seq: 1946
/dev/snd/timer: 1589
kalimerox@kalimeroxx:~$

the pid is 1589…?!

kalimerox@kalimeroxx:~$ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xee240000 irq 47
29 [ThinkPadEC ]: ThinkPad EC - ThinkPad Console Audio Control
ThinkPad Console Audio Control at EC reg 0x30, fw 79HT48WW-1.05b

I don’t think you have to use sudo for fuser, the difference from post #24 is that in that you were running the command on pcmC0D0p but when you now use the * wildcard you see that it’s pcmC0D0c that’s being used.

To see which program is running as PID 1589 you run ‘ps ax| grep 1589| grep -v grep’ . You might also want to check PID 1946

got it solved finally!! (by the very kind help on irc… )

i had an application (randomsound) installed that was blocking everything… ;(

Hello guys ! I am so happy to be part of Open Source !

Well, The Jack thing was kind of confusing at first !
So, i tweak and tweaked until i messed all 4 tabs when Opening Setup !

Options scripts are gone and so on ! I just need to put back all the scripts that were there !
Also, Display and Misc. Boxes and stuff are unchecked or Check when they are or not supposed too ! But the thing i think is almost running but with many XRUN problems showing on messages window !

THese XRUNs dont quit until i stop jackd on purpose !
It looks like this:

03:50:50.651 Logging started — Fri Apr 15 03:50:50 2011 —
03:50:50.696 Patchbay deactivated.
03:50:50.720 Statistics reset.
03:50:51.012 ALSA connection graph change.
03:50:51.205 ALSA connection change.
03:50:53.596 Startup script…
03:50:53.597 artsshell -q terminate
03:50:54.003 Startup script terminated with exit status=32512.
03:50:54.016 JACK is starting…
03:50:54.018 /usr/bin/jackd -dalsa -dhw:0 -r48000 -p1024 -n2
03:50:54.040 JACK was started with PID=14280.
03:50:56.110 Server configuration saved to “/home/jantis/.jackdrc”.
03:50:56.121 Statistics reset.
03:50:56.164 Client activated.
03:50:56.165 Post-startup script…
03:50:56.166 alsa
03:50:56.170 XRUN callback (1).
03:50:56.653 Post-startup script terminated with exit status=768.
03:50:56.655 JACK connection change.
03:50:56.657 XRUN callback (14 skipped).
03:50:58.700 XRUN callback (56 skipped).
03:51:00.752 XRUN callback (55 skipped).
03:51:02.784 XRUN callback (56 skipped).
03:51:04.817 XRUN callback (57 skipped).
03:51:06.920 XRUN callback (59 skipped).
03:51:08.994 XRUN callback (56 skipped).
03:51:11.032 XRUN callback (57 skipped).
03:51:13.064 XRUN callback (57 skipped).
03:51:15.108 XRUN callback (57 skipped).
03:51:17.145 XRUN callback (57 skipped).
03:51:19.188 XRUN callback (56 skipped).
03:51:21.229 XRUN callback (55 skipped).
03:51:23.269 XRUN callback (57 skipped).
03:51:25.313 XRUN callback (57 skipped).
03:51:27.328 XRUN callback (57 skipped).
03:51:29.364 XRUN callback (56 skipped).
03:51:31.404 XRUN callback (57 skipped).
03:51:33.436 XRUN callback (58 skipped).
03:51:35.476 XRUN callback (56 skipped).
03:51:37.510 XRUN callback (58 skipped).
03:51:39.535 XRUN callback (58 skipped).
03:51:41.553 XRUN callback (55 skipped).
03:51:42.838 Client deactivated.
03:51:42.841 JACK is stopping…
03:51:42.913 JACK was stopped successfully.
03:51:42.914 Post-shutdown script…
03:51:42.915 killall jackd
03:51:43.388 Post-shutdown script terminated with exit status=256.

So, can someone help ?
BTW, I already removed ALL QJack completely from Ubuntu 9.10, thinking i could star a fresh one but no luck with that try !

I am not an audio n00b, but with Linux audio … yes i am one ! hehe
BTW, i want to read and get as you guys ! How did you get so good in JackD theory ? And lastly i dont have a Dell Dimension 8250 with very expensive hard to find RamBus ! So, i just happen to have 512 of ram memory !
I know is low but man… those Rambus sticks are way too high priced ! Very durable though !! so, can i record at least something with this oold Dinosour ?
Thnx in advanced for any help given in this NICE forum !

This problem has been running for more than three years.
My thanks to all who have contributed.

Please understand my position. I am a newbie. I have a problem.
There is lots of information on this problem on various groups, most of which I do not understand.
However, it is all contradictory. I cannot help but feel that this problem should have been fixed by now.

What can I do, now, to make Ardour and Jack run together?

Thanks

Hi Seablade! Thanks for your reply.

I am running Ubuntu 11.10. When starting Ardour, I invariably get this message:

'Ardour could not start JACK
There are several possible reasons:

  1. You requested audio parameters that are not supported…
  2. JACK is running as another user.
    Please consider the possibilities, and perhaps try different parameters.’

I do not know what a console log is. There is no program called ‘Jack’ in the Ubuntu software centre.
Neither is there one on my computer when I search for it. There are some additions installed by the Ubuntu studio apps. These additions have made no difference to the problem…

Previously I tried downloading Jack, but the Synaptic package manager showed no app called ‘Jack’, and no help was available to tell me which bits to install.

Thanks again.

@loz56

There is a lot of information out there as there are a lot of different possible causes. We would need much more information to help you, for starters we would need to see the messages when Jack tries to start and fails.(Console log, etc.)

In as far as the problem being fixed by now, MANY people run Jack without any issue whatsoever, but especially in general purpose distributions this may require some work to do. Jack’s developers cannot control your distribution, that is both a blessing and a curse of Linux(Which is what I assume you are on as you don’t clarify this from your post) but it means your distribution is quite capable of installing things that prevent Jack from running correctly out of the box and most do.

      Seablade

If you installed Ardour through the software centre Jack is almost certainly installed. You should be able to open a terminal window and type jackd --version and get some output to confirm it is actually installed.

Ubuntu, and yes even Ubuntu Studio, tends to break Ardour in fun ways in their package management for the record. Music centered distros like AVLinux on the other hand don’t and tend to work much better out of the box for many people, so that may be a consideration for you in the future.

On Ubuntu, chances are that you need to add your user to the audio or realtime (Depending on what Ubuntu is calling it now) group in order to run Jack with realtime permissions. I can’t give an exact command to do that without knowing what the group name is, sorry. Hopefully someone that uses Ubuntu can jump in and fill in that blank for me.

Seablade

In ubuntu / ubuntustudio 11.10, you have to add the user to the audio group. Just run in a terminal:

sudo adduser your_user_name audio

Reboot the computer.

i suggest you should install and use qjackctl (aka, JACK Control) to configure and start the jack server instead of forcing ardour to try to start it. qjackctl is widely used and well documented.

EDIT: The jack server package in ubuntu is called “jackd”.

Cheers, Pablo

Did you really open a terminal window and type

sudo adduser laurence audio

enter you password and reboot the computer?

BTW, I don’t think that ubuntu tends to break ardour although it is clear that there are much better options than a stock ubuntu 11.10 for linux musicians.

Many thanks to both of you. I have been using Linux for 10 days now! I am just beginning to realise what a big and complex subject it is, and what the community is, and how wonderful you all are.

Jack is installed. This is what happens when I run qjackctl:

Wed Mar 21 16:43:47 2012: Saving settings to “/home/laurence/.config/jack/conf.xml” …
Wed Mar 21 16:43:47 2012: Saving settings to “/home/laurence/.config/jack/conf.xml” …
Wed Mar 21 16:43:47 2012: Starting jack server…
Wed Mar 21 16:43:47 2012: JACK server starting in realtime mode with priority 10
Wed Mar 21 16:43:47 2012: e[1me[31mERROR: Cannot lock down memory area (Cannot allocate memory)e[0m
Wed Mar 21 16:43:47 2012: control device hw:0
Wed Mar 21 16:43:47 2012: control device hw:0
Wed Mar 21 16:43:47 2012: Acquired audio card Audio0
Wed Mar 21 16:43:47 2012: creating alsa driver … hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
Wed Mar 21 16:43:47 2012: con [sorry my bad]
Wed Mar 21 16:43:47 2012: configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 2 periods
Wed Mar 21 16:43:47 2012: ALSA: final selected sample format for capture: 32bit integer little-endian
Wed Mar 21 16:43:47 2012: ALSA: use 2 periods for capture
Wed Mar 21 16:43:47 2012: ALSA: final selected sample format for playback: 32bit integer little-endian
Wed Mar 21 16:43:47 2012: ALSA: use 2 periods for playback
Wed Mar 21 16:43:47 2012: e[1me[31mERROR: Cannot use real-time scheduling (RR/10)(1: Operation not permitted)e[0m
Wed Mar 21 16:43:47 2012: e[1me[31mERROR: AcquireSelfRealTime errore[0m
Wed Mar 21 16:43:52 2012: e[1me[31mERROR: JackProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed oute[0m
Wed Mar 21 16:43:52 2012: e[1me[31mERROR: Driver is not runninge[0m
Wed Mar 21 16:43:52 2012: e[1me[31mERROR: Cannot open client name = dbusapie[0m
Wed Mar 21 16:43:52 2012: e[1me[31mERROR: failed to create dbusapi jack cliente[0m
Cannot connect to server socket err = Connection refused
Cannot connect to server socket
jack server is not running or cannot be started

Then I am informed that “Jack will continue to run in the system tray”.

BTW, I don't think that ubuntu tends to break ardour although it is clear that there are much better options than a stock ubuntu 11.10 for linux musicians.

It does sorry. There have been MANY issues with packaging of Ardour in the Ubuntu repos, that are almost always fixed by using the package from here.

Seablade

@muktak: install the pulseaudio jack sink package and this problem will go away. it is an error in ubuntu’s packaging of JACK and/or PulseAudio.