Admin
Thats good it works in the executor...still bizarre it doesn't work in the runtime container...
Votes
0
Replies
24
Participants
Unknown
Messages
25
Admin
Thats good it works in the executor...still bizarre it doesn't work in the runtime container...
Admin
Is there maybe an ip or subnet conflict with that ip address and another docker network or container?
Rank 2: Process
I will check it on portainer
Rank 2: Process
No there is no other network or ip
Rank 2: Process
I've made a ping to the registry ip:
docker compose exec appwrite-executor docker run --rm openruntimes/node:v2-18.0 ping 104.16.16.35
it works
PING 104.16.16.35 (104.16.16.35): 56 data bytes
64 bytes from 104.16.16.35: seq=0 ttl=52 time=83.673 ms
but the name doesn't resolve D:
Admin
How did you set up/install Appwrite?
Rank 2: Process
with the default docker compose yml, version 1.3.1
https://appwrite.io/install/compose
Admin
And what did you do with that?
And what about the .env file?
Rank 2: Process
The .env file, the same as the official appwrite site.
https://appwrite.io/install/env
I change .env vars: secrets, runtimes (only node 18), db, etc
Rank 2: Process
then I just do docker compose up -d
Rank 2: Process
and successfully access to console and create databases and collections, also i run successfully with the cli
Admin
Sounds fine...
The only thing I can think of is a subnet/IP conflict. Otherwise, I'm not sure
Rank 2: Process
Thank you so much for your time.
I will try to check the ips in windows and wsl
Admin
And docker subnets too
Rank 2: Process
Ok
Rank 2: Process
@Steven you are going to kill me 😅
I was reading this https://askubuntu.com/a/1419872 then i remember that i have a paid kaspersky in this laptop. I suspended it and it works.
I apologize, i have many laptops.
Now the build return:
added 10 packages, and audited 11 packages in 6s
1 package is looking for funding
run `npm fund` for details
found 0 vulnerabilities
Admin
Wow interesting...thanks for letting me know!
Rank 2: Process
Thanks again
Rank 2: Process
[SOLVED] node 18 runtime error
Rank 2: Process
Hi Steven, I was digging inside the problem. I don't know how kaspersky was involved with wsl, but indeed there was a conflict with subnet ip.
docker0 ip-range si 172.17.0.0/16 and my wsl ip is 172.17.240.1 (the same that the runtime container is using for nameserver) that was the reason why "nslookup registry.npmjs.org". For docker 172.17.240.1 is a container.
I try to change wsl ip, but it seems easier to change docker0 ip-range. To change it I used daemon.json. For anyone who needs, here is a guide:
https://medium.com/codebrace/understanding-docker-networks-and-resolving-conflict-with-docker-subnet-ip-range-bfaad092a7ea
Thank you again, I hope this is useful for someone with the same problem.
Admin
This sort of makes sense...I'm still baffled at how Kaspersky fit in and why things worked after you turned it off 🧐
Rank 2: Process
I think kaspersky block many things, i have node js in wsl and i was getting errors (that cannot connect to registry.npmjs.org when using npm install), other errors about self signed certs, etc etc.
Rank 2: Process
Or kaspersky had nothing to do, and I made a mistake while trying to repair docker.
Other thing I noticed is that WSL has a dynamic IP, it changes after restart windows. But to avoid possible conflicts i will use daemon.json
Rank 2: Process
The ip-range for WSL is 172.16.0.0/12 being the minimun 172.16.0.0 and the maximum 172.31.255.255
So the daemon.json ip-range should be 172.32.0.1/16 to avoid future conflicts
Admin
That sounds like a good plan 👍