2016-07-15 182 views
0

我需要在Amazon VPS中安裝redmine。我正在關注這個帖子:https://fosskb.in/2015/02/23/installing-redmine-on-ubuntu-14-04/,但是當我嘗試通過apt進行安裝時出現錯誤。安裝:Ubuntu的EC2實例上的Redmine

我按照同一篇文章在VirtualBox機器上的指示,我有任何問題,它被發現非常好。

這是錯誤:

dbconfig-common: writing config to /etc/dbconfig-common/redmine/instances/default.conf 
Creating config file /etc/dbconfig-common/redmine/instances/default.conf with new version 
Creating config file /etc/redmine/default/database.yml.new with new version 
granting access to database redmine_default for [email protected]: already exists. 
creating database redmine_default: success. 
verifying database redmine_default exists: success. 
dbconfig-common: flushing administrative password 
Creating config file /etc/redmine/default/database.yml with new version 
Creating config file /etc/redmine/default/session.yml with new version 
A new secret session key has been generated in /etc/redmine/default/session.yml 
Populating database for redmine instance "default". 
This may take a while. 
rake aborted! 
(<unknown>): did not find expected alphabetic or numeric character while scanning an alias at line 7 column 13 
Tasks: TOP => db:migrate => environment 
(See full trace by running task with --trace) 
Error when running rake db:migrate, check database configuration. 
dpkg: error processing package redmine (--configure): 
subprocess installed post-installation script returned error exit status 1 
E: Sub-process /usr/bin/dpkg returned an error code (1) 

哪裏是錯誤?

回答

0

這是Redmine安裝中的一個已知錯誤。做一兩件事從msyql

sudo nano /etc/redmine/default/database.yml 

更改適配器mysql2並重新運行

sudo apt-get install redmine redmine-mysql 
+0

嘿error2007,感謝對你的建議,我已經設置「mysql2」但我有同樣的錯誤。任何想法? – jnunez