Back

function deployment stuck on "processing"

  • 0
  • Tools
  • General
manazo
21 May, 2024, 14:18

i'm trying to deploy one of my server functions. i tried to deploy it with appwrite-cli first. but seems like the cli is having some issues (related post https://discord.com/channels/564160730845151244/1242478705385803888) then i tried with manual deployment. now it's stuck at "processing" for last 10min, while each server function deployment usually takes less then a min. what should i do now?

appwrite-cli: 5.0.3 appwrite: cloud

TL;DR
Developers are experiencing a deployment issue where the function is stuck on "processing." The error log shows a Docker error and npm ENOENT related to missing 'package.json' file. The solution could be to ensure that the proper files are present in the correct location.
manazo
21 May, 2024, 14:47

it finally failed with the following log

TypeScript
Docker Error: Preparing for build ...
Building ...
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /usr/local/build/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/build/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-05-21T14_40_10_687Z-debug-0.log

/usr/src/code/vendor/appwrite/server-ce/src/Executor/Executor.php:97
#0 /usr/src/code/vendor/appwrite/server-ce/src/Appwrite/Platform/Workers/Builds.php(407): Executor\Executor->createRuntime('664caec0bc301ae...', '651c5286130842a...', '/storage/functi...', 'openruntimes/no...', 'v3', true, 'dist/main.js', '/storage/builds...', Array, 'tar -zxf /tmp/c...')
#1 [internal function]: Appwrite\Platform\Workers\Builds->Appwrite\Platform\Workers\{closure}()
#2 {main}
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