Back

Manual deployment failed

  • 0
  • Self Hosted
  • Functions
CodingXeer01
29 Jun, 2024, 13:05

I'm trying to manual deployment on my locally self-hosted but when I'm trying to deploy function maualy it through an error(build log):

TypeScript
File Not Found
/usr/src/code/src/Executor/Executor.php:97
#0 /usr/src/code/src/Appwrite/Platform/Workers/Builds.php(407): Executor\Executor->createRuntime('60810519c59fd93...', '66cgb88002df2f4...', '/storage/functi...', 'openruntimes/py...', 'v3', true, 'src/main.py', '/storage/builds...', Array, 'tar -zxf /tmp/c...')
#1 [internal function]: Appwrite\Platform\Workers\Builds->Appwrite\Platform\Workers\{closure}()
#2 {main}

openruntimes-executor (docker log [exactly when this error occurs]):

TypeScript
2024-06-29 18:28:29 Stats interval started.
2024-06-29 18:28:29 Executor is ready.
2024-06-29 18:28:52 [Error] Type: Exception
2024-06-29 18:28:52 [Error] Message: File Not Found
2024-06-29 18:28:52 [Error] File: /usr/local/app/http.php
2024-06-29 18:28:52 [Error] Line: 613
2024-06-29 18:28:56 [Error] Type: Exception
2024-06-29 18:28:56 [Error] Message: Runtime not ready. Container not found.
2024-06-29 18:28:56 [Error] File: /usr/local/app/http.php
2024-06-29 18:28:56 [Error] Line: 328
TL;DR
Manual deployment failing due to a migration issue from Appwrite cloud to local self-hosted instance. To fix it, delete the function and recreate it locally, as the migration likely did not copy over the function's builds. This error can be resolved by deleting all images and containers of Appwrite, then reinstalling Appwrite Docker before migrating the database.
CodingXeer01
29 Jun, 2024, 13:07

this started after i have done migrations from apwrite cloud to locally

CodingXeer01
29 Jun, 2024, 13:10

this error was also coming when i installed first time then i delete all images and containers of appwritet and re installed appwrite docker and it started manual deploying perfectly and then i migrate the database from cloud this error started again... yea i have done docker composer down and up

Joshi
29 Jun, 2024, 13:30

Delete the function and recreate it locally. Migration did probably not copy the functions builds over

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