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

Bug: llama-server not loading the UI #10404

Closed
anagri opened this issue Nov 19, 2024 · 4 comments
Closed

Bug: llama-server not loading the UI #10404

anagri opened this issue Nov 19, 2024 · 4 comments
Labels
bug-unconfirmed medium severity Used to report medium severity bugs in llama.cpp (e.g. Malfunctioning Features but still useable)

Comments

@anagri
Copy link

anagri commented Nov 19, 2024

What happened?

building the llama-server from scratch using the latest 8e752a7

./examples/server/deps.sh
rm -rf build && cmake -S . -B build && cmake --build build --config Release -j $(sysctl -n hw.logicalcpu) --target llama-server

on running the server, then loading the http://127.0.0.1:8080 getting the following logs -

main: server is listening on http://127.0.0.1:8080 - starting the main loop
srv  update_slots: all slots are idle
request: GET / 127.0.0.1 200
request: GET /index.js 127.0.0.1 404
request: GET /completion.js 127.0.0.1 200
request: GET /json-schema-to-grammar.mjs 127.0.0.1 404

the index.html is expecting /index.js and other files, which are returning 404. i have downloaded the dependencies, but still few files are missing. kindly check if these files are downloaded with deps.sh.

Name and Version

$ ./build/bin/llama-cli --version
version: 4131 (8e752a7)
built with Homebrew clang version 18.1.5 for arm64-apple-darwin23.3.0

What operating system are you seeing the problem on?

Mac

Relevant log output

No response

@anagri anagri added bug-unconfirmed medium severity Used to report medium severity bugs in llama.cpp (e.g. Malfunctioning Features but still useable) labels Nov 19, 2024
@anagri
Copy link
Author

anagri commented Nov 19, 2024

attn: @ngxson

@ngxson
Copy link
Collaborator

ngxson commented Nov 19, 2024

It's either your browser cache the old page, or you need to re-clone the repo. Ref: #10175 (comment)

@ngxson
Copy link
Collaborator

ngxson commented Nov 19, 2024

the index.html is expecting /index.js and other files, which are returning 404

Clarification: the new UI never calls /index.js

@anagri
Copy link
Author

anagri commented Nov 20, 2024

run git clean -dfX to clean the ignored files, and rerun the build.

@anagri anagri closed this as completed Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-unconfirmed medium severity Used to report medium severity bugs in llama.cpp (e.g. Malfunctioning Features but still useable)
Projects
None yet
Development

No branches or pull requests

2 participants