分享

Ridmine 安装手记

 alfred.hwang 2012-03-14
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: utf8'
 
(See full trace by running task with --trace)
修改redmine目录下config中的database.yml 配置mysql连接密码时应在密码前加一个空格

 


1
2
3
4
5
6
7
production:
  adapter: mysql
  database: redmine
  host: localhost
  username: jif
  password: 123456
  encoding: utf8
4.数据库连接失败
命令 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 :
  1. download libmySQL.dll from here
  2. move this .dll file to C:\webserver\Ruby\bin\
  3. in command window, again execute:
    rake db:migrate
5.Internet Explorer cannot display the webpage / After Administrator Login Redmin登录后显示 Internet Explorer cannot display

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
2. rerun the following command in command line under redmine folder

rake generate_session_store
set RAILS_ENV=production
rake db:migrate

重新启动服务

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_3003
6.错误proxy 502
在设置邮箱服务后出现proxy 502错误, 则是邮箱设置错误
如果使用GMail则必须先安装action_mailer_optional_tls plugin

6.1. Install the action_mailer_optional_tls plugin

The action_mailer_optional_tls_plugin adds a TLS option to Redmine's emailing library, ActionMailer. TLS is a version of SSL which is required by GMail in order to send email.

To install this plugin, use the script/plugin command in your Redmine directory:

ruby script/plugin install git://github.com/collectiveidea/action_mailer_optional_tls.git
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))
请检查上面的邮箱和账号没有配置错误

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多