Skip to content
Back

Uncaught Utopia\Database\Exception: Missing database. Database must be set before use

  • 0
  • Self Hosted
LoopyELBARTO
28 Aug, 2024, 01:42

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

TL;DR
- Developer is encountering an Uncaught Utopia\Database\Exception related to a missing database during self hosting setup. - Running the automatic installation command should be done in the same directory as the .env file. - Set `_APP_OPTIONS_ABUSE` to `disabled` in the .env file to address an issue. - Uncertainty on passing arguments in the automatic installation process. - Request to remove the rate limit. - Query about the decision to avoid using the automatic installation method. - Successful execution of a docker command versus issues faced with docker compose. - Confirmation provided for running the command from the documentation. - Missing database issue likely stems from
ideclon
28 Aug, 2024, 01:45

To confirm - you ran the command here?

LoopyELBARTO
28 Aug, 2024, 01:47

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

LoopyELBARTO
28 Aug, 2024, 01:49

The docker-compose.yml came from the docs as well

ideclon
28 Aug, 2024, 01:49

Is there a reason you don’t want to use the automatic installation?

LoopyELBARTO
28 Aug, 2024, 01:50

i want to remove the rate limit

LoopyELBARTO
28 Aug, 2024, 01:51

I'm not exactly sure how to pass it as an arguement in the automatic installation

ideclon
28 Aug, 2024, 01:52

Just set _APP_OPTIONS_ABUSE to disabled in the .env

LoopyELBARTO
28 Aug, 2024, 01:54

So, as clarification, when I can run the automatic installation command, I should be running it in the same directory as my .env file?

ideclon
28 Aug, 2024, 01:56

The automatic installation will create a directory wherever you run it called appwrite/. That directory will contain a docker-compose.yml and a .env

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more