jack2 icon indicating copy to clipboard operation
jack2 copied to clipboard

Mac OS M1 "Cannot connect to server socket err = No such file or directory"

Open JelleBakker opened this issue 3 years ago • 2 comments

Describe the bug

Jack server cannot be started on M1 macbook.

Environment

  • JACK Version: jackdmp version 1.9.21 tmpdir /tmp protocol 9
  • Operating System: Mac OS 12.6 (M1)
  • Installation: From jackaudio.org (https://github.com/jackaudio/jack2-releases/releases/download/v1.9.21/jack2-macOS-universal-v1.9.21.tar.gz)

Steps To Reproduce

Open QjackCtl, go to Messages.

Expected vs. actual behavior

I expect the JACK server to start but this is printed in Messages:

13:17:06.188 Statistics reset.
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
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

JelleBakker avatar Jan 17 '23 12:01 JelleBakker

Hello, I had the same issue some days ago on macbook pro m4. Looking at the logs it seems that the shell command used to run the jackd server is not adding spaces between argument names and argument values. here are the logs (in the messages tab)

11:28:45.471 /usr/local/bin/jackd -aa -dcoreaudio -D -C"AppleUSBAudioEngine:RODE Microphones:RODE AI-1:86B88917:1,2" -PBuiltInSpeakerDevice
11:28:45.518 JACK was started with PID=74301.
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
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
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

When I run this command /usr/local/bin/jackd -aa -dcoreaudio -D -C"AppleUSBAudioEngine:RODE Microphones:RODE AI-1:86B88917:1,2" -PBuiltInSpeakerDevice adding spaces like that in a terminal aside (notice the spaces between -a a for example) /usr/local/bin/jackd -a a -d coreaudio -D -C "AppleUSBAudioEngine:RODE Microphones:RODE AI-1:86B88917:1,2" -P BuiltInSpeakerDevice there is no issue and I'm able to click on start in qjackctl

I hope this can help.

captain-hak avatar Jan 27 '25 10:01 captain-hak

you need to put a higher timeout in qjackctl for it to work, specially if you get popups asking for microphone access. jack wont properly start until those popups go away, so the qjackctl detection for jack running fails early.

falkTX avatar Jan 27 '25 10:01 falkTX