sameersbn / docker-redmine

Docker Image for Redmine
http://www.damagehead.com/docker-redmine/
MIT License
1.27k stars 497 forks source link

Redmine 500 error - create a New Issue #133

Closed darioajr closed 9 years ago

darioajr commented 9 years ago

Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your Redmine administrator for assistance. If you are the Redmine administrator, check your log files for details about the error.

Tested versions: 3.0.4, 3.1.0 and 2.6.5 (Same error) Logs: Don´t show nothing.

darioajr commented 9 years ago

500error

darioajr commented 9 years ago

This container is running on

CentOS Linux release 7.1.1503 (Core) 3.10.0-229.7.2.el7.x86_64

sameersbn commented 9 years ago

@darioajr please make sure that you have loaded the default configuration from the administration page.

edit: see https://github.com/sameersbn/docker-redmine/issues/92

darioajr commented 9 years ago

Yes, I loaded the default configurations In English and In Portuguese (New container), but the error persists.

sameersbn commented 9 years ago

@darioajr ok.. at this point I would suggest turning off selinux and retrying.

darioajr commented 9 years ago

SELINUX of host machine was disabled.

sameersbn commented 9 years ago

@darioajr ok.. can you share you docker run or docker-compose.yml file so that I can try to reproduce this issue.

darioajr commented 9 years ago

redmine: image: sameersbn/redmine:3.1.0 environment:

darioajr commented 9 years ago

Howto capture the log to this error??

sameersbn commented 9 years ago

@darioajr oh.. sorry I did not find the time to look into this. give me a couple if minutes to check.

sameersbn commented 9 years ago

@darioajr I checked it and found no issues. can you try the following docker-compose file to check if you see the issue

mysql:
  image: sameersbn/mysql:latest
  environment:
    - DB_NAME=redmine
    - DB_USER=redmine
    - DB_PASS=Redmine@2015.
  volumes:
    - /tmp/docker/redmine/mysql:/var/lib/mysql
redmine:
  image: sameersbn/redmine:latest
  links:
    - mysql:mysql
  environment:
    - TZ=America/Sao_Paulo
    - REDMINE_PORT=10083
    - DB_TYPE=mysql
    - DB_HOST=mysql
    - DB_NAME=redmine
    - DB_USER=redmine
    - DB_PASS=Redmine@2015.
    - NGINX_MAX_UPLOAD_SIZE=999m
  ports:
    - "10083:80"
  volumes:
    - /tmp/docker/redmine/redmine:/home/redmine/data

here is th output of docker-compose up http://pastebin.com/77a8fJyj

Remember to load the default configuration first before creating a project. Let me know.

As far as I can tell there is nothing wrong with the image.

darioajr commented 9 years ago

Ok , the error occurs when I add the following settings

darioajr commented 9 years ago

When I do an email to send test works, but let configured to send email when you create a task the error occurs. evidence3

darioajr commented 9 years ago

My E-mail server is Exchange 2010, I´m using relay option in the host machine (server) , this configuration don't need user and password and Allows send email with any "From" name .

darioajr commented 9 years ago

Resolution: Change SMTP parameters:

sameersbn commented 9 years ago

@darioajr its weird that incorrect incorrect SMTP settings causes issues while accessing the "New Issue" page. Glad that you got it resolved.

arnoldse commented 8 years ago

Hi all, I exactly had the same issue. The funny thing was that after disabling emails all outgoing emails in the admin section, the 500 error was gone. Then I activated emailing again. But now I was able to create new issues (even with enable email settings)... Weired thing.. And after a restart (of the container) the problem once again appeared...

laoshancun commented 7 years ago

hi,i got this error too,and here is production.log

Started POST "/projects/test/issues" for 171.214.144.55 at 2016-11-29 09:20:22 +0800
Processing by IssuesController#create as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"this is token ", "issue"=>{"is_private"=>"0", "tracker_id"=>"3", "subject"=>" dsfasdfsadf", "description"=>"sdfasdfasdf", "status_id"=>"1", "priority_id"=>"2", "assigned_to_id"=>"", "parent_issue_id"=>"", "start_date"=>"2016-11-29", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "watcher_user_ids"=>["24"]}, "was_default_status"=>"1", "continue"=>"创建并继续", "project_id"=>"meishi_66law_cv"}
  Current user: admin (id=1)
  Rendered mailer/_issue.text.erb (2.0ms)
  Rendered mailer/issue_add.text.erb within layouts/mailer (2.6ms)
  Rendered mailer/_issue.html.erb (1.7ms)
  Rendered mailer/issue_add.html.erb within layouts/mailer (2.2ms)
Completed 500 Internal Server Error in 197ms (ActiveRecord: 28.2ms)

Net::SMTPFatalError (554 DT:SPM 163 smtp9,DcCowABX9uzX1zxY2lOKCg--.45921S3 1480382423,please see http://mail.163.com/help/help_spam_16.htm?ip=8.8.8.8&hostid=smtp9&time=1480382423
):
  app/models/mailer.rb:455:in `deliver_mail'
  config/initializers/10-patches.rb:154:in `deliver'
  app/models/mailer.rb:61:in `block in deliver_issue_add'
  app/models/issue.rb:909:in `each_notification'
  app/models/mailer.rb:60:in `deliver_issue_add'
  app/models/issue.rb:1626:in `send_notification'
  app/models/issue.rb:175:in `create_or_update'
  app/controllers/issues_controller.rb:141:in `create'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

and http://mail.163.com/help/help_spam_16.htm?ip=8.8.8.8&hostid=smtp9&time=1480382423 says

 •554 DT:SPM 发送的邮件内容包含了未被许可的信息,或被系统识别为垃圾邮件。请检查是否有用户发送病毒或者垃圾邮件;(The email contains information that has not been licensed, or is identified as spam by the system. Please check if there is a user to send a virus or spam)

if i set SMTP_METHOD:async_smtp , error is gone,but i can't receive email.