redmine2.4.2のインストール途中でエラー出て先に進めない。

2,579 views
Skip to first unread message

鈴木弥

unread,
Jan 15, 2014, 6:28:36 AM1/15/14
to redmine-...@googlegroups.com
お世話になります。
redmineをインストールしているのですが、うまくいきません。

[root@suzunet redmine]# bundle exec rake generate_secret_token RAILS_ENV=production
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/usr/local/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): found character that cannot start any token while scanning for the next token at line 11 column 13 (Psych::SyntaxError)
        from /usr/local/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
        from /usr/local/lib/ruby/2.0.0/psych.rb:153:in `parse'
        from /usr/local/lib/ruby/2.0.0/psych.rb:129:in `load'
        from /var/lib/redmine/Gemfile:42:in `eval_gemfile'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/dsl.rb:30:in `instance_eval'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/dsl.rb:30:in `eval_gemfile'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/dsl.rb:9:in `evaluate'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/definition.rb:26:in `build'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler.rb:152:in `definition'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/cli.rb:539:in `exec'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/vendor/thor/command.rb:27:in `run'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/vendor/thor.rb:363:in `dispatch'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/vendor/thor/base.rb:440:in `start'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/cli.rb:10:in `start'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/bin/bundle:20:in `block in <top (required)>'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
        from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.2/bin/bundle:20:in `<top (required)>'
        from /usr/local/bin/bundle:23:in `load'
        from /usr/local/bin/bundle:23:in `<main>'

何がわるいのでしょうか?
環境は
CentOS5.10
ruby2.0.0
apache2.2.3
です。よろしくお願いします。


ngyuki

unread,
Jan 15, 2014, 6:42:15 AM1/15/14
to redmine-...@googlegroups.com

> from /var/lib/redmine/Gemfile:42:in `eval_gemfile'

Gemfile:42 は下記の通りなので config/database.yml の記述に誤りがあると思われます。

http://www.redmine.org/projects/redmine/repository/entry/tags/2.4.2/Gemfile#L42

> found character that cannot start any token while scanning for the next token at line 11 column 13 (Psych::SyntaxError)

誤りは 11 行 の 13 文字目付近にあります。

鈴木弥

unread,
Jan 15, 2014, 6:56:29 AM1/15/14
to redmine-...@googlegroups.com
ngyuki様

返信ありがとうございます。11行目13文字目はデータベースのパスワード1文字目なんですが、%を使っています。このせいでしょうか?

2014年1月15日水曜日 20時42分15秒 UTC+9 ngyuki:

ngyuki

unread,
Jan 15, 2014, 7:02:01 AM1/15/14
to redmine-...@googlegroups.com

> 11行目13文字目はデータベースのパスワード1文字目なんですが、%を使っています

こういう風に↓書いているということですね?

password: %password

こういう風に↓書き換えてみてください

password: "%password"

鈴木弥

unread,
Jan 15, 2014, 7:34:30 AM1/15/14
to redmine-...@googlegroups.com
ngyuki様

ありがとうございました。%を外してパスワードを設定したらうまくいきました。
これからredmineを使っていろいろ管理してみたいと思います。

ありがとうございました!!m(_ _)m


2014年1月15日水曜日 21時02分01秒 UTC+9 ngyuki:
Reply all
Reply to author
Forward
0 new messages