kagemomiji / airsonic-advanced

airsonic-advanced
GNU General Public License v3.0
166 stars 14 forks source link

[Bug]: Files not found for some clients #279

Open microniko opened 1 year ago

microniko commented 1 year ago

What happened?

I had a strange thing with 3 clients. An album can be read by Ultrasonic but not by Airsonic Web client neither DSub.

Steps to reproduce

Read a file from a folder in Ultrasonic : ok. In the Airsonic Web client this folder is empty, in the DSub client too...

If I click on the Recently Played link in the Airsonic Web client, I had an error page. This page tells me that what I search can't be found :-\

Capture d’écran du 2023-09-12 21-58-46

Doing a full-scan the media doesn't resolved the problem.

Any idea ?

Version

11.1.x (Edge)

Version Detail

11.1.3-SNAPSHOT.20230904021809

Operating System

GNU/Linux Debian

Java Version

java 17.0.8

Database

MariaDB 8.x

DB Detail

No response

Configuration paramter

JWTKey=xxx
SettingsChanged=xxx
IndexCreationInterval=1
IndexCreationHour=5
FastCacheEnabled=false
OrganizeByFolderStructure=true
ExcludePattern=
IgnoreSymLinks=false
PodcastUpdateInterval=24
PodcastEpisodeRetentionCount=-1
PodcastEpisodeDownloadCount=-1
PodcastFolder=/musique/podcasts
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
Shortcuts=New Incoming Podcast
PlaylistFolder=/var/playlists
MusicFileTypes=mp3 ogg oga aac m4a m4b flac wav wma aif aiff ape mpc shn mka opus
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
SortAlbumsByYear=true
GettingStartedEnabled=false
WelcomeTitle=XXX
WelcomeSubtitle=XX
WelcomeMessage2=Bienvenue 
LoginMessage=XX
Theme=coolandclean
LocaleLanguage=fr
LocaleCountry=
LocaleVariant=
DatabaseMysqlMaxlength=512
DatabaseConfigType=EMBED
DatabaseConfigEmbedDriver=org.mariadb.jdbc.Driver
DatabaseConfigEmbedPassword=XX
DatabaseConfigEmbedUrl=jdbc:mariadb://localhost:3306/db
DatabaseConfigEmbedUsername=username
DatabaseUsertableQuote=
server.use-forward-headers=native 
server.forward-headers-strategy=framework 
EncryptionKeyPassword=YY 
EncryptionKeySalt=XX 
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
spring.datasource.url=jdbc:mariadb://localhost:3306/db
spring.datasource.username=username
spring.datasource.password=zouk
spring.liquibase.parameters.mysqlVarcharLimit=512
spring.liquibase.parameters.defaultPodcastFolder=/musique/podcasts
UploadsFolder=%{['USER_MUSIC_FOLDERS'][0]}/Incoming
EnableCueIndexing=true
HideIndexedFiles=true

Proxy Server

No response

client detail

No response

language

French

Relevant log output

No response

kagemomiji commented 1 year ago

@microniko Is the user accessing through Ultrasonic the same as the user accessing through other clients?

microniko commented 1 year ago

Is the user accessing through Ultrasonic the same as the user accessing through other clients?

Yes. Even stranger, if I click on edit tags link of the offending album, I had the track list !

kagemomiji commented 1 year ago

@microniko Could you show me the airsonic.log from when you accessed that album. I believe it's also output on the About page,

microniko commented 1 year ago

I don't like to show entire log in public. How can I send you a private message ?

kagemomiji commented 1 year ago

Could you upload a password-protected ZIP file here? After uploading, kindly send the password to my X(Twitter) account through a direct message. If you'd prefer not to do that, please contact me via X(Twitter) direct message. I'll send my email address there. You can find my X(Twitter) account from my GitHub profile page.

kagemomiji commented 1 year ago

@microniko I sended e-mail to you from my gmail address 2 days ago. Could you send me your log?

kagemomiji commented 1 year ago

@microniko I've reviewed the logs, but couldn't find any related error logs. If it's an error that displays on the screen, there should be a corresponding log message.

I did notice several warnings about missing CoverArt files, although these are at the warning level and shouldn't trigger an error screen.

One possibility is that the version indicated in this issue had problems related to transaction management. Could you please try updating to 11.1.3-SNAPSHOT.20230913165846, which includes fixes for these issues, and see if the problem persists?

Additionally, could you try going to Settings -> Media folders -> Clean-up database? This process cleans up data that is detected only in the database and not on the file system.

microniko commented 1 year ago

@kagemomiji I upgrade to 11.1.3-SNAPSHOT.20230913165846 : no change I modify file tags and file names. I force a data scan (complete) Nothing change... The folder stay empty. In the logfile, I see 2023-10-02 22:00:25.965 WARN --- o.a.p.service.MediaFileService : Invalid CUE sheet: /xxxx.flac for all the file of the folder.

Is Airsonic needs an Cue file ?

microniko commented 1 year ago

Well, I disabled the Enable cue indexing option in parameters and now I can see files in Airsonic !

kagemomiji commented 1 year ago

@microniko Could you provide the continuation of the logs, specifically the stacktrace? Identifying the exact line where the error occurred will help in making adjustments to the filtering conditions.