You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to bring up a simple cluster (1 server/1 agent) on our production docker swarm cluster the agent can never connect to the server; it even tries connecting to the wrong IP address. Doing the exact same thing on our standalone test box (minus the deploy restrictions in the compose file) works flawlessly. I even added a placement restriction for the swam to force them to the same node and it doesn't work.
Expected behavior
The swarm should work and the agent should try to connect to the correct internal IP of 10.0.61.9, but it is trying to connect to 10.0.61.2 instead. The server/web-ui is up.
Screenshots
** Specifications:**
OS: Linux
VersionLatest
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to bring up a simple cluster (1 server/1 agent) on our production docker swarm cluster the agent can never connect to the server; it even tries connecting to the wrong IP address. Doing the exact same thing on our standalone test box (minus the deploy restrictions in the compose file) works flawlessly. I even added a placement restriction for the swam to force them to the same node and it doesn't work.
To Reproduce
Production swarm stack file:
`
version: '3.8'
services:
dkron-server:
image: centricdocker.azurecr.io/thirdparty/dkron
ports:
- "10120:8080"
volumes:
- /var/apps/docker-shared/shared-dkron/root:/root
- /media/scripts:/media/scripts
- /var/apps/docker-shared/shared-dkron/dkron-server/data:/data
command: dkron agent --server --log-level=debug --bootstrap-expect=1 --data-dir=/data --node-name dkron-primary
stop_grace_period: 3m
deploy:
replicas: 1
placement:
constraints:
- node.labels.dkron==allowed
dkron-agent:
image: centricdocker.azurecr.io/thirdparty/dkron
depends_on:
- dkron-server
volumes:
- /var/apps/docker-shared/shared-dkron/root:/root
- /media/scripts:/media/scripts
command: dkron agent --retry-join=dkron-server:8946 --log-level=debug --tag agent=true
stop_grace_period: 3m
deploy:
replicas: 1
placement:
constraints:
- node.labels.dkron==allowed
`
Does not work.
Standalone server stack file:
`
version: '3.8'
services:
dkron-server:
image: centricdocker.azurecr.io/thirdparty/dkron
ports:
- "10120:8080"
volumes:
- /var/apps/docker-shared/shared-dkron/root:/root
- /media/scripts:/media/scripts
- /var/apps/docker-shared/shared-dkron/dkron-server/data:/data
command: dkron agent --server --log-level=debug --bootstrap-expect=1 --data-dir=/data --node-name dkron-primary
stop_grace_period: 3m
dkron-agent:
image: centricdocker.azurecr.io/thirdparty/dkron
depends_on:
- dkron-server
volumes:
- /var/apps/docker-shared/shared-dkron/root:/root
- /media/scripts:/media/scripts
command: dkron agent --retry-join=dkron-server:8946 --log-level=debug --tag agent=true
stop_grace_period: 3m
`
This works perfectly.
Expected behavior
The swarm should work and the agent should try to connect to the correct internal IP of 10.0.61.9, but it is trying to connect to 10.0.61.2 instead. The server/web-ui is up.
Screenshots
** Specifications:**
The text was updated successfully, but these errors were encountered: