Can't enroll agent - status 501

Running a self hosted instance, because as far as i understand this is the only way of using agent remoting at the moment.When i try to enroll my agent i get a:

caddy-1                  | 2025/09/01 16:22:36.159	ERROR	http.log.access.log0	handled request	{"request": {"remote_ip": "xx.xx.xx.xx", "remote_port": "59301", "client_ip": "xx.xx.xx.xx", "proto": "HTTP/2.0", "method": "POST", "host": "zrok.xx.xx", "uri": "/api/v1/agent/enroll", "headers": {"User-Agent": ["Go-http-client/2.0"], "Accept": ["application/zrok.v1+json"], "Content-Type": ["application/zrok.v1+json"], "X-Token": ["2S0qqBfnuXXX"], "Content-Length": ["24"], "Accept-Encoding": ["gzip"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4867, "proto": "h2", "server_name": "zrok.xx.xx"}}, "bytes_read": 24, "user_id": "", "duration": 0.002481055, "size": 54, "status": 501, "resp_headers": {"Via": ["1.1 Caddy"], "Alt-Svc": ["h3=\":443\"; ma=2592000"], "Content-Type": ["application/zrok.v1+json"], "Date": ["Mon, 01 Sep 2025 16:22:36 GMT"], "Content-Length": ["54"]}}

What could i have done wrong ? Followed the agent remoting how to to the letter, i think.

Thanks!

Found the problem, the controller didn’t actually activate agent remoting after all.

1 Like

Welcome to the community anyway, @marvinosswald :wink: Glad you got it sorted