jcorporation / myMPD

myMPD is a standalone and mobile friendly web mpd client with a tiny footprint and advanced features.
https://jcorporation.github.io/myMPD/
GNU General Public License v3.0
418 stars 65 forks source link

Cannot Parse settings... #179

Closed Emilot closed 4 years ago

Emilot commented 4 years ago

Describe the bug Mympd is not loading in a clean Archlinux image

To Reproduce Steps to reproduce the behavior: Run ./build.sh and after that i enable the mympd.service Start service and it throws this message...

mympd_2

Expected behavior To open the GUI

Screenshots These are the errors...

mympd_1

and during the building i have a strange error "clock skew detected"

mympd_3

Desktop (please complete the following information):

Additional context It happens with latest Master and latest Devel...

mympd_4

Thank you JC!

jcorporation commented 4 years ago

Please use master. Devel is at the moment unstable, because of the sds branch merge.

A clock skew can explain the backend and the last JavaScript error. The other javascript errors are not from myMPD.

Remove the source tree, check the clock and please try it again.

Emilot commented 4 years ago

JC i fix the time etc and the error is gone, but....

i have this errors now:

_Oct 22 22:37:31 archphile mympd[3188]: INFO /root/myMPD/src/mpd_client.c:3748: Updated smart playlist myMPDsmart-bestRated with 0 songs, minValue: 0 Oct 22 22:37:31 archphile mympd[3188]: INFO /root/myMPD/src/mpd_client.c:3748: Updated smart playlist myMPDsmart-mostPlayed with 0 songs, minValue: 0 Oct 22 22:37:31 archphile mympd[3188]: INFO /root/myMPD/src/mpd_client.c:3778: Updated smart playlist myMPDsmart-newestSongs Oct 22 22:37:32 archphile mympd[3188]: DEBUG /root/myMPD/src/web_server.c:197: Setting music_directory to /var/lib/mpd/music Oct 22 22:37:32 archphile mympd[3188]: DEBUG /root/myMPD/src/web_server.c:203: Setting rewrite_patterns to /pics/=/var/lib/mympd/pics,/library/=/var/lib/mpd/music Oct 22 21:36:59 archphile mympd[3188]: DEBUG /root/myMPD/src/web_server.c:273: New connection id 2 Oct 22 21:36:59 archphile mympd[3188]: VERBOSE /root/myMPD/src/web_server.c:278: New websocket request (2): /ws/ Oct 22 21:36:59 archphile mympd[3188]: VERBOSE /root/myMPD/src/webserver.c:287: New Websocket connection established (2) Oct 22 21:37:00 archphile systemd[1]: mympd.service: Main process exited, code=killed, status=4/ILL Oct 22 21:37:00 archphile systemd[1]: mympd.service: Failed with result 'signal'.

and the screen stays at "Connect to websocket" and mympd service have already stopped as it seems at the text above...

mympd_5

mympd_6

jcorporation commented 4 years ago

Strange, you tried current master? Can you test it with latest release tarball? Is this a fresh install or is there a old /var/lib/mympd?

Emilot commented 4 years ago

I tried with 5.6.1, and current Master and Devel

I think in 5.6.0 it should play just fine.

Clean install on a newly Archlinux image environment.

Emilot commented 4 years ago

With 5.6.0 (from releases) i have this errors... /var/lib/mympd was deleted before build...

mympd_7

jcorporation commented 4 years ago

This is a known bug in 5.6.0, if no java is found at build time. Try to remove /etc/mympd.conf before installing 5.6.2. If this solves the error, please attach the old conf.

Another approach of debugging:

ghost commented 4 years ago

Hi JC, I got a little bit confused with your reference to java. I see java and perl as build dependencies but they do not exist in archlinux PKGBUILD.

I also have the same problems with Emilot (the last one - not the one with the time setting). Should we revise the PKGBUILD with:

makedepends=('cmake' 'jre-openjdk' 'perl')

?

Greetings, M.

jcorporation commented 4 years ago

Perl and java are only needed for the build.sh script. The package builds should work without it.

Emilot commented 4 years ago

JC with "compile myMPD with ./build.sh memcheck run myMPD with catchsegv debug/mympd"

it runs flawlessly... Everything seems fine...

but even if i install java and perl, i get the same error after building (with the ./build installrelease i mean).

Really weird :(

jcorporation commented 4 years ago

Did you cleaned up the browser and the application cache? Version 5.6.2?

Emilot commented 4 years ago

JC it was on a different computer. First time with MyMPD, so no cache...:(

Versions 5.6.2, 5.6.1,5.6.0...

Only the 5.5.3 plays just fine out of the box...

jcorporation commented 4 years ago

Error is the same as in the last screenshot?

Emilot commented 4 years ago

This one...

https://user-images.githubusercontent.com/18086896/67319160-3becbe00-f515-11e9-84ba-f01655f968b8.jpg

jcorporation commented 4 years ago

SSL is disabled? Please attach the output of the mympd process and the network view from the webconsole.

Can you test with another browser?

Emilot commented 4 years ago

JC i had 5.5.3 installed and running. After your questions i made these steps:

delete /var/lib/mympd folder delete /etc/mympd folder

download zip 5.6.2

i run ./build installrelease

enable the service and then start it.

Everything smooth!

I think these messages play some role to all of this:

mympd

jcorporation commented 4 years ago

The message "Error minifying" results from no java installation is found. The fallback copy action should be bug free since 5.6.1.

/etc/mympd folder plays no role, myMPD sind 5.6.0 uses /etc/mympd.conf.

I am not sure what was the root cause of your initial problems, but I think it was a mix of the clock skew, caching issues and the bug in 5.6.0.

Emilot commented 4 years ago

I do not think so JC. Except the first rookie error with the time, even one person more has the same issue and went from 5.5.3 to 5.6.2...

I must try one more time in a clean Archlinux environment to see where is the problem and inform you.

jcorporation commented 4 years ago

Thats would be greate!

Emilot commented 4 years ago

Clean install, without java or perl and everything went good.

Close this for now and if i see something with another installation, i will return.

Thank you JC!