openchatai / OpenChat

LLMs custom-chatbots console ⚡
https://open.cx
MIT License
5.17k stars 642 forks source link

Issue building and running with SQLite option. #44

Closed tjwhite91 closed 1 year ago

tjwhite91 commented 1 year ago

In the backend-server/.env file I set DB_CONNECTION to sqlite and added DB_DATABASE variable set to the path of an empty sqlite database file. I then built/ran the program with docker-compose build and docker-compose up and went to port 8000 (I'm using an Ubuntu server). It's apparently running but giving me the following error: "Database file at path [/the/path/I/used.sqlite] does not exist. Ensure this is an absolute path to the database." Using the file command I confirmed this path does exist and is accessible to the user which runs the docker image. Not sure if SQLite is fully supported yet or that I'm doing something wrong? I think I covered just about everything I could in getting it to run with SQLite. If anyone has any ideas it would be greatly appreciated. Was really looking forward to demo'ing this awesome program with my own API limits. Thanks.

parkerault commented 1 year ago

Is the file in a volume mount or internal? Internal might require different permissions. You can also go the scorched earth route and chmod 775. :)