Back

Error during function build on v1.5.5

  • 0
  • Self Hosted
  • Functions
Ernest
29 Apr, 2024, 09:17

I upgraded from 1.5.4 to appwrite v1.5.5 successfully (I did run migration). However, after the update my function (dart 3) deployment fails. Here are the build logs below:

TypeScript
Compiling ...
Error: AOT compilation failed
Generating AOT kernel dill failed!

/usr/src/code/src/Executor/Executor.php:96
#0 /usr/src/code/src/Appwrite/Platform/Workers/Builds.php(407): Executor\Executor->createRuntime('662f6447c6dd691...', '6476cc767ffc944...', '/storage/functi...', 'openruntimes/da...', 'v3', true, 'lib/pdf/pdf_ser...', '/storage/builds...', Array, 'tar -zxf /tmp/c...')
#1 [internal function]: Appwrite\Platform\Workers\Builds->Appwrite\Platform\Workers\{closure}()
#2 {main}

This happens on both my local appwrite instance and on my self-hosted cloud instance.

TL;DR
Developers encountered an error with the function build on Appwrite v1.5.5 after upgrading from v1.5.4, resulting in deployment failures. The error points to an issue with AOT compilation in the logs. This problem occurs on both local and self-hosted cloud instances.
Ernest
29 Apr, 2024, 09:36

I tried running migration on my local instance again and I got the following error.

TypeScript
Fatal error: Uncaught Utopia\Database\Exception\Query: Invalid query: Invalid cursor: UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can't start with a leading underscore in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php:4694
Stack trace:
#0 /usr/src/code/src/Appwrite/Migration/Migration.php(222): Utopia\Database\Database->find(Object(Utopia\Database\Document), Array)
#1 /usr/src/code/src/Appwrite/Migration/Migration.php(172): Appwrite\Migration\Migration->documentsIterator('cache')
#2 [internal function]: Appwrite\Migration\Migration->Appwrite\Migration\{closure}(Array, Array)
#3 {main}
  thrown in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php on line 4694
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