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
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...