Comments (4)
fixed in https://github.com/bakito/adguardhome-sync/releases/tag/v0.5.2
from adguardhome-sync.
Hi
Can you please enable debug log level, by setting env vae LOG_LEVEL=debug
and provide the detailed request/response logs to the issue?
from adguardhome-sync.
2023-11-22T13:56:14.319-0400 INFO sync sync/sync.go:259 Start sync {"from": "192.168.2.29:8080", "to": "192.168.2.26"}
2023-11-22T13:56:14.319-0400 DEBUG client client/client-methods.go:16 do get {"host": "192.168.2.26", "method": "GET", "path": "status", "username": "admin"}
2023-11-22T13:56:14.390-0400 DEBUG client client/client-methods.go:32 got response {"host": "192.168.2.26", "method": "GET", "path": "status", "username": "admin", "status": 200, "body": "{"version":"v0.107.41","language":"","dns_addresses":["127.0.0.1","192.168.2.26"],"dns_port":53,"http_port":80,"protection_disabled_duration":0,"protection_enabled":true,"dhcp_available":true,"running":true}\n", "content-type": ["application/json"]}
2023-11-22T13:56:14.390-0400 INFO sync sync/sync.go:267 Connected to replica {"from": "192.168.2.29:8080", "to": "192.168.2.26", "version": "v0.107.41"}
2023-11-22T13:56:14.390-0400 WARN sync sync/sync.go:275 Versions do not match {"from": "192.168.2.29:8080", "to": "192.168.2.26", "originVersion": "v0.107.40", "replicaVersion": "v0.107.41"}
2023-11-22T13:56:14.390-0400 DEBUG client client/client-methods.go:16 do get {"host": "192.168.2.26", "method": "GET", "path": "/profile", "username": "admin"}
2023-11-22T13:56:14.529-0400 DEBUG client client/client-methods.go:32 got response {"host": "192.168.2.26", "method": "GET", "path": "/profile", "username": "admin", "status": 200, "body": "{"name":"admin","language":"","theme":"auto"}\n", "content-type": ["application/json"]}
2023-11-22T13:56:14.529-0400 INFO client client/client.go:478 Set profile {"host": "192.168.2.26", "language": "", "theme": "auto"}
2023-11-22T13:56:14.529-0400 DEBUG client client/client-methods.go:68 do put {"host": "192.168.2.26", "method": "PUT", "path": "/profile/update", "username": "admin", "body": "{"language":"","name":"","theme":"auto"}"}
2023-11-22T13:56:14.597-0400 DEBUG client client/client-methods.go:78 got response {"host": "192.168.2.26", "method": "PUT", "path": "/profile/update", "username": "admin", "status": 400, "body": "unknown language: ""\n", "content-type": "text/plain; charset=utf-8"}
2023-11-22T13:56:14.597-0400 ERROR sync sync/sync.go:280 Error syncing general settings {"from": "192.168.2.29:8080", "to": "192.168.2.26", "error": "400 Bad Request(unknown language: ""\n)"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:280
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:247
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).handleSync
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/http.go:31
github.com/gin-gonic/gin.(*Context).Next
/home/bakito/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
/home/bakito/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
/home/bakito/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
/home/bakito/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:620
github.com/gin-gonic/gin.(*Engine).ServeHTTP
/home/bakito/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:576
net/http.serverHandler.ServeHTTP
/home/bakito/.gimme/versions/go1.21.3.linux.amd64/src/net/http/server.go:2938
net/http.(*conn).serve
/home/bakito/.gimme/versions/go1.21.3.linux.amd64/src/net/http/server.go:2009
from adguardhome-sync.
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 911
User GID: 911
───────────────────────────────────────
[custom-init] No custom files found, skipping...
[ls.io-init] done.
2023-11-22T20:26:01.592Z INFO root cmd/root.go:125 Using config file:/config/adguardhome-sync.yaml
2023-11-22T20:26:01.596Z INFO sync sync/sync.go:38 AdGuardHome sync {"version": "0.5.1", "build": "2023-11-13T22:47:33Z", "os": "linux", "arch": "amd64"}
2023-11-22T20:26:01.596Z DEBUG sync types/types.go:70 Using config {"config": {"origin":{"url":"http://192.168.1.20:8089","apiPath":"/control","username":"a***n","password":"A***2","insecureSkipVerify":false,"autoSetup":false,"interfaceName":""},"replicas":[{"url":"http://192.168.1.21","username":"a***n","password":"A***x","insecureSkipVerify":false,"autoSetup":false,"interfaceName":""},{"url":"http://192.168.2.20:3000","username":"a***n","password":"A***2","insecureSkipVerify":false,"autoSetup":false,"interfaceName":""},{"url":"http://192.168.1.30","username":"a***n","password":"A***2","insecureSkipVerify":false,"autoSetup":false,"interfaceName":""}],"cron":"*/10 * * * *","runOnStart":true,"api":{"port":8080,"username":"admin","password":"Aubullet2"},"features":{"dns":{"accessLists":true,"serverConfig":true,"rewrites":true},"dhcp":{"serverConfig":true,"staticLeases":true},"generalSettings":true,"queryLogConfig":true,"statsConfig":true,"clientSettings":true,"services":true,"filters":true}}}
2023-11-22T20:26:01.597Z INFO sync sync/sync.go:65 Setup cronjob {"cron": "*/10 * * * *", "next-execution": "2023-11-22T20:30:00.000Z"}
2023-11-22T20:26:01.597Z INFO sync sync/http.go:57 Starting API server {"port": 8080}
2023-11-22T20:26:01.597Z INFO sync sync/sync.go:75 Running sync on startup
2023-11-22T20:26:01.597Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "status", "username": "admin"}
2023-11-22T20:26:01.600Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "status", "username": "admin", "status": 200, "body": "{\"version\":\"v0.107.41\",\"language\":\"\",\"dns_addresses\":[\"127.0.0.1\",\"::1\",\"192.168.1.20\",\"fe80::211:32ff:fed5:5af%ovs_eth0\",\"172.17.0.1\",\"fe80::42:29ff:fe7f:8787%docker0\",\"172.19.0.1\",\"fe80::42:bff:fe0f:a914%docker-e9f373ff\",\"fe80::c9a:5eff:fe5d:ea1%dockerba3e987\",\"fe80::789a:16ff:fe85:5bf2%docker308a90d\",\"192.168.32.1\",\"fe80::42:b0ff:fe41:ff4c%docker-b17841dd\",\"fe80::ec0a:fbff:fefd:7639%docker6fa9d7d\",\"fe80::78c4:98ff:fe3f:51d3%dockerc055884\",\"fe80::c488:65ff:fe02:ee4b%docker64bc819\",\"fe80::4046:98ff:fe30:96f6%docker776165f\",\"fe80::94a3:6fff:fe0c:f1b2%dockerc236e8f\",\"fe80::7428:26ff:fe10:cf2a%docker8bb86f5\",\"fe80::e878:d8ff:fe82:bfcb%dockera5bed25\",\"fe80::2456:2eff:fed3:ef32%docker53626e0\",\"fe80::cc3c:fbff:feaa:7da1%docker6ab2ff4\",\"fec0:a1b1:1::152\",\"172.28.0.1\",\"fe80::42:ebff:fe99:9947%docker-315e05d1\",\"fe80::14fd:ffff:fea6:9f38%dockerfd6fd32\",\"fe80::e41f:82ff:fefb:7e8b%dockerfe03ac2\"],\"dns_port\":53,\"http_port\":8089,\"protection_disabled_duration\":0,\"protection_enabled\":true,\"dhcp_available\":true,\"running\":true}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.600Z INFO sync sync/sync.go:162 Connected to origin {"from": "192.168.1.20:8089", "version": "v0.107.41"}
2023-11-22T20:26:01.600Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/profile", "username": "admin"}
2023-11-22T20:26:01.601Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/profile", "username": "admin", "status": 200, "body": "{\"name\":\"\",\"language\":\"\",\"theme\":\"auto\"}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.601Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/parental/status", "username": "admin"}
2023-11-22T20:26:01.601Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/parental/status", "username": "admin", "status": 200, "body": "{\"enabled\":false}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.601Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/safesearch/status", "username": "admin"}
2023-11-22T20:26:01.602Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/safesearch/status", "username": "admin", "status": 200, "body": "{\"enabled\":false,\"bing\":true,\"duckduckgo\":true,\"google\":true,\"pixabay\":true,\"yandex\":true,\"youtube\":true}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.602Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/safebrowsing/status", "username": "admin"}
2023-11-22T20:26:01.602Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/safebrowsing/status", "username": "admin", "status": 200, "body": "{\"enabled\":false}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.602Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/rewrite/list", "username": "admin"}
2023-11-22T20:26:01.602Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/rewrite/list", "username": "admin", "status": 200, "body": "[]\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.602Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/blocked_services/list", "username": "admin"}
2023-11-22T20:26:01.603Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/blocked_services/list", "username": "admin", "status": 200, "body": "[\"tinder\",\"mail_ru\",\"vk\",\"viber\",\"wechat\",\"ok\",\"qq\",\"weibo\",\"zhihu\",\"shopee\"]\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.603Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/blocked_services/get", "username": "admin"}
2023-11-22T20:26:01.603Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/blocked_services/get", "username": "admin", "status": 200, "body": "{\"schedule\":{\"time_zone\":\"America/Chicago\"},\"ids\":[\"tinder\",\"mail_ru\",\"vk\",\"viber\",\"wechat\",\"ok\",\"qq\",\"weibo\",\"zhihu\",\"shopee\"]}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.603Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/filtering/status", "username": "admin"}
2023-11-22T20:26:01.605Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/filtering/status", "username": "admin", "status": 200, "body": "{\"filters\":[{\"url\":\"https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt\",\"name\":\"AdGuard DNS filter\",\"last_updated\":\"2023-11-22T00:14:21Z\",\"id\":1,\"rules_count\":58029,\"enabled\":true},{\"url\":\"https://adaway.org/hosts.txt\",\"name\":\"AdAway Default Blocklist\",\"last_updated\":\"2023-11-22T00:14:22Z\",\"id\":2,\"rules_count\":6542,\"enabled\":true},{\"url\":\"https://adguardteam.github.io/HostlistsRegistry/assets/filter_12.txt\",\"name\":\"Dandelion Sprout's Anti-Malware List\",\"last_updated\":\"2023-11-22T00:14:22Z\",\"id\":1689775097,\"rules_count\":21983,\"enabled\":true},{\"url\":\"https://adguardteam.github.io/HostlistsRegistry/assets/filter_30.txt\",\"name\":\"Phishing URL Blocklist (PhishTank and OpenPhish)\",\"last_updated\":\"2023-11-22T00:14:22Z\",\"id\":1689775098,\"rules_count\":23227,\"enabled\":true},{\"url\":\"https://adguardteam.github.io/HostlistsRegistry/assets/filter_32.txt\",\"name\":\"The NoTracking blocklist\",\"last_updated\":\"2023-11-22T00:14:24Z\",\"id\":1689775099,\"rules_count\":419952,\"enabled\":true},{\"url\":\"https://adguardteam.github.io/HostlistsRegistry/assets/filter_10.txt\",\"name\":\"Scam Blocklist by DurableNapkin\",\"last_updated\":\"2023-11-22T00:14:24Z\",\"id\":1689775100,\"rules_count\":980,\"enabled\":true},{\"url\":\"https://adguardteam.github.io/HostlistsRegistry/assets/filter_42.txt\",\"name\":\"ShadowWhisperer's Malware List\",\"last_updated\":\"2023-11-22T00:14:24Z\",\"id\":1689775101,\"rules_count\":31089,\"enabled\":true},{\"url\":\"https://adguardteam.github.io/HostlistsRegistry/assets/filter_9.txt\",\"name\":\"The Big List of Hacked Malware Web Sites\",\"last_updated\":\"2023-11-22T00:14:24Z\",\"id\":1689775102,\"rules_count\":13468,\"enabled\":true},{\"url\":\"https://adguardteam.github.io/HostlistsRegistry/assets/filter_11.txt\",\"name\":\"Malicious URL Blocklist (URLHaus)\",\"last_updated\":\"2023-11-22T00:14:24Z\",\"id\":1689775103,\"rules_count\":7001,\"enabled\":true},{\"url\":\"https://adguardteam.github.io/HostlistsRegistry/assets/filter_23.txt\",\"name\":\"WindowsSpyBlocker - Hosts spy rules\",\"last_updated\":\"2023-11-22T00:14:24Z\",\"id\":1689775104,\"rules_count\":347,\"enabled\":true},{\"url\":\"https://adguardteam.github.io/HostlistsRegistry/assets/filter_8.txt\",\"name\":\"NoCoin Filter List\",\"last_updated\":\"2023-11-22T00:14:25Z\",\"id\":1689775105,\"rules_count\":409,\"enabled\":true},{\"url\":\"https://adguardteam.github.io/HostlistsRegistry/assets/filter_31.txt\",\"name\":\"Stalkerware Indicators List\",\"last_updated\":\"2023-11-22T00:14:25Z\",\"id\":1689775106,\"rules_count\":868,\"enabled\":true},{\"url\":\"https://adguardteam.github.io/HostlistsRegistry/assets/filter_3.txt\",\"name\":\"Peter Lowe's Blocklist\",\"last_updated\":\"2023-11-21T23:14:21Z\",\"id\":1691503870,\"rules_count\":3714,\"enabled\":true}],\"whitelist_filters\":null,\"user_rules\":[\"||omegle.com^\",\"@@||scribe.logs.roku.com^$important\",\"@@||liberty.logs.roku.com^$important\",\"@@||metrics.icloud.com^$important\",\"@@||firebaselogging-pa.googleapis.com^$important\",\"@@||7ba3f64df98de730df38846b54ecfbdf7f61f80f.cws.conviva.com^$important\",\"@@||r.smore.com^$important\",\"@@||*.myqdevice.com^$important\",\"@@||sab.denkeler.com^$important\",\"@@||js.appboycdn.com^$important\",\"@@||sdk.iad-03.braze.com^$important\",\"@@||geolocation.onetrust.com^$important\",\"@@||production-cmp.isgprivacy.cbsi.com^$important\",\"@@||s0.2mdn.net^$important\",\"@@||bat.bing.com^$client='192.168.1.182'\",\"@@||panther.goguardian.com^$client='192.168.99.165'\",\"@@||inquisition.goguardian.com^$client='192.168.99.165'\",\"@@||securepubads.g.doubleclick.net^$client='192.168.1.182'\",\"@@||pagead2.googlesyndication.com^$client='192.168.1.182'\",\"@@||pagead2.googlesyndication.com^$important\",\"@@||tpc.googlesyndication.com^$important\",\"@@||googleads.g.doubleclick.net^$important\",\"@@||tags.tiqcdn.com^$important\",\"@@||pubads.g.doubleclick.net^$important\",\"@@||adservice.google.com^$important\",\"@@||nexus.officeapps.live.com^$important\",\"@@||nexus.officeapps.live.com^$client='192.168.1.199'\",\"@@||nexusrules.officeapps.live.com^$important\",\"@@||nexusrules.officeapps.live.com^$client='192.168.1.199'\",\"@@||ipm.avcdn.net^$client='192.168.1.199'\",\"\"],\"interval\":24,\"enabled\":true}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.605Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/clients", "username": "admin"}
2023-11-22T20:26:01.606Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/clients", "username": "admin", "status": 200, "body": "{\"clients\":[{\"safe_search\":{\"enabled\":false,\"bing\":false,\"duckduckgo\":false,\"google\":false,\"pixabay\":false,\"yandex\":false,\"youtube\":false},\"blocked_services_schedule\":{\"time_zone\":\"America/Chicago\"},\"name\":\"Dain iPhone\",\"blocked_services\":[],\"ids\":[\"26:b1:7e:fc:a9:2e\"],\"tags\":null,\"upstreams\":[],\"filtering_enabled\":false,\"parental_enabled\":false,\"safebrowsing_enabled\":false,\"safesearch_enabled\":false,\"use_global_blocked_services\":true,\"use_global_settings\":true,\"ignore_querylog\":false,\"ignore_statistics\":false},{\"safe_search\":{\"enabled\":false,\"bing\":false,\"duckduckgo\":false,\"google\":false,\"pixabay\":false,\"yandex\":false,\"youtube\":false},\"blocked_services_schedule\":{\"time_zone\":\"America/Chicago\"},\"name\":\"DainUbuntu\",\"blocked_services\":[],\"ids\":[\"02:11:32:2a:8d:b6\"],\"tags\":null,\"upstreams\":[],\"filtering_enabled\":false,\"parental_enabled\":false,\"safebrowsing_enabled\":false,\"safesearch_enabled\":false,\"use_global_blocked_services\":false,\"use_global_settings\":false,\"ignore_querylog\":false,\"ignore_statistics\":false},{\"safe_search\":{\"enabled\":false,\"bing\":false,\"duckduckgo\":false,\"google\":false,\"pixabay\":false,\"yandex\":false,\"youtube\":false},\"blocked_services_schedule\":{\"time_zone\":\"America/Chicago\"},\"name\":\"DainX1\",\"blocked_services\":[],\"ids\":[\"cc:d9:ac:de:17:14\"],\"tags\":[\"device_laptop\"],\"upstreams\":[],\"filtering_enabled\":false,\"parental_enabled\":false,\"safebrowsing_enabled\":false,\"safesearch_enabled\":false,\"use_global_blocked_services\":true,\"use_global_settings\":true,\"ignore_querylog\":false,\"ignore_statistics\":false},{\"safe_search\":{\"enabled\":false,\"bing\":false,\"duckduckgo\":false,\"google\":false,\"pixabay\":false,\"yandex\":false,\"youtube\":false},\"blocked_services_schedule\":{\"time_zone\":\"America/Chicago\"},\"name\":\"GMC\",\"blocked_services\":[],\"ids\":[\"98:49:14:d1:fc:8b\"],\"tags\":null,\"upstreams\":[],\"filtering_enabled\":false,\"parental_enabled\":false,\"safebrowsing_enabled\":false,\"safesearch_enabled\":false,\"use_global_blocked_services\":false,\"use_global_settings\":true,\"ignore_querylog\":false,\"ignore_statistics\":false},{\"safe_search\":{\"enabled\":false,\"bing\":false,\"duckduckgo\":false,\"google\":false,\"pixabay\":false,\"yandex\":false,\"youtube\":false},\"blocked_services_schedule\":{\"time_zone\":\"America/Chicago\"},\"name\":\"MyQ\",\"blocked_services\":[],\"ids\":[\"64:52:99:ba:e2:d3\"],\"tags\":null,\"upstreams\":[],\"filtering_enabled\":false,\"parental_enabled\":false,\"safebrowsing_enabled\":false,\"safesearch_enabled\":false,\"use_global_blocked_services\":false,\"use_global_settings\":false,\"ignore_querylog\":false,\"ignore_statistics\":false}],\"auto_clients\":[{\"whois_info\":{},\"ip\":\"172.17.0.9\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.19.0.3\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.127\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.126\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.30\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.154\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.17.0.2\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"::1\",\"name\":\"localhost\",\"source\":\"etc/hosts\"},{\"whois_info\":{},\"ip\":\"192.168.1.175\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.17.0.6\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.189\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.32.2\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.132\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.21\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.19.0.2\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.128\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.17.0.4\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.170\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.19.224.1\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.42\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.134\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.157\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.163\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.43\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.151\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.1\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.147\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.190\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.17.0.11\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.198\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.192\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.114\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.17.0.8\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.17.0.3\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.171\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.17.0.10\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.106\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.19.128.1\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.168\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.41\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.196\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.191\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.122\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.152\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.197\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.28.0.3\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"127.0.0.1\",\"name\":\"localhost\",\"source\":\"etc/hosts\"},{\"whois_info\":{},\"ip\":\"192.168.1.107\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"172.17.0.5\",\"name\":\"\",\"source\":\"ARP\"},{\"whois_info\":{},\"ip\":\"192.168.1.167\",\"name\":\"\",\"source\":\"ARP\"}],\"supported_tags\":[\"device_audio\",\"device_camera\",\"device_gameconsole\",\"device_laptop\",\"device_nas\",\"device_other\",\"device_pc\",\"device_phone\",\"device_printer\",\"device_securityalarm\",\"device_tablet\",\"device_tv\",\"os_android\",\"os_ios\",\"os_linux\",\"os_macos\",\"os_other\",\"os_windows\",\"user_admin\",\"user_child\",\"user_regular\"]}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.607Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/querylog_info", "username": "admin"}
2023-11-22T20:26:01.607Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/querylog_info", "username": "admin", "status": 200, "body": "{\"interval\":90,\"enabled\":true,\"anonymize_client_ip\":false}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.607Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/stats_info", "username": "admin"}
2023-11-22T20:26:01.607Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/stats_info", "username": "admin", "status": 200, "body": "{\"interval\":90}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.608Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/access/list", "username": "admin"}
2023-11-22T20:26:01.608Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/access/list", "username": "admin", "status": 200, "body": "{\"allowed_clients\":[],\"disallowed_clients\":[],\"blocked_hosts\":[\"version.bind\",\"id.server\",\"hostname.bind\"]}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.608Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/dns_info", "username": "admin"}
2023-11-22T20:26:01.609Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/dns_info", "username": "admin", "status": 200, "body": "{\"upstream_dns\":[\"192.168.1.1\",\"192.168.2.1\"],\"upstream_dns_file\":\"\",\"bootstrap_dns\":[\"9.9.9.10\",\"149.112.112.10\",\"2620:fe::10\",\"2620:fe::fe:10\"],\"fallback_dns\":[],\"protection_enabled\":true,\"ratelimit\":20,\"blocking_mode\":\"default\",\"edns_cs_enabled\":false,\"edns_cs_use_custom\":false,\"dnssec_enabled\":false,\"disable_ipv6\":false,\"upstream_mode\":\"\",\"blocked_response_ttl\":10,\"cache_size\":4194304,\"cache_ttl_min\":600,\"cache_ttl_max\":3600,\"cache_optimistic\":false,\"resolve_clients\":true,\"use_private_ptr_resolvers\":true,\"local_ptr_upstreams\":[],\"blocking_ipv4\":\"\",\"blocking_ipv6\":\"\",\"protection_disabled_until\":null,\"edns_cs_custom_ip\":\"\",\"default_local_ptr_upstreams\":[\"8.8.8.8:53\"]}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.609Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.20:8089", "method": "GET", "path": "/dhcp/status", "username": "admin"}
2023-11-22T20:26:01.609Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.20:8089", "method": "GET", "path": "/dhcp/status", "username": "admin", "status": 200, "body": "{\"interface_name\":\"\",\"v4\":{\"gateway_ip\":\"\",\"subnet_mask\":\"\",\"range_start\":\"\",\"range_end\":\"\",\"lease_duration\":0},\"v6\":{\"range_start\":\"\",\"lease_duration\":86400},\"leases\":[],\"static_leases\":[],\"enabled\":false}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.609Z INFO sync sync/sync.go:259 Start sync {"from": "192.168.1.20:8089", "to": "192.168.2.20:3000"}
2023-11-22T20:26:01.610Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.2.20:3000", "method": "GET", "path": "status", "username": "admin"}
2023-11-22T20:26:01.840Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.2.20:3000", "method": "GET", "path": "status", "username": "admin", "status": 200, "body": "{\"version\":\"v0.107.41\",\"language\":\"en\",\"dns_addresses\":[\"127.0.0.1\",\"::1\",\"192.168.2.20\",\"fe80::211:32ff:fe9e:f1e5%ovs_eth0\",\"172.17.0.1\",\"fe80::42:64ff:fe8d:6f07%docker0\",\"fe80::7018:c8ff:fe8e:17f2%dockerbeb4db1\",\"fe80::e4e6:aff:fe28:6976%dockerf9ffc53\",\"fec0:a2b2:2::5ad\",\"fe80::9846:e9ff:fe91:152%docker9fbe185\"],\"dns_port\":53,\"http_port\":3000,\"protection_disabled_duration\":0,\"protection_enabled\":true,\"dhcp_available\":true,\"running\":true}\n", "content-type": ["application/json"]}
2023-11-22T20:26:01.841Z INFO sync sync/sync.go:267 Connected to replica {"from": "192.168.1.20:8089", "to": "192.168.2.20:3000", "version": "v0.107.41"}
2023-11-22T20:26:01.841Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.2.20:3000", "method": "GET", "path": "/profile", "username": "admin"}
2023-11-22T20:26:02.109Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.2.20:3000", "method": "GET", "path": "/profile", "username": "admin", "status": 200, "body": "{\"name\":\"admin\",\"language\":\"en\",\"theme\":\"auto\"}\n", "content-type": ["application/json"]}
2023-11-22T20:26:02.109Z INFO client client/client.go:478 Set profile {"host": "192.168.2.20:3000", "language": "", "theme": "auto"}
2023-11-22T20:26:02.109Z DEBUG client client/client-methods.go:68 do put {"host": "192.168.2.20:3000", "method": "PUT", "path": "/profile/update", "username": "admin", "body": "{\"language\":\"\",\"name\":\"\",\"theme\":\"auto\"}"}
2023-11-22T20:26:02.270Z DEBUG client client/client-methods.go:78 got response {"host": "192.168.2.20:3000", "method": "PUT", "path": "/profile/update", "username": "admin", "status": 400, "body": "unknown language: \"\"\n", "content-type": "text/plain; charset=utf-8"}
2023-11-22T20:26:02.270Z ERROR sync sync/sync.go:280 Error syncing general settings {"from": "192.168.1.20:8089", "to": "192.168.2.20:3000", "error": "400 Bad Request(unknown language: \"\"\n)"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:280
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:247
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func3
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:76
2023-11-22T20:26:02.270Z INFO sync sync/sync.go:259 Start sync {"from": "192.168.1.20:8089", "to": "192.168.1.30"}
2023-11-22T20:26:02.271Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.30", "method": "GET", "path": "status", "username": "admin"}
2023-11-22T20:26:02.317Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.30", "method": "GET", "path": "status", "username": "admin", "status": 200, "body": "{\"version\":\"v0.107.41\",\"language\":\"\",\"dns_addresses\":[\"192.168.1.30\"],\"dns_port\":53,\"http_port\":80,\"protection_disabled_duration\":0,\"protection_enabled\":true,\"dhcp_available\":true,\"running\":true}\n", "content-type": ["application/json"]}
2023-11-22T20:26:02.318Z INFO sync sync/sync.go:267 Connected to replica {"from": "192.168.1.20:8089", "to": "192.168.1.30", "version": "v0.107.41"}
2023-11-22T20:26:02.318Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.30", "method": "GET", "path": "/profile", "username": "admin"}
2023-11-22T20:26:02.415Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.30", "method": "GET", "path": "/profile", "username": "admin", "status": 200, "body": "{\"name\":\"admin\",\"language\":\"\",\"theme\":\"auto\"}\n", "content-type": ["application/json"]}
2023-11-22T20:26:02.415Z INFO client client/client.go:478 Set profile {"host": "192.168.1.30", "language": "", "theme": "auto"}
2023-11-22T20:26:02.415Z DEBUG client client/client-methods.go:68 do put {"host": "192.168.1.30", "method": "PUT", "path": "/profile/update", "username": "admin", "body": "{\"language\":\"\",\"name\":\"\",\"theme\":\"auto\"}"}
2023-11-22T20:26:02.461Z DEBUG client client/client-methods.go:78 got response {"host": "192.168.1.30", "method": "PUT", "path": "/profile/update", "username": "admin", "status": 400, "body": "unknown language: \"\"\n", "content-type": "text/plain; charset=utf-8"}
2023-11-22T20:26:02.461Z ERROR sync sync/sync.go:280 Error syncing general settings {"from": "192.168.1.20:8089", "to": "192.168.1.30", "error": "400 Bad Request(unknown language: \"\"\n)"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:280
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:247
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func3
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:76
2023-11-22T20:26:02.461Z INFO sync sync/sync.go:259 Start sync {"from": "192.168.1.20:8089", "to": "192.168.1.21"}
2023-11-22T20:26:02.461Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.21", "method": "GET", "path": "status", "username": "admin"}
2023-11-22T20:26:02.547Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.21", "method": "GET", "path": "status", "username": "admin", "status": 200, "body": "{\"version\":\"v0.107.41\",\"language\":\"\",\"dns_addresses\":[\"127.0.0.1\",\"172.17.0.3\"],\"dns_port\":53,\"http_port\":80,\"protection_disabled_duration\":0,\"protection_enabled\":true,\"dhcp_available\":true,\"running\":true}\n", "content-type": ["application/json"]}
2023-11-22T20:26:02.547Z INFO sync sync/sync.go:267 Connected to replica {"from": "192.168.1.20:8089", "to": "192.168.1.21", "version": "v0.107.41"}
2023-11-22T20:26:02.548Z DEBUG client client/client-methods.go:16 do get {"host": "192.168.1.21", "method": "GET", "path": "/profile", "username": "admin"}
2023-11-22T20:26:02.671Z DEBUG client client/client-methods.go:32 got response {"host": "192.168.1.21", "method": "GET", "path": "/profile", "username": "admin", "status": 200, "body": "{\"name\":\"admin\",\"language\":\"\",\"theme\":\"auto\"}\n", "content-type": ["application/json"]}
2023-11-22T20:26:02.671Z INFO client client/client.go:478 Set profile {"host": "192.168.1.21", "language": "", "theme": "auto"}
2023-11-22T20:26:02.671Z DEBUG client client/client-methods.go:68 do put {"host": "192.168.1.21", "method": "PUT", "path": "/profile/update", "username": "admin", "body": "{\"language\":\"\",\"name\":\"\",\"theme\":\"auto\"}"}
2023-11-22T20:26:02.739Z DEBUG client client/client-methods.go:78 got response {"host": "192.168.1.21", "method": "PUT", "path": "/profile/update", "username": "admin", "status": 400, "body": "unknown language: \"\"\n", "content-type": "text/plain; charset=utf-8"}
2023-11-22T20:26:02.739Z ERROR sync sync/sync.go:280 Error syncing general settings {"from": "192.168.1.20:8089", "to": "192.168.1.21", "error": "400 Bad Request(unknown language: \"\"\n)"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:280
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:247
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func3
/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:76
I added a brand new install on another box I had running unraid, went through initial config and stopped. Added that instance to the yaml file for adguardhome sync. Same issue. Here is the logs with debug turned on.
I also rebuilt my entire adguardhome-sync.yaml file. The new file is as follows:
# 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.1.20:8089
# apiPath: define an api path if other than "/control"
# insecureSkipVerify: true # disable tls check
username: admin
password: <redacted>
# cookie: Origin-Cookie-Name=CCCOOOKKKIIIEEE
# replica instance (optional, if only one)
#replica:
# url of the replica instance
# url: http://192.168.1.3
# username: username
# password: password
# cookie: Replica-Cookie-Name=CCCOOOKKKIIIEEE
# replicas instances (optional, if more than one)
replicas:
# url of the replica instance
- url: http://192.168.1.21
username: admin
password: <redacted>
# cookie: Replica1-Cookie-Name=CCCOOOKKKIIIEEE
- url: http://192.168.2.20:3000
username: admin
password: <redacted>
# cookie: Replica2-Cookie-Name=CCCOOOKKKIIIEEE
- url: http://192.168.1.30
username: admin
password: <redacted>
# cookie: Replica2-Cookie-Name=CCCOOOKKKIIIEEE
# autoSetup: true # if true, AdGuardHome is automatically initialized.
# Configure the sync API server, disabled if api port is 0
api:
# Port, default 8080
port: 8080
# if username and password are defined, basic auth is applied to the sync API
username: admin
password: <redacted>
# Configure sync features; by default all features are enabled.
features:
generalSettings: true
queryLogConfig: true
statsConfig: true
clientSettings: true
services: true
filters: true
dhcp:
serverConfig: true
staticLeases: true
dns:
serverConfig: true
accessLists: true
rewrites: true
from adguardhome-sync.
Related Issues (20)
- Syncing of dhcpv4 options array and local_domain_name in the AdGuardHome.yaml HOT 3
- Continue on Error HOT 3
- Sync fails when replica url has port HOT 2
- Certificate signed by unknown authority HOT 4
- Question: Main vs Synced HOT 2
- Sync Stats HOT 1
- Safe Search Provider selection not syncing HOT 2
- Fail to sync when DNS use a file HOT 1
- Error getting origin status HOT 1
- New Feature: Status Indicators HOT 4
- Sync "Pause service blocking schedule" HOT 2
- Error getting origin blocked services schedule HOT 3
- adguardhome-sync.yaml: no such file or directory HOT 4
- 403 Forbidden HOT 8
- Adguard Sync Error 403 Forbidden HOT 10
- Different URL for instances on the UI HOT 6
- Proxy for AdGuard Status HOT 4
- Version Check HOT 1
- How to set Timezone? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adguardhome-sync.