Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Could not resolve host #4939

Closed
2 tasks done
kempsu opened this issue Dec 31, 2022 · 2 comments
Closed
2 tasks done

馃悰 Bug Report: Could not resolve host #4939

kempsu opened this issue Dec 31, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@kempsu
Copy link

kempsu commented Dec 31, 2022

馃憻 Reproduction steps

I initialize a new function (nodejs 16.0) using the Appwrite CLI and set up the example function project using the correct credentials (project id, api key, etc.)

If I deploy the function to my local appwrite instance (running via docker) it works just fine. The execution of the function is done without custom data using the web frontend of my appwrite instance.

If I try to do the same on my server (Ubuntu 22.04, Appwrite also running via docker. Setup is as identical as it can be) it does not work.

馃憤 Expected behavior

I would expect the function to run just fine also on a docker-instance on some virtual server.

馃憥 Actual Behavior

The function crashes after a couple of seconds, this is the error message:

An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 63b09b04167263769ffe-63b09c5c9281f34c2f3b

Output of sudo docker logs appwrite-executor -f:

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 Ruby 3.0!
Successfully Warmed up PHP 8.0!
Successfully Warmed up Python 3.9!
Successfully Warmed up Node.js 16.0!
Building container : 63b09b04167263769ffe-63b09c5c9281f34c2f3b
Build Stage completed in 0 seconds
Executing Runtime: 63b09b04167263769ffe-63b09c5c9281f34c2f3b
[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Could not resolve host: 63b09b04167263769ffe-63b09c5c9281f34c2f3b
[Error] File: /usr/src/code/app/executor.php
[Error] Line: 544

馃幉 Appwrite version

Version 1.2.x

馃捇 Operating system

Linux

馃П Your Environment

Appwrite 1.2.0, Ubuntu 22.04 LTS, latest docker environment with docker compose.

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@kempsu kempsu added the bug Something isn't working label Dec 31, 2022
@stnguyen90 stnguyen90 changed the title 馃悰 Bug Report: 馃悰 Bug Report: Could not resolve host Jan 5, 2023
@stnguyen90
Copy link
Contributor

@kempsu thanks for raising this issue! 馃檹馃徏 Would you please take a look at #4671 (comment) and see if that resolves your problem?

@kempsu
Copy link
Author

kempsu commented Jan 5, 2023

@stnguyen90 thanks for taking the time to point me towards this comment. It is indeed correct, it is the same issue and I was not aware of it. My apologies! Also Happy New Year! :)

@kempsu kempsu closed this as completed Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@stnguyen90 @kempsu and others