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
gitlab: service doesn't start when enableStartTLSAuto is set to false #86160
Labels
Comments
tom-kuca
added a commit
to tom-kuca/nixpkgs
that referenced
this issue
Apr 28, 2020
`toString` function converts `false` to an empty string, which results in a configuration file with invalid syntax: ``` enable_starttls_auto: , ``` `boolToString` places correct value there. fixes NixOS#86160
talyz
added a commit
to talyz/nixpkgs
that referenced
this issue
Apr 28, 2020
'toString false' results in an empty string, which, in this context, is a syntax error. Use boolToString instead. Fixes NixOS#86160
10 tasks
Thank you for reporting this! I've fixed this on master and will backport the fix to 20.03 and 19.09. |
talyz
added a commit
to talyz/nixpkgs
that referenced
this issue
Apr 28, 2020
'toString false' results in an empty string, which, in this context, is a syntax error. Use boolToString instead. Fixes NixOS#86160 (cherry picked from commit c0a838d)
talyz
added a commit
to talyz/nixpkgs
that referenced
this issue
Apr 28, 2020
'toString false' results in an empty string, which, in this context, is a syntax error. Use boolToString instead. Fixes NixOS#86160 (cherry picked from commit c0a838d)
This was referenced Apr 28, 2020
stigok
pushed a commit
to stigok/nixpkgs
that referenced
this issue
Jun 12, 2020
'toString false' results in an empty string, which, in this context, is a syntax error. Use boolToString instead. Fixes NixOS#86160 (cherry picked from commit c0a838d)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GitLab service do not start with configuration
services.gitlab.smtp.enableStartTLSAuto = false;
.TLDR
boolToString
should be used instead oftoString
when creating config file.There is an error message in the log:
To Reproduce
Steps to reproduce the behavior:
services.gitlab.smtp.enableStartTLSAuto = false;
toconfiguration.nix
nix-switch
Expected behavior
GitLab service should be running after switching to new configuration.
Additional context
The file
smtp_settings.rb
mentioned in the error:Note the missing value for
enable_starttls_auto: ,
. The problem seems to be atnixpkgs/nixos/modules/services/misc/gitlab.nix
Line 183 in c496b1b
toString
generates empty string:Notify maintainers
@fpletz @globin @krav @talyz
Metadata
Maintainer information:
The text was updated successfully, but these errors were encountered: