Skip to content
Back

Error deploying a function

  • 1
  • Self Hosted
  • Functions
Bielframos
15 Apr, 2025, 14:19

Hey everyone, how’s it going?

I'm trying to deploy a function from my local environment to a project on my self-hosted Appwrite instance.

At first, I was facing an error related to the "specification" parameter, and thanks to a discussion here in the support channel, I managed to fix that part. However, I’m still unable to successfully deploy the function to my Appwrite instance. When I run the command appwrite push functions and follow the steps, it tells me that a function with the same ID already exists.

When I check the Appwrite console, I can see the function inside my project, but there’s no deployment associated with it. Then, when I try to manually deploy using the command appwrite functions create-deployment --function-id MY-FUNCTION-ID --code "." --activate true --verbose, I get a 404 error with the message function_not_found.

I’ll proceed with a manual deployment for now, but I’d really appreciate some help in understanding what’s causing this issue and how to fix it properly.

TL;DR
Developers experiencing issues deploying a function on their self-hosted Appwrite instance even after fixing the initial specification error. Function exists but deployment fails with a 404 error. To resolve, ensure the function is correctly identified by the ID and check if deployment is properly set up in the Appwrite console.
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