Back

Unable to execute functions in self-hosted appwrite deployment.

  • 0
  • Self Hosted
  • Functions
Ivan
8 Jan, 2025, 10:23

Hello there! I am running a custom deployment of appwrite on premise using the docker container. When attempting to deploy a function, the deployment succeeds without any errors or warnings. But running the function / testing it through the UI does not work and gives me a very non-descriptive server error message with no additional details. The execution tab does not show any executions of the function which means it is probably never ran.

one thing that I have noticed is that the automatically generated domains are malformed and look like this: ${function_id).https://...

could this be the reason executions through the UI are also failing?

Do you have some advice on how to start debugging this? Which environment variables to modify?

TL;DR
Issue: Functions not working in self-hosted appwrite deployment. Deployments succeed without errors, but running/testing functions via UI results in vague 'server error' message. Executions tab shows no activity. Possible Reason: Automatically generated domains are malformed (e.g. `${function_id).https://...`). This could be causing execution failures. Steps to debug: 1. Check and correct malformed generated domains. 2. Modify environment variables related to function execution if needed. Solution: Fix the generated domain issue, as it may be the cause of failed function executions through the UI.
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