Back

Appwrite won't load deno runtime after migration

  • 0
  • Self Hosted
  • Functions
42Tom
22 Aug, 2023, 09:02

Hello, I migrated one of my Appwrite server from 1.3.7 to 1.3.8 and to a new domain.

When trying to call a function, I get an error message saying that the runtime is not activated.

I checked in the .env, I still have deno-1.24 in the _APP_FUNCTIONS_RUNTIMES variable. I tried restarting several times, without luck.

I tried deno-1.21, not working either. I tried removing the python-3.9 runtime, and it disappears. So I get the variable name correct. I did run the docker compose exec migrate command.

I tried enabling the cpp-17.0 runtime, which works.

With this value: _APP_FUNCTIONS_RUNTIMES=node-16.0,deno-1.24,cpp-17.0

I get these logs in appwrite-executor:

TypeScript
Warming up Node.js 16.0 environment...
Warming up C++ 17.0 environment...
Removing orphan runtimes...
Successfully Warmed up Node.js 16.0!
Successfully Warmed up C++ 17.0!

Edit for more context: I have deno-1.24 functions deployed that have an execution history from the previous deployment.

Any idea?

TL;DR
The user migrated their Appwrite server and encountered an issue where the deno runtime is not loading after the migration. They have checked the `.env` file and confirmed that the correct runtime version is specified. They have also tried restarting and removing other runtimes without success. The cpp-17.0 runtime works, but the deno runtime does not. They are looking for help to solve the issue. Potential Solution: It is mentioned in the thread that the deno runtime may not be compatible with ARM-based servers. Confirming the compatibility of the deno runtime with the server's architecture and potentially switching to a compatible runtime version could solve
42Tom
22 Aug, 2023, 09:27

I deleted all my deployed functions, it still does not work.

I would really appreciate some help as my whole production environment is halted because of this bug....

42Tom
22 Aug, 2023, 09:39

Ok, it seems that the Deno open runtimes is not compatible with ARM, and my new server is ARM-based Not 100% sure it's linked to that

If so, there should be at least some kind of error somewhere to indicate the issue Especially since the doc states that Appwrite is ARM-compatible, and that ARM servers are likely to grow in popularity

42Tom
22 Aug, 2023, 09:48

Re-deployed on a x86 server, this is working. I'm filling an issue.

42Tom
22 Aug, 2023, 09:53
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