Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Unknown database 'redmine_development' #16

Open
zen-zla opened this issue Nov 7, 2019 · 1 comment
Open

Unknown database 'redmine_development' #16

zen-zla opened this issue Nov 7, 2019 · 1 comment

Comments

@zen-zla
Copy link

zen-zla commented Nov 7, 2019

Hi
########
Environment:
Redmine version: 4.0.4.stable
Ruby version : 2.6.3-p62 (2019-04-16) [x86_64-linux]
Rails version : 5.2.3
Environment : production
Database adapter: Mysql2
Mailer queue : ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery : sendmail
SCM:
Subversion : 1.7.14
Git: 1.8.3.1

Redmine plugins:
redmine_ldap_sync : 2.2.0
redmine_stealth: 0.7.4
########

When I use : rake redmine:plugins

I Have error
rake aborted!
ActiveRecord::NoDatabaseError: Unknown database 'redmine_development'

solution ?

Thank's

@tofi86
Copy link
Owner

tofi86 commented Nov 7, 2019

You don#t even have my plugin redmine_maintenance_mode installed. Or does this error appear when you try to install it?

If so, who told you to run rake redmine:plugins?
The README file says:

You have to run the plugin rake task to provide the assets (from the Redmine root directory):
$ rake redmine:plugins:migrate RAILS_ENV=production

If you ran this task and the error is unknown database, I think you misconfigured your database configuration in config/database.yml

Did you blindly ran the command from above (for PRODUCTION environment) without having specified a production database? Probably you need to run it for rails env development?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants