GithubHelp home page GithubHelp logo

mpdas can't connect to mpd about mpdas HOT 7 CLOSED

hrkfdn avatar hrkfdn commented on May 19, 2024
mpdas can't connect to mpd

from mpdas.

Comments (7)

dglava avatar dglava commented on May 19, 2024

I've narrowed it down a bit: commit f4e248a.

If I remove the global config file /etc/mpdasrc then it works again with the latest build from master. Anything up to that commit used to work even with the global config not removed from /etc.

Seems like the "global" config file in /etc has priority over the user config file in ~/.config/. I guess a potential fix for this would be prioritizing the "user" config files and only then loading the file in /etc.

from mpdas.

hrkfdn avatar hrkfdn commented on May 19, 2024

IIRC the global config is loaded first and then the user config, so any values set in the user config should overtop the global values.

from mpdas.

dglava avatar dglava commented on May 19, 2024

I think the problem is when some values aren't set (or are commented out) in the user config file, then the ones from the global config file are taken. One must explicitly set the values in the user config file.

One problem might be the mpdpassword option. In my case, since I don't use it, mpdas failed to start, because it was set in the global config, but not in my user's config. I think that's why it wasn't able to connect.

from mpdas.

hrkfdn avatar hrkfdn commented on May 19, 2024

Which distribution is this? Does it install the example file in /etc? Does setting it to "" (empty value) work?

from mpdas.

dglava avatar dglava commented on May 19, 2024

I am using Arch Linux, but packaged myself since it's not in the official repository.
I am using the latest build from master. It installs the sample config in /etc.

Just tried setting it to "" in the config file in /etc and it's not working; mpdas can't connect if I set host = "".

I guess a solution would be to make it disregard the config options from /etc or ~/.mpdasrc if the options from ~/.config/mpdasrc are loaded.

from mpdas.

hrkfdn avatar hrkfdn commented on May 19, 2024

For host an empty value is invalid. The default value is localhost.

from mpdas.

dglava avatar dglava commented on May 19, 2024

Okay, I just set all the values explicitly in my user config file and it's working regardless of what's in the example/global config file.

My bad, I guess it's solved now.

from mpdas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.