Hi people,
I am a exact new to raspi and I am developing an installation using puredata on my paspi 5 device with HiFi Berry DAC + ADC as the soundcard.
After struggling the whole afternoon to make the system recognise the soundcard, now it is finally to play any audio with a media player. However when I tried to run puredata, it shows the following text:
opened alsa MIDI client 129 in:1 out:1
JACK: couldn’t connect to the server, is JACK running?
i re-ran the patchbox wizard to set up the jack server, it says “the jack server is busy or the settings provided are not supported by your sound card”
also when i run “sudo systemctl status jack” it shows
× jack.service - JACK Server
Loaded: loaded (/lib/systemd/system/jack.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Wed 2024-08-21 16:51:13 CEST; 1min 15s ago
Duration: 125ms
Process: 2917 ExecStart=/etc/jackdrc (code=exited, status=255/EXCEPTION)
Main PID: 2917 (code=exited, status=255/EXCEPTION)
CPU: 121ms
Aug 21 16:51:13 patchbox systemd[1]: jack.service: Scheduled restart job, restart counter is at 5.
Aug 21 16:51:13 patchbox systemd[1]: Stopped jack.service - JACK Server.
Aug 21 16:51:13 patchbox systemd[1]: jack.service: Start request repeated too quickly.
Aug 21 16:51:13 patchbox systemd[1]: jack.service: Failed with result ‘exit-code’.
Aug 21 16:51:13 patchbox systemd[1]: Failed to start jack.service - JACK Server.
Does anyone know how do i solve it, it kinda emergent for me to complete this project tho:( BIG THANKS
If you have installed some software, it might be conflicting with Jack server by taking exclusive control of the sound card.
What settings did you use for Jack?
Try journalctl -u jack
to see more output by Jack.
Sorry I am an exact newbie and I might have no clue about what settings I use for jack… I did remember during the fresh start of the system when it didn’t recognize my sound card yet, it failed setting up the jack settings so I skipped that part.
Do you know how I could check that?
Also I tried the command you suggested and it shows:
Aug 21 14:52:16 peishan systemd[1]: Started jack.service - JACK Server. Aug 21 14:52:16 peishan jackdrc[783]: Failed to create secure directory (/nonexistent/.config/pulse): No such file or directory Aug 21 14:52:16 peishan jackdrc[783]: jackdmp 1.9.21 Aug 21 14:52:16 peishan jackdrc[783]: Copyright 2001-2005 Paul Davis and others. Aug 21 14:52:16 peishan jackdrc[783]: Copyright 2004-2016 Grame. Aug 21 14:52:16 peishan jackdrc[783]: Copyright 2016-2022 Filipe Coelho. Aug 21 14:52:16 peishan jackdrc[783]: jackdmp comes with ABSOLUTELY NO WARRANTY Aug 21 14:52:16 peishan jackdrc[783]: This is free software, and you are welcome to redistribute it Aug 21 14:52:16 peishan jackdrc[783]: under certain conditions; see the file COPYING for details Aug 21 14:52:16 peishan jackdrc[783]: JACK server starting in realtime mode with priority 95 Aug 21 14:52:16 peishan jackdrc[783]: self-connect-mode is “Don’t restrict self connect requests” Aug 21 14:52:16 peishan jackdrc[783]: creating alsa driver … hw:pisound|hw:pisound|128|2|48000|0|0|nomon|swmeter|soft-mode|16bit Aug 21 14:52:16 peishan jackdrc[783]: ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for pisound Aug 21 14:52:16 peishan jackdrc[783]: control open “hw:pisound” (No such device) Aug 21 14:52:16 peishan jackdrc[783]: ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for pisound Aug 21 14:52:16 peishan jackdrc[783]: ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for pisound Aug 21 14:52:16 peishan jackdrc[783]: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode Aug 21 14:52:16 peishan jackdrc[783]: Cannot initialize driver Aug 21 14:52:16 peishan jackdrc[783]: JackServer::Open failed with -1 Aug 21 14:52:16 peishan jackdrc[783]: Failed to open server Aug 21 14:52:17 peishan systemd[1]: jack.service: Main process exited, code=exited, status=255/EXCEPTION Aug 21 14:52:17 peishan systemd[1]: jack.service: Failed with result ‘exit-code’. Aug 21 14:52:18 peishan systemd[1]: jack.service: Scheduled restart job, restart counter is at 1. Aug 21 14:52:18 peishan systemd[1]: Stopped jack.service - JACK Server. Aug 21 14:52:18 peishan systemd[1]: Started jack.service - JACK Server. Aug 21 14:52:18 peishan jackdrc[978]: Failed to create secure directory (/nonexistent/.config/pulse): No such file or directory Aug 21 14:52:18 peishan jackdrc[978]: jackdmp 1.9.21 Aug 21 14:52:18 peishan jackdrc[978]: Copyright 2001-2005 Paul Davis and others. Aug 21 14:52:18 peishan jackdrc[978]: Copyright 2004-2016 Grame. Aug 21 14:52:18 peishan jackdrc[978]: Copyright 2016-2022 Filipe Coelho. Aug 21 14:52:18 peishan jackdrc[978]: jackdmp comes with ABSOLUTELY NO WARRANTY Aug 21 14:52:18 peishan jackdrc[978]: This is free software, and you are welcome to redistribute it Aug 21 14:52:18 peishan jackdrc[978]: under certain conditions; see the file COPYING for details Aug 21 14:52:18 peishan jackdrc[978]: JACK server starting in realtime mode with priority 95 Aug 21 14:52:18 peishan jackdrc[978]: self-connect-mode is “Don’t restrict self connect requests” Aug 21 14:52:18 peishan jackdrc[978]: creating alsa driver … hw:pisound|hw:pisound|128|2|48000|0|0|nomon|swmeter|soft-mode|16bit Aug 21 14:52:18 peishan jackdrc[978]: ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for pisound Aug 21 14:52:18 peishan jackdrc[978]: control open “hw:pisound” (No such device) Aug 21 14:52:18 peishan jackdrc[978]: ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for pisound Aug 21 14:52:18 peishan jackdrc[978]: ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for pisound Aug 21 14:52:18 peishan jackdrc[978]: ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode Aug 21 14:52:18 peishan jackdrc[978]: Cannot initialize driver Aug 21 14:52:18 peishan jackdrc[978]: JackServer::Open failed with -1 Aug 21 14:52:18 peishan jackdrc[978]: Failed to open server Aug 21 14:52:18 peishan systemd[1]: jack.service: Main process exited, code=exited, status=255/EXCEPTION Aug 21 14:52:18 peishan systemd[1]: jack.service: Failed with result ‘exit-code’. Aug 21 14:52:19 peishan systemd[1]: jack.service: Scheduled restart job, restart counter is at 2. Aug 21 14:52:19 peishan systemd[1]: Stopped jack.service - JACK Server. Aug 21 14:52:19 peishan systemd[1]: Started jack.service - JACK Server. Aug 21 14:52:19 peishan jackdrc[980]: Failed to create secure directory (/nonexistent/.config/pulse): No such file or directory Aug 21 14:52:19 peishan jackdrc[980]: jackdmp 1.9.21 Aug 21 14:52:19 peishan jackdrc[980]: Copyright 2001-2005 Paul Davis and others. Aug 21 14:52:19 peishan jackdrc[980]: Copyright 2004-2016 Grame. Aug 21 14:52:19 peishan jackdrc[980]: Copyright 2016-2022 Filipe Coelho. Aug 21 14:52:19 peishan jackdrc[980]: jackdmp comes with ABSOLUTELY NO WARRANTY Aug 21 14:52:19 peishan jackdrc[980]: This is free software, and you are welcome to redistribute it lines 1-56
Looks a bit messed up tho lol
This is how it looked like in my puredata btw
Run patchbox
, enter the jack
menu and reconfigure it.
Oh btw I didn’t install any other softwares other than the default softwares installed already in my patchbox os