Repository navigation
Slow boot times
#7072
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've had slow initial loading times since I tried to install and integrate Cognee. After some troubleshooting, it seems like the repair_tree_ownership() function in /odysseus/docker/entrypoint.sh does a large amount of scanning since I added this new, large library, causing the slower boot times. For reference, it went from ~10s to over a minute until the page initially opens the login screen. Especially in case I add any more libraries, I want to try to address it now if I can.
So I guess my question is, would I be alright just skipping some specific libraries, like Cognee? Or could I just skip /app/data/.local entirely?
Here's the function I am talking about:
repair_tree_ownership() { dir="$1" if [ -d "$dir" ]; then find "$dir" -xdev -not -uid "$PUID" -print0 2>/dev/null \ | xargs -0 -r chown "$PUID:$PGID" 2>/dev/null || true fi }All reactions