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

Error getting replica status #340

Open
Turbine1313 opened this issue May 4, 2024 · 2 comments
Open

Error getting replica status #340

Turbine1313 opened this issue May 4, 2024 · 2 comments

Comments

@Turbine1313
Copy link

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/[email protected]/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
	/go/pkg/mod/github.com/robfig/cron/[email protected]/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/[email protected]/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
	/go/pkg/mod/github.com/robfig/cron/[email protected]/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/[email protected]/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
	/go/pkg/mod/github.com/robfig/cron/[email protected]/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/[email protected]/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
	/go/pkg/mod/github.com/robfig/cron/[email protected]/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/[email protected]/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
	/go/pkg/mod/github.com/robfig/cron/[email protected]/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/[email protected]/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
	/go/pkg/mod/github.com/robfig/cron/[email protected]/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/[email protected]/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1
	/go/pkg/mod/github.com/robfig/cron/[email protected]/cron.go:312

Anything else?

No response

@bakito
Copy link
Owner

bakito commented May 4, 2024

@bakito
Copy link
Owner

bakito commented May 4, 2024

Probably there's an incorrect REPLICA1_APIPATH defined.

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

2 participants