Project

General

Profile

Migration failed on upgrade Bitnami Redmine

Added by ali tavakoli about 3 years ago

Hello
I am linked here from bitnami forum : (https://community.bitnami.com/t/migration-failed-on-upgrade-bitnami-redmine/90851)

However my problem is :

I did upgrade my Redmine (version 4.1.0.0) to last version (4.1.1.7) trough this (https://docs.bitnami.com/installer/apps/redmine/administration/upgrade/) instruction.
All was ok until i wanted to migrate database. Once i enter "sudo ruby bin/rake db:migrate RAILS_ENV=production" command and following error occured :

Activating bundler (~> 2.1) failed:
Could not find 'bundler' (~> 2.1) among 5 total gem(s)
install the version of bundler this project requires, run gem install bundler -v '~> 2.1'

Then i try "gem install bundler -v '~> 2.1'" :

Fetching: bundler-2.2.5.gem (100%)
Successfully installed bundler-2.2.5
Parsing documentation for bundler-2.2.5
Installing ri documentation for bundler-2.2.5
Done installing documentation for bundler after 46 seconds
Done installing documentation for bundler after 46 seconds

and ran "sudo ruby bin/rake db:migrate RAILS_ENV=production" again but same error occured.

Notice that :
  1. My platform is Centos 7
  2. I am use Bitnami stack
  3. I load the Bitnami Environment before running any command.
  4. I didn't remove the old version, just stoped it with "sh ctlscript.sh stop" command.
  5. I did another steps to solve my problem. To see those steps refer to Bitnami forum : (https://community.bitnami.com/t/migration-failed-on-upgrade-bitnami-redmine/90851)

Thanks


Replies (3)

RE: Migration failed on upgrade Bitnami Redmine - Added by Marius BĂLTEANU about 3 years ago

ali tavakoli wrote:

can any one help me?

Can you try using sudo bundle exec rake db:migrate RAILS_ENV=production? It should use only your context (https://bundler.io/man/bundle-exec.1.html).

RE: Migration failed on upgrade Bitnami Redmine - Added by ali tavakoli about 3 years ago

Marius BALTEANU wrote:

ali tavakoli wrote:

can any one help me?

Can you try using sudo bundle exec rake db:migrate RAILS_ENV=production? It should use only your context (https://bundler.io/man/bundle-exec.1.html).

Thanks for your reply.
I run `sudo bundle exec rake db:migrate RAILS_ENV=production` :

sudo: bundle: command not found

Then i run it without `sudo`, after a while it execute without any message and all ok. Databases were migrated successfully.

    (1-3/3)