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

Snapweb not reachable? #711

Closed
jreusch opened this issue Oct 19, 2020 · 5 comments
Closed

Snapweb not reachable? #711

jreusch opened this issue Oct 19, 2020 · 5 comments
Labels
enhancement feature request next release fixed in develop branch and will be part of the next release

Comments

@jreusch
Copy link
Contributor

jreusch commented Oct 19, 2020

I have just installed the latest snapcast version 0.22 on my raspberry pi and tried to reach the snapweb UI, but seem to have problems?

$ curl http://localhost:1780
The resource '/' was not found.

This error message seems to come directly from snapcast, but i cannot explain why it does not deliver snapweb?

Snapcast running with the following options

 [...] /usr/bin/snapserver --logging.sink=system --server.datadir=/var/lib/snapserver

Running snapserver with debug logging enabled only gives:

snapserver[24622]: ControlServer::NewConnection: 192.168.64.11
couchpi snapserver[24622]: ControlSessionHttp
couchpi snapserver[24622]: read: 82, method: GET, content type: , target: /, body:
couchpi snapserver[24622]: ControlSessionHttp::~ControlSessionHttp()
@jreusch jreusch added the bug label Oct 19, 2020
@badaix
Copy link
Owner

badaix commented Oct 19, 2020

your [http] doc_root in /etc/snapserver.conf should point to your snapweb directory (default /usr/share/snapserver/snapweb).

@jreusch jreusch closed this as completed Oct 20, 2020
@jreusch
Copy link
Contributor Author

jreusch commented Oct 20, 2020

thx that fixed my problem! sorry i should have diffed the new config.
would try to make a PR to log something when snapweb is served/not served, would this be ok for you?

@l3d00m
Copy link
Contributor

l3d00m commented Oct 23, 2020

At least I would appreciate it @jreusch, I had the same issue as you and felt pretty dumb after figuring that out after a few hours.

@badaix
Copy link
Owner

badaix commented Oct 23, 2020

Maybe we could serve a default web page if doc_root is not set or if the directory doesn't exist.
On the default page could be described where and how to configure the doc root.

@badaix badaix reopened this Oct 23, 2020
@badaix badaix added enhancement feature request next release fixed in develop branch and will be part of the next release and removed bug labels Oct 23, 2020
@jreusch
Copy link
Contributor Author

jreusch commented Nov 8, 2020

damn, just started to make a patch proposal but before creating a PR (and realizing that i should have branched of develop) saw that there is already some code in to handle it since a few days.
even more sophisticated! ;)
so thanks for taking this up!

@badaix badaix closed this as completed Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature request next release fixed in develop branch and will be part of the next release
Projects
None yet
Development

No branches or pull requests

3 participants