1.代理服务器地址错误 在命令模式下在线安装如 gem install rdoc, 出现如下错误 ERROR: http:/// does not appear to be a repository ERROR: Could not find a valid gem 'rdoc' (>= 0) in any repository 处理方式: 输入 set hppt_proxy=http://URL:port 如set http_proxy=http://10.150.8.xx:8080 2.需要安装高版本的RDoc 文件 当执行命令 rake generate_session_store后出现Please install RDoc 2.4.2+ to generate documentation 则是当前ruby 没有RDoc 或者RDoc文档版本太低. 执行gem list 查看 ruby 清单 C:\webserver\Redmine>gem list *** LOCAL GEMS *** actionmailer (2.3.14) actionpack (2.3.14) activerecord (2.3.14) activeresource (2.3.14) activesupport (2.3.14) cgi_multipart_eof_fix (2.5.0) gem_plugin (0.2.3) i18n (0.6.0, 0.4.2) mongrel (1.1.5 x86-mingw32) mongrel_service (0.3.4 i386-mswi mysql (2.8.1 x86-mingw32) rack (1.1.3) rails (2.3.14) rake (0.8.7) win32-service (0.5.2 mswin32) 没有RDoc文件. 执行gem install rdoc -v 2.4.3后, 再次执行 C:\webserver\Redmine>gem list 清单如下 *** LOCAL GEMS *** actionmailer (2.3.14) actionpack (2.3.14) activerecord (2.3.14) activeresource (2.3.14) activesupport (2.3.14) cgi_multipart_eof_fix (2.5.0) gem_plugin (0.2.3) i18n (0.6.0, 0.4.2) mongrel (1.1.5 x86-mingw32) mongrel_service (0.3.4 i386-mswin3 mysql (2.8.1 x86-mingw32) rack (1.1.3) rails (2.3.14) rake (0.8.7) rdoc (2.4.3) win32-service (0.5.2 mswin32) 3.database.yml 密码设置错误 当执行rake db:migrate (in D:/redmine)错误如下 rake aborted! syntax error on line 8 , col 2: ` encoding: utf 8 ' (See full trace by running task with --trace)
命令 rake db:migrate (in C:/webserver/Redmine) rake aborted! Mysql::Error: query: not connected: CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB If you encounter this error: Mysql::Error: query: not connected: CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB :
I also met the same issue 1 week ago. I find a fix for it with the following steps: 1. copy the attached file (mongrel_cluster_with_rails_211_fix.rb) to redmin/config/initializers folder rake generate_session_store 重新启动服务 net stop mongrel_redmine_3001 net stop mongrel_redmine_3002 net stop mongrel_redmine_3003 net start mongrel_redmine_3001 net start mongrel_redmine_3002 net start mongrel_redmine_30036.错误proxy 502 在设置邮箱服务后出现proxy 502错误, 则是邮箱设置错误 如果使用GMail则必须先安装action_mailer_optional_tls plugin 6.1. Install the action_mailer_optional_tls pluginThe To install this plugin, use the 6.2 配置邮箱Redmine\config\configuration.yml.example 改为configuration.yml 并将GMail的配置写在底部的Production:下 production: email_delivery: delivery_method: :smtp smtp_settings: tls: true enable_starttls_auto: true address: "smtp.gmail.com" port: '587' domain: "smtp.gmail.com" authentication: :plain user_name: "xxx@gmail.com" password: "xxx" 重启服务. 7.配置邮箱服务 如果出现 An error occurred while sending mail (No connection
could be made because the target machine actively refused it. -
connect(2)) 请检查上面的邮箱和账号没有配置错误 |
|