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
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast
- Failed to generate functions SSL
```appwrite-worker-certificates | Cannot renew domain (functions.domain.com) on attempt no. 9 certificate: Failed to verify domain DNS records. appwrite-worker...