Project

General

Profile

SVN Repository periodically syncing

Added by Emanuele Massara over 13 years ago

Hi, following the FAQ about periodically syncing Redmine with a SVN repository, I tried to execute the command

rake -f /path/to/redmine/Rakefile redmine:fetch_changesets

before to insert it into crontab.

The problem is that Redmine tries to connect to, I think, its own database with a wrong user.
The message I got is

rake aborted!
Access denied for user 'redmine'@'localhost' (using password: YES)

But Redmine is correctly configured to use another user, called redmine_user, to connect to its database. Redmine config file is correct, and the application works fine.

What configuration is Redmine using?

If I try to use

rake -f /opt/redmine/Rakefile redmine:fetch_changesets -e production

I got

rake aborted!
undefined local variable or method `production' for #<Rake::Application:0x7f1c108ae110>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2217:in `standard_rake_options

Probably it is not the right way.

What's the problem?