nixos/acme: nginx configuration test fails during nixos-rebuild switch when you have an existing virtualhost and add a new one #60180
nginx failed to restart after I added a second virtualHost to my nginx config.
Friends of me also ran into this multiple times last week at their company
Steps to reproduce
This was the specific commit that failed to deploy: arianvp/nixos-stuff@4fe0a77
Nixos 19.03 but also happened on 18.03 to me in the past
The text was updated successfully, but these errors were encountered:
I can reliably reproduce the bug now.
and after that, deploy:
Nginx should fail to start now.
If you manually
However, im not sure how to make a regression
I noticed actually another bug here. if a
I think the bug is as follows:
Nginx has a
Now, if you deploy a single
However, once you deploy the second
Instead, we should create a
I just ran into this. Same cause, same symptoms, same easy workaround of manually starting nginx (thankfully). This is the relevant part of the nginx logs, showing that it's starting before ACME gets a chance to create the files it needs:
Also happened to me just now on 1 of 3 nixops machines running 19.03: