
I have a function that is working in my local environment and in the staging environment as well, but it fails in production. The execution log says
An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 649e989077daded2055a-64b0e9611e85fdaf4658
but I also checked the appwrite executor logs and I find an error Runtime not found inside
# docker logs appwrite-executor
Warming up Node.js 16.0 environment...
Warming up PHP 8.0 environment...
Warming up Ruby 3.0 environment...
Warming up Python 3.9 environment...
Removing orphan runtimes...
Successfully Warmed up Python 3.9!
Successfully Warmed up PHP 8.0!
Successfully Warmed up Node.js 16.0!
Successfully Warmed up Ruby 3.0!
[Error] Type: Exception
[Error] Message: Runtime not found. Please create the runtime.
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 469
Building container : 649e989077daded2055a-64b0e9611e85fdaf4658
Build Stage completed in 0 seconds
Executing Runtime: 649e989077daded2055a-64b0e9611e85fdaf4658
[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 649e989077daded2055a-64b0e9611e85fdaf4658
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 544
Executing Runtime: 649e989077daded2055a-64b0e9611e85fdaf4658
[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 649e989077daded2055a-64b0e9611e85fdaf4658
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 544
The function uses PHP-8.0 runtime. The env variables for the function are properly set. What am I missing?

After a less complicated search 🙂 i found this https://discord.com/channels/564160730845151244/1115412723270946867/1115416706345611354 and it solved the problem.
Recommended threads
- CSV Import not working
I am running 1.7.4, trying the sample book csv import. I get a pop up saying import started and then a quick follow up saying completed. Nothing ever appears ...
- Is my approach for deleting registered u...
A few weeks ago, I was advised not to use the registered users' id in my web app. Instead, I store the publicly viewable information such as username and email ...
- ❗[Help] Function stuck in "waiting" stat...
Hi Appwrite team 👋 I'm trying to contribute to Appwrite and followed the official setup instructions from the CONTRIBUTING.md guide to run the platform locall...
