bakito / adguardhome-sync

🛡️ Synchronize AdGuard Home config to replicas
Apache License 2.0
763 stars 34 forks source link

Error getting replica status #340

Open Turbine1313 opened 2 months ago

Turbine1313 commented 2 months ago

What happened?

Hey Have issues with the syncing Error getting replica status {"from": "10.0.0.251", "to": "10.0.0.252", "error": "404 Not Found(404 page not found\n)"}

I am not sure how long this has been an issue. What should i do ?

AdguardHome-Sync Version

Not sure

AdguardHome Version

v0.107.48

Configuration

Env Parameters:

ORIGIN_URL=http://10.0.0.251
ORIGIN_USERNAME=admin
ORIGIN_PASSWORD=********
REPLICA1_URL=http://10.0.0.252
REPLICA1_USERNAME=admin
REPLICA1_PASSWORD=********
RUNONSTART=true
CRON=*/1 * * * *
REPLICA1_APIPATH=/some/path/control
TZ=Asia/Jerusalem
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Relevant log output

/go/src/app/pkg/sync/sync.go:255
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func2
    /go/src/app/pkg/sync/sync.go:59
github.com/robfig/cron/v3.FuncJob.Run
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:312
2024-05-04T10:56:39.596+0300    WARN    config  config/env.go:68    Deprecated env variable is used, please use the correct one {"deprecated": "RUNONSTART", "replacement": "RUN_ON_START"}
2024-05-04T10:56:39.597+0300    WARN    config  config/env.go:68    Deprecated env variable is used, please use the correct one {"deprecated": "REPLICA1_APIPATH", "replacement": "REPLICA1_API_PATH"}
2024-05-04T10:56:39.597+0300    INFO    sync    sync/sync.go:38 AdGuardHome sync    {"version": "v0.6.10", "build": "2024-05-03T18:47:33Z", "os": "linux", "arch": "arm64"}
2024-05-04T10:56:39.599+0300    INFO    sync    sync/sync.go:65 Setup cronjob   {"cron": "*/1 * * * *", "next-execution": "2024-05-04T10:57:00.000+0300"}
2024-05-04T10:56:39.599+0300    INFO    sync    sync/http.go:63 Starting API server {"port": 8080}
2024-05-04T10:56:39.600+0300    INFO    sync    sync/sync.go:75 Running sync on startup
2024-05-04T10:56:39.900+0300    INFO    sync    sync/sync.go:174    Connected to origin {"from": "10.0.0.251", "version": "v0.107.48"}
2024-05-04T10:56:44.026+0300    INFO    sync    sync/sync.go:267    Start sync  {"from": "10.0.0.251", "to": "10.0.0.252"}
2024-05-04T10:56:44.465+0300    ERROR   sync    sync/sync.go:271    Error getting replica status    {"from": "10.0.0.251", "to": "10.0.0.252", "error": "404 Not Found(404 page not found\n)"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
    /go/src/app/pkg/sync/sync.go:271
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
    /go/src/app/pkg/sync/sync.go:255
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func3
    /go/src/app/pkg/sync/sync.go:76
2024-05-04T10:57:00.435+0300    INFO    sync    sync/sync.go:174    Connected to origin {"from": "10.0.0.251", "version": "v0.107.48"}
2024-05-04T10:57:04.560+0300    INFO    sync    sync/sync.go:267    Start sync  {"from": "10.0.0.251", "to": "10.0.0.252"}
2024-05-04T10:57:04.915+0300    ERROR   sync    sync/sync.go:271    Error getting replica status    {"from": "10.0.0.251", "to": "10.0.0.252", "error": "404 Not Found(404 page not found\n)"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
    /go/src/app/pkg/sync/sync.go:271
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
    /go/src/app/pkg/sync/sync.go:255
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func2
    /go/src/app/pkg/sync/sync.go:59
github.com/robfig/cron/v3.FuncJob.Run
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:312
2024-05-04T10:58:00.447+0300    INFO    sync    sync/sync.go:174    Connected to origin {"from": "10.0.0.251", "version": "v0.107.48"}
2024-05-04T10:58:04.574+0300    INFO    sync    sync/sync.go:267    Start sync  {"from": "10.0.0.251", "to": "10.0.0.252"}
2024-05-04T10:58:05.023+0300    ERROR   sync    sync/sync.go:271    Error getting replica status    {"from": "10.0.0.251", "to": "10.0.0.252", "error": "404 Not Found(404 page not found\n)"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
    /go/src/app/pkg/sync/sync.go:271
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
    /go/src/app/pkg/sync/sync.go:255
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func2
    /go/src/app/pkg/sync/sync.go:59
github.com/robfig/cron/v3.FuncJob.Run
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:312
2024-05-04T10:59:00.307+0300    INFO    sync    sync/sync.go:174    Connected to origin {"from": "10.0.0.251", "version": "v0.107.48"}
2024-05-04T10:59:04.434+0300    INFO    sync    sync/sync.go:267    Start sync  {"from": "10.0.0.251", "to": "10.0.0.252"}
2024-05-04T10:59:04.869+0300    ERROR   sync    sync/sync.go:271    Error getting replica status    {"from": "10.0.0.251", "to": "10.0.0.252", "error": "404 Not Found(404 page not found\n)"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
    /go/src/app/pkg/sync/sync.go:271
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
    /go/src/app/pkg/sync/sync.go:255
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func2
    /go/src/app/pkg/sync/sync.go:59
github.com/robfig/cron/v3.FuncJob.Run
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:312
2024-05-04T11:00:00.445+0300    INFO    sync    sync/sync.go:174    Connected to origin {"from": "10.0.0.251", "version": "v0.107.48"}
2024-05-04T11:00:04.575+0300    INFO    sync    sync/sync.go:267    Start sync  {"from": "10.0.0.251", "to": "10.0.0.252"}
2024-05-04T11:00:04.869+0300    ERROR   sync    sync/sync.go:271    Error getting replica status    {"from": "10.0.0.251", "to": "10.0.0.252", "error": "404 Not Found(404 page not found\n)"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
    /go/src/app/pkg/sync/sync.go:271
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
    /go/src/app/pkg/sync/sync.go:255
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func2
    /go/src/app/pkg/sync/sync.go:59
github.com/robfig/cron/v3.FuncJob.Run
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:312
2024-05-04T11:01:00.383+0300    INFO    sync    sync/sync.go:174    Connected to origin {"from": "10.0.0.251", "version": "v0.107.48"}
2024-05-04T11:01:04.514+0300    INFO    sync    sync/sync.go:267    Start sync  {"from": "10.0.0.251", "to": "10.0.0.252"}
2024-05-04T11:01:04.958+0300    ERROR   sync    sync/sync.go:271    Error getting replica status    {"from": "10.0.0.251", "to": "10.0.0.252", "error": "404 Not Found(404 page not found\n)"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
    /go/src/app/pkg/sync/sync.go:271
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
    /go/src/app/pkg/sync/sync.go:255
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func2
    /go/src/app/pkg/sync/sync.go:59
github.com/robfig/cron/v3.FuncJob.Run
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:312
2024-05-04T11:02:00.447+0300    INFO    sync    sync/sync.go:174    Connected to origin {"from": "10.0.0.251", "version": "v0.107.48"}
2024-05-04T11:02:04.566+0300    INFO    sync    sync/sync.go:267    Start sync  {"from": "10.0.0.251", "to": "10.0.0.252"}
2024-05-04T11:02:04.863+0300    ERROR   sync    sync/sync.go:271    Error getting replica status    {"from": "10.0.0.251", "to": "10.0.0.252", "error": "404 Not Found(404 page not found\n)"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
    /go/src/app/pkg/sync/sync.go:271
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
    /go/src/app/pkg/sync/sync.go:255
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func2
    /go/src/app/pkg/sync/sync.go:59
github.com/robfig/cron/v3.FuncJob.Run
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
    /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:312

Anything else?

No response

bakito commented 2 months ago

Can you please enable debug mode https://github.com/bakito/adguardhome-sync/wiki/FAQ#how-do-i-get-debug-logs

bakito commented 2 months ago

Probably there's an incorrect REPLICA1_APIPATH defined.

github-actions[bot] commented 2 days ago

This issue has been inactive for 60 days. If the issue is still relevant please comment to re-activate the issue. If no action is taken within 7 days, the issue will be marked closed.