redmine安装失败ubuntu 14.04

时间:2014-07-24 11:47:50

标签: mysql ruby-on-rails ruby ubuntu redmine

我在ubuntu 14.04上安装redmine时遇到错误。我不明白为什么我会收到这个错误。 下面是我得到的堆栈

apt-get install redmine redmine-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
redmine is already the newest version.
redmine-mysql is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up redmine (2.4.2-1) ...
dbconfig-common: writing config to /etc/dbconfig-common/redmine/instances/defaul
t.conf

Creating config file /etc/redmine/default/database.yml.new with new version
granting access to database redmine_default for redmine_default@localhost: alrea
dy exists.
creating database redmine_default: already exists.
dbconfig-common: flushing administrative password
Replacing 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!
Server is running in --secure-auth mode, but 'redmine_default'@'localhost' has a
password in the old format; please change the password to the new format
/var/lib/gems/1.9.1/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `connect'
/var/lib/gems/1.9.1/gems/mysql2-0.3.16/lib/mysql2/client.rb:70:in `initialize'
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
Errors were encountered while processing:
redmine
E: Sub-process /usr/bin/dpkg returned an error code (1)

Errors were encountered while processing: redmine

E: Sub-process /usr/bin/dpkg returned an error code (1)`

以下是输出命令dpkg -l redmine

`Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
iF  redmine        2.4.2-1      all          flexible project management web a`

在我的机器上安装Rails版本     rails -v Rails 4.1.4

在我的机器上安装Ruby版本     ruby -v ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]

apache2版本

`apache2 -v
Server version: Apache/2.4.7 (Ubuntu)
Server built:   Apr  3 2014 12:20:28`

我是ubuntu和linux的新手。任何人都可以确定我收到此错误的原因吗?

1 个答案:

答案 0 :(得分:0)

问题是密码传递给MySQL服务器的方式。

您可以在指定密码的database.yml文件中设置secure_auth:true,以使用适当的格式。

或者,您可以在mysql守护程序配置中禁用安全身份验证并重新启动。