[ecasound] JACK connection error in php scripts

From: William Goldsmith <bill@email-addr-hidden>
Date: Sun Feb 28 2010 - 04:16:13 EET

Hi again,

I'm still trying to successfully port my application over to Mac OSX.
I have just about everything working, except for a very odd error.
Currently all of my scripts that call ecasound work fine from a
terminal window, but when I run them from a browser I get the
following error from ecasound:

ConnectPort: can't find mach server port name = jackdmp_entry.
503_default err = unknown error code
Cannot connect to server Mach port
jack server is not running or cannot be started

Jackd *is* running. I can dump the exact ecasound command line that
the script is running, and it works fine in a terminal window. The
same script, run via command-line php, works fine.

All of the jack binaries have been copied to /usr/bin (from /usr/local/
bin) so that they'll be in apache's default path (tried symlinking
first). They have the appropriate permissions & ownership.

Apache is running as a fully privileged user (the same user as the
console). The php exec() function successfully finds & runs the
ecasound binary, which is also located in /usr/bin.

Here's a complete dump of ecasound's output:

(libkvutils) kvu_rtcaps: warning! sched_getparam() not supported
********************************************************************************
* ecasound v2.7.1 (C) 1997-2009 Kai Vehmanen and others
********************************************************************************
(eca-chainsetup-parser) Setting buffersize to (samples) 2048.
(eca-chainsetup) Chainsetup "untitled-chainsetup"
jack_client_new: deprecated
ConnectPort: can't find mach server port name = jackdmp_entry.
503_default err = unknown error code
Cannot connect to server Mach port
jack server is not running or cannot be started
(eca-chainsetup) NOTE: Real-time configuration, but insufficient
privileges to utilize real-time scheduling (SCHED_FIFO). With small
buffersizes, this may cause audible glitches during processing.
(eca-chainsetup) "rt" buffering mode selected.
(eca-chainsetup) Opened input "/audio/music/34628.mp3", mode "read".
Format: s16_le, channels 2, srate 44100, interleaved (locked params).
jack_client_new: deprecated
ConnectPort: can't find mach server port name = jackdmp_entry.
503_default err = unknown error code
Cannot connect to server Mach port
jack server is not running or cannot be started
jack_client_new: deprecated
ConnectPort: can't find mach server port name = jackdmp_entry.
503_default err = unknown error code
Cannot connect to server Mach port
jack server is not running or cannot be started
jack_client_new: deprecated
ConnectPort: can't find mach server port name = jackdmp_entry.
503_default err = unknown error code
Cannot connect to server Mach port
jack server is not running or cannot be started
jack_client_new: deprecated
ConnectPort: can't find mach server port name = jackdmp_entry.
503_default err = unknown error code
Cannot connect to server Mach port
jack server is not running or cannot be started
jack_client_new: deprecated
ConnectPort: can't find mach server port name = jackdmp_entry.
503_default err = unknown error code
Cannot connect to server Mach port
jack server is not running or cannot be started
jack_client_new: deprecated
ConnectPort: can't find mach server port name = jackdmp_entry.
503_default err = unknown error code
Cannot connect to server Mach port
jack server is not running or cannot be started
jack_client_new: deprecated
ConnectPort: can't find mach server port name = jackdmp_entry.
503_default err = unknown error code
Cannot connect to server Mach port
jack server is not running or cannot be started
jack_client_new: deprecated
ConnectPort: can't find mach server port name = jackdmp_entry.
503_default err = unknown error code
Cannot connect to server Mach port
jack server is not running or cannot be started
(audioio_jack_manager) Error! Cannot connect to JACK server!
ERROR: Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-
JACK: Unable to open JACK-client"

-----
Bill Goldsmith
Radio Paradise
www.radioparadise.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Sun Feb 28 16:15:04 2010

This archive was generated by hypermail 2.1.8 : Sun Feb 28 2010 - 16:15:04 EET