BlitterStudio / MB_SubSonic

MusicBee SubSonic plugin
GNU General Public License v3.0
110 stars 14 forks source link

'Music' directory on Synology NAS access error #33

Closed krilok closed 3 years ago

krilok commented 6 years ago

I have installed and configured both the app on my NAS and the plugin on Musicbee. It's working fine, and the Subsonic folder tree shows all the music folders on my NAS in this order: Subsonic / Music / and then the rest of music folders.

I can individually play tracks without problem, but if I want to simply randomise or shuffle tracks from all folders, right clicking on the 'Subsonic' parent folder and selecting 'Play Shuffled' does actually nothing, and right clicking on the child 'Music' folder throws an error popup with the following warning: ''Error from Subsonic server - An error has occurred: Access denied to file /volume1''.

I have checked all folder and user/group permissions on my NAS, but can't seem to get around this error... Any help would be much appreciated.

I'm attaching a screenshot of the error when selecting the 'Music' folder... music folder error

midwan commented 6 years ago

@krilok So this pops up as soon as you right click on the Music subfolder, or after you select something from the popup menu?

krilok commented 6 years ago

Hi, Midwan. Firstly, thanks for replying...

This warning pops up if I LEFT click on the 'Music' folder. If I right click on it instead, I get the MusicBee popup menu, but whatever I may select has no effect/action...

midwan commented 6 years ago

@krilok Interesting... Does it also happen if you left click on a subfolder below Music, like a specific album from what I see in the screenshot? Or do you get the files showing then?

krilok commented 6 years ago

No, it only happens on the Music folder... If I left click on any of the folders below, there's no error warnings, the tracks in that particular folder are displayed and everything can be played fine. If I right click in any of those folders, the MB options work, too...

midwan commented 6 years ago

@krilok Is your server accessible from the outside world? If so, could you create a temporary account for me there, so I can try to connect remotely and debug this?

Please don't post the details here, but send them instead to midwan at gmail dot com, for security reasons.

krilok commented 6 years ago

Yes, it is indeed accessible. I use an app called BubbleUPNP on my Android phone to access the music on the NAS over the Internet. The server settings on this app are exactly the same as configured on your plugin, only set to a different port...

krilok commented 6 years ago

Forgot to mention; I've also configured the 'Ultrasonic' app on my phone with the same settings and it works fine, too...

pbanj commented 4 years ago

im getting the same issue. im using a raspberrypi running dietpi and running airsonic. it used to be fine but now when i try to use it i get the same issue.

midwan commented 4 years ago

@pbanj Could you provide detailed steps to recreate this please? I could set up a DietPi installation to test it, perhaps that will show me something.

pbanj commented 4 years ago

So it used to work just fine but recently I had to reinstall Windows, so I had to reinstall musicbee and this plugin. I even tried changing folder perms and reinstalling Airsonic, but neither helped. Dsub on Android is fine though. Now on how to it happens. Click anything on the left side browser so let's just say you click the subsonic directory, then try and click any of the artists that show up in the middle.

left side

midddle

Or let's say you click on an artist on the left side and then try and click on an album in the middle.

left side

middle

Same issue.

Now if you click an album on the left side and then a song it works perfectly fine.

left side

playing

viclang commented 4 years ago

I have the same issue like @pbanj described.

jaredallard commented 4 years ago

Also running into this same issue, but I'm unable to play any music at all.

image

Wmartin417 commented 3 years ago

I have this same issue.

midwan commented 3 years ago

Unfortunately, so far I haven't had an environment here that would show me this, so I can recreate and fix it. I'll try setting one up from scratch, in case I get lucky.

@jaredallard Could you please share your environment details? What server are you using, version, etc.

Wmartin417 commented 3 years ago

Airsonic v10.6.2 from ghcr.io/linuxserver/airsonic docker images ran on Debian 10 home server with docker v20.10.2. Installed v3.3 MusicBee (not portable version) and mb_Subsonic_v2.28 on Windows 10 Plugin is configured to access the server locally and ping responds normally. I have set up the plugin to access it over the internet, but seem to get the same error.

I have 1,000+ songs and when refreshed it only retrieves 1 song per album. However, when I access the playlists that I have made on airsonic, the plugin seems to work just fine without giving me an error. I have tried installing the portable version of MusicBee and changing the music directory, but that doesn't seem to be the issue.

Checked the logs for airsonic and doesn't seem to be giving any output when MusicBee gives me the error. If you need any more info, let me know.

midwan commented 3 years ago

@Wmartin417 Thanks, I've finally been able to recreate this on a docker instance, so I'll get it fixed now.

pbanj commented 3 years ago

Damn, I was thinking we'd never see this get fixed. Glad you were able to recreate it. What did it end up being?

midwan commented 3 years ago

It seems it only happens if you have only 1 root folder (the default "Music" folder) which has the id = 0. In all my earlier tests I had multiple folders configured, and each one had a separate id, so perhaps that's why I never saw it happen to me. With this new installation I just dumped everything under "Music" to quickly see how it looks, and I could recreate the problem immediately.

The subfolders do show up eventually (after the background task finishes going through them), and I can still play music from there nope: I can't.

So I'm thinking of checking if there is only one root folder configured, with the id = 0, then just skip that and show the indexes below it right away. I need to refresh my memory about how it all works internally first, been a while since I worked on it. :)

ZachBytes commented 3 years ago

Do you think this is also causing the music to not all show up when I click on my share with 1 folder? I can only access the songs through going through the folders in the folder explorer of music bee, where as I'd want to see them in the details pane all at once.

On Wed, Feb 3, 2021, 4:45 PM Dimitris Panokostas notifications@github.com wrote:

It seems it only happens if you have only 1 root folder (the default "Music" folder) which has the id = 0. In all my earlier tests I had multiple folders configured, and each one had a separate id, so perhaps that's why I never saw it happen to me. With this new installation I just dumped everything under "Music" to quickly see how it looks, and I could recreate the problem immediately.

The subfolders do show up eventually (after the background task finishes going through them), and I can still play music from there. It's only the root folder that has this problem.

So I'm thinking of checking if there is only one root folder configured, with the id = 0, then just skip that and show the indexes below it right away. I need to refresh my memory about how it all works internally first, been a while since I worked on it. :)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/midwan/MB_SubSonic/issues/33#issuecomment-772845131, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSSC3HMQJX7QMR5CEMCFI3S5G7WZANCNFSM4EZRMPPA .

midwan commented 3 years ago

Possibly. I think I might end up doing a big rewrite internally, as I don't really like the way it's designed - this was "inherited" from the original design that I picked up, when I decided to help move this project forward. I'll probably spend some time on it during the weekend, stay tuned. :)

midwan commented 3 years ago

This should be fixed now, with the new release: https://github.com/midwan/MB_SubSonic/releases/tag/v2.30

Please let me know if you still have any issues, I only had time for limited testing here, but it seems to work as expected now.