gpt4 book ai didi

mysql - ubuntu 14.04 redmine安装失败

转载 作者:行者123 更新时间:2023-11-30 00:02:10 26 4
gpt4 key购买 nike

我在 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 的新手。谁能确定我为什么会收到此错误?

最佳答案

问题在于密码传递到 MySQL 服务器的方式。

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

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

关于mysql - ubuntu 14.04 redmine安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24932839/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com