500 Internal Server while creating issue
Added by Hugo S over 11 years ago
Hello,
I've upgrade from 1.X (debian package) to latest version. Unfortunatly, I cannot create issue anymore, I've got a 500 error.
Here is the production.log :
ArgumentError (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true): app/models/mailer.rb:41:in `issue_add' app/models/mailer.rb:422:in `initialize' app/models/mailer.rb:445:in `method_missing' app/models/mailer.rb:52:in `block in deliver_issue_add' app/models/issue.rb:826:in `each_notification' app/models/mailer.rb:51:in `deliver_issue_add' app/models/issue.rb:1519:in `send_notification' app/models/issue.rb:165:in `create_or_update' app/controllers/issues_controller.rb:146:in `create'
Here is my configuration.yml
production: email_delivery: delivery_method: :smtp smtp_settings: address: mail.domain.local port: 25 domain: mydomain.com authentication: none
Here is my production.rb
# Settings specified here will take precedence over those in config/application.rb RedmineApp::Application.configure do # The production environment is meant for finished, "live" apps. # Code is not reloaded between requests config.cache_classes = true ##### # Customize the default logger (http://ruby-doc.org/core/classes/Logger.html) # # Use a different logger for distributed setups # config.logger = SyslogLogger.new # # Rotate logs bigger than 1MB, keeps no more than 7 rotated logs around. # When setting a new Logger, make sure to set it's log level too. # # config.logger = Logger.new(config.log_path, 7, 1048576) # config.logger.level = Logger::INFO # Full error reports are disabled and caching is turned on config.action_controller.perform_caching = true # Enable serving of images, stylesheets, and javascripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" # Disable delivery errors if you bad email addresses should just be ignored config.action_mailer.raise_delivery_errors = false # No email in production log config.action_mailer.logger = nil end
And finaly the version :
root@HCPL01VM:/usr/share/redmine# RAILS_ENV=production script/about You did not specify how you would like Rails to report deprecation notices for your production environment, please set config.active_support.deprecation to :notify at config/environments/production.rb sh: 1: svn: not found sh: 1: darcs: not found sh: 1: hg: not found sh: 1: cvs: not found sh: 1: bzr: not found Environment: Redmine version 2.4.2.stable Ruby version 1.9.3-p194 (2012-04-20) [x86_64-linux] Rails version 3.2.16 Environment production Database adapter Mysql2 SCM: Git 1.7.10.4 Filesystem Redmine plugins: no plugin installed
Many, many thanks.
Regards
Hugo