Undefined method `default_git_depth' for #<ProjectCiCdSetting:0x00007fe132868c90> Did you mean? default_timezone

Hi,

I am running gitlab-ce-12.0.0-ce.0.el7.x86_64 on CentOS Linux release 7.6.1810 (Core). When i try to create any project i am encountering the below mentioned error.

**undefined methoddefault_git_depth’ for #ProjectCiCdSetting:0x00007fe132868c90 Did you mean? default_timezone**`

==> production.log <==
Started POST “/projects” for 219.91.200.59 at 2019-06-29 06:36:24 +0000
Processing by ProjectsController#create as HTML
Parameters: {“utf8”=>“✓”, “authenticity_token”=>"[FILTERED]", “project”=>{“ci_cd_only”=>“false”, “name”=>“testingdacnew”, “namespace_id”=>“2”, “path”=>“testingdacnew”, “description”=>"", “visibility_level”=>“0”}}
Unable to save project. Error: undefined method `default_git_depth’ for #ProjectCiCdSetting:0x00007fe12d008280
Did you mean? default_timezone
Completed 200 OK in 392ms (Views: 298.2ms | ActiveRecord: 38.4ms)

==> production_json.log <==
{“method”:“POST”,“path”:"/projects",“format”:“html”,“controller”:“ProjectsController”,“action”:“create”,“status”:200,“duration”:393.32,“view”:298.24,“db”:38.4,“time”:“2019-06-29T06:36:24.870Z”,“params”:[{“key”:“utf8”,“value”:“✓”},{“key”:“authenticity_token”,“value”:"[FILTERED]"},{“key”:“project”,“value”:{“ci_cd_only”:“false”,“name”:“testingdacnew”,“namespace_id”:“2”,“path”:“testingdacnew”,“description”:"",“visibility_level”:“0”}}],“remote_ip”:“219.91.200.59”,“user_id”:2,“username”:“kaushal”,“ua”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36”,“queue_duration”:null,“gitaly_calls”:1,“gitaly_duration”:1.11,“correlation_id”:“aBCmxI6kO47”}

Any help will be highly appreciable and i look forward to hearing from you. Thanks in Advance.

Best Regards,

Kaushal

Hi,

I have fixed this issue. Please refer to the below steps if you encounter the same issue.

PostgreSQL prompt
gitlabhq_production=# ALTER TABLE vulnerability_feedback ADD COLUMN merge_request_id integer;

#gitlab-ctl reconfigure
#gitlab-ctl pg-upgrade ( for ugprading from PostgreSQL 9.6 to 10.7 version)

Best Regards,

Kaushal

I also encountered the same problem, what are the detailed steps?