Problems running fabio

Hello World, I have a cluster with nomad integrated with consul. I can enable workloads identify and api-gateway (both are working fine) and want to run fabio as load balancer for external connections using this tutorial Load balancing with Fabio | Nomad | HashiCorp Developer , but the jobs fails with this error: 2026/07/21 22:25:39 [INFO] Setting log level to INFO
2026/07/21 22:25:39 [INFO] Runtime config
{
“Log”: {
“AccessFormat”: “common”,
“AccessTarget”: “”,
“RoutesFormat”: “delta”,
“Level”: “INFO”
},
“ProfileMode”: “”,
“ProfilePath”: “/tmp”,
“Listen”: [
{
“CertSource”: {
“Header”: null,
“Name”: “”,
“Type”: “”,
“CertPath”: “”,
“KeyPath”: “”,
“ClientCAPath”: “”,
“CAUpgradeCN”: “”,
“VaultFetchToken”: “”,
“Refresh”: 0
},
“Addr”: “:9999”,
“Proto”: “http”,
“TLSCiphers”: null,
“ReadTimeout”: 0,
“WriteTimeout”: 0,
“IdleTimeout”: 0,
“ProxyHeaderTimeout”: 0,
“Refresh”: 0,
“TLSMinVersion”: 0,
“TLSMaxVersion”: 0,
“StrictMatch”: false,
“ProxyProto”: false
}
],
“Metrics”: {
“Circonus”: {
“APIKey”: “”,
“APIApp”: “fabio”,
“APIURL”: “”,
“CheckID”: “”,
“BrokerID”: “”,
“SubmissionURL”: “”
},
“Target”: “”,
“Prefix”: “{{clean .Hostname}}.{{clean .Exec}}”,
“Names”: “{{clean .Service}}.{{clean .Host}}.{{clean .Path}}.{{clean .TargetURL.Host}}”,
“GraphiteAddr”: “”,
“StatsDAddr”: “”,
“DogstatsdAddr”: “”,
“Prometheus”: {
“Subsystem”: “”,
“Path”: “/metrics”,
“Buckets”: [
0.005,
0.01,
0.025,
0.05,
0.1,
0.25,
0.5,
1,
2.5,
5,
10
]
},
“Interval”: 30000000000,
“Timeout”: 10000000000,
“Retry”: 500000000
},
“BGP”: {
“RouterID”: “”,
“GRPCListenAddress”: “127.0.0.1:50051”,
“CertFile”: “”,
“KeyFile”: “”,
“GOBGPDCfgFile”: “”,
“NextHop”: “”,
“AnycastAddresses”: null,
“ListenAddresses”: [
“0.0.0.0”
],
“Peers”: null,
“Asn”: 65000,
“ListenPort”: 179,
“BGPEnabled”: false,
“EnableGRPC”: false,
“GRPCTLS”: false
},
“UI”: {
“RoutingTable”: {
“Source”: {
“Scheme”: “http”,
“Host”: “”,
“Port”: “”,
“LinkEnabled”: false,
“NewTab”: true
}
},
“Color”: “light-green”,
“Title”: “”,
“Access”: “rw”,
“Path”: “”,
“Listen”: {
“CertSource”: {
“Header”: null,
“Name”: “”,
“Type”: “”,
“CertPath”: “”,
“KeyPath”: “”,
“ClientCAPath”: “”,
“CAUpgradeCN”: “”,
“VaultFetchToken”: “”,
“Refresh”: 0
},
“Addr”: “:9998”,
“Proto”: “http”,
“TLSCiphers”: null,
“ReadTimeout”: 0,
“WriteTimeout”: 0,
“IdleTimeout”: 0,
“ProxyHeaderTimeout”: 0,
“Refresh”: 0,
“TLSMinVersion”: 0,
“TLSMaxVersion”: 0,
“StrictMatch”: false,
“ProxyProto”: false
}
},
“Registry”: {
“Static”: {
“NoRouteHTML”: “”,
“Routes”: “”
},
“File”: {
“NoRouteHTMLPath”: “”,
“RoutesPath”: “”
},
“Backend”: “consul”,
“Custom”: {
“Host”: “”,
“Path”: “”,
“QueryParams”: “”,
“Scheme”: “https”,
“NoRouteHTML”: “”,
“PollInterval”: 5,
“Timeout”: 10,
“CheckTLSSkipVerify”: false
},
“Consul”: {
“Addr”: “localhost:8500”,
“Scheme”: “http”,
“Token”: “”,
“KVPath”: “/fabio/config”,
“NoRouteHTMLPath”: “/fabio/noroute.html”,
“TagPrefix”: “urlprefix-”,
“Namespace”: “”,
“ServiceAddr”: “:9998”,
“ServiceName”: “fabio”,
“CheckScheme”: “http”,
“ChecksRequired”: “one”,
“TLS”: {
“KeyFile”: “”,
“CertFile”: “”,
“CAFile”: “”,
“CAPath”: “”,
“InsecureSkipVerify”: false
},
“ServiceTags”: null,
“ServiceStatus”: [
“passing”
],
“CheckInterval”: 1000000000,
“CheckTimeout”: 3000000000,
“ServiceMonitors”: 1,
“PollInterval”: 0,
“Register”: true,
“CheckTLSSkipVerify”: false,
“RequireConsistent”: true,
“AllowStale”: false
},
“Timeout”: 10000000000,
“Retry”: 500000000
},
“Proxy”: {
“GZIPContentTypes”: null,
“AuthSchemes”: {},
“Strategy”: “rnd”,
“Matcher”: “prefix”,
“LocalIP”: “172.16.0.8”,
“ClientIPHeader”: “”,
“TLSHeader”: “”,
“TLSHeaderValue”: “”,
“RequestID”: “”,
“STSHeader”: {
“MaxAge”: 0,
“Subdomains”: false,
“Preload”: false
},
“NoRouteStatus”: 404,
“MaxConn”: 10000,
“ShutdownWait”: 0,
“DeregisterGracePeriod”: 0,
“DialTimeout”: 30000000000,
“ResponseHeaderTimeout”: 0,
“KeepAliveTimeout”: 0,
“IdleConnTimeout”: 15000000000,
“FlushInterval”: 1000000000,
“GlobalFlushInterval”: 0,
“GRPCMaxRxMsgSize”: 4194304,
“GRPCMaxTxMsgSize”: 4194304,
“GRPCGShutdownTimeout”: 2000000000
},
“Runtime”: {
“GOGC”: 100,
“GOMAXPROCS”: 16
},
“GlobCacheSize”: 1000,
“Insecure”: false,
“GlobMatchingDisabled”: false
}
2026/07/21 22:25:39 [INFO] Version 1.7.2 starting
2026/07/21 22:25:39 [INFO] Go runtime is go1.26.4
2026/07/21 22:25:39 [INFO] Registering metrics provider “”
2026/07/21 22:25:39 [INFO] Metrics disabled
2026/07/21 22:25:39 [INFO] Setting GOGC=100
2026/07/21 22:25:39 [INFO] Setting GOMAXPROCS=16
2026/07/21 22:25:39 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:39 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:40 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:40 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:41 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:41 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:42 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:42 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:43 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:43 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:44 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:44 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:45 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:45 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:46 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:46 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:47 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:47 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:48 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:48 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:49 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:25:49 [FATAL] Timeout registering backend.
2026/07/21 22:26:08 [INFO] Setting log level to INFO
2026/07/21 22:26:08 [INFO] Runtime config
{
“Log”: {
“AccessFormat”: “common”,
“AccessTarget”: “”,
“RoutesFormat”: “delta”,
“Level”: “INFO”
},
“ProfileMode”: “”,
“ProfilePath”: “/tmp”,
“Listen”: [
{
“CertSource”: {
“Header”: null,
“Name”: “”,
“Type”: “”,
“CertPath”: “”,
“KeyPath”: “”,
“ClientCAPath”: “”,
“CAUpgradeCN”: “”,
“VaultFetchToken”: “”,
“Refresh”: 0
},
“Addr”: “:9999”,
“Proto”: “http”,
“TLSCiphers”: null,
“ReadTimeout”: 0,
“WriteTimeout”: 0,
“IdleTimeout”: 0,
“ProxyHeaderTimeout”: 0,
“Refresh”: 0,
“TLSMinVersion”: 0,
“TLSMaxVersion”: 0,
“StrictMatch”: false,
“ProxyProto”: false
}
],
“Metrics”: {
“Circonus”: {
“APIKey”: “”,
“APIApp”: “fabio”,
“APIURL”: “”,
“CheckID”: “”,
“BrokerID”: “”,
“SubmissionURL”: “”
},
“Target”: “”,
“Prefix”: “{{clean .Hostname}}.{{clean .Exec}}”,
“Names”: “{{clean .Service}}.{{clean .Host}}.{{clean .Path}}.{{clean .TargetURL.Host}}”,
“GraphiteAddr”: “”,
“StatsDAddr”: “”,
“DogstatsdAddr”: “”,
“Prometheus”: {
“Subsystem”: “”,
“Path”: “/metrics”,
“Buckets”: [
0.005,
0.01,
0.025,
0.05,
0.1,
0.25,
0.5,
1,
2.5,
5,
10
]
},
“Interval”: 30000000000,
“Timeout”: 10000000000,
“Retry”: 500000000
},
“BGP”: {
“RouterID”: “”,
“GRPCListenAddress”: “127.0.0.1:50051”,
“CertFile”: “”,
“KeyFile”: “”,
“GOBGPDCfgFile”: “”,
“NextHop”: “”,
“AnycastAddresses”: null,
“ListenAddresses”: [
“0.0.0.0”
],
“Peers”: null,
“Asn”: 65000,
“ListenPort”: 179,
“BGPEnabled”: false,
“EnableGRPC”: false,
“GRPCTLS”: false
},
“UI”: {
“RoutingTable”: {
“Source”: {
“Scheme”: “http”,
“Host”: “”,
“Port”: “”,
“LinkEnabled”: false,
“NewTab”: true
}
},
“Color”: “light-green”,
“Title”: “”,
“Access”: “rw”,
“Path”: “”,
“Listen”: {
“CertSource”: {
“Header”: null,
“Name”: “”,
“Type”: “”,
“CertPath”: “”,
“KeyPath”: “”,
“ClientCAPath”: “”,
“CAUpgradeCN”: “”,
“VaultFetchToken”: “”,
“Refresh”: 0
},
“Addr”: “:9998”,
“Proto”: “http”,
“TLSCiphers”: null,
“ReadTimeout”: 0,
“WriteTimeout”: 0,
“IdleTimeout”: 0,
“ProxyHeaderTimeout”: 0,
“Refresh”: 0,
“TLSMinVersion”: 0,
“TLSMaxVersion”: 0,
“StrictMatch”: false,
“ProxyProto”: false
}
},
“Registry”: {
“Static”: {
“NoRouteHTML”: “”,
“Routes”: “”
},
“File”: {
“NoRouteHTMLPath”: “”,
“RoutesPath”: “”
},
“Backend”: “consul”,
“Custom”: {
“Host”: “”,
“Path”: “”,
“QueryParams”: “”,
“Scheme”: “https”,
“NoRouteHTML”: “”,
“PollInterval”: 5,
“Timeout”: 10,
“CheckTLSSkipVerify”: false
},
“Consul”: {
“Addr”: “localhost:8500”,
“Scheme”: “http”,
“Token”: “”,
“KVPath”: “/fabio/config”,
“NoRouteHTMLPath”: “/fabio/noroute.html”,
“TagPrefix”: “urlprefix-”,
“Namespace”: “”,
“ServiceAddr”: “:9998”,
“ServiceName”: “fabio”,
“CheckScheme”: “http”,
“ChecksRequired”: “one”,
“TLS”: {
“KeyFile”: “”,
“CertFile”: “”,
“CAFile”: “”,
“CAPath”: “”,
“InsecureSkipVerify”: false
},
“ServiceTags”: null,
“ServiceStatus”: [
“passing”
],
“CheckInterval”: 1000000000,
“CheckTimeout”: 3000000000,
“ServiceMonitors”: 1,
“PollInterval”: 0,
“Register”: true,
“CheckTLSSkipVerify”: false,
“RequireConsistent”: true,
“AllowStale”: false
},
“Timeout”: 10000000000,
“Retry”: 500000000
},
“Proxy”: {
“GZIPContentTypes”: null,
“AuthSchemes”: {},
“Strategy”: “rnd”,
“Matcher”: “prefix”,
“LocalIP”: “172.16.0.8”,
“ClientIPHeader”: “”,
“TLSHeader”: “”,
“TLSHeaderValue”: “”,
“RequestID”: “”,
“STSHeader”: {
“MaxAge”: 0,
“Subdomains”: false,
“Preload”: false
},
“NoRouteStatus”: 404,
“MaxConn”: 10000,
“ShutdownWait”: 0,
“DeregisterGracePeriod”: 0,
“DialTimeout”: 30000000000,
“ResponseHeaderTimeout”: 0,
“KeepAliveTimeout”: 0,
“IdleConnTimeout”: 15000000000,
“FlushInterval”: 1000000000,
“GlobalFlushInterval”: 0,
“GRPCMaxRxMsgSize”: 4194304,
“GRPCMaxTxMsgSize”: 4194304,
“GRPCGShutdownTimeout”: 2000000000
},
“Runtime”: {
“GOGC”: 100,
“GOMAXPROCS”: 16
},
“GlobCacheSize”: 1000,
“Insecure”: false,
“GlobMatchingDisabled”: false
}
2026/07/21 22:26:08 [INFO] Version 1.7.2 starting
2026/07/21 22:26:08 [INFO] Go runtime is go1.26.4
2026/07/21 22:26:08 [INFO] Registering metrics provider “”
2026/07/21 22:26:08 [INFO] Metrics disabled
2026/07/21 22:26:08 [INFO] Setting GOGC=100
2026/07/21 22:26:08 [INFO] Setting GOMAXPROCS=16
2026/07/21 22:26:08 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:09 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:09 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:10 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:10 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:11 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:11 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:12 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:12 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:13 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:13 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:14 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:14 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:15 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:15 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:16 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:16 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:17 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:17 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:18 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:18 [WARN] Error initializing backend. Unexpected response code: 403 (Permission denied: anonymous token lacks permission ‘agent:read’ on “nomad-cl-01.regioncusco.local”. The anonymous token is used implicitly when a request does not specify a token.)
2026/07/21 22:26:18 [FATAL] Timeout registering backend.
2026/07/21 22:26:36 [INFO] Setting log level to INFO
2026/07/21 22:26:36 [INFO] Runtime config
Can anyone help me?

It looks like Fabio is trying to talk to your Nomad cluster but is hitting the Nomad ACL gate because it’s using an anonymous token. That’s why you’re seeing the repeated 403 (Permission denied: anonymous token lacks permission ‘agent:read’ …) and eventually the Timeout registering backend message.

From what i can see:

  • Nomad ACLs are enabled on your cluster.
  • The Fabio job doesn’t provide a Nomad ACL token, so it falls back to the anonymous token.
  • The anonymous token does not have agent:read or any other permissions, so the API rejects the call.

To fix:

1. Just create a Nomad ACL token that has at least agent:read and service:read capabilities.

   # Example policy for Fabio
   policy "fabio" {
     description = "Permissions for Fabio"
     rule "agent" {
       capabilities = ["read"]
     }
     rule "service" {
       capabilities = ["read"]
     }
   }

   # Create the token using the policy
   nomad acl policy register -name fabio -rules fabio.hcl
   nomad acl token create -policy fabio
  1. Add that token to the Fabio job. In your job file, set the NOMAD_TOKEN environment variable (or use env { NOMAD_TOKEN = "<your-token>" }).
  2. If you also have Consul ACLs enabled, you’ll need a Consul token as well:
    • Add CONSUL_HTTP_TOKEN to the job’s env.
    • Or set the token in the job’s consul block: token = "<consul-token>".
  3. Restart the job:
    nomad job run fabio.nomad
    
  4. Verify the logs if you see the 403 errors again.

Refs: