-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: jukebox support broken/changed? #248
Comments
@arnouddekker From your airsonic-user.service, it appears that the sound device access is restricted in the service configuration. To allow access, please make the following changes in the service file: Set After modifying the service file, please restart the service to apply the changes. |
@kagemomiji thanks for checking in to this so quickly. For completeness, I did (as the airsonic user) the systemctl edit --user airsonic-user.service AND an systemctl --user daemon-reload just for good measure and checked the airsonic-user service and corresponding java-process was indeed stopped in between). The ONLY thing changing when switching between the working 'upstream' version and your version is that I stop the service, change the /srv/airsonic/current symlink to point to the dir containing airsonic.war I wish to use and start the service again.. I.e. (now pointing to working version again): airsonic@server:~$ ls -alhR /srv/airsonic/current /srv/airsonic/airsonic-advanced/
lrwxrwxrwx 1 root root 63 Jul 3 20:28 /srv/airsonic/current -> /srv/airsonic/airsonic-advanced/11.0.0-SNAPSHOT.20230217142243/
/srv/airsonic/airsonic-advanced/:
total 20K
drwxr-xr-x 4 root root 4 Jul 1 18:39 .
drwxr-x--- 7 airsonic airsonic 14 Jul 3 20:28 ..
drwxr-xr-x 2 root root 4 Apr 14 09:06 11.0.0-SNAPSHOT.20230217142243
drwxr-xr-x 2 root root 4 Jul 1 18:37 11.1.3-SNAPSHOT.20230625224050-kagemomiji
/srv/airsonic/airsonic-advanced/11.0.0-SNAPSHOT.20230217142243:
total 97M
drwxr-xr-x 2 root root 4 Apr 14 09:06 .
drwxr-xr-x 4 root root 4 Jul 1 18:39 ..
-rw-r--r-- 1 root root 101M Feb 17 15:30 airsonic.war
-rw-r--r-- 1 root root 65 Apr 14 08:51 airsonic.war.sha256sum
/srv/airsonic/airsonic-advanced/11.1.3-SNAPSHOT.20230625224050-kagemomiji:
total 118M
drwxr-xr-x 2 root root 4 Jul 1 18:37 .
drwxr-xr-x 4 root root 4 Jul 1 18:39 ..
-rw-r--r-- 1 root root 124M Jul 1 18:37 airsonic.war
-rw-r--r-- 1 root root 162 Jul 1 18:37 artifacts-checksums.sha Can you or anyone else confirm that jukebox is working in 11.1.2 stable or later? [edit]Cleaning out the work-directory and restoring the earlier included airsonic.properties also didn't help[/edit] |
…layer #248 fix VerifyError problem by enum with switch statement at jukebox audioplayer
@arnouddekker There are two issues in this problem.
Could you change your airsonic.service and try latest edge release war file? |
@kagemomiji Thanks! The edge release 11.1.3-SNAPSHOT.20230710160254 fixes the issue. As a side note, I still use PrivateDevices=yes and now also use DevicePolicy=strict as I use Pulseaudio to pipe the sound through pulseaudio-dlna to my receiver. $ java list_audio_devices.java
Available mixers:
default [default]
$ pactl get-default-sink
vsx923_dlna
$ pactl list short sources
1 vsx923_dlna.monitor module-null-sink.c s16le 2ch 96000Hz RUNNING |
Since the problem has been resolved, I close the issue. |
What happened?
While trying both the latest 11.1.2 stable release and 11.1.3-SNAPSHOT.20230625224050 , when starting the jukebox (either via Ultrasonic 4.5.0 or the web-interface with jukebox configured as player) I see the below errors pop up in work/airsonic.log and no audio is being played. Playing on phone or in browser works just fine. Jukebox was working properly before on version 11.0.0-SNAPSHOT.20230217142243/ from https://github.com/airsonic-advanced/airsonic-advanced and after switching back to this version everything works fine again.
Steps to reproduce
n.b.:
1] /srv/airsonic/current is a symlink to the dir containing the currently wanted airsonic.war
2] airsonic is started as a systemd user service and shows as following in ps -fauxwww output:
systemd user airsonic-user.service:
Version
11.1.x (Edge)
Version Detail
11.1.2 (Stable) and 11.1.3-SNAPSHOT.20230625224050
Operating System
Debian 12 (Bookworm) Linux 6.1.0-9-arm64 #1 SMP Debian 6.1.27-1 (2023-05-08) aarch64 GNU/Linux (in an lxc unprivileged container)
Java Version
openjdk version "17.0.7" 2023-04-18 OpenJDK Runtime Environment (build 17.0.7+7-Debian-1deb12u1) OpenJDK 64-Bit Server VM (build 17.0.7+7-Debian-1deb12u1, mixed mode, sharing)
Database
Other
DB Detail
postgresql-15 15.3-0+deb12u1 (Debian package)
Configuration paramter
Airsonic preferences. NOTE: This file is automatically generated. Do not modify while application is running
DatabaseConfigType=embed
DatabaseConfigEmbedDriver=org.postgresql.Driver
DatabaseConfigEmbedUrl=jdbc:postgresql://127.0.0.1:5432/airsonic?stringtype=unspecified
DatabaseConfigEmbedUsername=airsonic
DatabaseConfigEmbedPassword=[REDACTED]
DatabaseUsertableQuote="
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/airsonic?stringtype=unspecified
spring.datasource.username=airsonic
spring.datasource.password=[REDACTED]
EncryptionKeyPassword=[REDACTED]
EncryptionKeySalt=[REDACTED]
SettingsChanged=1685351213660
JWTKey=[REDACTED]
IndexCreationInterval=1
IndexCreationHour=3
FastCacheEnabled=true
OrganizeByFolderStructure=true
UploadsFolder=%{['USER_MUSIC_FOLDERS'][0]}/Incoming
ExcludePattern=
IgnoreSymLinks=false
FullScan=true
ClearFullScanSettingAfterScan=true
GettingStartedEnabled=false
DownsamplingCommand4=ffmpeg -i %s -map 0:0 -b:a %bk -v 0 -f mp3 -
HlsCommand4=ffmpeg -ss %o -i %s -s %wx%h -async 1 -c:v libx264 -flags +cgop -b:v %vk -maxrate %bk -preset superfast -copyts -b:a %rk -bufsize 256k -map 0:0 -map 0:%i -ac 2 -ar 44100 -v 0 -threads 0 -force_key_frames expr:gte(t,n_forced*10) -start_number %j -hls_time %d -hls_list_size 0 -hls_segment_filename %n %p
JukeboxCommand2=ffmpeg -ss %o -i %s -map 0:0 -v 0 -ar 44100 -ac 2 -f s16be -
VideoImageCommand=ffmpeg -r 1 -ss %o -t 1 -i %s -s %wx%h -v 0 -f mjpeg -
SubtitlesExtractionCommand=ffmpeg -i %s -map 0:%i -f %f -
TranscodeEstimateTimePadding=2000
TranscodeEstimateBytePadding=0
HideIndexedFiles=true
IndexString=A B C D E F G H I J K L M N O P Q R S T U V W X-Z(XYZ)
IgnoredArticles=The El La Los Las Le Les
GenreSeparators=;
Shortcuts=New Incoming Podcast
PlaylistFolder=/srv/airsonic/playlists
MusicFileTypes=mp3 ogg oga aac m4a m4b flac wav wma aif aiff ape mpc shn mka opus alm 669 mdl far xm mod fnk imf it liq wow mtm ptm rtm stm s3m ult dmf dbm med okt emod sfx m15 mtn amf gdm stx gmc psm j2b umx amd rad hsc flx gtk mgt mtp wv
VideoFileTypes=flv avi mpg mpeg mp4 m4v mkv mov wmv ogv divx m2ts webm
CoverArtFileTypes2=cover.jpg cover.png cover.gif folder.jpg jpg jpeg gif png
CoverArtSource=FILETAG
CoverArtConcurrency=4
CoverArtQuality=90
SortAlbumsByYear=true
WelcomeTitle=Welcome to Airsonic!
WelcomeSubtitle=
WelcomeMessage2=Welcome to Airsonic!\r\n\\ \\\r\nAirsonic is a free, web-based media streamer, providing ubiquitous access to your music. \r\n\\ \\\r\nUse it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.\r\n\\ \\\r\nTo change or remove this message, log in with administrator rights and go to Settings > General.
LoginMessage=
server.servlet.session.timeout=3600m
Theme=default
LocaleLanguage=en
LocaleCountry=
LocaleVariant=
DownloadBitrateLimit=0
UploadBitrateLimit=0
LdapEnabled=false
LdapUrl=ldap://host.domain.com:389/cn=Users,dc=domain,dc=com
LdapSearchFilter=(sAMAccountName={0})
LdapManagerDn=
LdapAutoShadowing=false
SmtpServer=[REDACTED]
SmtpEncryption=None
SmtpPort=25
SmtpUser=
SmtpFrom=airsonic@[REDACTED]
CaptchaEnabled=false
ReCaptchaSiteKey=[REDACTED]
Proxy Server
None
client detail
web: firefox-esr 102.12.0esr-1~deb12u1 / Android app: Ultrasonic: 4.5.0 on Lineagos 18.1
language
None
Relevant log output
The text was updated successfully, but these errors were encountered: