Closed achmeed closed 1 year ago
Yes, you can do it like so: --log /path/to/log.log
or using a config: https://github.com/Control-D-Inc/ctrld/blob/main/docs/config.md#log_path
Thanks, added it and will see what it sais next time it hangs
Thanks, please let us know what you find. Also, what specific router model + EdgeOS version are you using?
Logfile Justa snippet, can send you the whole if you want
-06-15T19:04:56+02:00","time":"2023-06-15T19:04:56+02:00","message":"[40e8ff] could not resolve query on first attempt, retrying..."} {"level":"debug","time":"2023-06-15T19:04:56+02:00","time":"2023-06-15T19:04:56+02:00","message":"[58db94] received response of 35 bytes in 23.078897355s"} {"level":"error","time":"2023-06-15T19:04:56+02:00","time":"2023-06-15T19:04:56+02:00","message":"[a0f83a] all upstreams failed"} {"level":"debug","time":"2023-06-15T19:04:56+02:00","time":"2023-06-15T19:04:56+02:00","message":"[a0f83a] received response of 35 bytes in 21.641610428s"} {"level":"error","time":"2023-06-15T19:04:56+02:00","time":"2023-06-15T19:04:56+02:00","message":"[990b08] all upstreams failed"} {"level":"debug","time":"2023-06-15T19:04:56+02:00","time":"2023-06-15T19:04:56+02:00","message":"[990b08] received response of 34 bytes in 25.091412933s"}
Version Running EdgeRouter X v2.0.9-hotfix.4
And config looks like this AUTO-GENERATED VIA CD FLAG - DO NOT MODIFY
[service] log_level = 'debug' log_path = '/opt/cd.log'
[listener] [listener.0] ip = '127.0.0.1' port = 53
[listener.0.policy]
name = 'My Policy'
rules = [
{ 'captive.apple.com' = []},
{ 'aircanadawifi.com' = []},
{ 'gogoinflight.com' = []},
{ 'southwestwifi.com' = []},
{ 'singaporeair-krisworld.com' = []},
{ 'airborne.gogoinflight.com' = []},
{ 'aainflight.com' = []},
{ 'aa.viasat.com' = []},
{ 'deltawifi.com' = []},
{ 'unitedwifi.com' = []},
{ 'shop.ba.com' = []},
{ 'alaskawifi.com' = []},
{ 'flyfi.com' = []},
{ 'wifi.airasia.com' = []},
{ 'wifi.sncf' = []},
{ 'wifi.tgv-lyria.com' = []},
{ 'freewlan.sbb.ch' = []},
{ 'register.onboard.eurostar.com' = []},
{ 'thalysnet.com' = []},
{ 'iceportal.de' = []},
{ 'vvm.mstore.msg.t-mobile.com' = []},
{ 'wifi.inflightinternet.com' = []}
]
[network] [network.0] name = 'Network 0' cidrs = ['0.0.0.0/0']
[upstream] [upstream.0] type = 'doh' endpoint = 'https://dns.controld.com/MYID' timeout = 5000
@achmeed if you can send me the complete log, it would be nice - yegor@controld.com
Thanks
This is resolved in the latest release: https://github.com/Control-D-Inc/ctrld/releases/tag/v1.3.0
Been trying the ctrld cmdline on EdgeOs but it crashes/hangs and cant really see any output why. Service is running and has to be restarted.
During setup you'll also have to have your edgerouter using Ctrld DNS servers otherwise it will file if systemdns uses i.e google or cloudflare.
is there a way to specify log file location when using -vv ?