You are not logged in.

#1 2008-09-04 18:01:06

Army
Member
Registered: 2007-12-07
Posts: 1,784

[solved]jack won't start... :(

Hi there

So here's my first topic in this forum wink

I would love to record some ideas with ardour, but I can't get jack running. I use qjackctl as interface, the settings used to work some weeks ago, when I recorded the last time

I tried both running qjackctl as user and as root

In the status window of qjackctl the following message appears
____
user:

cannot use real-time scheduling (FIFO at priority 10) [for thread -1209411904, from thread -1209411904] (1: Operation not permitted)
cannot create engine
18:51:25.919 JACK was started with PID=4717.
18:51:25.921 JACK was stopped successfully.

I found plenty of things on google about this error message and they all tell me to look deeper into limits.conf, which looks like this here

*               -       rtprio          0
*               -       nice            0
@audio          -       rtprio          99
@audio          -       nice           -10
@audio          -       memlock         unlimited

(the lines above are alle with a # in front)
I'm sure this is right, so where is the mistake?!?!
My groups:

$  id
uid=1000(army666) gid=100(users) Gruppen=91(video),92(audio),93(optical),95(storage),98(power),100(users)

I boot into X with startx, so no login manager is running here. But I've been doing this for many months now and it's always been working perfectly. Here dunc writes about using gdm for login, but I really don't want to use it! Or did anybody find out, that this is necessary??

That's all I know being relevant for this...

____
root:

18:45:43.359 JACK was started with PID=4601.
/dev/shm/jack-0 already exists, but is not a directory!
cannot create server sockets
cannot create engine
18:45:43.449 JACK was stopped successfully.

I found some hints about configuring the fstab. Mine looks like that right at the moment

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/cdrom /media/cdrom   auto    ro,user,noauto,unhide   0      0
/dev/dvd /media/dvd   auto    ro,user,noauto,unhide   0      0
UUID=0f369154-a4e3-4d56-91e0-c210ffd210a3 swap swap defaults 0 0
UUID=9aa27649-0032-456c-9ce3-6328495c5743 /boot ext2 defaults 0 1
UUID=db06b8c6-bd43-477b-b1b3-4e8d7dc96d0f /home jfs defaults 0 1
UUID=e924529e-0369-467c-94f3-ceacaf934f42 / jfs defaults 0 1

I found some lines to be added like

shmfs /dev/shm shm defaults 0 0

or doing something in /dev/shm, as mentioned here, but look:

$  pwd
/dev/shm
$  ls -la
insgesamt 80
drwxrwxrwt  2 root    root     60  4. Sep 18:45 .
drwxr-xr-x 18 root    root      0  4. Sep 18:44 ..
-rw-r--r--  1 army666 users 70712  4. Sep 18:45 jack-shm-registry

Seems to be fine, right?



I don't get it, is there a big bug or am I too blind?

Let's do it like this, if I get it running again with your help, maybe I'll provide a link of my recordings wink Hopefully you won't hate me afterwards tongue But might take a while


Thanx for any help or idea!

Last edited by Army (2008-09-09 20:57:39)

Offline

#2 2008-09-07 01:02:37

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: [solved]jack won't start... :(

Can you get jack to run with

$ jackd -R -d alsa

I haven't used qjackctl in a long time, but somehow I remember those messages..

Offline

#3 2008-09-07 13:14:31

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [solved]jack won't start... :(

Thanx for your answer!

$  jackd -R -d alsa
jackd 0.109.2
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with POSIX SHM support.
cannot use real-time scheduling (FIFO at priority 10) [for thread -1208965440, from thread -1208965440] (1: Operation not permitted)
cannot create engine

whereas

$  jackd -d alsa
jackd 0.109.2
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

JACK compiled with POSIX SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit little-endian
ALSA: use 2 periods for playback

I do not have the right for realtime usage, which has to be set in the limits.conf, right?? But where is the mistake here??

Offline

#4 2008-09-07 20:55:49

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: [solved]jack won't start... :(

Army wrote:

Here dunc writes about using gdm for login, but I really don't want to use it! Or did anybody find out, that this is necessary??

I did eventually manage to fix this, but I can't find any posts where I mention it. I'm fairly sure this turned out to be the answer, but as I say, I don't seem to have said anything in that thread except that the other ideas didn't work for me. hmm

Worth a try. It's easily undone if it doesn't help.


0 Ok, 0:1

Offline

#5 2008-09-08 04:50:15

btartsa
Member
Registered: 2004-07-26
Posts: 222

Re: [solved]jack won't start... :(

Army, is this solved?  If not what kernel are you running?

Offline

#6 2008-09-08 07:30:17

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [solved]jack won't start... :(

Thanx for your answers! I'll try this gdm thing, maybe it is really the solution. Sorry for the delay, there are plenty of things I gotta do these days.
@ btartsa: No it's not solved sad I'm running the rt-kernel from AUR, but updated to 2.6.26 by myself. I'll install the 2.6.25 version again, maybe I made a mistake or maybe it's a bit buggy with that version. We'll see, I want this to be solved, so I'll provide information asap.

Offline

#7 2008-09-08 14:25:02

btartsa
Member
Registered: 2004-07-26
Posts: 222

Re: [solved]jack won't start... :(

One thing I forgot...try installing slim-pam from aur.

Offline

#8 2008-09-08 18:25:21

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: [solved]jack won't start... :(

Army wrote:

I'm running the rt-kernel from AUR, but updated to 2.6.26 by myself. I'll install the 2.6.25 version again, maybe I made a mistake or maybe it's a bit buggy with that version. We'll see, I want this to be solved, so I'll provide information asap.

Have you tried it with the default kernel? I'm running the default arch 2.6.26.3-1 kernel, starting X with startx and have had no problems with realtime and jack. I haven't really dug deeper into the realtime kernel and it's improved capabilities, but atleast ardour and jack are working together well enough for me with the default kernel.

Cheers

Offline

#9 2008-09-08 18:38:28

btartsa
Member
Registered: 2004-07-26
Posts: 222

Re: [solved]jack won't start... :(

Perhaps jack svn version may help?

http://www.google.com/codesearch?hl=en& … n/PKGBUILD

Offline

#10 2008-09-08 19:57:43

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [solved]jack won't start... :(

I'm so thankful guys, you rock like I want to rock in ardour big_smile
But I couldn't test it today (sitting on a Windoze machine right now, uuuuargh wink ) I hope I can do it tomorrow!
@sm4tik: Yes I have tried it with arch stock kernel as well, but realtime never worked with that one, way too many xruns. And right now it doesn't work as well.
@btartsa: That sounds very good, I'll definitely give it a try, both hints. Thanx very much! I hope the compilation runs for me wink

Offline

#11 2008-09-09 04:28:09

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: [solved]jack won't start... :(

Army: Just out of interest I compiled the rt kernel editing the PKGBUILD to reflect the latest version (2.6.26.3) and jack is still starting as supposed to. Thought I'd let you know so you can assume it's not the kernel. Hope you find a way to get that jack working soon!

Offline

#12 2008-09-09 09:24:17

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [solved]jack won't start... :(

Thanx! I had it running with 2.6.26 as well, but as mentioned, I did a reinstall of my system and accidently lost the PKGBUILD and other build files, so I had to rewrite them and there might have been a mistake. But I really don't think so. This evening I really want to try out all your tips, thanks again for your patience and still providing tips, I really begin to love this forum! If I make it working, I'll start recording as soon as I can and promised is promised (see end of 1. post wink )

Offline

#13 2008-09-09 13:20:35

ss2
Member
Registered: 2007-10-05
Posts: 83

Re: [solved]jack won't start... :(

Hi, what about publishing your PKGBUILD for the 2.6.26 realtime kernel?
I'm trying to update it myself, but it just fails when it patches.

However, the standard Arch kernel seems to be even realtime ready. So it is just a matter if a user is in a particular group or does pam need a bit of more hacking?

Hopefully nobody asumes that I'm kind of hijacking this thread. wink
But it does fit to the problems around jack.

Regards,
Simon

Offline

#14 2008-09-09 19:54:41

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [solved]jack won't start... :(

Hell yeah!!! I installed slim-pam and it works when using it as login manager smile Thank you all for helping me! At least I can do some recordings now smile (as soon as I have my own soundcard, can't use my brother's anymore sad ) But still I would love to keep doing without a login manager, so the next question is, what does slim-pam to make it work? Anybody any idea?

Offline

#15 2008-09-09 20:27:15

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: [solved]jack won't start... :(

Seriously, I'm 99% sure that the solution I linked to worked for me, although I didn't say so at the time:

Add

session        required    pam_limits.so

to /etc/pam.d/su.


0 Ok, 0:1

Offline

#16 2008-09-09 20:56:52

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [solved]jack won't start... :(

Make a +1, so you are at 100% ... Of course that's the trick ... Sorry I totally forgot your post, was totally fixed on trying these login managers. This thread is completely solved smile But one thing left: Should this line be added to /etc/pam.d/su by default or not? File a bug or not?

So, now I do have to do some recording for you ... Let's start with an older one of my side project wink

www.unstucc.de/myspace/3.Song.mp3

Have fun! big_smile

Offline

#17 2008-09-09 21:57:22

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: [solved]jack won't start... :(

Army wrote:

Make a +1, so you are at 100% ... Of course that's the trick ... Sorry I totally forgot your post, was totally fixed on trying these login managers. This thread is completely solved smile But one thing left: Should this line be added to /etc/pam.d/su by default or not? File a bug or not?

I honestly have no idea. I mean, everything else seems to work without it, and so does jack if you use GDM or KDM. I don't know enough about PAM to know what it does, other than "makes jack work for me". wink

So, now I do have to do some recording for you ... Let's start with an older one of my side project wink

www.unstucc.de/myspace/3.Song.mp3

Have fun! big_smile

Cool. Not my sort of thing, really, but I'm always amazed at what you can do with a home PC these days. It's not all that long since the very best you could hope for at home was a little 4-track cassette recorder.


0 Ok, 0:1

Offline

#18 2008-09-09 22:08:48

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [solved]jack won't start... :(

dunc wrote:

It's not all that long since the very best you could hope for at home was a little 4-track cassette recorder.

That's very true! But the coolest thing is, I'm not much of an expert in audio production, this track was more like really fast recorded, mixed down so it sounds ok and the drumming was also a thing of about half an hour. But still it sounds better than many lowest-budget-productions of some pseudo-professionals here where I live, who use (cracked) Logic and (cracked) plugins of Steinberg etc and I'm with ardour, caps and hydrogen and audacity to pitch down my guitar to sound like a bass guitar, just much worse big_smile Pretty cool thing!

Last edited by Army (2008-09-09 22:09:41)

Offline

#19 2008-09-09 22:41:16

btartsa
Member
Registered: 2004-07-26
Posts: 222

Re: [solved]jack won't start... :(

Glad you got fixed up Army...I like the drop D tuned sludge rock! I assume that the patch to slim achives the same effect as dunc's fix...just by different methods.

Slim.pam patch --->>

#%PAM-1.0
auth            requisite       pam_nologin.so
auth            required        pam_env.so
auth            required        pam_unix.so
auth            optional        pam_gnome_keyring.so
account         required        pam_unix.so
session         required        pam_limits.so
session         required        pam_unix.so
session         optional        pam_gnome_keyring.so  auto_start
password        required        pam_unix.so

Last edited by btartsa (2008-09-09 22:43:39)

Offline

#20 2008-09-10 03:01:04

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: [solved]jack won't start... :(

Hells jea!
The first thought after waking up was a cup of coffee and right after came this thread (like I didn't have anything more important to think about..;) ) Now that the problem seems to be that pam thing, I wonder which package has allready added that line to my /etc/pam.d/su and if Army had it working earlier, was there an update which removed that line?
Army: nice job with that song, hope you get it recorded some day with the band too! Not get off track too much but you might want to check out my friend's band at http://www.myspace.com/elenium , might make your problem solving a bit less of a pain next time wink

EDIT:
ss2: Here's the first few lines of the PKGBUILD I used, didn't touch the rest of it.

pkgname=kernel26rt
pkgver=2.6.26.3_rt7
pkgrel=1

_basekernel=2.6.26
_basever=2.6.26        # actual basekernel eg. for rc builds
_kernpatchset=.3    # upstream patch version
_patchver=-rt7        # rt patch version
_localver=-rt        # append to linux ver eg. 2.6.25-rt
_archver=rt        # append to archlinux ver eg. kernel26rt

Last edited by sm4tik (2008-09-10 03:50:35)

Offline

#21 2008-09-10 07:13:29

ss2
Member
Registered: 2007-10-05
Posts: 83

Re: [solved]jack won't start... :(

thanks :)

Offline

#22 2008-09-10 08:49:14

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [solved]jack won't start... :(

Thanks for the comments about this little piece of crappy music wink Let's see, I think I'll do some recording today of a songidea of my main band (the song above is my side-project, just for fun), maybe some like it more, it's not as frantic as this one.

Offline

Board footer

Powered by FluxBB