Uncaught Utopia\Database\Exception: Missing database. Database must be set before use
- 0
- Self Hosted
I'm having issues with setting up self hosting. It keeps saying that it is missing a database. I used the official docs for the docker-compose to set it up.
.env
_APP_OPTIONS_ABUSE=disabled
_APP_DB_USER=new-user
_APP_DB_PASS=new-password
_APP_DB_ROOT_PASS=new-root-password
To confirm - you ran the command here?
Thats correct. followed every step. I do want to note that running this:
docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:1.5.10
DOEST NOT give me any issues. Only when using docker compose
The docker-compose.yml came from the docs as well
Is there a reason you don’t want to use the automatic installation?
i want to remove the rate limit
I'm not exactly sure how to pass it as an arguement in the automatic installation
Just set _APP_OPTIONS_ABUSE to disabled in the .env
So, as clarification, when I can run the automatic installation command, I should be running it in the same directory as my .env file?
The automatic installation will create a directory wherever you run it called appwrite/. That directory will contain a docker-compose.yml and a .env
Recommended threads
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- Selfhosted Github App installation
I've followed this guide: https://appwrite.io/docs/advanced/self-hosting/configuration/version-control to connect GitHub to my self-hosted Appwrite instance (1....