Skip to content

馃悰 Bug Report: Self-hosted functions via domain: deployment_not_found#13619

Description

@Leon0412

馃憻 Reproduction steps

  1. Create a function + deployment
  2. Access the generated domain or a custom domain
  3. Then this error appears:
    This page is empty; activate a deployment to make it live.
    deployment_not_found

馃憤 Expected behavior

The activated deployment should be automatically assigned by the corresponding domain

馃憥 Actual Behavior

Whether it's a custom domain or the generated domain, the following error always appears: "This page is empty; activate a deployment to make it live. deployment_not_found"

Creating a new deployment or activating a different deployment does not solve the problem; instead, you must activate the deployment using the following commands - every time:

  • DB_CONTAINER=$(docker compose ps -q postgresql)
  • docker exec -it "$DB_CONTAINER" psql -U user -d appwrite -c "UPDATE appwrite._console_rules SET \"deploymentId\" = '<DEPLOYMENT_ID>' WHERE domain = '<FUNCTION_DOMAIN>';"

After that, the deployment works via the corresponding URL.
The same problem also affects sites, as has already been reported here: #13088

馃幉 Appwrite version

Different version (specify in environment)

馃捇 Operating system

Linux

馃П Your Environment

Self-Hosted 2.0

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    product / consoleConsole, UI and UX issuesproduct / domainsFixes and upgrades for the Appwrite Domains.product / functionsFixes and upgrades for the Appwrite Functions.product / sitesFixes and upgrades for Appwrite Sites.product / vcsFixes and upgrades for the Appwrite VCS.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions