Unable to Upgrade from CE Version 12.6.0 to 12.6.1

Summary

When running the follow command it will spit out a parsing error.

sudo -u git -H bundle exec rake gettext:pack RAILS_ENV=production

Steps to reproduce

  1. Start with an install of 12.6.0.
  2. Go through the upgrade process until you get to step 3.
  3. Perform the step 3 steps until you get to running sudo -u git -H bundle exec rake gettext:pack RAILS_ENV=production. Run that command.
  4. Note the error that is displayed.

Example Project

N/A

What is the current bug behavior?

A parse error occurs with a .haml file - though I cannot see any immediate issues in the file, I am no HAML person.

What is the expected correct behavior?

It is able to parse this file without issue so the command can complete successfully.

Relevant logs and/or screenshots

# sudo -u git -H bundle exec rake gettext:pack RAILS_ENV=production
Error parsing app/views/ide/_show.html.haml
rake aborted!
RubyParser::SyntaxError: unterminated string meets end of file. near line 7: ""
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/ruby_parser-3.13.1/lib/ruby_lexer.rb:984:in `rb_compile_error'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/ruby_parser-3.13.1/lib/ruby_lexer.rb:1426:in `parse_string'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/ruby_parser-3.13.1/lib/ruby_lexer.rb:1295:in `process_string'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/ruby_parser-3.13.1/lib/ruby_lexer.rex.rb:112:in `next_token'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/ruby_parser-3.13.1/lib/ruby_parser_extras.rb:969:in `next_token'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/ruby_parser-3.13.1/lib/ruby_parser_extras.rb:1086:in `block in process'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/ruby_parser-3.13.1/lib/ruby_parser_extras.rb:1074:in `process'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext_i18n_rails-1.8.0/lib/gettext_i18n_rails/ruby_gettext_extractor.rb:15:in `parse_string'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext_i18n_rails-1.8.0/lib/gettext_i18n_rails/base_parser.rb:12:in `parse'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:365:in `block in parse_path'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:360:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:360:in `parse_path'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:168:in `block in parse'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:166:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:166:in `parse'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:217:in `generate_pot'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:151:in `run'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:34:in `run'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/task.rb:330:in `xgettext'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/task.rb:314:in `create_pot'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext-3.2.9/lib/gettext/tools/task.rb:306:in `block in define_pot_file_task'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/gettext_i18n_rails-1.8.0/lib/gettext_i18n_rails/tasks.rb:60:in `block (2 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => gettext:mo:update => gettext:mo:ka_GE:update => /home/git/gitlab/locale/ka_GE/LC_MESSAGES/gitlab.mo => /home/git/gitlab/locale/ka_GE/gitlab.po => /home/git/gitlab/locale/ka_GE/gitlab.edit.po => /home/git/gitlab/locale/gitlab.pot
(See full trace by running task with --trace)

Output of checks

N/A

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: Debian 10 Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 3.0.3 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 5.0.3 Git Version: 2.23.0 Sidekiq Version:5.2.7 Go Version: go1.13.5 linux/amd64

GitLab information Version: 12.6.1 Revision: a0094541f87 Directory: /home/git/gitlab DB Adapter: PostgreSQL DB Version: 11.5 URL: https://rootbin.dev HTTP Clone URL: https://rootbin.dev/some-group/some-project.git SSH Clone URL: git@rootbin.dev:some-group/some-project.git Using LDAP: no Using Omniauth: no

GitLab Shell Version: 10.3.0 Repository storage paths:

  • default: /home/git/repositories GitLab Shell path: /home/git/gitlab-shell Git: /usr/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check

Checking GitLab subtasks ...

Checking GitLab Shell ...

GitLab Shell: ... GitLab Shell version >= 10.3.0 ? ... OK (10.3.0) Running /home/git/gitlab-shell/bin/check Internal API available: FAILED - Internal API error (502) gitlab-shell self-check failed Try fixing it: Make sure GitLab is running; Check the gitlab-shell configuration file: sudo -u git -H editor /home/git/gitlab-shell/config.yml Please fix the error above and rerun the checks.

Checking GitLab Shell ... Finished

Checking Gitaly ...

Gitaly: ... default ... FAIL: 14:failed to connect to all addresses

Checking Gitaly ... Finished

Checking Sidekiq ...

Sidekiq: ... Running? ... no Try fixing it: sudo -u git -H RAILS_ENV=production bin/background_jobs start For more information see: doc/install/installation.md in section "Install Init Script" see log/sidekiq.log for possible errors Please fix the error above and rerun the checks.

Checking Sidekiq ... Finished

Checking Incoming Email ...

Incoming Email: ... Checking Reply by email ...

IMAP server credentials are correct? ... yes Init.d configured correctly? ... yes MailRoom running? ... no Try fixing it: sudo -u git -H RAILS_ENV=production bin/mail_room start For more information see: doc/install/installation.md in section "Install Init Script" see log/mail_room.log for possible errors Please fix the error above and rerun the checks.

Checking Reply by email ... Finished

Checking Incoming Email ... Finished

Checking LDAP ...

LDAP: ... LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab App ...

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? ... yes Init script up-to-date? ... yes Projects have namespace: ... 8/50 ... yes 8/51 ... yes 8/52 ... yes 8/53 ... yes 2/95 ... yes 8/96 ... yes 76/97 ... yes 8/98 ... yes 2/99 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.22.0 ? ... yes (2.23.0) Git user has default SSH configuration? ... yes Active users: ... 69 Is authorized keys file accessible? ... yes

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished

Possible fixes

N/A