Back

Failed to initialize logging provider: Unable to parse DSN: scheme is required

  • 0
  • Self Hosted
Noss
24 Sep, 2024, 14:58

I setup a new appwrite instance on a VPS and I now get the following error inside the appwrite container:

TypeScript
Using deprecated logging configuration. Please update your configuration to use DSN format.Unable to parse DSN: scheme is required
[Error] Timestamp: 2024-09-24T14:55:49+00:00
[Error] Method: POST
[Error] URL: /v1/account
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Method unsupported over HTTP. Please use HTTPS instead.
[Error] File: /usr/src/code/app/controllers/general.php
[Error] Line: 622
Failed to initialize logging provider: Unable to parse DSN: scheme is required

Did I do something wrong with my .env variables? Furthermore I think the https://appwrite.io/docs/advanced/self-hosting/environment-variables is not up to date.

TL;DR
New appwrite instance on VPS throwing error about failed logging provider initialization due to missing scheme in DSN. Error log indicates need to switch from HTTP to HTTPS. Check .env variables. Documentation may be outdated. Solution: Update .env variables and switch to HTTPS.
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