Unable to navigate to settings > CI/CD in some projects after upgrading from gitlab-ce to gitlab-ee

I just upgraded from gitlab-ce to gitlab-ee 11.1.2-ee (f5babb03). When I go to project > Settings > CI/CD on 3 specific projects I get a 500 error. I do not see this error on any other projects. Even other projects in the same group work but not these 3. The 3 that do not work are all in the same group also. Because of this im stuck, because the 3 projects that are having the issue all build out our infrastructure. As a test I was able to export the project and reimport it and could get to the CI/CD settings...but all of my secret vars are gone. The issue doesn't happen on any new projects. Let me know if I can provide any more info or logs.

Project that throws 500

Started GET "/infrastructure/tb-staging/settings/ci_cd" for 10.10.11.145 at 2018-07-28 14:19:10 +0000
Processing by Projects::Settings::CiCdController#show as HTML
  Parameters: {"namespace_id"=>"infrastructure", "project_id"=>"tb-staging"}
Completed 500 Internal Server Error in 136ms (ActiveRecord: 40.6ms | Elasticsearch: 0.0ms)

ActionView::Template::Error (bad decrypt):
    4:
    5: - id = variable&.id
    6: - key = variable&.key
    7: - value = variable&.value
    8: - is_protected = variable && !only_key_value ? variable.protected : false
    9:
   10: - id_input_name = "#{form_field}[variables_attributes][][id]"
  app/views/ci/variables/_variable_row.html.haml:7:in `_app_views_ci_variables__variable_row_html_haml___2811090977095884918_70099738199080'
  app/views/ci/variables/_index.html.haml:9:in `block in _app_views_ci_variables__index_html_haml___1311262401295477150_70099736526920'
  app/views/ci/variables/_index.html.haml:8:in `each'
  app/views/ci/variables/_index.html.haml:8:in `each'
  app/views/ci/variables/_index.html.haml:8:in `_app_views_ci_variables__index_html_haml___1311262401295477150_70099736526920'
  app/views/projects/settings/ci_cd/show.html.haml:52:in `_app_views_projects_settings_ci_cd_show_html_haml__3135891903538704001_70099727567560'
  lib/gitlab/i18n.rb:51:in `with_locale'
  lib/gitlab/i18n.rb:57:in `with_user_locale'
  app/controllers/application_controller.rb:370:in `set_locale'
  lib/gitlab/middleware/multipart.rb:97:in `call'
  lib/gitlab/request_profiler/middleware.rb:14:in `call'
  ee/lib/gitlab/jira/middleware.rb:15:in `call'
  lib/gitlab/middleware/go.rb:17:in `call'
  lib/gitlab/etag_caching/middleware.rb:11:in `call'
  lib/gitlab/middleware/rails_queue_duration.rb:22:in `call'
  lib/gitlab/metrics/rack_middleware.rb:15:in `block in call'
  lib/gitlab/metrics/transaction.rb:53:in `run'
  lib/gitlab/metrics/rack_middleware.rb:15:in `call'
  lib/gitlab/middleware/read_only/controller.rb:38:in `call'
  lib/gitlab/middleware/read_only.rb:16:in `call'
  lib/gitlab/request_context.rb:18:in `call'
  lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
  lib/gitlab/middleware/release_env.rb:10:in `call'

Project that works fine:

Started GET "/infrastructure/grafana/settings/ci_cd" for 10.10.11.145 at 2018-07-28 20:43:53 +0000
Processing by Projects::Settings::CiCdController#show as HTML
  Parameters: {"namespace_id"=>"infrastructure", "project_id"=>"grafana"}
Completed 200 OK in 161ms (Views: 90.5ms | ActiveRecord: 45.4ms | Elasticsearch: 0.0ms)
Assignee Loading
Time tracking Loading