Giter VIP home page Giter VIP logo

Comments (6)

bakito avatar bakito commented on August 19, 2024

Hi @gawainXX

  1. adguardhome-sync is built as a static binary, therefore you do not need go to be installed.
  2. please provide more information. How is the config, what are the logs.

from adguardhome-sync.

gawainXX avatar gawainXX commented on August 19, 2024

I'm seeing the same behavior with ubuntu 20.04 using the static binary
I've created the ~/.adguardhome-sync.yaml file as instructed,
Here was how I installed adguardhome-sync (was placed into root of ~
`
cd ~

wget --no-check-certificate --content-disposition https://github.com/bakito/adguardhome-sync/releases/download/v0.4.5/adguardhome-sync_0.4.5_linux_x86_64.tar.gz
tar -xf adguardhome-sync_0.4.5_linux_x86_64.tar.gz
chmod +x ~/adguardhome-sync
`

2022-08-12T17:32:06.786-0700 INFO root cmd/root.go:118 Using config file:/home/adguardhome-sync/.adguardhome-sync.yaml 2022-08-12T17:32:06.788-0700 INFO sync sync/sync.go:30 AdGuardHome sync {"version": "0.4.5", "build": "2022-08-12T07:20:12Z"} 2022-08-12T17:32:06.789-0700 INFO sync types/features.go:70 Disabled features {"features": ["DHCP.ServerConfig", "DHCP.StaticLeases"]} 2022-08-12T17:32:06.789-0700 INFO sync sync/sync.go:50 Setup cronjob {"cron": "*/10 * * * *"}

from adguardhome-sync.

bakito avatar bakito commented on August 19, 2024

PLEASE provide your config file!

from adguardhome-sync.

gawainXX avatar gawainXX commented on August 19, 2024

PLEASE provide your config file!
Username and PW omitted
Works fine if I comment out the cron line.

# cron expression to run in daemon mode. (default; "" = runs only once)
cron: "*/10 * * * *"

# runs the synchronisation on startup
runOnStart: true

origin:
  # url of the origin instance
  url: http://192.168.4.3
  # apiPath: define an api path if other than "/control"
  # insecureSkipVerify: true # disable tls check
  username: myusername
  password: password

# replica instance (optional, if only one)
replica:
  # url of the replica instance
  url: http://192.168.4.4
  username: myusername
  password: password


# Configure the sync API server, disabled if api port is 0
api:
  # Port, default 8080
  port: 0
  # if username and password are defined, basic auth is applied to the sync API
  username: myusername
  password: password

# Configure sync features; by default all features are enabled.
features:
  generalSettings: true
  queryLogConfig: true
  statsConfig: true
  clientSettings: true
  services: true
  filters: true
  dhcp:
    serverConfig: false
    staticLeases: false
  dns:
    serverConfig: true
    accessLists: true
    rewrites: true

from adguardhome-sync.

bakito avatar bakito commented on August 19, 2024

Hi @gawainXX

I was not able to reproduce your issue.

I started a debian:11.4 docker container and started adguardhome-sync with your configuration.
The synchronization got started the next time the cron expression matches.

Since your config hast the cron expression "*/10 * * * *", this will be every 10 minutes. (x:00, x:10, x:20, ...)

from adguardhome-sync.

bakito avatar bakito commented on August 19, 2024

If you want to start it immediately, you need to add the following parameter:

runOnStart: true

from adguardhome-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.