Most default projects features ignored in gitlab.rb
Summary
Following options in gitlab.rb seem to be ignored:
gitlab_default_projects_features_issuesgitlab_default_projects_features_merge_requestsgitlab_default_projects_features_wikigitlab_default_projects_features_snippetsgitlab_default_projects_features_builds
On the other hand gitlab_default_projects_features_container_registry works fine. The only difference is that this one is a checkobx (boolean) in settings, but not working ones are combos with 3 possible values.
Steps to reproduce
With GitLab Omnibus version:
- In file
/etc/gitlab/gitlab.rbfind line:# gitlab_rails['gitlab_default_projects_features_wiki'] = true - Change this line to:
gitlab_rails['gitlab_default_projects_features_wiki'] = false - Run
sudo gitlab-ctl reconfigure - Log in to GitLab as user that can create project
- Create a project in GitLab (both private and public yield the same result)
Expected behavior
Newly created project should have wiki disabled.
Actual behavior
Wiki is enabled in project (as "Only team members").
Relevant logs and/or screenshots
Output of checks
Results of GitLab application Check
Checking GitLab Shell ...
GitLab Shell version >= 3.6.6 ? ... OK (3.6.6)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
1/1 ... repository is empty
2/2 ... ok
3/3 ... repository is empty
1/4 ... repository is empty
1/5 ... repository is empty
1/6 ... repository is empty
1/7 ... repository is empty
1/8 ... repository is empty
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... skipped (no tmp uploads folder yet)
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ...
1/1 ... yes
2/2 ... yes
3/3 ... yes
1/4 ... yes
1/5 ... yes
1/6 ... yes
1/7 ... yes
1/8 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.7.4)
Active users: 2
Checking GitLab ... Finished
Results of GitLab environment info
System information
System: Debian 8.6
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version: 2.6.6
Bundler Version:1.13.5
Rake Version: 10.5.0
Sidekiq Version:4.2.1
GitLab information
Version: 8.13.0
Revision: 053a0a2
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: http://...
HTTP Clone URL: http://...
SSH Clone URL: git@...:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers: bitbucket
GitLab Shell
Version: 3.6.6
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
Possible fixes
The problem may occur because these options were booleans in the past, but now have more possible values. According to project_feature.rb current values are DISABLED = 0, PRIVATE = 10, ENABLED = 20. I don't know how to write properly these values in gitlab.rb (for example numeric values didn't work for me).
