Rank 2: Process
This is what I ended up with, trying to combine the compose from appwrite, with your docs
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
This is what I ended up with, trying to combine the compose from appwrite, with your docs
Rank 2: Process
This is being deployed to a two node docker swarm
Rank 7: Quantum Computer
I'm not sure about Portainer
But let's see
Rank 7: Quantum Computer
So you have created a load-balancer between these two servers?
Rank 7: Quantum Computer
And when you're accessing each of those servers directly does it works?
Rank 2: Process
Swarm handles that natively
https://docs.docker.com/engine/swarm/key-concepts/
Rank 7: Quantum Computer
Yes, but you need to have something for it to hanlde it
Rank 2: Process
Swarm mode has an internal DNS component that automatically assigns each service in the swarm a DNS entry. The swarm manager uses internal load balancing to distribute requests among services within the cluster based upon the DNS name of the service.
So what are you saying I should add?
Rank 7: Quantum Computer
It will happen automatically only if you have something that listened for the requests, then the smart DS routing would work
Rank 2: Process
I have traefik added
Rank 2: Process
its deployed globally
Rank 7: Quantum Computer
Tell me this
Rank 7: Quantum Computer
Good
Rank 2: Process
I have ngingx reverse proxy pointed at one of the servers 80/443
Rank 7: Quantum Computer
Okay,
Let's first try this
When you're accessing each of the Docker Swarm servers IP are you able to navigate in the whole Appwrite backend?
Rank 2: Process
No, direct IP is not working, this is the error I am getting pretty much constantly
[Error] Timestamp: 2024-02-21T01:53:45+00:00
[Error] Method: GET
[Error] URL: /v1/account
[Error] Type: Appwrite\Extend\Exception
[Error] Message: User (role: guests) missing scope (account)
[Error] File: /usr/src/code/app/controllers/general.php
[Error] Line: 556
Rank 7: Quantum Computer
For which URL?
Rank 2: Process
https://10.10.10.67/console/project-65d5579d86b25c8bf81f
Rank 2: Process
https://10.10.10.67/console
Rank 2: Process
really any path
Rank 7: Quantum Computer
Okay
And this is for both IPs?
Rank 2: Process
Yes, this is happening on both severs, with the same error populating in both containers
Rank 2: Process
seemingly at the same time
Rank 7: Quantum Computer
Okay
So before moving to load-balancing we need to solve this issue first
Rank 7: Quantum Computer
What is the output of
docker service logs appwrite_appwrite
In one of your Docker Swarm instances