You are here
Hello everyone,
I have a little issue with my new redmine server when I am trying to create a issue from a mail.
I have a OTRS server, that send the details of every new ticket created in OTRS to one pop3 email account.
I am following this old guide, that is working in my old redmine server,
https://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails
The following cron job works fine in my old redmine server, but doesnt't work in my new server.
Private data have been change by XXX
/var/www/redmine/bin/rake -f /var/www/redmine/Rakefile redmine:email:receive_pop3 RAILS_ENV="production" project=XXXX tracker=support priority=normal allow_override=project host=mail.xxxx.com username=xxxx@xxxx.com password=XXXX
All the data was migrated from the old server to the newest, for this reason I think that this cronjob should work fine in the new server, without configure anything more.
As after run the job, the console not show any error message I don´t know wich is the problem here,
Some of you hade a similar issue ?
It's posible that this task not run in the latest version of redmine ?
There are another solutions to create issues from a mail ?
Somebody knows a plugin that do the same work?
My servers info:
Newest:
Environment: Redmine version 4.0.3.stable Ruby version 2.3.5-p376 (2017-09-14) [x86_64-linux] Rails version 5.2.2.1 Environment production Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery sendmail SCM: Subversion 1.9.5 Git 2.11.0 Filesystem Redmine plugins: no plugin installed
OLD:
Environment: Redmine version 3.2.0.stable Ruby version 2.1.5-p273 (2014-11-13) [x86_64-linux-gnu] Rails version 4.2.5 Environment production Database adapter Mysql2 SCM: Subversion 1.8.10 Mercurial 3.1.2 Bazaar 2.7.0 Git 2.1.4 Filesystem Redmine plugins: no plugin installed
Many thanks to all for read my issue.
Will be much apreciatted if anybody could helps to me with this.
Regards.
I wonder if it's an issue with the cron job?
We've changed our Ruby install method during v15.x, so I suspect that the issue is caused by the cron job being incompatible with the newer install method.
Could you please share the full contents of the cron job?
Hi Jeremy,
Hi Jeremy,
Thanks for your response, but I don't understand what do you want to say with "share the full content of the cron job".
All the command is on my first post, I only changed the password and the mail account for XXXX, I cannot shared that in a plublic forum.
Maybe you want the content of the rakefile or the mail_handler.rb file ?
I am not sure of wich info you are asking to me.
I will be available to shared with you all the info that you requires for check the issue.
Many Thanks for your help !
Sorry if I was unclear.
I meant like the full command that cron is running. But actually, re-reading your original post, and having a closer look at the link you provided, I think that you have already posted it (sorry, my bad). This is it right? (I added line breaks to make it easier to read):
First thing I suggest is that you try running that command on the commandline and see what happens. If it errors, then obviously you'll need to try to work out why (feel free to post back the exact error message). If it works ok, then it must be something missing from the cron environment that is required. You can work out what that might be by comparing your full envrionment, to the one that cron uses as per our documentation on testing a corn job.
Hi Jeremy,
Hi Jeremy,
thanks for your help, reviewing the redmine logs i could see that the issue was in the user that I use for create issues from mail, the email of that user was wrong.
As this type of cron command not show any exit in the console, i can recommend that the best option to indetifyed the problem is view the redmine production log, located in /var/www/redmine/log and the execute the cron job in another console, the message printed in the logs can clarified much the issue.
Right now, I only can create issues in the project defined in the cron command, you know if is posible that the proyect will be recipt from the mail, and the create the issue down the proyect that is specified in the mail ?
Best regards.
Borja
Great news Borja
I'm really glad to hear that you managed to work out the issue. Good suggestion checking the logs too! So thanks for that.
Re your further question on accepting emails for any project, TBH I'm not familiar enough with Redmine to suggest if or how that might work. I suggest getting in touch with the Redmine community and ask them. Perhaps post in their forums?
If it's possible and you need more of a hand setting it up, please don't hesitate to post back.
Add new comment