Ardour Could not start jack

41 replies [Last post]
Loz56
User offline. Last seen 21 weeks 6 days ago. Offline
Joined: 2012-03-19
Posts:

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

seablade
User offline. Last seen 8 hours 25 min ago. Offline
Joined: 2007-01-22
Posts:

@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

Loz56
User offline. Last seen 21 weeks 6 days ago. Offline
Joined: 2012-03-19
Posts:

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.

seablade
User offline. Last seen 8 hours 25 min ago. Offline
Joined: 2007-01-22
Posts:

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

Pablo Fernández
User offline. Last seen 50 weeks 5 days ago. Offline
Joined: 2007-02-20
Posts:

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

Loz56
User offline. Last seen 21 weeks 6 days ago. Offline
Joined: 2012-03-19
Posts:

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: ERROR: Cannot lock down memory area (Cannot allocate memory)
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: ERROR: Cannot use real-time scheduling (RR/10)(1: Operation not permitted)
Wed Mar 21 16:43:47 2012: ERROR: AcquireSelfRealTime error
Wed Mar 21 16:43:52 2012: ERROR: JackProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out
Wed Mar 21 16:43:52 2012: ERROR: Driver is not running
Wed Mar 21 16:43:52 2012: ERROR: Cannot open client name = dbusapi
Wed Mar 21 16:43:52 2012: ERROR: failed to create dbusapi jack client
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".

Pablo Fernández
User offline. Last seen 50 weeks 5 days ago. Offline
Joined: 2007-02-20
Posts:

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.

seablade
User offline. Last seen 8 hours 25 min ago. Offline
Joined: 2007-01-22
Posts:

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
User offline. Last seen 1 year 19 weeks ago. Offline
Joined: 2012-12-10
Posts:

Hi,

I am very new to Ubuntu. I have installed Ardour in my PC. But I am getting the same error which everyone gets that JACK is not getting started. I have tried all the solutions provided. Please help. I tried to start JACK and got this message

17:11:13.052 Patchbay deactivated.
17:11:13.053 Statistics reset.
17:11:13.065 ALSA connection change.
17:11:13.077 D-BUS: Service is available (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
17:11:13.089 ALSA connection graph change.
17:11:14.623 D-BUS: JACK server could not be started. Sorry
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Mon Dec 10 17:11:14 2012: Starting jack server...
Mon Dec 10 17:11:14 2012: JACK server starting in realtime mode with priority 10
Mon Dec 10 17:11:14 2012: ERROR: Cannot lock down 82274202 byte memory area (Cannot allocate memory)
Mon Dec 10 17:11:14 2012: control device hw:0
Mon Dec 10 17:11:14 2012: control device hw:0
Mon Dec 10 17:11:14 2012: ERROR: Failed to acquire device name : Audio0 error : Method "RequestRelease" with signature "i" on interface "org.freedesktop.ReserveDevice1" doesn't exist

Mon Dec 10 17:11:14 2012: ERROR: Audio device hw:0 cannot be acquired...
Mon Dec 10 17:11:14 2012: ERROR: Cannot initialize driver
Mon Dec 10 17:11:14 2012: ERROR: JackServer::Open failed with -1
Mon Dec 10 17:11:14 2012: ERROR: Failed to open server
Mon Dec 10 17:11:16 2012: Saving settings to "/home/suhel/.config/jack/conf.xml" ...
17:17:47.555 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started

paul
paul's picture
User offline. Last seen 14 hours 56 min ago. Offline
Joined: 2006-03-16
Posts:

@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.

muktak
User offline. Last seen 1 year 19 weeks ago. Offline
Joined: 2012-12-10
Posts:

Hi,

Thanks Paul. I did install but the problem persists. I am getting this error now
18:37:51.182 Patchbay deactivated.
18:37:51.196 Statistics reset.
18:37:51.214 ALSA connection change.
18:37:51.229 D-BUS: Service is available (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
18:37:51.237 ALSA connection graph change.
18:37:54.684 D-BUS: JACK server could not be started. Sorry
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Mon Dec 10 18:37:54 2012: Starting jack server...
Mon Dec 10 18:37:54 2012: JACK server starting in realtime mode with priority 10
Mon Dec 10 18:37:54 2012: ERROR: Cannot lock down 82274202 byte memory area (Cannot allocate memory)
Mon Dec 10 18:37:54 2012: control device hw:0
Mon Dec 10 18:37:54 2012: control device hw:0
Mon Dec 10 18:37:54 2012: ERROR: Failed to acquire device name : Audio0 error : Method "RequestRelease" with signature "i" on interface "org.freedesktop.ReserveDevice1" doesn't exist

Mon Dec 10 18:37:54 2012: ERROR: Audio device hw:0 cannot be acquired...
Mon Dec 10 18:37:54 2012: ERROR: Cannot initialize driver
Mon Dec 10 18:37:54 2012: ERROR: JackServer::Open failed with -1
Mon Dec 10 18:37:54 2012: ERROR: Failed to open server
Mon Dec 10 18:37:56 2012: Saving settings to "/home/suhel/.config/jack/conf.xml" ...
18:38:02.161 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started