nixpkgs-ml-tools

nixpkgs mailing list tools
git clone git://jb55.com/nixpkgs-ml-tools
Log | Files | Refs | README | LICENSE

dns-timeout (3179B)


      1 n: DNS Timeout
      2 d: b4 sometimes fails with a DNS timeout, need to figure out why this happens, and if there's a way to bypass dkim domain checks.
      3 t: bug,dkim
      4 i: 1618841594.518946778-jb55@jb55.com
      5 
      6 backtrace:
      7 
      8 Analyzing 2 messages in the thread
      9 ---
     10 Writing ./v3_20210416_ben_nixos_gmnisrv_init.mbx
     11 Traceback (most recent call last):
     12   File "/nix/store/y5vqbq3x551chz3dj9i0zjzm7sxg5vnb-b4-0.6.2/bin/.b4-wrapped", line 9, in <module>
     13     sys.exit(cmd())
     14   File "/nix/store/y5vqbq3x551chz3dj9i0zjzm7sxg5vnb-b4-0.6.2/lib/python3.8/site-packages/b4/command.py", line 213, in cmd
     15     cmdargs.func(cmdargs)
     16   File "/nix/store/y5vqbq3x551chz3dj9i0zjzm7sxg5vnb-b4-0.6.2/lib/python3.8/site-packages/b4/command.py", line 40, in cmd_am
     17     b4.mbox.main(cmdargs)
     18   File "/nix/store/y5vqbq3x551chz3dj9i0zjzm7sxg5vnb-b4-0.6.2/lib/python3.8/site-packages/b4/mbox.py", line 538, in main
     19     mbox_to_am(threadfile, cmdargs)
     20   File "/nix/store/y5vqbq3x551chz3dj9i0zjzm7sxg5vnb-b4-0.6.2/lib/python3.8/site-packages/b4/mbox.py", line 114, in mbox_to_am
     21     am_mbx = lser.save_am_mbox(mbx, noaddtrailers=cmdargs.noaddtrailers,
     22   File "/nix/store/y5vqbq3x551chz3dj9i0zjzm7sxg5vnb-b4-0.6.2/lib/python3.8/site-packages/b4/__init__.py", line 535, in save_am_mbox
     23     if latt and latt.validate(lmsg.msg):
     24   File "/nix/store/y5vqbq3x551chz3dj9i0zjzm7sxg5vnb-b4-0.6.2/lib/python3.8/site-packages/b4/__init__.py", line 1915, in validate
     25     self.lsig = LoreAttestationSignatureDKIM(msg)
     26   File "/nix/store/y5vqbq3x551chz3dj9i0zjzm7sxg5vnb-b4-0.6.2/lib/python3.8/site-packages/b4/__init__.py", line 1707, in __init__
     27     res = dkim.verify(self.msg.as_bytes(), dnsfunc=dkim_get_txt)
     28   File "/nix/store/y995b8xjx986sz3v9643myd9q0myf4gj-python3.8-dkimpy-1.0.5/lib/python3.8/site-packages/dkim/__init__.py", line 1352, in verify
     29     return d.verify(dnsfunc=dnsfunc)
     30   File "/nix/store/y995b8xjx986sz3v9643myd9q0myf4gj-python3.8-dkimpy-1.0.5/lib/python3.8/site-packages/dkim/__init__.py", line 940, in verify
     31     return self.verify_sig(sig, include_headers, sigheaders[idx], dnsfunc)
     32   File "/nix/store/y995b8xjx986sz3v9643myd9q0myf4gj-python3.8-dkimpy-1.0.5/lib/python3.8/site-packages/dkim/__init__.py", line 773, in verify_sig
     33     self.pk, self.keysize, self.ktag, self.seqtlsrpt = load_pk_from_dns(name,
     34   File "/nix/store/y995b8xjx986sz3v9643myd9q0myf4gj-python3.8-dkimpy-1.0.5/lib/python3.8/site-packages/dkim/__init__.py", line 481, in load_pk_from_dns
     35     s = dnsfunc(name, timeout=timeout)
     36   File "/nix/store/y5vqbq3x551chz3dj9i0zjzm7sxg5vnb-b4-0.6.2/lib/python3.8/site-packages/b4/__init__.py", line 2452, in dkim_get_txt
     37     a = _resolver.resolve(lookup, dns.rdatatype.TXT, raise_on_no_answer=False, lifetime=timeout, search=True)
     38   File "/nix/store/ih0gs9ynv83jjsiq6h32dh28fd1ykxp0-python3.8-dnspython-2.0.0/lib/python3.8/site-packages/dns/resolver.py", line 1043, in resolve
     39     timeout = self._compute_timeout(start, lifetime)
     40   File "/nix/store/ih0gs9ynv83jjsiq6h32dh28fd1ykxp0-python3.8-dnspython-2.0.0/lib/python3.8/site-packages/dns/resolver.py", line 950, in _compute_timeout
     41     raise Timeout(timeout=duration)
     42 dns.exception.Timeout: The DNS operation timed out after 5.4021406173706055 seconds
     43