Defect #13464

Plugin migration with Microsoft SQL Server throws error

Added by Daniel Felix over 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution:Cant reproduce Affected version:



we're currently on the way to install redmine on an IIS with Microsoft SQL Server.
The normal Installation worked, even the db connection to our SQL Server.

But we Encounter some strange behaviour if we try to migrate plugins.
The normal migration worked, but the plugin migration reclaims the missing database Adapter. But it's the same configuration as with the normal db:migrate command.
The same error occures even if the plugin directory is empty (so no plugins will be migrated).

Can you confirm this behaviour? If this bug is confirmed, it should be fixed bevor redmine 2.3 will be released.

Commandline log:

Set RAILS_ENV=production

rake redmine:plugins:migrate --trace
** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
database configuration does not specify Adapter


#1 Updated by Daniel Felix over 5 years ago

  • Description updated (diff)

#2 Updated by fer sjs over 5 years ago

Set RAILS_ENV=prodcution

prodcution ?????

#3 Updated by Daniel Felix over 5 years ago

  • Description updated (diff)

No Panic. This was handtyped above the Output.

I corrected it in the log.

And if I misstyped, the db:migration wouldn't work either. ;-)

#4 Updated by Jean-Philippe Lang over 5 years ago

Works fine for me with the following database configuration:

  adapter: sqlserver
  port: 1433
  database: redmine_development
  username: jenkins
  password: jenkins

What's yours?

#5 Updated by Daniel Felix over 5 years ago

This is our configuration (pw and username changed).

#  adapter: sqlite3
#  database: db/test.sqlite3
#  host: localhost
#  username: root
#  password:
#  encoding: utf8
  adapter: sqlserver
  database: redmine
  host: localhost
  port: 11433
  username: OurUsername
  password: OurPassword

  adapter: sqlserver
  database: redmine_development
  host: localhost
  port: 11433
  username: OurUsername
  password: OurPassword

The port is changed in our server. So this is no misstyping.

#6 Updated by Jean-Philippe Lang over 5 years ago

  • Target version changed from 2.3.0 to 2.3.1

#7 Updated by Jean-Philippe Lang about 5 years ago

  • Target version changed from 2.3.1 to Candidate for next minor release

Still not able to reproduce.

#8 Updated by Daniel Felix about 5 years ago

  • Status changed from New to Closed
  • Resolution set to Cant reproduce

This issue has been resolved. I can't point it to something special.

I used the latest trunk after implementations of the gemfile parser and the sql server support.

This was the point, where everything broke together regarding plugin migrations.
The next step was the migration to 2.3 and later 2.3.1. Both failed on plugin migrations.
I currently use the trunk version of Redmine and tada... everything works. I can't break it down to a special change which could describe why this work right now.

I'm closing this issue. Thanks for your support.

#9 Updated by Jeff Pierson almost 5 years ago

Will these changes from the trunk that Daniel Felix mentioned be included in 2.3.2 or is that already branched prior to the changes? If there is a wiki or something similar that specifies the branching policy used by Redmine with regard to releases that may also answer the question for me and perhaps allow me to assist in pinpointing the revision in which this issue was fixed.

#10 Updated by Daniel Felix almost 5 years ago

As I mentioned, these changes must happened between trunk (pre 2.3.0) and trunk (pre 2.3.2) (not sure which revisions where loaded by our administration).

The other thing were many changes to the server and ruby interpreter itself.
Maybe these changes where already included in 2.3.0. I haven't tested 2.3.0 on SQL Server.

#11 Updated by Jan Niggemann ( team member) almost 5 years ago

  • Target version deleted (Candidate for next minor release)

Also available in: Atom PDF