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

mympdos 1.2.2 mongoose cant bind port #21

Closed
jerta opened this issue Jul 26, 2023 · 5 comments
Closed

mympdos 1.2.2 mongoose cant bind port #21

jerta opened this issue Jul 26, 2023 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@jerta
Copy link

jerta commented Jul 26, 2023

I launch a fresh 1.2.2, mympd doesn't start, so i try :
myMPDos:~# mympd
12:11:53 NOTICE mympd Cache dir: "/var/cache/mympd"
12:11:53 NOTICE mympd Work dir: "/var/lib/mympd"
12:11:53 NOTICE mympd Config dir: "/var/lib/mympd/config"
12:11:53 NOTICE mympd Setting loglevel to NOTICE
12:11:53 NOTICE mympd Starting myMPD 11.0.1
598a7 1 mongoose.c:4685:mg_open_listen bind: 98
598a7 1 mongoose.c:3713:mg_listen Failed: http://[::]:80, errno 98
12:11:53 EMERG mympd Can't bind to http://[::]:80
Exiting erroneous, thank you for using myMPD

@jcorporation jcorporation added the bug Something isn't working label Jul 27, 2023
@jcorporation
Copy link
Owner

The newest myMPD binds as default to [::], but myMPDos disables IPv6 by default and set's bindv6only to 1.

Simplest fix should be:

echo "0.0.0.0" > /var/lib/mympd/config/http_host
savereboot.sh

Next patch version of myMPD will enable IPv6 by default. Thanks for submitting this bug.

@jcorporation jcorporation mentioned this issue Jul 27, 2023
3 tasks
@bTronics
Copy link

Hello,
I made also a fresh install of the latest myMPDos and have the same issue. I did:

echo "0.0.0.0" > /var/lib/mympd/config/http_host
savereboot.sh

But I have still no connection (still the same error)

@jcorporation
Copy link
Owner

What is the value of this setting after reboot?

@bTronics
Copy link

The value was 0.0.0.0 , I think the problem was the IP_TYPE="dhcp". I uncomment this and made again a fresh install and now I have connection.
I have just one little problem with the startscreen in mympd. when I add an icon, the next time I start up (after a save power off / save reboot) the start screen returns empty.

@jcorporation
Copy link
Owner

myMPDos runs completely in ram. You must use the savereboot.sh or saveshutdown.sh or the scripts in the myMPD menu. This should dump the states and issues a lbu_commit.

@jcorporation jcorporation added this to the v1.2.3 milestone Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants