Error HTTp 500 on /admin/application_settings
Version: GitLab Community Edition 8.2.0, installed using Omnibus package.
The following error happens when I try to save the application settings on /admin/application_settings
:
==> /var/log/gitlab/gitlab-rails/production.log <==
Started PATCH "/admin/application_settings" for 189.10.143.180 at 2015-11-23 08:22:18 -0500
Processing by Admin::ApplicationSettingsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "application_setting"=>{"default_branch_protection"=>"2", "default_project_visibility"=>"10", "default_snippet_visibility"=>"10", "import_sources"=>["github", "bitbucket", "gitlab", "gitorious", "google_code", "fogbugz", "git"], "version_check_enabled"=>"0", "admin_notification_email"=>"rodrigo.avila@syonet.com", "gravatar_enabled"=>"1", "twitter_sharing_enabled"=>"0", "default_projects_limit"=>"5", "max_attachment_size"=>"50", "session_expire_delay"=>"10080", "user_oauth_applications"=>"1", "signup_enabled"=>"0", "signin_enabled"=>"1", "restricted_signup_domains_raw"=>"syonet.com\r\nleadforce.com.br", "home_page_url"=>"", "after_sign_out_path"=>"", "sign_in_text"=>"![Company Logo](http://syonet.com/images/logo_syonet10anos.jpg)", "help_page_text"=>"", "shared_runners_enabled"=>"0", "max_artifacts_size"=>""}}
==> /var/log/gitlab/postgresql/current <==
2015-11-23_13:22:19.05932 ERROR: null value in column "max_artifacts_size" violates not-null constraint
2015-11-23_13:22:19.05942 DETAIL: Failing row contains (1, 5, f, t, t, ![Company Logo](http://syonet.com/images/logo_syonet10anos.jpg), 2015-01-23 00:36:05.916643, 2015-11-23 13:22:19.031917, , 2, f, --- []
2015-11-23_13:22:19.05943 , 50, f, 10, 10, ---
2015-11-23_13:22:19.05944 - syonet.com
2015-11-23_13:22:19.05944 - leadforce.com.br
2015-11-23_13:22:19.05945 , t, , 10080, ---
2015-11-23_13:22:19.05945 - github
2015-11-23_13:22:19.05945 - bitbucket
2015-11-23_13:22:19.05945 - gitlab
2015-11-23_13:22:19.05945 - gitorious
2015-11-23_13:22:19.05946 - google_code
2015-11-23_13:22:19.05946 - fo..., , rodrigo.avila@syonet.com, f, null).
2015-11-23_13:22:19.05946 STATEMENT: UPDATE "application_settings" SET "import_sources" = $1, "max_artifacts_size" = $2, "restricted_signup_domains" = $3, "restricted_visibility_levels" = $4, "shared_runners_enabled" = $5, "updated_at" = $6 WHERE "application_settings"."id" = 1
==> /var/log/gitlab/gitlab-rails/production.log <==
PG::NotNullViolation: ERROR: null value in column "max_artifacts_size" violates not-null constraint
DETAIL: Failing row contains (1, 5, f, t, t, ![Company Logo](http://syonet.com/images/logo_syonet10anos.jpg), 2015-01-23 00:36:05.916643, 2015-11-23 13:22:19.031917, , 2, f, --- []
, 50, f, 10, 10, ---
- syonet.com
- leadforce.com.br
, t, , 10080, ---
- github
- bitbucket
- gitlab
- gitorious
- google_code
- fo..., , rodrigo.avila@syonet.com, f, null).
: UPDATE "application_settings" SET "import_sources" = $1, "max_artifacts_size" = $2, "restricted_signup_domains" = $3, "restricted_visibility_levels" = $4, "shared_runners_enabled" = $5, "updated_at" = $6 WHERE "application_settings"."id" = 1
Completed 500 Internal Server Error in 130ms (ActiveRecord: 19.5ms)
ActiveRecord::StatementInvalid (PG::NotNullViolation: ERROR: null value in column "max_artifacts_size" violates not-null constraint
DETAIL: Failing row contains (1, 5, f, t, t, ![Company Logo](http://syonet.com/images/logo_syonet10anos.jpg), 2015-01-23 00:36:05.916643, 2015-11-23 13:22:19.031917, , 2, f, --- []
, 50, f, 10, 10, ---
- syonet.com
- leadforce.com.br
, t, , 10080, ---
- github
- bitbucket
- gitlab
- gitorious
- google_code
- fo..., , rodrigo.avila@syonet.com, f, null).
: UPDATE "application_settings" SET "import_sources" = $1, "max_artifacts_size" = $2, "restricted_signup_domains" = $3, "restricted_visibility_levels" = $4, "shared_runners_enabled" = $5, "updated_at" = $6 WHERE "application_settings"."id" = 1):
app/controllers/admin/application_settings_controller.rb:8:in `update'
This is happen because the new "Maximum artifacts size (MB)" field is empty by default.