Huh. And docker compose exec appwrite ping api.github.com -c 4?
Cannot assign null to property Appwrite\Auth\OAuth2\Github::$user of type array
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
ping: bad address 'api.github.com'
ya something seems weird with DNS
Rank 2: Process
is there any workaround to rectify this issue, this seams to be out of my knowledge. even i have added DNS is docker engine but no luck 🙂 . here is what i have in docker engine : "dns": [
"1.1.1.1",
"1.0.0.1",
"10.0.0.2",
"8.8.8.8"
],
what is 10.0.0.2?
Rank 2: Process
this was default dns i have added only cloudflare dns
maybe remove it?
can you also try running this:
docker run --rm alpine nslookup api.github.com
Rank 2: Process
@Drake i have done the following changes in docker-compose.yml and successfully configured the Gitapps , appwrite:
image: appwrite/appwrite:1.4.13
dns: 8.8.8.8
container_name: appwrite i have added dns
Rank 2: Process
Server: 192.168.65.7
Address: 192.168.65.7:53
Non-authoritative answer:
Name: api.github.com
Address: 20.207.73.85
*** Can't find api.github.com: No answer
And this?
docker run --rm alpine apk add curl && curl https://api.github.com
if that fails, it's a docker problem and not an appwrite problem. what's your server's OS?
Rank 2: Process
Just Dm you the response as message was long and win is the os
Rank 2: Process
is there any issue if i add dns: 8.8.8.8 in appwrite image like i mentioned above ?
ok the curl works...
without any modifications in the docker-compose.yml, does it still not work?
also, in general, you shouldn't modify the docker-compose.yml file from Appwrite because it will be wiped when you upgrade
Rank 2: Process
nope, is not working without modification
weird....so it works with the modification?
Rank 2: Process
Yes, its working with modification only 🙂
weiiiird. Anyways...if you need to customize the docker-compose.yml file, use a docker-compose.override.yml file so that your changes won't be wiped after an upgrade
Rank 2: Process
But its not over :), now while creating function build is getting fail, here are the logs : Could not resolve host: api.github.com with status code 0
you'll need to add that DNS config to the executor container too
Rank 2: Process
Is it openruntimes-executor. right ?
Rank 2: Process
@Drake here is the last update, my host was obtaining DNS automatically, now i have manually configured the DNS to 1.1.1.1 and 1.0.0.1. Which solved the issue.