as the title suggest, my function cannot look up to my appwrite console. it's just giving me error
Exception: AppwriteException: , Failed host lookup: 'my.domain.tech' (0)
#0 main (package:account/main.dart:144)
<asynchronous suspension>
#1 Future.any.onValue (dart:async/future.dart:608)
<asynchronous suspension>
tried running docker ps -a
command to see what's error, and all seems running good
does that domain name work?
Yes, the domain name is working correctly
something is screwing up your dns records. try doing a curl from inside the runtime container
and on your server
How do I do it?
found it tried curl my.domain.tech
its saying could not resolve host
tried it in my server, it gets an error but trying it outside my server it doesn't give an error
tried it in my server What do you mean?
check your /etc/hosts to see if something weird is being done with your domain routing.
either that or maybe firewall
What do you mean? I connected to my server using
ssh
command and then I usedcurl
inside it but it returnscould not resolve host
check your /etc/hosts I have not changed anything in my hosts file but this is the result when checking the file
GNU nano 6.2
/etc/hosts
Your system has configured 'manage_etc_hosts' as True.
As a result, if you wish for changes to this file to persist
then you will need to either
a.) make changes to the master file in /etc/cloud/templates/hosts.debian . tmp1
b.) change or remove the value of 'manage_etc_hosts' in
/etc/cloud/cloud.cfg or cloud—config from user—data
127. O. 1.1 Otoscopia Otoscopia
127.0.O.1 localhost
# The following lines are desirable for IPv6 capable hosts
: : 1 localhost ip6—10caIhost ip6—Ioopback
#02: :1 ip6—aIInodes
ff@2: : 2 ip6—a11routers
either that or maybe firewall I have setup a firewall to only allow inbound connection of
ssh port 22
andhttps port 443
while the outbound rules are :
Name Protocol Port Range
ICMP ICMp
All TCP TCP All ports
All UDP UDP All ports
I could ping my server inside the ssh
terminal, but on the outside it returns Request timed out.
this was supposed to be working a few weeks ago
kinda weird why is it acting this way
Ok so if you can't curl from your server (not even inside the container) it definitely won't work in the container
Maybe it's an ipv6 problem?
Or maybe the DNS server your server is using is different/special?
I have a question, I set my _APP_DOMAIN_FUNCTIONS=functions.mydomain.tech
and I setup my digitalocean networking Type A
to *.functions.mydomain.tech
with the value of my digitalocean droplet, is this correct?
You should be using a cname record pointing to your main domain.
This shouldnt cause this problem though
Recommended threads
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- 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...