安装:Ubuntu EC2实例上的Redmine

时间:2016-07-15 19:25:14

标签: ubuntu amazon-web-services amazon-ec2 redmine

我需要在Amazon VPS中安装redmine。我正在关注这篇文章:https://fosskb.in/2015/02/23/installing-redmine-on-ubuntu-14-04/但是当我尝试通过apt安装时出错。

我按照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 redmine_default@localhost: 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)

哪里可以出错?

1 个答案:

答案 0 :(得分:0)

这是Redmine安装中的已知错误。做一件事

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

将适配器从msyql更改为mysql2并重新运行

sudo apt-get install redmine redmine-mysql