Skip to content
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

currentPlayer.add rises "Access denied" error #4

Open
dmytro-shchurov opened this issue Jul 13, 2021 · 0 comments
Open

currentPlayer.add rises "Access denied" error #4

dmytro-shchurov opened this issue Jul 13, 2021 · 0 comments

Comments

@dmytro-shchurov
Copy link

dmytro-shchurov commented Jul 13, 2021

I'm creating an Electron application in Arch. When I run in a console mpc add <path_to_my_file> as a current user, not su, everything is fine.
However, when I use mpc-js, mpc.currentPlaylist.add(<path_to_my_file>) returns {errorCode: 4, errorMessage: "Access denied"} error object.

Some other database commands works fine, mpc connects successfully.

MPD is started as a system-wide service. File is located in a mounted NTFS directory.

It does not depend on whether I build a production or a debug version.

UPD node application without electron rises the same error. I do not understand how to properly use this lib. Local files also do not work.

UPD2 Without additional access right management, Unix sockets work great. So, if MPD is bound to a Unix socket, and I use mpc.connectUnixSocket(), I can call mpc.currentPlayer.add() command then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant