Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest next tag not installing as a service properly. #7561

Open
4 tasks done
gedw99 opened this issue Jan 12, 2025 · 2 comments
Open
4 tasks done

latest next tag not installing as a service properly. #7561

gedw99 opened this issue Jan 12, 2025 · 2 comments

Comments

@gedw99
Copy link

gedw99 commented Jan 12, 2025

@ainar-g

Prerequisites

Platform (OS and CPU architecture)

Darwin (aka macOS), ARM64

Installation

go run ./scripts/translations download

chmod +x ./scripts/companiesdb/download.sh
sh ./scripts/companiesdb/download.sh

go run ./scripts/blocked-services/main.go
	
go run ./scripts/vetted-filters/main.go

cd client && bun install
cd client && bun run build-prod

CGO_ENABLED=0 go build -tags next -o adguardhome_bin_darwin_arm64 .

Setup

On one machine

AdGuard Home version

main off GitHub

Action

Its what I do..

sudo adguardhome_bin_darwin_arm64 --config=./adguardhome_config.yaml --service=action install
time=2025-01-12T17:32:29.884+11:00 level=INFO msg="starting adguard home" version="" pid=98561
time=2025-01-12T17:32:29.885+11:00 level=INFO msg="cache disabled" prefix=dnssvc
time=2025-01-12T17:32:29.886+11:00 level=INFO msg=starting prefix=websvc
time=2025-01-12T17:32:29.887+11:00 level=INFO msg=starting prefix=websvc server=http://127.0.0.1:6060
time=2025-01-12T17:32:29.887+11:00 level=INFO msg=starting prefix=websvc server=http://[::]:3000
time=2025-01-12T17:32:29.887+11:00 level=INFO msg=started prefix=websvc
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="starting dns proxy server" prefix=dnssvc
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="creating udp server socket" prefix=dnssvc addr=0.0.0.0:53
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="listening to udp" prefix=dnssvc addr=[::]:53
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="creating tcp server socket" prefix=dnssvc addr=0.0.0.0:53
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="listening to tcp" prefix=dnssvc addr=[::]:53
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="entering udp listener loop" prefix=dnssvc addr=[::]:53
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="entering listener loop" prefix=dnssvc proto=tcp addr=[::]:53
^Ctime=2025-01-12T17:32:31.384+11:00 level=INFO msg=received prefix=sighdlr signal=interrupt
time=2025-01-12T17:32:31.384+11:00 level=INFO msg="shutting down" prefix=sighdlr
time=2025-01-12T17:32:31.384+11:00 level=INFO msg="shutting down" prefix=websvc
time=2025-01-12T17:32:31.385+11:00 level=INFO msg=started prefix=websvc server=http://[::]:3000
time=2025-01-12T17:32:31.385+11:00 level=INFO msg=started prefix=websvc server=http://127.0.0.1:6060
time=2025-01-12T17:32:31.385+11:00 level=INFO msg="shut down" prefix=websvc
time=2025-01-12T17:32:31.385+11:00 level=INFO msg="stopping server" prefix=dnssvc
time=2025-01-12T17:32:31.385+11:00 level=INFO msg="stopped dns proxy server" prefix=dnssvc

dns:
  addresses:
  - '0.0.0.0:53'
  bootstrap_dns:
  - '9.9.9.10'
  - '149.112.112.10'
  - '2620:fe::10'
  - '2620:fe::fe:10'
  upstream_dns:
  - '8.8.8.8'
  dns64_prefixes:
  - '1234::/64'
  upstream_timeout: 1s
  bootstrap_prefer_ipv6: true
  use_dns64: true
http:
  pprof:
    enabled: true
    port: 6060
  addresses:
  - '0.0.0.0:3000'
  secure_addresses: []
  timeout: 5s
  force_https: true
log:
  verbose: true

Expected result

install as service.

Actual result

Starts up !!

sudo adguardhome_bin_darwin_arm64 --config=/Users/apple/workspace/go/src/github.com/gedw99/kanka-cloudflare/modules/adguard/adguardhome_config.yaml --service=action install
time=2025-01-12T17:32:29.884+11:00 level=INFO msg="starting adguard home" version="" pid=98561
time=2025-01-12T17:32:29.885+11:00 level=INFO msg="cache disabled" prefix=dnssvc
time=2025-01-12T17:32:29.886+11:00 level=INFO msg=starting prefix=websvc
time=2025-01-12T17:32:29.887+11:00 level=INFO msg=starting prefix=websvc server=http://127.0.0.1:6060
time=2025-01-12T17:32:29.887+11:00 level=INFO msg=starting prefix=websvc server=http://[::]:3000
time=2025-01-12T17:32:29.887+11:00 level=INFO msg=started prefix=websvc
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="starting dns proxy server" prefix=dnssvc
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="creating udp server socket" prefix=dnssvc addr=0.0.0.0:53
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="listening to udp" prefix=dnssvc addr=[::]:53
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="creating tcp server socket" prefix=dnssvc addr=0.0.0.0:53
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="listening to tcp" prefix=dnssvc addr=[::]:53
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="entering udp listener loop" prefix=dnssvc addr=[::]:53
time=2025-01-12T17:32:29.887+11:00 level=INFO msg="entering listener loop" prefix=dnssvc proto=tcp addr=[::]:53
^Ctime=2025-01-12T17:32:31.384+11:00 level=INFO msg=received prefix=sighdlr signal=interrupt
time=2025-01-12T17:32:31.384+11:00 level=INFO msg="shutting down" prefix=sighdlr
time=2025-01-12T17:32:31.384+11:00 level=INFO msg="shutting down" prefix=websvc
time=2025-01-12T17:32:31.385+11:00 level=INFO msg=started prefix=websvc server=http://[::]:3000
time=2025-01-12T17:32:31.385+11:00 level=INFO msg=started prefix=websvc server=http://127.0.0.1:6060
time=2025-01-12T17:32:31.385+11:00 level=INFO msg="shut down" prefix=websvc
time=2025-01-12T17:32:31.385+11:00 level=INFO msg="stopping server" prefix=dnssvc
time=2025-01-12T17:32:31.385+11:00 level=INFO msg="stopped dns proxy server" prefix=dnssvc

dns:
  addresses:
  - '0.0.0.0:53'
  bootstrap_dns:
  - '9.9.9.10'
  - '149.112.112.10'
  - '2620:fe::10'
  - '2620:fe::fe:10'
  upstream_dns:
  - '8.8.8.8'
  dns64_prefixes:
  - '1234::/64'
  upstream_timeout: 1s
  bootstrap_prefer_ipv6: true
  use_dns64: true
http:
  pprof:
    enabled: true
    port: 6060
  addresses:
  - '0.0.0.0:3000'
  secure_addresses: []
  timeout: 5s
  force_https: true
log:
  verbose: true

Additional information and/or screenshots

latest main, compiled using tag next

@gedw99 gedw99 changed the title next version not bootstrapping or installing as a service. latest next version not installing as a service properly. Jan 12, 2025
@gedw99
Copy link
Author

gedw99 commented Jan 12, 2025

Should work...

Usage of adguardhome_bin_darwin_arm64:
  --check-config
    	Check configuration, print errors to stdout, and quit.
  --config=path/-c path
    	Path to the config file.  (Default value: "internal/next/AdGuardHome.yaml")
  --glinet
    	Run in GL-Inet compatibility mode.
  --help/-h
    	Print this help message and quit.
  --local-frontend
    	Use local frontend directories.
  --logfile=path/-l path
    	Path to log file.  Special values include "stdout", "stderr", and "syslog".  (Default value: "stdout")
  --no-check-update
    	Disable automatic update checking.
  --no-permcheck
    	Skip checking the permissions of security-sensitive files.
  --pidfile=path
    	Path to the file where to store the PID.
  --service=action/-s action
    	Service control action: "status", "install" (as a service), "uninstall" (as a service), "start", "stop", "restart", "reload" (configuration).
  --update
    	Update the current binary and restart the service in case it's installed.
  --verbose/-v
    	Enable verbose logging.
  --version
    	Print the version to stdout and quit.  Print a more detailed version description with -v.
  --web-addr=host:port
    	Address to serve the web UI on, in the host:port format.
  --work-dir=path/-w path
    	Path to the working directory.  It is applied before all other configuration is read, so all relative paths are relative to it.

@gedw99
Copy link
Author

gedw99 commented Jan 12, 2025

neither combo works ... what am I doing wrong..

adguardhome_bin_darwin_arm64 --config=./adguardhome_config.yaml --service=action install 
time=2025-01-12T17:39:47.211+11:00 level=INFO msg="starting adguard home" version="" pid=7156
time=2025-01-12T17:39:47.212+11:00 level=INFO msg="cache disabled" prefix=dnssvc
time=2025-01-12T17:39:47.212+11:00 level=INFO msg=starting prefix=websvc
adguardhome_bin_darwin_arm64 --service=action install --config=./adguardhome_config.yaml 
time=2025-01-12T17:40:59.373+11:00 level=INFO msg="starting adguard home" version="" pid=8544
panic: reading config: open internal/next/AdGuardHome.yaml: no such file or directory

@gedw99 gedw99 changed the title latest next version not installing as a service properly. latest next tag not installing as a service properly. Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant