-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redmine:email:receive_imap -> uninitialized constant Redmine::IMAP #175
Comments
Can you give all the commands you ran and any relevant contextual information or files for reproducing the issue Looks like imap isn't configured/defined, did you do anything listed on http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails |
Hi @wglambert, I ran this command:
(changing variables with their values) Same command I used to ran in 3.x version and worked. Now I'm using redmine:4 repo, so my versions are:
and error looks like this:
|
I don't know why but if edit: lib/tasks/email.rake and add: it works. How can I make this change permanent? |
Yeah I can't reproduce any issue with email. Template email:
On the web interface I populated the missing project, tracker, status, and priority when I got the error they were required $ docker run -d -v "$PWD"/configuration.yml:/usr/src/redmine/config/configuration.yml -p 3000:3000 --rm --name redmine redmine:4
e36dc26afc2bf70f0f46192c2057dd10ad024e0c9750cb3f9590f11115d28ce6
$ docker exec -it redmine bash
root@e36dc26afc2b:/usr/src/redmine# rake redmine:email:receive_imap unknown_user=accept no_permission_check=1 RAILS_ENV=production host=imap.gmail.com port=993 ssl=1 username="$email" password="$pass"
W, [2019-10-02T22:01:18.842276 #49] WARN -- : Creating scope :system. Overwriting existing method Enumeration.system.
W, [2019-10-02T22:01:20.213460 #49] WARN -- : Creating scope :sorted. Overwriting existing method Group.sorted.
W, [2019-10-02T22:01:20.233041 #49] WARN -- : Creating scope :sorted. Overwriting existing method User.sorted.
E, [2019-10-02T22:01:20.686401 #49] ERROR -- : MailHandler: Validation failed: Tracker cannot be blank, Priority cannot be blank, Status cannot be blank
root@e36dc26afc2b:/usr/src/redmine# rake redmine:email:receive_imap unknown_user=accept no_permission_check=1 RAILS_ENV=production host=imap.gmail.com port=993 ssl=1 username="$email" password="$pass"
W, [2019-10-02T22:02:21.695774 #53] WARN -- : Creating scope :system. Overwriting existing method Enumeration.system.
W, [2019-10-02T22:02:23.071436 #53] WARN -- : Creating scope :sorted. Overwriting existing method Group.sorted.
W, [2019-10-02T22:02:23.084588 #53] WARN -- : Creating scope :sorted. Overwriting existing method User.sorted.
I, [2019-10-02T22:02:23.518957 #53] INFO -- : MailHandler: issue #1 created by Anonymous There's also this issue with email and cron #64 You could also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum |
After upgrading to 4.x I got this error:
uninitialized constant Redmine::IMAP
when running
redmine:email:receive_imap
task.I'm trying to figure what is happening but wihtout success. Someone can help me ?
thanks in advance
The text was updated successfully, but these errors were encountered: