Description template for merge request editor and related DB column are missing in fresh install of Gitlab-CE 10.7.1
Summary
Description template for merge request editor and related DB column are missing in fresh install of Gitlab-CE 10.7.1. The default description template for merge requests input box is missing from all project settings, and it seems the column is as well.
Steps to reproduce
- Install Gitlab CE 10.7.1
- Try to import a project from Gitlab.com with a merge template
- Try to define a new merge template
Example Project
(If possible, please create an example project here on GitLab.com that exhibits the problematic behaviour, and link to it here in the bug report)
(If you are using an older version of GitLab, this will also determine whether the bug has been fixed in a more recent version)
What is the current bug behavior?
Description editor does not appear in settings, and gitlab projects with merge templates fail to import.
What is the expected correct behavior?
Box should show and import should work.
Relevant logs and/or screenshots
Settings page with missing box.
Import failure:
Error importing repository into theden/django - PG::UndefinedColumn: ERROR: column "merge_requests_template" of relation "projects" does not exist
LINE 1: ..." = '', "visibility_level" = 0, "archived" = 'f', "merge_req...
^
: UPDATE "projects" SET "description" = '', "visibility_level" = 0, "archived" = 'f', "merge_requests_template" = '', "merge_requests_rebase_enabled" = 'f', "approvals_before_merge" = 0, "reset_approvals_on_push" = 't', "merge_requests_ff_only_enabled" = 'f', "issues_template" = '', "ci_id" = NULL, "shared_runners_enabled" = 't', "build_coverage_regex" = NULL, "build_allow_git_fetch" = 't', "build_timeout" = 3600, "public_builds" = 't', "pending_delete" = 'f', "last_repository_check_failed" = NULL, "container_registry_enabled" = 't', "only_allow_merge_if_pipeline_succeeds" = 'f', "has_external_issue_tracker" = 'f', "request_access_enabled" = 't', "has_external_wiki" = 'f', "only_allow_merge_if_all_discussions_are_resolved" = 'f', "repository_size_limit" = NULL, "service_desk_enabled" = 't', "printing_merge_request_link_enabled" = 't', "auto_cancel_pending_pipelines" = 0, "ci_config_path" = NULL, "disable_overriding_approvers_per_merge_request" = NULL, "delete_error" = NULL, "resolve_outdated_diff_discussions" = NULL, "jobs_cache_index" = NULL, "external_authorization_classification_label" = '', "external_webhook_token" = NULL, "pages_https_only" = 'f' WHERE "projects"."id" = 137
Output of checks
This bug happens on a private instance of Gitlab CE
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.3.6p384 Gem Version: 2.6.13 Bundler Version:1.13.7 Rake Version: 12.3.0 Redis Version: 3.2.11 Git Version: 2.14.3 Sidekiq Version:5.0.5 Go Version: unknownGitLab information Version: 10.7.1 Revision: 0d49bb8 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://gitlab.routh.io HTTP Clone URL: https://gitlab.routh.io/some-group/some-project.git SSH Clone URL: git@gitlab.routh.io:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 7.1.2 Repository storage paths:
- default: /data/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab Shell ...
GitLab Shell version >= 7.1.2 ? ... OK (7.1.2) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 1/8 ... ok 1/41 ... ok 1/42 ... ok 1/56 ... ok 20/70 ... ok 20/71 ... ok 21/72 ... repository is empty 21/73 ... repository is empty 21/74 ... repository is empty 21/75 ... ok 21/76 ... ok 2/77 ... ok 22/78 ... ok 20/79 ... ok 20/80 ... ok 20/81 ... ok 20/82 ... ok 20/83 ... ok 20/84 ... ok 20/85 ... ok 20/86 ... ok 20/87 ... ok 20/88 ... ok 20/89 ... ok 20/90 ... ok 20/91 ... ok 20/92 ... ok 20/93 ... ok 20/94 ... ok 20/95 ... ok 20/96 ... ok 20/97 ... ok 20/98 ... ok 20/99 ... ok 20/100 ... ok 20/101 ... ok 20/102 ... ok 20/103 ... ok 22/104 ... ok 23/105 ... ok 24/106 ... ok 23/107 ... ok 2/108 ... ok 2/109 ... ok 23/110 ... ok 22/111 ... ok 26/114 ... ok 26/115 ... ok 26/116 ... ok 27/117 ... ok 23/118 ... ok 28/119 ... ok 29/120 ... ok 29/121 ... ok 29/122 ... ok 30/123 ... ok 31/124 ... ok 26/125 ... ok 29/126 ... ok 32/127 ... ok 32/128 ... ok 25/129 ... ok 25/130 ... ok 26/131 ... repository is empty 33/132 ... ok 34/133 ... ok 34/134 ... ok 32/135 ... ok 26/137 ... repository is empty Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes 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/8 ... yes 1/41 ... yes 1/42 ... yes 1/56 ... yes 20/70 ... yes 20/71 ... yes 21/72 ... yes 21/73 ... yes 21/74 ... yes 21/75 ... yes 21/76 ... yes 2/77 ... yes 22/78 ... yes 20/79 ... yes 20/80 ... yes 20/81 ... yes 20/82 ... yes 20/83 ... yes 20/84 ... yes 20/85 ... yes 20/86 ... yes 20/87 ... yes 20/88 ... yes 20/89 ... yes 20/90 ... yes 20/91 ... yes 20/92 ... yes 20/93 ... yes 20/94 ... yes 20/95 ... yes 20/96 ... yes 20/97 ... yes 20/98 ... yes 20/99 ... yes 20/100 ... yes 20/101 ... yes 20/102 ... yes 20/103 ... yes 22/104 ... yes 23/105 ... yes 24/106 ... yes 23/107 ... yes 2/108 ... yes 2/109 ... yes 23/110 ... yes 22/111 ... yes 26/114 ... yes 26/115 ... yes 26/116 ... yes 27/117 ... yes 23/118 ... yes 28/119 ... yes 29/120 ... yes 29/121 ... yes 29/122 ... yes 30/123 ... yes 31/124 ... yes 26/125 ... yes 29/126 ... yes 32/127 ... yes 32/128 ... yes 25/129 ... yes 25/130 ... yes 26/131 ... yes 33/132 ... yes 34/133 ... yes 34/134 ... yes 32/135 ... yes 26/137 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.3.6) Git version >= 2.9.5 ? ... yes (2.14.3) Git user has default SSH configuration? ... yes Active users: ... 2
Checking GitLab ... Finished
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)