2014-07-24 4 views
0

우분투 14.04에 redmine을 설치하는 동안 오류가 발생했습니다. 나는이 오류가 왜 발생하는지 이해하지 못합니다. 다음은 명령의 출력이 rails -v Rails 4.1.4redmine 설치 실패 우분투 14.04

루비 버전이 내 컴퓨터에 설치

`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` 

레일 버전은 내 컴퓨터에 설치 -l 레드 마인을 때 dpkg 나는 다음

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 [email protected]: 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)` 

를 얻을 수있다 스택되어있다 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` 

나는 우분투와 리눅스에 익숙하다. 누구든지 왜이 오류가 발생했는지 확인할 수 있습니까?

답변

0

문제는 암호가 MySQL 서버에 전달되는 방식입니다.

database.yml 파일의 secure_auth : true를 암호가 지정된 위치에서 적절한 형식으로 설정할 수 있습니다.

또는 mysql 데몬 config에서 보안 인증을 비활성화하고 다시 시작할 수 있습니다.

+0

그것은 mysql을 다시 시작한다는 의미입니까? 그것은 MySQL을 다시 시작하지 않고도 할 수 있습니까? 일부 응용 프로그램은 mysql을 사용하는 컴퓨터에서 실행되기 때문에 멈출 수 없습니다. 귀하의 정보에 문제가 있다면 왜 데이터베이스를 만들 수 있습니까? redmine_default 데이터베이스가이 프로세스에서 생성되었음을 발견했다는 것을 의미합니다. 빠른 응답을 부탁드립니다. – minu