Comments (10)
Hey folks, I'm closing this issue as:
- It's hard to reproduce without more detailed logs
- It's gone stale as Khoj got a bunch of updates since the issue was opened 4 months ago (including a slicker web UX)
From what I can see, there maybe two different issues being discussed here:
- @JC1738 Given local docker build worked, I wonder if it was some architecture mismatch issue? E.g Khoj docker image built for amd64, your local machine is used some other architecture
- @nmathey, @ssuukk For your issue, the setup of llama.cpp, a Khoj dependency for offline chat, does seem like the primary suspect. Khoj may not work with the Celeron J3455 chipset on your Synology NAS. But I don't have access to a Celeron based machine to reproduce this.
Do try self-host the latest Khoj to see if to works for you all?
I've improved the self-hosting documentation and Docker setup in #919. So hopefully the setup experience is easier π€π½
from khoj.
I tried two different ubuntu machines (pop and regular) running 22.04 and get the same error. I was able to get it to work if I build the docker image. So unblocked, bug still think there is something wrong.
from khoj.
Same here for linux NAS. I have not tried building from scratch, I am able to work from my windows host, but not in a NAS linux server. Wondering why the log won't show anything in the docker container even I use --verbose=1 to hopefully get the logger show up some errors. No luck now. Still, not blocked.
from khoj.
Same on Synology NAS. Just fails with server-1 exited with code 132
, running it manually produces nothing:
root@storage2:~/khoj# docker-compose run server /bin/bash
WARN[0000] /root/khoj/docker-compose.yaml: `version` is obsolete
[+] Creating 1/0
β Container khoj-database-1 Running 0.0s
root@storage2:~/khoj#
Found this in dmesg:
[2869088.218453] traps: python3[21932] trap invalid opcode ip:7f8e2643d25b sp:7ffff75753b0 error:0 in libllama.so[7f8e26321000+135000]
from khoj.
Same error here
from khoj.
Same here on Synology NAS: any workaround available yet?
Should we try specific OS/Arch image https://github.com/khoj-ai/khoj/pkgs/container/khoj?
For now issue happen with release 1.13, 1.12.1 and 1.11.0
from khoj.
Ok all docker images are getting the same issue starting release 1.9.0 included. It DOES work with 1.8.0 and lower (at least the container is up and running)
It might be related to #680 which sounds link with the error you get in dmesg @ssuukk #748 (comment).
@JC1738 maybe we can change the title of this issue to be more precise?
from khoj.
Hey guys, I'm trying to reproduce this error. I just did a clean install on my Ubuntu 22.04.2 LTS with 16 GB RAM and it's working fine for me. Do you mind sharing more about your machine specs?
Sometimes when docker containers immediately exit like that, it's because of a memory constraint. You can try increasing the allocated memory to the Docker conatiner You can see some instructions on how to do that here for Linux.
This is happening at first run? Can you try building it again with KHOJ_DEBUG=True
in your environment variables and see if that gives you anymore info?
from khoj.
Me and @ssuukk trying to make it work on our Synology NAS. I got my self 16G Ram on it but I think the only thing I can do with memory and cpu is limitation which it is not active, so I guess it is getting all ressource it can I guess.
Yes it did happen on very first run.
I'll try rebuilding with debug on and let you know.
from khoj.
Since the container stop immediately after few seconds I can't get any logs actually.
Here are my NAS specs
Here is Docker engine info
Version: 20.10.23
API version: 1.41 (minimum version 1.12)
Go version: go1.19.1
Git commit: 5fcb1cf
Built: Fri Sep 8 08:18:18 2023
OS/Arch: linux/amd64
Experimental: false
from khoj.
Related Issues (20)
- ERROR: Cannot install khoj because these package versions have conflicting dependencies[FIX] HOT 6
- [FIX] Docker version: Application error: a client-side exception has occurred (see the browser console for more information). HOT 15
- Pre-loaded configurations HOT 1
- [IDEA] Chat with subset of Notes from within Obsidian HOT 3
- [bug]@api_chat.get("") do not @requires(["authenticated"]) HOT 2
- [FIX] Allow Setting File Types to Sync from Obsidian HOT 9
- [FIX] sometimes llm_thread throw exception because pool connect to openai api server HOT 3
- [IDEA] Any plan to add i18n support? HOT 3
- [FIX] bug get q too long cause this bug HOT 2
- Add additional documentation for building khoj from source
- [FIX] cannot set RESEND_API_KEY on the docker version HOT 2
- [IDEA] any plan add quivr brain feature to khoj HOT 5
- [FIX] Resend sender email hardcoded to [email protected] HOT 1
- Trying to Self-Host on Ubuntu (using pip) - Can't Complete Install HOT 1
- Trying to self host on Ubuntu using Docker - /server/admin returns bad request (400) HOT 2
- [FIX] obsidian vault is too big with all kinds of media. image and pdf exclude not enough HOT 4
- [FIX] The "Create Agent" button doesn't trigger anything HOT 1
- [IDEA] Support connection with Sharedpoint
- [FIX] khoj vision mode do not support multiple images
- How to define non -standard postgresql port? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from khoj.