Back

Appwrite functions build error

  • 0
  • Self Hosted
  • Functions
Ewyn
2 Sep, 2024, 06:47

Hey there! when trying to deploy my function i get this error

TypeScript
Skipping runtimes stats loop due to error: Docker Error: EOF

[Error] Type: Exception
[Error] Message: Docker Error: 
[Error] File: /usr/local/app/http.php
[Error] Line: 615
[Error] Type: Exception
[Error] Message: Runtime not ready. Container not found.
[Error] File: /usr/local/app/http.php
[Error] Line: 330

Warning: rmdir(/tmp/exc1-66cc1b8c00237ca51b11-66d55c473cf737e6a04e-build/builds/.conda/lib): Directory not empty in /usr/local/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 373

Warning: rmdir(/tmp/exc1-66cc1b8c00237ca51b11-66d55c473cf737e6a04e-build/builds/.conda): Directory not empty in /usr/local/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 373

Warning: rmdir(/tmp/exc1-66cc1b8c00237ca51b11-66d55c473cf737e6a04e-build/builds): Directory not empty in /usr/local/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 373

Warning: rmdir(/tmp/exc1-66cc1b8c00237ca51b11-66d55c473cf737e6a04e-build): Directory not empty in /usr/local/vendor/utopia-php/storage/src/Storage/Device/Local.php on line 373
[Error] Type: Exception
[Error] Message: Docker Error: 
[Error] File: /usr/local/app/http.php
[Error] Line: 615

Docker Error: 
/usr/src/code/src/Executor/Executor.php:97
#0 /usr/src/code/src/Appwrite/Platform/Workers/Builds.php(424): Executor\Executor->createRuntime('66d55c473cf737e...', '66cc1b8c00237ca...', '/storage/functi...', 'openruntimes/py...', 'v3', true, 'entrypoint.py', '/storage/builds...', Array, 'tar -zxf /tmp/c...')
#1 [internal function]: Appwrite\Platform\Workers\Builds->Appwrite\Platform\Workers\{closure}()
#2 {main}```
TL;DR
Error message indicates Docker errors and issues with the runtimes. The warning messages suggest directories were not empty during removal. **Solution:** Try rebuilding the Docker images and cleaning up the directories before redeploying the function. This can help resolve the Docker errors and runtime issues.
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