-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/nginx: don't hide nginx config errors on nixos-rebuild --switch with reload enabled #76179
Conversation
with reload enabled Closes NixOS#73455
I know about #74072, but I have a test working so it is not blocked by that PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
@Mic92 you are right, the The reason I still do
I can implement that with running logger manually from reload script. Do you think it is better to run logger explicitly, rather than relying on I also removed However, if unit is stopped first, then activate starts both |
@danbst Looks good to me. Please rebase to current master. |
…into nginx-reload-warn-errors
@domenkozar @ckauhaus what do you think, this has to be backported to 19.09? I believe it should, but I need confirmation |
Yup. |
… with reload enabled (NixOS#76179) nixos/nginx: don't hide nginx config errors on nixos-rebuild --switch with reload enabled Closes NixOS#73455 (cherry picked from commit cef68c4)
… with reload enabled (NixOS#76179) nixos/nginx: don't hide nginx config errors on nixos-rebuild --switch with reload enabled Closes NixOS#73455 (cherry picked from commit cef68c4)
${execCommand} -t && \ | ||
${pkgs.systemd}/bin/systemctl reload nginx.service | ||
fi | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line breaks nginx. It causes directories in /var/cache/nginx/
to be owned by nobody
, which breaks large POST uploads. I think this might due the fact that nginx is no longer started as root. cc @Izorkin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#85820 - fix variant and #85820 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I have a simpler version. Will post.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes #73455
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @domenkozar @Izorkin @aanderse @ckauhaus