Project

General

Profile

receive emails in redmine with IMAP

Added by MK Barry almost 10 years ago

Hi, i try to receive emails in redmine.

I have done a clean install on a Windows server.
https://bitnami.com/stack/redmine/installer
It all install fine.

I try to configure receiving emails and found the following article:
http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails

The first problem was to find the rake directory.
On windows it is: redmine-2.5.1-1\apps\redmine\htdocs\rakefile

The following problem is finding the rake file. If i put in rake it give a warning
"'rake' is not recognized as an internal or external command,operable program or batch file."
I found a rake.bat file in the following directory
\redmine-2.5.1-1\ruby\bin I'm guessing this is the right one, but i'm not sure.

So i try to run the following script:

cd C:\Bitnami\redmine-2.5.1-1\ruby\bin
rake -f C:\Bitnami\redmine-2.5.1-1\apps\redmine\htdocs\rakefile redmine:email:receive_imap host=imap.foo.bar RAILS_ENV=production username= password=xxx

But this give the following error:
"You have already activated rake 0.9.2.2, but your Gemfile requires rake 10.1.1. Prepending `bundle exec` to your command may solve this."

what am i missing?

Thanks
(sorry for my bad english)


Replies (10)

RE: receive emails in redmine with IMAP - Added by MK Barry almost 10 years ago

is there anyone who can help me?

Thanks

RE: receive emails in redmine with IMAP - Added by MK Barry almost 10 years ago

is there anyone who can help me?

Thanks

RE: receive emails in redmine with IMAP - Added by Sven Teuber almost 10 years ago

Try to modify your script like this:

cd C:\Bitnami\redmine-2.5.1-1\ruby\bin
bundle exec rake -f C:\Bitnami\redmine-2.5.1-1\apps\redmine\htdocs\rakefile redmine:email:receive_imap host=imap.foo.bar RAILS_ENV=production username= password=xxx

RE: receive emails in redmine with IMAP - Added by MK Barry almost 10 years ago

Thanks Sven for your response.
Now he give the error "Could not locate Gemfile"

RE: receive emails in redmine with IMAP - Added by haim lankry over 9 years ago

You are using a bitnami install on windows.
you should use their command line shortcut , check what was installed in the start menu,
Then you will have the correct path to execute the different ruby parts (like rake and gems) without using all the extra path.

RE: receive emails in redmine with IMAP - Added by MK Barry over 9 years ago

Thanks Haim for your response.

I run the the following command in the Bitnami command line: "rake -f C:\Bitnami\redmine-2.5.1-1\apps\redmine\htdocs\Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.foo.bar username= password=xxx" But this also give the error "You have already activated rake 0.9.2.2, but your Gemfile requires rake 10.1.1
Prepending `bundle exec` to your command may solve this."

RE: receive emails in redmine with IMAP - Added by haim lankry over 9 years ago

You should do exactly is it tells you , add before the line the "bundle exec" command , so it should be :

bundle exec rake -f C:\Bitnami\redmine-2.5.1-1\apps\redmine\htdocs\Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.foo.bar

Haim

RE: receive emails in redmine with IMAP - Added by MK Barry over 9 years ago

Haim, Thanks for your help.

I also try that, but then he give the error "Could not locate Gemfile"

RE: receive emails in redmine with IMAP - Added by MK Barry over 9 years ago

is there anyone who can help me?

RE: receive emails in redmine with IMAP - Added by Tony Ordner over 9 years ago

I used to run under bitnami but many issues with upgrading the gems eventually led me back to installing the parts. Anyhow you could try upgrading rake to 10.1.1 but it may break things that require 0.9.2.2.

go to the bitnami command line redmine (not certain of the name) as it sets the environment correctly.

gem install rake -v 10.1.1

and

gem uninstall in case you need to back it out.

Otherwise you may get more specific info on the bitnami forums.

    (1-10/10)