!MthpOIxqJhTgrMNxDS:nixos.org

NixOS ACME / LetsEncrypt

105 Members
Another day, another cert renewal44 Servers

Load older messages


SenderMessageTime
26 Nov 2022
@ahsmha:matrix.orgahmed changed their display name from rh to ahmed.19:19:40
1 Dec 2022
@hexa:lossy.networkhexa changed their display name from hexa to hexa (22.11 now).13:08:34
@hexa:lossy.networkhexa changed their display name from hexa (22.11 now) to hexa.14:38:23
7 Dec 2022
@qbit:tapenet.orgqbit joined the room.17:54:45
@me:linj.techlinj joined the room.21:36:54
@me:linj.techlinjRedacted or Malformed Event21:39:52
@me:linj.techlinj * I use acme module with caddy to do http01 challenge, so the cert's group is set to caddy and its owner is acme. Is there a way to let a systemd dynamic service read that cert?21:40:12
@me:linj.techlinj * I use acme module with caddy to do http01 challenge, so the cert's group is set to caddy and its owner is acme. What is the way to let a systemd dynamic service read that cert with minimal permission given to it?21:45:17
13 Dec 2022
@k900:0upti.meK900 ⚡️https://hydra.nixos.org/build/20191409608:43:07
@k900:0upti.meK900 ⚡️The test is failing again08:43:13
@m1cr0man:m1cr0man.comm1cr0manRight. I'm gonna write a script to run it 1000 times and capture the failures :P I have no clue why it's failing. I already did a pass on it a while ago when it failed far more frequently (like maybe a year ago now), so there must be some other race condition going on10:20:20
@k900:0upti.meK900 ⚡️I think it's trying to hit the webserver before the webserver is actually up10:20:51
@m1cr0man:m1cr0man.comm1cr0manyeah which it shouldn't be doing, I have appropriate port checks and retry logic but that seems to be insufficient10:21:57
@m1cr0man:m1cr0man.comm1cr0manalright, I'll start with 100 loops. They are taking about 4 minutes each. Will review after work11:04:55
@winterqt:nixos.devWinter (she/her)
In reply to @m1cr0man:m1cr0man.com
yeah which it shouldn't be doing, I have appropriate port checks and retry logic but that seems to be insufficient
wonder what hellish issue you'll uncover next 🫡
14:48:42
@m1cr0man:m1cr0man.comm1cr0man103 attempts later and not a single one has failed 😕 22:38:37
@m1cr0man:m1cr0man.comm1cr0man

Okay so being a bit smarter with this debugging, I am looking through the build logs on Hydra for successful builds and checking where any retry logic was triggered and how many times. if you search this build https://hydra.nixos.org/build/201652934/nixlog/1 for "s_client -brief" You will see an instance in the first few matches in which it has to be retried 3 consecutive times (and works on the third). The method performing this is here: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/acme.nix#L407-L418 and is configured for 3 retries. You can also see the webserver giving the error client closed connection while waiting for request on 2 of the 3 attempts.

I think I need to increase the delays + number of retries for this method and any others that are waiting on web responses. Even from that log, I can't see any reason the server wasn't able to respond or why the client had sent a partial request. Hopefully this will be sufficient to stop the failures.

22:59:25
@m1cr0man:m1cr0man.comm1cr0manWelp, here's a PR https://github.com/NixOS/nixpkgs/pull/205983 hopefully this does the trick. I have good evidence to support increased retries + delays solving the issue.23:44:37
14 Dec 2022
@m1cr0man:m1cr0man.comm1cr0manAwh dammit I just realized that vscode auto formatted it 🤦🤦 will fix tomorrow00:22:06
@alesya-h:nixos.devAlesya Huzik joined the room.11:13:02
21 Dec 2022
@thatsnomoon_343:matrix.orgThatsNoMoon joined the room.05:01:47
@thatsnomoon_343:matrix.orgThatsNoMoon left the room.20:16:41
22 Dec 2022
@m1cr0man:m1cr0man.comm1cr0manThanks for the merge Raito! 🙂03:25:12
@raitobezarius:matrix.orgraitobezariuswith pleasure04:15:18
@raitobezarius:matrix.orgraitobezariusthanks for all the amazing work on ACME ;)04:15:28
24 Dec 2022
@k900:0upti.meK900 ⚡️https://hydra.nixos.org/build/202864292/nixlog/507:51:42
@k900:0upti.meK900 ⚡️It broke again :(07:51:47
@raitobezarius:matrix.orgraitobezarius
In reply to @k900:0upti.me
https://hydra.nixos.org/build/202864292/nixlog/5
did it?
20:29:55
@hexa:lossy.networkhexaProbably fine after restart21:11:52
25 Dec 2022
@ahsmha:matrix.orgahmed left the room.10:34:49

Show newer messages


Back to Room ListRoom Version: 6