Skip to content

Development dependencies missing for db:migrate in upgrade.sh #518

@ilmbear

Description

@ilmbear

Describe the bug
When upgrading Fab-Manager to 6.5.8 I get following error on the database migration step:

Could not find dotenv-rails-2.8.1, pry-0.14.2, active_record_query_trace-1.8, awesome_print-1.9.2, bullet-8.0.0, coveralls_reborn-0.18.0, foreman-0.87.0, web-console-4.2.0, listen-3.9.0, overcommit-0.59.1, rb-readline-0.5.5, railroady-1.5.3, rubocop-1.31.2, rubocop-rails-2.15.2, spring-4.1.1, spring-watcher-listen-2.1.0, database_cleaner-1.8.3, faker-2.10.2, minitest-reporters-1.4.2, rubyXL-3.4.25, vcr-6.1.0, webmock-3.8.2, dotenv-2.8.1, coderay-1.1.3, uniform_notifier-1.16.0, simplecov-0.19.0, term-ansicolor-1.7.1, tins-1.25.0, bindex-0.8.1, rb-fsevent-0.11.2, rb-inotify-0.10.1, childprocess-4.1.0, iniparse-1.5.0, parallel-1.19.1, parser-3.1.2.0, rainbow-3.0.0, regexp_parser-2.5.0, rubocop-ast-1.19.1, ruby-progressbar-1.10.1, unicode-display_width-1.4.1, ansi-1.5.0, crack-0.4.3, hashdiff-1.0.1, docile-1.3.2, simplecov-html-0.12.3, sync-0.5.0, ast-2.4.2, safe_yaml-1.0.5 in locally installed gems
Run `bundle install` to install missing gems.

A check with printing the info about the first missing Gem revealed shows:

bundle info dotenv-rails
#> Could not find gem 'dotenv-rails', because it's in the groups 'development' and 'test', configured to be ignored.

Note:
I compile the container image myself using the Dockerfile in the source code, but the error also happens when I use der Docker-Hub image.

Workaround:
The migration works when the line in the Dockerfile that prevents installing development dependencies is commented

To Reproduce
Steps to reproduce the behavior:

  1. Start the Upgrade Script like: \curl -sSL upgrade.fab.mn | bash -s
  2. Error as described above.

Expected behavior
Migration of the database and start of all containers.

Server (please complete the following information):

  • lsb_release -a:
    Distributor ID: Debian
    Description:    Debian GNU/Linux 11 (bullseye)
    Release:        11
    Codename:       bullseye
    
  • uname -a
    Linux fabman 5.10.0-38-amd64 #1 SMP Debian 5.10.249-1 (2026-02-10) x86_64 GNU/Linux
    
  • Fab-manager version 6.5.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions