Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Failed to connect to JACK audio server

  1. #1
    Join Date
    Nov 2009
    Location
    Vancouver, Canada
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    Unhappy Failed to connect to JACK audio server

    Hi, Im a composer and I loaded up on some excellent applications for music creation and notation- so excited.. buuuuuuuut......
    I start with Rosegarden....
    Failed to connect to JACK audio server.
    Try my other applications, same problem.
    Basically the JACK audio server just WILL NOT RUN (correctly).
    I can sudo it and press start, but still it wont "play with" the applications!
    Heres the error message from JACK (I also get related errors when I try to do ANYTHING involving music creation):

    error JACK Audio Connection Kit
    -overall operation failed
    -unable to connect to server


    Here is the "fatal error" from MusE
    "Failed to Find Jack Audio Server"

    This is the JACK output:
    p, li { white-space: pre-wrap; } 13:41:14.232 Patchbay deactivated.
    13:41:14.269 Statistics reset.
    13:41:14.330 Startup script...
    13:41:14.331 artsshell -q terminate
    13:41:14.334 ALSA connection graph change.
    sh: artsshell: not found
    13:41:14.747 Startup script terminated with exit status=32512.
    13:41:14.753 JACK is starting...
    13:41:14.754 /usr/bin/jackd -R -P60 -p128 -dalsa -dhw:0 -r44100 -p128 -n3 -s -m -S -Xraw -H -M
    13:41:14.782 JACK was started with PID=21456.
    no message buffer overruns
    jackd 0.116.1
    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 System V SHM support.
    loading driver ..
    apparent rate = 44100
    creating alsa driver ... hw:0|hw:0|128|3|44100|0|0|hwmon|hwmeter|soft-mode|16bit
    control device hw:0
    13:41:14.985 ALSA connection change.
    configuring for 44100Hz, period = 128 frames (2.9 ms), buffer = 3 periods
    ALSA: final selected sample format for capture: 16bit little-endian
    ALSA: use 3 periods for capture
    ALSA: final selected sample format for playback: 16bit little-endian
    ALSA: use 3 periods for playback
    13:41:17.003 Server configuration saved to "/home/drew/.jackdrc".
    13:41:17.005 Statistics reset.
    13:41:17.057 Client activated.
    13:41:17.059 JACK connection change.
    13:41:17.073 JACK connection graph change.

    Thats if I run sudo qjackctl otherwise it wont even start when invoked by applications-
    the above looks like its working but when I open a prog theres always an error.

    And only if I QUIT JACK then I can get sound from rosegarden- (??)
    BUT only the most basic MIDI piano, not loading any soundfonts
    (or what they are called in linux)

    Any ideas? I would love to have this working and I've spent my only day off trying everything I can find online- no help.

    • Does the above info tell you anything?
    • How should the settings be?

    Thank you very very much!!!!!!!

  2. #2
    Join Date
    Nov 2009
    Beans
    1,879
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: Failed to connect to JACK audio server

    You have made a good start, but you should never run jack or any other program as root. This is likely why you are having connection problems.
    Try running jack normally and post the output of the message window. Soundfonts on linux are called soundfonts, and there is support for the sf2 format.

  3. #3
    Join Date
    Nov 2009
    Location
    Vancouver, Canada
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Failed to connect to JACK audio server

    Quote Originally Posted by cchhrriiss121212 View Post
    You have made a good start, but you should never run jack or any other program as root. This is likely why you are having connection problems.
    Try running jack normally and post the output of the message window. Soundfonts on linux are called soundfonts, and there is support for the sf2 format.
    Ok- so clicking on JACKJACK Audio Connection Kit)
    again the error: ( from the JACK kit )
    Could not connect to JACK server from client
    -Overall Operation Failed
    -Unable to Connect to Server

    output: p, li { white-space: pre-wrap; } 16:02:31.509 Patchbay deactivated.
    16:02:31.577 Statistics reset.
    16:02:31.631 Startup script...
    16:02:31.632 artsshell -q terminate
    16:02:31.659 ALSA connection graph change.
    sh: artsshell: not found
    16:02:32.126 Startup script terminated with exit status=32512.
    16:02:32.127 JACK is starting...
    16:02:32.127 /usr/bin/jackd -R -P60 -p128 -dalsa -dhw:0 -r44100 -p128 -n3 -s -m -S -Xraw -H -M
    no message buffer overruns
    jackd 0.116.1
    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 System V SHM support.
    cannot use real-time scheduling (FIFO at priority 10) [for thread -1216997696, from thread -1216997696] (1: Operation not permitted)
    cannot create engine
    16:02:32.276 JACK was started with PID=23495.
    16:02:32.279 JACK was stopped successfully.
    16:02:32.279 Post-shutdown script...
    16:02:32.279 killall jackd
    16:02:32.330 ALSA connection change.
    jackd: no process found
    16:02:32.690 Post-shutdown script terminated with exit status=256.
    16:02:34.345 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.

    Also- In a maybe related error, maybe not- I cannot start rosegarden from anything but terminal sudo, clicking on it, nothing happens- if I go to term and type rosegarden I get this:
    drew@drew-laptop:~$ rosegarden
    kdeinit: Aborting. No write access to '/home/drew/.ICEauthority'.
    drew@drew-laptop:~$

    I have NO idea why I wouldnt have write access to a home file (?)
    IF I sudo rosegarden then I get 1) Failed to connect to JACK audio server from rosegarden &
    2) in terminal this output:
    drew@drew-laptop:~$ sudo rosegarden
    [sudo] password for drew:
    Error: "/tmp/kde-drew" is owned by uid 1000 instead of uid 0.
    Error: "/tmp/ksocket-drew" is owned by uid 1000 instead of uid 0.
    Error: "/tmp/ksocket-drew" is owned by uid 1000 instead of uid 0.
    Error: "/tmp/kde-drew" is owned by uid 1000 instead of uid 0.
    kbuildsycoca running...
    Error: "/var/tmp/kdecache-drew" is owned by uid 1000 instead of uid 0.
    Reusing existing ksycoca
    Error: "/tmp/kde-drew" is owned by uid 1000 instead of uid 0.
    Error: "/var/tmp/kdecache-drew" is owned by uid 1000 instead of uid 0.
    Error: "/var/tmp/kdecache-drew" is owned by uid 1000 instead of uid 0.
    drew@drew-laptop:~$ PluginFactory::instance(dssi): creating new DSSIPluginFactory
    LADSPAPluginFactory::discoverPlugins - discovering plugins; path is [/home/drew/.dssi] [/usr/local/lib/dssi] [/usr/lib/dssi]
    Suspending PulseAudio
    Error: "/tmp/kde-drew" is owned by uid 1000 instead of uid 0.
    Rosegarden 1.7.3 - AlsaDriver [ALSA library version 1.0.18, module version 1.0.20, kernel version 2.6.31-14-generic]

    JackDriver::initialiseAudio - JACK server not running

    ALSA Client information:

    14,0 - (Midi Through, Midi Through Port-0) (DUPLEX) [ctype 2, ptype 655362, cap 99]
    132,0 - (TiMidity, TiMidity port 0) (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    132,1 - (TiMidity, TiMidity port 1) (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    132,2 - (TiMidity, TiMidity port 2) (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    132,3 - (TiMidity, TiMidity port 3) (WRITE ONLY) [ctype 1, ptype 2, cap 66]

    CREATED OUTPUT PORT 3ut 1 - MIDI software device for device 0
    Connecting my port 3 to 132:0 on initialisation
    done
    Creating device 0 in Play mode for connection 132:0 TiMidity port 0 (write)
    Default device name for this device is MIDI software device
    CREATED OUTPUT PORT 4ut 2 - MIDI software device 2 for device 1
    Connecting my port 4 to 132:1 on initialisation
    done
    Creating device 1 in Play mode for connection 132:1 TiMidity port 1 (write)
    Default device name for this device is MIDI software device 2
    CREATED OUTPUT PORT 5ut 3 - MIDI software device 3 for device 2
    Connecting my port 5 to 132:2 on initialisation
    done
    Creating device 2 in Play mode for connection 132:2 TiMidity port 2 (write)
    Default device name for this device is MIDI software device 3
    CREATED OUTPUT PORT 6ut 4 - MIDI software device 4 for device 3
    Connecting my port 6 to 132:3 on initialisation
    done
    Creating device 3 in Play mode for connection 132:3 TiMidity port 3 (write)
    Default device name for this device is MIDI software device 4
    CREATED OUTPUT PORT 7ut 5 - MIDI output system device for device 4
    done
    Creating device 4 in Play mode for connection 14:0 Midi Through Port-0 (duplex) (not connecting)
    Default device name for this device is MIDI output system device
    Creating device 5 in Record mode for connection 14:0 Midi Through Port-0 (duplex) (not connecting)
    Default device name for this device is MIDI input system device
    AlsaDriver::setCurrentTimer((auto))
    extractVersion: major = 1, minor = 0, subminor = 20, suffix = ""
    AlsaDriver::versionIsAtLeast: is version 1.0.20 at least 1.0.14? yes
    extractVersion: major = 2, minor = 6, subminor = 31, suffix = "generic"
    AlsaDriver::versionIsAtLeast: is version 2.6.31-14-generic at least 2.6.20? yes
    Using low-resolution system timer, sending a warning
    Current timer set to "system timer"
    WARNING: using system timer with only 250Hz resolution!
    AlsaDriver::initialiseMidi - initialised MIDI subsystem

    AlsaDriver::setCurrentTimer((auto))
    extractVersion: major = 1, minor = 0, subminor = 20, suffix = ""
    AlsaDriver::versionIsAtLeast: is version 1.0.20 at least 1.0.14? yes
    extractVersion: major = 2, minor = 6, subminor = 31, suffix = "generic"
    AlsaDriver::versionIsAtLeast: is version 2.6.31-14-generic at least 2.6.20? yes
    Using low-resolution system timer, sending a warning
    Current timer set to "system timer"
    WARNING: using system timer with only 250Hz resolution!
    Error: "/var/tmp/kdecache-drew" is owned by uid 1000 instead of uid 0.
    Composition::getTrackById(0) - WARNING - track id not found, this is probably a BUG /build/buildd/rosegarden-1.7.3/src/base/Composition.cpp:1533
    Available track ids are:
    Renaming device 0 to General MIDI Device
    Renamed 129:3 to General MIDI Device
    LADSPAPluginFactory::discoverPlugins - done
    CompositionModelImpl::slotInstrumentParametersChan ged()
    Error: "/tmp/kde-drew" is owned by uid 1000 instead of uid 0.
    RosegardenGUIApp::awaitDialogClearance: entering
    RosegardenGUIApp::awaitDialogClearance: exiting
    Rosegarden: WARNING: No accurate sequencer timer available
    RosegardenGUIApp::awaitDialogClearance: entering
    PluginFactory::instance(ladspa): creating new LADSPAPluginFactory
    LADSPAPluginFactory::discoverPlugins - discovering plugins; path is [/home/drew/.ladspa] [/usr/local/lib/ladspa] [/usr/lib/ladspa]

    ALSA Client information:

    14,0 - (Midi Through, Midi Through Port-0) (DUPLEX) [ctype 2, ptype 655362, cap 99]
    132,0 - (TiMidity, TiMidity port 0) (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    132,1 - (TiMidity, TiMidity port 1) (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    132,2 - (TiMidity, TiMidity port 2) (WRITE ONLY) [ctype 1, ptype 2, cap 66]
    132,3 - (TiMidity, TiMidity port 3) (WRITE ONLY) [ctype 1, ptype 2, cap 66]

    LADSPAPluginFactory::discoverPlugins - done

    I know thats alot of data to throw at you- but does that mean anything to you?? :S

  4. #4
    Join Date
    Nov 2009
    Location
    Vancouver, Canada
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Failed to connect to JACK audio server

    Other thing: all applications have some kind of problem accessing JACK or jackd
    In "ardour" I get this error:
    [ERROR]: cannot open JACK rc file /home/drew/.jackdrc to store parameters
    Why is jack not 'working' and why can it not be opened??
    I tried reinstalling it, but no change.

  5. #5
    Join Date
    Nov 2009
    Location
    Vancouver, Canada
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Failed to connect to JACK audio server

    I chmod'd my ICE file and it seeeeeeeems to be ok now, it was probably because I ran jack from sudo instead of gtksudo ( locked JACK as a root-only access process or something like that. )
    Thanks for the help!

  6. #6
    Join Date
    Nov 2009
    Beans
    1,879
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: Failed to connect to JACK audio server

    Once again: do not run things as root, that means do not use sudo/gtksudo for apps.
    In order to get jack working you need to edit a system file so you can use realtime priority, this is normal. Try this:
    Code:
    sudo gedit /etc/security/limits.conf
    and add this at the bottom:
    @audio - rtprio 99
    @audio - memlock unlimited

    Note: the file has changed between karmic and lucid, if you have upgraded the file to edit is now /etc/security/limits.d/audio.conf

    This guide will be of further reference for you if you want to install an rt kernel (very useful for low latency audio), or other audio stuff.

  7. #7
    Join Date
    Nov 2009
    Location
    Vancouver, Canada
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Failed to connect to JACK audio server

    OK~ I'll definitely try what you described, I need the help!
    I still have a few HUGE problems as far as music composition goes.

    • JACK still will not run ( eg. the server just won't go! )


    • When running Rosegarden I can not access the Qsynth/Fluidsynth or any soundfonts anymore!
    • In the "manage MIDI devices" menu it now shows ONLY one "General Midi Device" -thats all, and I do not know where to/how to get access to qsynth/fluidsynth to use soundfonts
    • also- if you happen to know: how do I use a software synth like the gorgeous sounding ZynAddSubFX software synth? Or better put: how do I assign a rosegarden track to put its midi out through the synth so I can get those great sounds in rosegarden instead of basic GM?
    • In manage midi devices I ONLY get the option of "general midi" and then its only through 14:0 Midi through port 0 (duplex) and no other channels are available!
    • If I import one of the devices that come with rosegarden ( like Aleisis ) there is no sound.

    Ok cchhrriiss121212 thank you SO much for your help- and I dont expect you to answer ALL these questions- I'm just laying it out there to see if it gives you any ideas!
    Thanks 10000000000000000001!!!

  8. #8
    Join Date
    Nov 2009
    Beans
    1,879
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: Failed to connect to JACK audio server

    First step is to get jack going, after that all other problems should be a breeze (relatively). I'm not much of a Rosegarden expert but I should be able to get it going for you.
    One step I forgot to mention earlier is to add yourself to the audio group, to do so, go to System>Users & Groups. Once you've done that and edited the file mentioned above, start jack again and post what the message window says.

  9. #9
    Join Date
    Jul 2010
    Beans
    8

    Re: Failed to connect to JACK audio server

    HI! i have the same problem and maybe you could help I'd really appreciate it. I've been having trouble with Jackd ever since I installed it but now I've selected linux RT in the grub menu and it won't open at all, either on its own or with Ardour or anything. I don't know exactly when it stopped opening completely. I've installed ubuntu studio too. in the messages window it says 'cannot use real-time scheduling'. and if I try and open it using terminal window it says


    usage: jackd [ --realtime OR -R [ --realtime-priority OR -P priority ] ]
    [ --name OR -n server-name ]
    [ --no-mlock OR -m ]
    [ --unlock OR -u ]
    [ --timeout OR -t client-timeout-in-msecs ]
    [ --port-max OR -p maximum-number-of-ports]
    [ --debug-timer OR -D ]
    [ --verbose OR -v ]
    [ --clocksource OR -c [ c(ycle) | h(pet) | s(ystem) ]
    [ --replace-registry OR -r ]
    [ --silent OR -s ]
    [ --version OR -V ]
    [ --nozombies OR -Z ]
    -d backend [ ... backend args ... ]
    The backend can be `alsa', `coreaudio', `dummy',
    `freebob', `oss', `sun', or `portaudio'.

    jackd -d backend --help
    to display options for each backend
    it also says 'cannot open jack server as client' or whatever that is, when I try to open ardour. I followed your advice about changing that file. i'd be so grateful if you could help!

  10. #10
    Join Date
    Nov 2009
    Beans
    1,879
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: Failed to connect to JACK audio server

    Are you using 9.10 or 10.04? Note the earlier post shows you need to edit a different file for each one.
    Did you add yourself to the audio group?
    Typing jackd into a terminal does not launch it, as you need to enter a few parameters, but you should not need to use the terminal for this anyway.
    Ardour always needs jack to be open and running before it is launched.
    If you still get the error from the message window then please post your jack settings.

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •