Skip to content

agent.sock not found #633

@ThisGuyNeedsABeer

Description

@ThisGuyNeedsABeer

Describe the bug

The required agent.sock from /root/.local/share/authentik is missing following the deployment steps from:

sudo apt install libnss-authentik libpam-authentik authentik-cli authentik-agent authentik-sysd

How to reproduce

  1. Follow steps: https://docs.goauthentik.io/endpoint-devices/authentik-agent/agent-deployment/linux/
  2. Attempt to complete the enrollment via: ak config setup --authentik-url "https://auth.mydomain.com/"
  3. Navigate to URL shown: https://auth.mydomain.com/device?code=XXXXXXXXX"
  4. Receive confirmation you can close the window (authentication successful)
  5. Error received (shown below in log output)
  6. Confirmed file is not present anywhere on system via find / -name agent.sock

Expected behavior

Enrollment to complete via call to agent.sock

Screenshots

Image

Additional context

Test host details
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble

Device did register in the Authentik portal.

Deployment Method

Docker

Version

2025.12.2

Relevant log output

WARN[0012] finished call                                 grpc.code=Unavailable grpc.component=client grpc.error="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /root/.local/share/authentik/agent.sock: connect: no such file or directory\"" grpc.method=Setup grpc.method_type=unary grpc.service=agent_ctrl.AgentCtrl grpc.start_time="2026-01-31T17:03:40Z" grpc.time_ms=3.951 logger=cli.grpc protocol=grpc
Error: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix **/root/.local/share/authentik/agent.sock: connect: no such file or directory**"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions