AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home/overview.html
GNU General Public License v3.0
25.63k stars 1.84k forks source link

Can't install in macOS as a service #7441

Open 04bondgoods opened 6 days ago

04bondgoods commented 6 days ago

Prerequisites

Platform (OS and CPU architecture)

Darwin (aka macOS), ARM64

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

v0.107.54

Action

Replace the following command with the one you're calling or a description of the failing action:

wget --no-verbose -O - https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v -u
wget --no-verbose -O - https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v

Expected result

adguardhome successfully installed and running

Actual result

➜  ~ wget --no-verbose -O - https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v
2024-11-16 15:31:22 URL:https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh [13280/13280] -> "-" [1]
starting AdGuard Home installation script
channel: release
operating system: darwin
cpu type: arm64
AdGuard Home will be installed into /Applications/AdGuardHome
checking unzip
note that AdGuard Home requires root privileges to install using this script
restarting with root privileges
starting AdGuard Home installation script
channel: release
operating system: darwin
cpu type: arm64
AdGuard Home will be installed into /Applications/AdGuardHome
checking unzip
script is executed with root privileges
no need to uninstall
downloading package from https://static.adtidy.org/adguardhome/release/AdGuardHome_darwin_arm64.zip to AdGuardHome_darwin_arm64.zip
successfully downloaded AdGuardHome_darwin_arm64.zip
unpacking package from AdGuardHome_darwin_arm64.zip into /Applications
Archive:  AdGuardHome_darwin_arm64.zip
   creating: /Applications/AdGuardHome/
  inflating: /Applications/AdGuardHome/AdGuardHome
  inflating: /Applications/AdGuardHome/LICENSE.txt
 extracting: /Applications/AdGuardHome/AdGuardHome.sig
  inflating: /Applications/AdGuardHome/README.md
  inflating: /Applications/AdGuardHome/CHANGELOG.md
successfully unpacked, contents:
total 59208
-rwxrwxrwx  1 root  admin  30122130 Nov  6 21:17 AdGuardHome
-rw-rw-rw-  1 root  admin       566 Nov  6 21:17 AdGuardHome.sig
-rw-r--r--  1 root  admin    121535 Nov  6 21:17 CHANGELOG.md
-rw-r--r--  1 root  admin     35149 Nov  6 21:17 LICENSE.txt
-rw-r--r--  1 root  admin     21812 Nov  6 21:17 README.md
2024/11/16 15:31:24 [info] AdGuard Home, version v0.107.54
2024/11/16 15:31:24 [info] service: control action: install
2024/11/16 15:31:24 [fatal] service: executing action "install": Failed to install AdGuard Home service: Init already exists: /Library/LaunchDaemons/AdGuardHome.plist
installation failed, removing /Applications/AdGuardHome
cannot install AdGuardHome as a service

Additional information and/or screenshots

system: macos version: 15.0.1 me: experienced user with adguardhome running in windows, linux, and another macos problem: using macos terminal, tried fully uninstall+reinstall using official shell script, can't install as a service. note: running without service - sudo ./AdGuardHome -s run works, so it's probably some problem with launchctl. also tried running the shell script with root privilege, no luck