Subsonic jukebox mode not working

General discussions.

Moderator: moderators

Subsonic jukebox mode not working

Postby axellec » Tue Jun 07, 2022 7:23 am

I want Subsonic, installed on a RPi 4, to play on a small Hifi connected to it (through audio jack). This is apparently what the jukebox mode does, but it is not working :(

Note: I am starting a new thread, because there are significant modifications to the original question/thread.

  • It is Subsonic 6.1.6 (build 0cfa60), running on a dedicated RPi4.
  • I have tested that sound output : speaker-test works, and outputs sound correctly through the Hifi.
    Code: Select all
    speaker-test -c2 -twav -l7
  • I noticed that jukebox: javax.sound.sampled.LineUnavailableException in the logs. Searching for this issue, I found that it was often caused when using OpenJDK rather than Oracle's Java. So, I uninstalled OpenJDK 8 and am now using Oracle Java 8. The error has disappeared.
  • I also used to have a complain that directory /home/subsonic/.config did not exist. That's because I had created subsonic user without homedir. I added one, and the error disappeared.

However, jukebox still does not work: no sound. Unfortunately, no specific error in the logs either... I have selected "User is allowed to play files in jukebox mode" in the Settings for that user + in the Player settings, for that user I have Jukebox selected. (by the way, the dropdown menu to select the user is, IMHO, not intuitive, because when your user is admin, you can modify settings for other users...).

Also, since I moved to Oracle Java, using aplay does not work any longer: no output. It used to work before. I have no error however.

Code: Select all
$ aplay -v /usr/share/sounds/alsa/Front_Left.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
ALSA <-> PulseAudio PCM I/O Plugin
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 1
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 24000
  period_size  : 6000
  period_time  : 125000
  tstamp_mode  : NONE
  tstamp_type  : GETTIMEOFDAY
  period_step  : 1
  avail_min    : 6000
  period_event : 0
  start_threshold  : 24000
  stop_threshold   : 24000
  silence_threshold: 0
  silence_size : 0
  boundary     : 1572864000


This is what aplay -L outputs:

Code: Select all
aplay -L
default
    Playback/recording through the PulseAudio sound server
null
    Discard all samples (playback) or generate zero samples (capture)
jack
    JACK Audio Connection Kit
pulse
    PulseAudio Sound Server
sysdefault:CARD=Headphones
    bcm2835 Headphones, bcm2835 Headphones
    Default Audio Device
dmix:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct sample mixing device
dsnoop:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct sample snooping device
hw:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct hardware device without any conversions
plughw:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Hardware device with all software conversions
usbstream:CARD=Headphones
    bcm2835 Headphones
    USB Stream Output


This is my version of pulseaudio:

Code: Select all
pulseaudio -v
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: Permission denied
I: [pulseaudio] main.c: This is PulseAudio 12.2
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is 2974a1acc2db4db5b8ef4564337649ff.
I: [pulseaudio] main.c: Using runtime directory /home/subsonic/.config/pulse/2974a1acc2db4db5b8ef4564337649ff-runtime.
I: [pulseaudio] main.c: Using state directory /home/subsonic/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-12.2/modules.
I: [pulseaudio] main.c: Running in system mode: no
I: [pulseaudio] main.c: System supports high resolution timers
I: [pulseaudio] cpu-arm.c: CPU flags: V6 V7 VFP EDSP NEON VFPV3
I: [pulseaudio] svolume_arm.c: Initialising ARM optimized volume functions.
I: [pulseaudio] sconv_neon.c: Initialising ARM NEON optimized conversions.
I: [pulseaudio] mix_neon.c: Initialising ARM NEON optimized mixing functions.
I: [pulseaudio] remap_neon.c: Initialising ARM NEON optimized remappers.
I: [pulseaudio] module-device-restore.c: Successfully opened database file '/home/subsonic/.config/pulse/2974a1acc2db4db5b8ef4564337649ff-device-volumes'.
I: [pulseaudio] module.c: Loaded "module-device-restore" (index: #0; argument: "").
I: [pulseaudio] module-stream-restore.c: Successfully opened database file '/home/subsonic/.config/pulse/2974a1acc2db4db5b8ef4564337649ff-stream-volumes'.
I: [pulseaudio] module.c: Loaded "module-stream-restore" (index: #1; argument: "restore_device=false").
I: [pulseaudio] module-card-restore.c: Successfully opened database file '/home/subsonic/.config/pulse/2974a1acc2db4db5b8ef4564337649ff-card-database'.
I: [pulseaudio] module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #3; argument: "").
I: [pulseaudio] module.c: Loaded "module-switch-on-port-available" (index: #4; argument: "").
I: [pulseaudio] (alsa-lib)utils.c: could not open configuration file /usr/share/alsa/ucm/bcm2835 Headphones/bcm2835 Headphones.conf
I: [pulseaudio] (alsa-lib)parser.c: error: could not parse configuration for card bcm2835 Headphones
I: [pulseaudio] (alsa-lib)utils.c: could not open configuration file /usr/share/alsa/ucm/bcm2835 Headphones/bcm2835 Headphones.conf
I: [pulseaudio] (alsa-lib)parser.c: error: could not parse configuration for card bcm2835 Headphones
I: [pulseaudio] (alsa-lib)main.c: error: failed to import bcm2835 Headphones use case configuration -2
I: [pulseaudio] alsa-ucm.c: UCM not available for card bcm2835 Headphones
I: [pulseaudio] alsa-util.c: Successfully attached to mixer 'hw:0'
I: [pulseaudio] card.c: Created 0 "alsa_card.platform-bcm2835_audio"
I: [pulseaudio] module-card-restore.c: Storing port latency offsets for card alsa_card.platform-bcm2835_audio.
I: [pulseaudio] alsa-sink.c: Successfully opened device hw:0.
I: [pulseaudio] alsa-sink.c: Selected mapping 'Analog Stereo' (analog-stereo).
I: [pulseaudio] alsa-sink.c: Successfully enabled mmap() mode.
I: [pulseaudio] alsa-util.c: Successfully attached to mixer 'hw:0'
I: [pulseaudio] sink.c: Created sink 0 "alsa_output.platform-bcm2835_audio.analog-stereo" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink.c:     alsa.resolution_bits = "16"
I: [pulseaudio] sink.c:     device.api = "alsa"
I: [pulseaudio] sink.c:     device.class = "sound"
I: [pulseaudio] sink.c:     alsa.class = "generic"
I: [pulseaudio] sink.c:     alsa.subclass = "generic-mix"
I: [pulseaudio] sink.c:     alsa.name = "bcm2835 Headphones"
I: [pulseaudio] sink.c:     alsa.id = "bcm2835 Headphones"
I: [pulseaudio] sink.c:     alsa.subdevice = "0"
I: [pulseaudio] sink.c:     alsa.subdevice_name = "subdevice #0"
I: [pulseaudio] sink.c:     alsa.device = "0"
I: [pulseaudio] sink.c:     alsa.card = "0"
I: [pulseaudio] sink.c:     alsa.card_name = "bcm2835 Headphones"
I: [pulseaudio] sink.c:     alsa.long_card_name = "bcm2835 Headphones"
I: [pulseaudio] sink.c:     alsa.driver_name = "snd_bcm2835"
I: [pulseaudio] sink.c:     device.bus_path = "platform-bcm2835_audio"
I: [pulseaudio] sink.c:     sysfs.path = "/devices/platform/soc/fe00b840.mailbox/bcm2835_audio/sound/card0"
I: [pulseaudio] sink.c:     device.form_factor = "internal"
I: [pulseaudio] sink.c:     device.string = "hw:0"
I: [pulseaudio] sink.c:     device.buffering.buffer_size = "10576"
I: [pulseaudio] sink.c:     device.buffering.fragment_size = "2640"
I: [pulseaudio] sink.c:     device.access_mode = "mmap"
I: [pulseaudio] sink.c:     device.profile.name = "analog-stereo"
I: [pulseaudio] sink.c:     device.profile.description = "Analog Stereo"
I: [pulseaudio] sink.c:     device.description = "Built-in Audio Analog Stereo"
I: [pulseaudio] sink.c:     alsa.mixer_name = "Broadcom Mixer"
I: [pulseaudio] sink.c:     module-udev-detect.discovered = "1"
I: [pulseaudio] sink.c:     device.icon_name = "audio-card"
I: [pulseaudio] source.c: Created source 0 "alsa_output.platform-bcm2835_audio.analog-stereo.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c:     device.description = "Monitor of Built-in Audio Analog Stereo"
I: [pulseaudio] source.c:     device.class = "monitor"
I: [pulseaudio] source.c:     alsa.card = "0"
I: [pulseaudio] source.c:     alsa.card_name = "bcm2835 Headphones"
I: [pulseaudio] source.c:     alsa.long_card_name = "bcm2835 Headphones"
I: [pulseaudio] source.c:     alsa.driver_name = "snd_bcm2835"
I: [pulseaudio] source.c:     device.bus_path = "platform-bcm2835_audio"
I: [pulseaudio] source.c:     sysfs.path = "/devices/platform/soc/fe00b840.mailbox/bcm2835_audio/sound/card0"
I: [pulseaudio] source.c:     device.form_factor = "internal"
I: [pulseaudio] source.c:     device.string = "0"
I: [pulseaudio] source.c:     module-udev-detect.discovered = "1"
I: [pulseaudio] source.c:     device.icon_name = "audio-card"
I: [pulseaudio] alsa-sink.c: Using 4.0 fragments of size 2640 bytes (14.96ms), buffer size is 10576 bytes (59.95ms)
I: [pulseaudio] alsa-sink.c: Driver does not support hardware volume control, falling back to software volume control.
I: [pulseaudio] alsa-sink.c: Driver does not support hardware mute control, falling back to software mute control.
I: [alsa-sink-bcm2835 Headphones] core-util.c: Failed to acquire real-time scheduling: Permission denied
I: [alsa-sink-bcm2835 Headphones] alsa-sink.c: Starting playback.
I: [pulseaudio] core.c: default_source: (unset) -> alsa_output.platform-bcm2835_audio.analog-stereo.monitor
I: [pulseaudio] core.c: default_sink: (unset) -> alsa_output.platform-bcm2835_audio.analog-stereo
I: [pulseaudio] module.c: Loaded "module-alsa-card" (index: #6; argument: "device_id="0" name="platform-bcm2835_audio" card_name="alsa_card.platform-bcm2835_audio" namereg_fail=false tsched=no fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"").
I: [pulseaudio] module-udev-detect.c: Card /devices/platform/soc/fe00b840.mailbox/bcm2835_audio/sound/card0 (alsa_card.platform-bcm2835_audio) module loaded.
I: [pulseaudio] module-udev-detect.c: Found 1 cards.
I: [pulseaudio] module.c: Loaded "module-udev-detect" (index: #5; argument: "tsched=0").
W: [pulseaudio] authkey.c: Failed to open cookie file '/home/subsonic/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authentication key '/home/subsonic/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to open cookie file '/home/subsonic/.pulse-cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authentication key '/home/subsonic/.pulse-cookie': No such file or directory
I: [pulseaudio] module.c: Loaded "module-native-protocol-unix" (index: #7; argument: "").
I: [pulseaudio] module.c: Loaded "module-default-device-restore" (index: #8; argument: "").
I: [pulseaudio] module.c: Loaded "module-rescue-streams" (index: #9; argument: "").
I: [pulseaudio] module.c: Loaded "module-always-sink" (index: #10; argument: "").
I: [pulseaudio] module.c: Loaded "module-intended-roles" (index: #11; argument: "").
I: [pulseaudio] module.c: Loaded "module-suspend-on-idle" (index: #12; argument: "").
I: [pulseaudio] module.c: Loaded "module-console-kit" (index: #13; argument: "").
I: [pulseaudio] module.c: Loaded "module-systemd-login" (index: #14; argument: "").
I: [pulseaudio] module.c: Loaded "module-position-event-sounds" (index: #15; argument: "").
I: [pulseaudio] module.c: Loaded "module-role-cork" (index: #16; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-heuristics" (index: #17; argument: "").
I: [pulseaudio] module.c: Loaded "module-filter-apply" (index: #18; argument: "").
W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
I: [pulseaudio] main.c: Daemon startup complete.
I: [pulseaudio] module-device-restore.c: Storing port for device sink:alsa_output.platform-bcm2835_audio.analog-stereo.
I: [pulseaudio] module-device-restore.c: Storing volume/mute for device+port sink:alsa_output.platform-bcm2835_audio.analog-stereo:analog-output.
I: [pulseaudio] module-device-restore.c: Storing port for device source:alsa_output.platform-bcm2835_audio.analog-stereo.monitor.
I: [pulseaudio] module-device-restore.c: Storing volume/mute for device+port source:alsa_output.platform-bcm2835_audio.analog-stereo.monitor:null.
I: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.platform-bcm2835_audio.analog-stereo idle for too long, suspending ...
I: [alsa-sink-bcm2835 Headphones] alsa-sink.c: Device suspended...
I: [pulseaudio] module-card-restore.c: Synced.
I: [pulseaudio] module-device-restore.c: Synced.



Subsonic is running with user subsonic, which has audio access:

Code: Select all
$ id subsonic
uid=1001(subsonic) gid=1001(subsonic) groups=1001(subsonic),20(dialout),24(cdrom),29(audio),44(video),46(plugdev),105(input)
axellec
 
Posts: 5
Joined: Sat Apr 16, 2022 3:40 pm

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest