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
{{ message }}
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
I'm preparing a PoC for my current job using Cachepot distributed build mode but I have encountered an issue when setting up the Scheduler & Worker on different machines.
I have some doubts with the X-Real-IP use and the suggestion to put a webworker in front of the scheduler, not sure what this meant, but let me explain better:
CURRENT SCENARIO
Scheduler and Worker
W11 + WSL2 (Ubuntu 20.04)
Scheduler config
public_addr = "https://cachepot-scheduler:10600"
[client_auth]
type = "token"
token = "quefacemos"
[worker_auth]
type = "jwt_hs256"
secret_key = "blablablablaba"
Port proxy on machines to WSL2. We have connectivity between two machines.
Cachepot succedeed to connect to the Windows IP port forwarded to the WSL2 IP -> 10501/10600
2022-10-24T15:34:42.372 DEBUG [PID 1214] dist worker response '401 Unauthorized'for http://cachepot-scheduler:10600/api/v1/scheduler/heartbeat_server
2022-10-24T15:34:42.372 ERROR [PID 1214] dist worker Failed to send heartbeat to server: didn't get a successful HTTP status, got `Error 401: {"description":"invalid_bearer_token_mismatched_address","cause":null}`
Explanation:
The Scheduler's log shows that the Server Address & Request IP are not the same.
The Request IP that arrives to the Scheduler is the gateway of the WSL2 network, not the source IP of my address.
The last "hop", so of course the Worker address and the request ip arrived to the Scheduler does not match with the JWT.
Doubts
Is this the expected behaviour? How could I solve it?
What the doc means about setting up in front of the scheduler a Worker? HTTPS worker in front of the scheduler
Thanks. Hope to make myself clear.
The text was updated successfully, but these errors were encountered:
Hello everyone.
I'm preparing a PoC for my current job using Cachepot distributed build mode but I have encountered an issue when setting up the Scheduler & Worker on different machines.
I have some doubts with the X-Real-IP use and the suggestion to put a webworker in front of the scheduler, not sure what this meant, but let me explain better:
CURRENT SCENARIO
Scheduler and Worker
Scheduler config
Worker config
Port proxy on machines to WSL2. We have connectivity between two machines.
Cachepot succedeed to connect to the Windows IP port forwarded to the WSL2 IP -> 10501/10600
Generate the token for Worker:
Result on Worker:
Explanation:
The Request IP that arrives to the Scheduler is the gateway of the WSL2 network, not the source IP of my address.
The last "hop", so of course the Worker address and the request ip arrived to the Scheduler does not match with the JWT.
Doubts
HTTPS worker in front of the scheduler
Thanks. Hope to make myself clear.
The text was updated successfully, but these errors were encountered: