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: Cannot deploy or execute functions on 1.4.4 when using external storage provider #6439

Closed
2 tasks done
Colton127 opened this issue Oct 2, 2023 · 3 comments 路 Fixed by #6476
Closed
2 tasks done
Assignees
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.

Comments

@Colton127
Copy link

Colton127 commented Oct 2, 2023

馃憻 Reproduction steps

  1. Install a fresh installation of 1.4.4
  2. Set an external storage provider by modifying _APP_STORAGE_DEVICE and associated storage provider settings in .env
  3. Attempt to (re)deploy or execute any function, new or existing.

馃憤 Expected behavior

I expected the function to deploy successfully and execute successfully

馃憥 Actual Behavior

Attempting to deploy a function (occurs both manual and from github):
Screenshot 2023-10-02 at 11 50 26 AM

Attempting to execute an already-deployed function:
Screenshot 2023-10-02 at 11 50 58 AM
Full error: An internal curl error has occurred while starting runtime! Error Msg: File Not Found\nError Code: 500

Output from docker logs openruntimes-executor:

Removing orphan runtimes...
Cleaning up containers...
No containers found to clean up.
Cleanup finished.
Orphan runtimes removal finished.
Pulling v3 images...
Warming up Node.js 16.0 environment...
Warming up PHP 8.0 environment...
Warming up Ruby 3.0 environment...
Warming up Python 3.9 environment...
Warming up Dart 2.17 environment...
Warming up Dart 2.18 environment...
Warming up Dart 3.0 environment...
Successfully Warmed up Dart 3.0!
Successfully Warmed up Dart 2.17!
Successfully Warmed up Dart 2.18!
Successfully Warmed up Python 3.9!
Successfully Warmed up Ruby 3.0!
Successfully Warmed up Node.js 16.0!
Successfully Warmed up PHP 8.0!
Image pulling finished.
Starting maintenance interval...
Maintenance interval started.
Starting stats interval...
Stats interval started.
Executor is ready.
[Error] Type: Exception
[Error] Message: File Not Found
[Error] File: /usr/local/app/http.php
[Error] Line: 603
[Error] Type: Exception
[Error] Message: Runtime not ready. Error Msg: []

Error: No such container: appwrite-executor-6482321089e7fc625f5f-651adfe3b2b6054f9e68

[Error] File: /usr/local/app/http.php
[Error] Line: 319

appwrite-worker-builds error:

File Not Found
/usr/src/code/src/Executor/Executor.php:96
#0 /usr/src/code/app/workers/builds.php(373): Executor\Executor->createRuntime('651ae2457d8768f...', '6482321089e7fc6...', '/storage/functi...', 'openruntimes/da...', 'v3', true, 'lib/main.dart', '/storage/builds...', Array, 'tar -zxf /tmp/c...')

馃幉 Appwrite version

Version 1.4.x

馃捇 Operating system

Ubuntu 23.04

馃П Your Environment

I am using backblaze external storage provider. I can confirm that the storage configuration is correct because the functions are uploaded to backblaze, and because downgrading to appwrite 1.4.3 fixes the issue.

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

@Colton127 Colton127 added the bug Something isn't working label Oct 2, 2023
@stnguyen90 stnguyen90 added the product / functions Fixes and upgrades for the Appwrite Functions. label Oct 2, 2023
@stnguyen90
Copy link
Contributor

Discord thread: https://discord.com/channels/564160730845151244/1158106759328710696/1158446540747182100

@stnguyen90
Copy link
Contributor

@Colton127, would you please try bumping the openruntimes-executor image to 0.4.3 and then deploy the changes with docker compose up -d?

@stnguyen90 stnguyen90 changed the title 馃悰 Bug Report: [Functions] Cannot deploy or execute functions on 1.4.4 when using external storage provider 馃悰 Bug Report: Cannot deploy or execute functions on 1.4.4 when using external storage provider Oct 3, 2023
@stnguyen90 stnguyen90 linked a pull request Oct 4, 2023 that will close this issue
3 tasks
@stnguyen90 stnguyen90 mentioned this issue Oct 4, 2023
3 tasks
@Colton127
Copy link
Author

@Colton127, would you please try bumping the openruntimes-executor image to 0.4.3 and then deploy the changes with docker compose up -d?

This resolved the issue! Everything is working fine. Thank you so much!

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
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants