Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Function Deployment Cannot be Deleted or Re-Deployed #7831

Open
2 tasks done
ItzNotABug opened this issue Mar 16, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.

Comments

@ItzNotABug
Copy link
Contributor

馃憻 Reproduction steps

  1. Upload a faulty function manually that fails the building process
    Example: use onnxruntime==1.17.1 as a requirement for a Python Function.
  2. The build will fail
  3. Click the 3 dots on the failed deployment & click Redeploy
  4. This build will fail too
  5. On the newly created deployment that failed, click the 3 dots & click Delete
  6. It is deleted properly
  7. Now try to redeploy or delete the original deployment

Logs show File not found if you try to redeploy & a Server Error is thrown if you try to delete the deployment.
Docker logs for the Server Error -

Warning: unlink(/storage/functions/app-dank/65f5660b22a62a60efcb.gz): No such file or directory in /usr/src/code/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 343

馃憤 Expected behavior

Handle properly deleting and redeployment of function.

馃憥 Actual Behavior

  1. File not found in case of redeploy
  2. Server Error in case of deployment deletion

馃幉 Appwrite version

Version 1.5.x

馃捇 Operating system

MacOS

馃П Your Environment

No response

馃憖 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?

@ItzNotABug ItzNotABug added the bug Something isn't working label Mar 16, 2024
@eldadfux eldadfux added the product / functions Fixes and upgrades for the Appwrite Functions. label Mar 18, 2024
@ItzNotABug
Copy link
Contributor Author

Update: This can sometimes be observed on Cloud too. Reproduction steps are almost similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.
Projects
None yet
Development

No branches or pull requests

2 participants