Bug#987763: MimeMagic::Error: This gem should never be required
I solved locally with this steps: 1. apt install ruby-rails/experimental ruby-rails:all/experimental 2:6.0.3.6+dfsg-1 2. apply this modifications: https://gitlab.com/gitlab-org/gitlab/-/commit/2f8244c8425a5472d4bc7500c9cc590ac47d4150 After that gitlab upgrade works just fine. Minimally tested ui and commits. On 29.04.2021 14:45, Pirate Praveen wrote: On 2021, ഏപ്രിൽ 29 12:36:57 PM IST, Dragos Jarca wrote: Package: gitlab Version: 13.10.4+ds1-1 Severity: grave Justification: renders package unusable Dear Maintainer, When upgrading to gitlab 13.10.4 I have this error: gitlab_production database is not empty, skipping gitlab setup fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git rake aborted! MimeMagic::Error: This gem should never be required I think this will be fixed with rails 6.0.3.6 update, though I have not see this error in my test instances or in production instance at git.fosscommunity.in /usr/share/gitlab/vendor/shims/mimemagic/lib/mimemagic.rb:5:in `' /usr/share/gitlab/vendor/shims/mimemagic/lib/mimemagic.rb:3:in `' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `require' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `block in require' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:291:in `load_dependency' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `require' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `require' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `block in require' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:291:in `load_dependency' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `require' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:66:in `require' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:66:in `block (2 levels) in require' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:61:in `each' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:61:in `block in require' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:50:in `each' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:50:in `require' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler.rb:173:in `require' /usr/share/gitlab/config/application.rb:15:in `' /usr/share/gitlab/Rakefile:7:in `require' /usr/share/gitlab/Rakefile:7:in `' /usr/share/rubygems-integration/all/gems/rake-13.0.3/exe/rake:27:in `' (See full trace by running task with --trace) dpkg: error processing package gitlab (--configure): installed gitlab package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: gitlab E: Sub-process /usr/bin/dpkg returned an error code (1) I cannot finish upgrade. Please help me solve this situation. Dragos *** End of the template - remove these template lines *** -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental'), (500, 'testing-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-6-amd64 (SMP w/8 CPU threads) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages gitlab depends on: ii asciidoctor 2.0.12-2 ii bc 1.07.1-2+b2 ii bundler 2.2.5-2 ii bzip2 1.0.8-4 ii dbconfig-pgsql 2.0.19 ii debconf [debconf-2.0] 1.5.75 ii fonts-font-awesome [node-font-awesome] 5.0.10+really4.7.0~dfsg-4 ii gitlab-common 13.10.3+dfsg-1 ii gitlab-workhorse13.10.4+ds1-1 ii katex [node-katex] 0.10.2+dfsg-8 ii libjs-bootstrap4 [node-bootstrap] 4.5.2+dfsg1-6 ii libjs-codemirror [node-codemirror] 5.59.2+~cs0.23.109-1 ii libjs-pdf [node-pdfjs-dist] 2.6.347+dfsg-3 ii libjs-popper.js [node-popper.js]1.16.1+ds-3 ii libruby2.7 [ruby-rexml] 2.7.3-2 ii lsb-base11.1.0 ii nginx 1.18.0-6 ii nginx-extras [nginx]1.18.0-6+b1 ii node-autosize
Bug#987763: MimeMagic::Error: This gem should never be required
On 2021, ഏപ്രിൽ 29 12:36:57 PM IST, Dragos Jarca wrote: >Package: gitlab >Version: 13.10.4+ds1-1 >Severity: grave >Justification: renders package unusable > >Dear Maintainer, > >When upgrading to gitlab 13.10.4 I have this error: > >gitlab_production database is not empty, skipping gitlab setup >fatal: not a git repository (or any of the parent directories): .git >fatal: not a git repository (or any of the parent directories): .git >rake aborted! >MimeMagic::Error: This gem should never be required I think this will be fixed with rails 6.0.3.6 update, though I have not see this error in my test instances or in production instance at git.fosscommunity.in >/usr/share/gitlab/vendor/shims/mimemagic/lib/mimemagic.rb:5:in >`' >/usr/share/gitlab/vendor/shims/mimemagic/lib/mimemagic.rb:3:in `(required)>' >/usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in > `require' >/usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in > `block in require' >/usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:291:in > `load_dependency' >/usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in > `require' >/usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in > `require' >/usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in > `block in require' >/usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:291:in > `load_dependency' >/usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in > `require' >/usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:66:in > `require' >/usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:66:in > `block (2 levels) in require' >/usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:61:in > `each' >/usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:61:in > `block in require' >/usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:50:in > `each' >/usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:50:in > `require' >/usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler.rb:173:in >`require' >/usr/share/gitlab/config/application.rb:15:in `' >/usr/share/gitlab/Rakefile:7:in `require' >/usr/share/gitlab/Rakefile:7:in `' >/usr/share/rubygems-integration/all/gems/rake-13.0.3/exe/rake:27:in `(required)>' >(See full trace by running task with --trace) >dpkg: error processing package gitlab (--configure): > installed gitlab package post-installation script subprocess returned error > exit status 1 >Errors were encountered while processing: > gitlab >E: Sub-process /usr/bin/dpkg returned an error code (1) > > >I cannot finish upgrade. >Please help me solve this situation. > >Dragos > >*** End of the template - remove these template lines *** > > >-- System Information: >Debian Release: bullseye/sid > APT prefers testing > APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental'), > (500, 'testing-security'), (500, 'stable') >Architecture: amd64 (x86_64) > >Kernel: Linux 5.10.0-6-amd64 (SMP w/8 CPU threads) >Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to >C.UTF-8), LANGUAGE not set >Shell: /bin/sh linked to /bin/dash >Init: systemd (via /run/systemd/system) >LSM: AppArmor: enabled > >Versions of packages gitlab depends on: >ii asciidoctor 2.0.12-2 >ii bc 1.07.1-2+b2 >ii bundler 2.2.5-2 >ii bzip2 1.0.8-4 >ii dbconfig-pgsql 2.0.19 >ii debconf [debconf-2.0] 1.5.75 >ii fonts-font-awesome [node-font-awesome] 5.0.10+really4.7.0~dfsg-4 >ii gitlab-common 13.10.3+dfsg-1 >ii gitlab-workhorse13.10.4+ds1-1 >ii katex [node-katex] 0.10.2+dfsg-8 >ii libjs-bootstrap4 [node-bootstrap] 4.5.2+dfsg1-6 >ii libjs-codemirror [node-codemirror] 5.59.2+~cs0.23.109-1 >ii libjs-pdf [node-pdfjs-dist] 2.6.347+dfsg-3 >ii libjs-popper.js [node-popper.js]1.16.1+ds-3 >ii libruby2.7 [ruby-rexml] 2.7.3-2 >ii lsb-base11.1.0 >ii nginx 1.18.0-6 >ii nginx-extras [nginx]1.18.0-6+b1 >ii node-autosize 4.0.2~dfsg1-5 >ii node-axios 0.21.1+dfsg-1 >ii node-babel-loader 8.2.2-5 >ii node-babel-plugin-lodash3.3.4+~cs2.0.1-3 >ii node-babel7
Bug#987763: MimeMagic::Error: This gem should never be required
Package: gitlab Version: 13.10.4+ds1-1 Severity: grave Justification: renders package unusable Dear Maintainer, When upgrading to gitlab 13.10.4 I have this error: gitlab_production database is not empty, skipping gitlab setup fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git rake aborted! MimeMagic::Error: This gem should never be required /usr/share/gitlab/vendor/shims/mimemagic/lib/mimemagic.rb:5:in `' /usr/share/gitlab/vendor/shims/mimemagic/lib/mimemagic.rb:3:in `' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `require' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `block in require' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:291:in `load_dependency' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `require' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `require' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `block in require' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:291:in `load_dependency' /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:324:in `require' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:66:in `require' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:66:in `block (2 levels) in require' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:61:in `each' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:61:in `block in require' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:50:in `each' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler/runtime.rb:50:in `require' /usr/share/rubygems-integration/all/gems/bundler-2.2.5/lib/bundler.rb:173:in `require' /usr/share/gitlab/config/application.rb:15:in `' /usr/share/gitlab/Rakefile:7:in `require' /usr/share/gitlab/Rakefile:7:in `' /usr/share/rubygems-integration/all/gems/rake-13.0.3/exe/rake:27:in `' (See full trace by running task with --trace) dpkg: error processing package gitlab (--configure): installed gitlab package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: gitlab E: Sub-process /usr/bin/dpkg returned an error code (1) I cannot finish upgrade. Please help me solve this situation. Dragos *** End of the template - remove these template lines *** -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (900, 'testing'), (800, 'unstable'), (700, 'experimental'), (500, 'testing-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-6-amd64 (SMP w/8 CPU threads) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages gitlab depends on: ii asciidoctor 2.0.12-2 ii bc 1.07.1-2+b2 ii bundler 2.2.5-2 ii bzip2 1.0.8-4 ii dbconfig-pgsql 2.0.19 ii debconf [debconf-2.0] 1.5.75 ii fonts-font-awesome [node-font-awesome] 5.0.10+really4.7.0~dfsg-4 ii gitlab-common 13.10.3+dfsg-1 ii gitlab-workhorse13.10.4+ds1-1 ii katex [node-katex] 0.10.2+dfsg-8 ii libjs-bootstrap4 [node-bootstrap] 4.5.2+dfsg1-6 ii libjs-codemirror [node-codemirror] 5.59.2+~cs0.23.109-1 ii libjs-pdf [node-pdfjs-dist] 2.6.347+dfsg-3 ii libjs-popper.js [node-popper.js]1.16.1+ds-3 ii libruby2.7 [ruby-rexml] 2.7.3-2 ii lsb-base11.1.0 ii nginx 1.18.0-6 ii nginx-extras [nginx]1.18.0-6+b1 ii node-autosize 4.0.2~dfsg1-5 ii node-axios 0.21.1+dfsg-1 ii node-babel-loader 8.2.2-5 ii node-babel-plugin-lodash3.3.4+~cs2.0.1-3 ii node-babel7 7.12.12+~cs150.141.84-6 ii node-brace-expansion2.0.0-1 ii node-cache-loader 4.1.0+~cs2.0.0-1 ii node-chart.js 2.9.4+dfsg+~cs2.10.1-3 ii node-clipboard 2.0.6+ds+~cs7.6.4-1 ii node-compression-webpack-plugin 6.1.1-1 ii node-copy-webpack-plugin