[GH-ISSUE #565] unable to manual setup on my local #363

Closed
opened 2026-03-02 11:49:12 +03:00 by kerem · 11 comments
Owner

Originally created by @mrkirthi-24 on GitHub (Oct 18, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/565

getting no such table: user error while signing up on local. please help
Screenshot 2024-10-18 at 12 29 25 PM

Originally created by @mrkirthi-24 on GitHub (Oct 18, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/565 getting **no such table: user** error while signing up on local. please help <img width="729" alt="Screenshot 2024-10-18 at 12 29 25 PM" src="https://github.com/user-attachments/assets/36043f29-1b97-4113-b3fc-61a13eddb439">
kerem 2026-03-02 11:49:12 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@kamtschatka commented on GitHub (Oct 18, 2024):

sounds like you might not have mounted the data directory correctly? that usually causes the database to be missing and resulting in this error (might be other cases as well, i have only seen this one so far)

<!-- gh-comment-id:2422345612 --> @kamtschatka commented on GitHub (Oct 18, 2024): sounds like you might not have mounted the data directory correctly? that usually causes the database to be missing and resulting in this error (might be other cases as well, i have only seen this one so far)
Author
Owner

@mrkirthi-24 commented on GitHub (Oct 18, 2024):

DATA_DIR="/Users/apple/Desktop/hoarder/packages/db"

Screenshot 2024-10-18 at 8 56 53 PM
<!-- gh-comment-id:2422730624 --> @mrkirthi-24 commented on GitHub (Oct 18, 2024): DATA_DIR="/Users/apple/Desktop/hoarder/packages/db" <img width="776" alt="Screenshot 2024-10-18 at 8 56 53 PM" src="https://github.com/user-attachments/assets/bb98310f-8311-4549-8a64-37e33d42c30e">
Author
Owner

@mrkirthi-24 commented on GitHub (Oct 18, 2024):

is this correct @kamtschatka ?

<!-- gh-comment-id:2422731414 --> @mrkirthi-24 commented on GitHub (Oct 18, 2024): is this correct @kamtschatka ?
Author
Owner

@kamtschatka commented on GitHub (Oct 18, 2024):

are you setting up a development environment?

<!-- gh-comment-id:2422733755 --> @kamtschatka commented on GitHub (Oct 18, 2024): are you setting up a development environment?
Author
Owner

@kamtschatka commented on GitHub (Oct 18, 2024):

see https://docs.hoarder.app/Development/setup, you have to run pnpm run db:migrate, to actually get the database set up

<!-- gh-comment-id:2422736722 --> @kamtschatka commented on GitHub (Oct 18, 2024): see https://docs.hoarder.app/Development/setup, you have to run `pnpm run db:migrate`, to actually get the database set up
Author
Owner

@mrkirthi-24 commented on GitHub (Oct 18, 2024):

i did run pnpm run db:migrate. you can see db.db file in the image.

<!-- gh-comment-id:2422740146 --> @mrkirthi-24 commented on GitHub (Oct 18, 2024): i did run `pnpm run db:migrate`. you can see db.db file in the image.
Author
Owner

@mrkirthi-24 commented on GitHub (Oct 18, 2024):

see https://docs.hoarder.app/Development/setup, you have to run pnpm run db:migrate, to actually get the database set up

i followed the whole setup guide. but still getting the error

<!-- gh-comment-id:2422741566 --> @mrkirthi-24 commented on GitHub (Oct 18, 2024): > see https://docs.hoarder.app/Development/setup, you have to run `pnpm run db:migrate`, to actually get the database set up i followed the whole setup guide. but still getting the error
Author
Owner

@kamtschatka commented on GitHub (Oct 18, 2024):

but what about the other 2 projects that also need this .env variable?

<!-- gh-comment-id:2422742955 --> @kamtschatka commented on GitHub (Oct 18, 2024): but what about the other 2 projects that also need this .env variable?
Author
Owner

@mrkirthi-24 commented on GitHub (Oct 18, 2024):

but what about the other 2 projects that also need this .env variable?

i actually want to use web only. so are you saying that i also create an .env file in web folder

<!-- gh-comment-id:2422745830 --> @mrkirthi-24 commented on GitHub (Oct 18, 2024): > but what about the other 2 projects that also need this .env variable? i actually want to use web only. so are you saying that i also create an .env file in web folder
Author
Owner

@kamtschatka commented on GitHub (Oct 18, 2024):

yes, those are the first 3 steps in the instructions in the documentation. did you do that?

<!-- gh-comment-id:2422749495 --> @kamtschatka commented on GitHub (Oct 18, 2024): yes, those are the first 3 steps in the instructions in the documentation. did you do that?
Author
Owner

@ryands17 commented on GitHub (Jul 28, 2025):

The trick here is to use an absolute path and not a relative one for the DATA_DIR and if you're using the script to run locally, then load the env file beforehand using dotenv-cli

<!-- gh-comment-id:3128225546 --> @ryands17 commented on GitHub (Jul 28, 2025): The trick here is to use an absolute path and not a relative one for the `DATA_DIR` and if you're using the script to run locally, then load the env file beforehand using `dotenv-cli`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#363
No description provided.