1.代理服務(wù)器地址錯誤在命令模式下在線(xiàn)安裝如 gem install rdoc, 出現如下錯誤
ERROR: http://rubygems.org/ 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 沒(méi)有RDoc 或者RDoc文檔版本太低.
執行g(shù)em 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)
沒(méi)有RDoc文件.
執行g(shù)em 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連接密碼時(shí)應在密碼前加一個(gè)空格
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 :
- download libmySQL.dll from here
- move this .dll file to C:\webserver\Ruby\bin\
- 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
重新啟動(dòng)服務(wù)
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
在設置郵箱服務(wù)后出現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的配置寫(xiě)在底部的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"
重啟服務(wù).
7.配置郵箱服務(wù)
如果出現
An error occurred while sending mail (No connection
could be made because the target machine actively refused it. -
connect(2))
請檢查上面的郵箱和賬號沒(méi)有配置錯誤