AdguardTeam/AdGuardDNSClient

Fail to start in macOS

wengkitttt opened this issue · 4 comments

Prerequisites

  • I have checked the Knowledge Base and the Discussions and found no answer

  • I have searched other issues and found no duplicates

  • I want to report a bug and not ask a question or ask for help

  • I have set up AdGuard DNS Clients correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)

Platform (OS and CPU architecture)

Darwin (aka macOS), ARM64

Installation

GitHub releases

Setup

On a personal machine

AdGuard DNS Client version

v0.0.1

Action

./AdGuardDNSClient -s start -v

Expected result

The DNS Client should be started.

Actual result

After run the start command, it show this error

performing action "start": retrieving status: "launchctl" failed with stderr: Load failed: 5: Input/output error

Additional information and/or screenshots

No response

FYI, Im using M2 Mac Mini

@wengkitttt, hello and thanks for the report! On macOS it's required for executables installed as services to be placed in the /Applications/... directory. What is the working directory in the issue?

@EugeneOne1, I previously located the AdGuardDNSClient folder in the "Documents" directory. After moving it to the "Applications" folder and running sudo ./AdGuardDNSClient -s start -v, the status showed "running".

However, my DNS still didn't point to AdGuard DNS. I realized that I needed to change my DNS settings in Settings -> Network -> Wifi -> Details to point to 127.0.0.1 and ::1.

Now everything is working perfectly. Thanks for advising me to place the folder in "Applications".

@wengkitttt, hello again. FYI, we've updated the README.md and we will also publish the changes to the knowledge base soon.