slskd icon indicating copy to clipboard operation
slskd copied to clipboard

HTTP GET / responded 404

Open squeaktoy opened this issue 1 year ago • 2 comments

The web interface always returns 404 no matter what I do. OS: Gentoo Linux

Config

web:
  port: 5030
  authentication:
    disabled: false
    username: [REDACTED]
    password: [REDACTED]
soulseek:
  username: [REDACTED]
  password: [REDACTED]

Log

[21:29:37 INF] Version: 0.0.0 (0.0.0)
[21:29:37 WRN] This is a Development build; YMMV
[21:29:37 INF] System: .NET 8.0.0, Unix 6.1.67.0, 64 bit, 8 processors
[21:29:37 INF] Process ID: 13228 (64 bit)
[21:29:37 INF] Invocation ID: a0da0c50-7783-409a-a5d6-67225bbbccc0
[21:29:37 INF] Instance Name: default
[21:29:37 INF] Configuring application...
[21:29:37 INF] Using application directory /home/user/.local/share/slskd
[21:29:37 INF] Using configuration file /home/user/.local/share/slskd/slskd.yml
[21:29:37 INF] Storing application data in /home/user/.local/share/slskd/data
[21:29:37 INF] Saving application logs to /home/user/.local/share/slskd/logs
[21:29:38 INF] Listening for HTTP requests at http://0.0.0.0:5030/
[21:29:38 INF] Listening for HTTPS requests at https://0.0.0.0:5031/
[21:29:38 INF] Using randomly generated self-signed certificate
[21:29:39 INF] Using base url /
[21:29:39 INF] Serving static content from /usr/local/libexec/slskd/wwwroot
[21:29:39 INF] Configuration complete.  Starting application...
[21:29:39 INF] Application started
[21:29:39 INF] Listening for incoming connections on 0.0.0.0:2234
[21:29:39 INF] Skipping version check for Development build
[21:29:39 INF] Initializing shares
[21:29:39 INF] Share cache StorageMode is 'Memory'. Attempting to load from backup...
[21:29:39 INF] Share cache backup validated. Attempting to restore...
[21:29:39 INF] Share cache successfully restored from backup
[21:29:39 INF] Share cache loaded from disk successfully. Sharing 0 directories and 0 files
[21:29:39 INF] Warming browse response cache...
[21:29:39 INF] Starting system clock...
[21:29:39 INF] Browse response cached successfully in 15ms
[21:29:39 INF] System clock started
[21:29:39 INF] Connected to the Soulseek server
[21:29:40 INF] Logged in to the Soulseek server as [REDACTED]
[21:29:40 INF] HTTP GET / responded 404 in 54.1035 ms
[21:29:40 INF] HTTP GET / responded 404 in 1.1337 ms
[21:29:40 INF] HTTP GET / responded 404 in 1.5343 ms
[21:29:41 INF] HTTP GET / responded 404 in 0.1945 ms
[21:29:41 INF] HTTP GET / responded 404 in 0.1819 ms

squeaktoy avatar Feb 02 '24 20:02 squeaktoy

Alright, it seems that the wwwroot directory was empty, but why? I can't find any web files in the repository. But they seem to be present in the release builds. Where are they actually stored in the repo? Or do you as maintainer just only include them in final releases?

squeaktoy avatar Feb 02 '24 20:02 squeaktoy

The static content for the wwwroot is built and then copied over for the release. It sounds like maybe you've built this from source? The build docs should be helpful if so: https://github.com/slskd/slskd/blob/master/docs/build.md#hard-way

jpdillingham avatar Feb 02 '24 21:02 jpdillingham