occurred Error when start redmine /usr/local/ruby/lib/ruby/2.1.0/psych.rb:370:in `parse': (<unknown>): mapping values are not allowed in this context at line 20 column 22 (Psych::SyntaxError)
Added by 8320 eg about 10 years ago
get help
redmine 3.0.1+ruby 2.1.6 install occurred Error
#####################################
[root@wiki redmine]# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application
for all non-root users on this machine.
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.
Your Gemfile lists the gem simplecov-rcov (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.2
Using minitest 5.6.0
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.0
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile 0.6.2
Using nokogiri 1.6.6.2
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.6
Using loofah 2.0.1
Using rails-html-sanitizer 1.0.2
Using actionview 4.2.0
Using rack 1.6.0
Using rack-test 0.6.3
Using actionpack 4.2.0
Using globalid 0.3.5
Using activejob 4.2.0
Using mime-types 2.4.3
Using mail 2.6.3
Using actionmailer 4.2.0
Using actionpack-action_caching 1.1.1
Using actionpack-xml_parser 1.0.1
Using activemodel 4.2.0
Using arel 6.0.0
Using activerecord 4.2.0
Using climate_control 0.0.3
Using cocaine 0.5.7
Using coderay 1.1.0
Using tilt 1.4.1
Using haml 4.0.6
Using htmlentities 4.3.3
Using thor 0.19.1
Using railties 4.2.0
Using jquery-rails 3.1.2
Using kaminari 0.16.3
Using multi_json 1.11.0
Using mysql2 0.3.18
Using net-ldap 0.3.1
Using pandoc-ruby 1.0.0
Using paperclip 4.2.1
Using protected_attributes 1.0.9
Using ruby-openid 2.3.0
Using rack-openid 1.4.2
Using rack-raw-upload 1.1.1
Using bundler 1.9.4
Using sprockets 3.0.0
Using sprockets-rails 2.2.4
Using rails 4.2.0
Using rbpdf 1.18.5
Using redcarpet 3.1.2
Using request_store 1.0.5
Using sass 3.4.13
Using sass-rails 5.0.3
Using rich 1.4.8 from https://github.com/a-ono/rich.git (at master)
Bundle complete! 46 Gemfile dependencies, 58 gems now installed.
Gems in the groups development, test and rmagick were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
###########################+
[root@wiki redmine]# bundle exec ruby bin/rails server webrick -e production
=> Booting WEBrick
=> Rails 4.2.0 application starting in production on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/usr/local/ruby/lib/ruby/2.1.0/psych.rb:370:in `parse': (<unknown>): mapping values are not allowed in this context at line 20 column 22 (Psych::SyntaxError)
from /usr/local/ruby/lib/ruby/2.1.0/psych.rb:370:in `parse_stream'
from /usr/local/ruby/lib/ruby/2.1.0/psych.rb:318:in `parse'
from /usr/local/ruby/lib/ruby/2.1.0/psych.rb:245:in `load'
from /data/redmine/lib/redmine/configuration.rb:86:in `load_from_yaml'
from /data/redmine/lib/redmine/configuration.rb:42:in `load'
from /data/redmine/lib/redmine/configuration.rb:67:in `[]'
from /data/redmine/lib/redmine/thumbnail.rb:24:in `<module:Thumbnail>'
from /data/redmine/lib/redmine/thumbnail.rb:21:in `<module:Redmine>'
from /data/redmine/lib/redmine/thumbnail.rb:20:in `<top (required)>'
from /usr/local/ruby/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /usr/local/ruby/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
from /usr/local/ruby/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/ruby/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
Replies (1)
RE: occurred Error when start redmine /usr/local/ruby/lib/ruby/2.1.0/psych.rb:370:in `parse': (<unknown>): mapping values are not allowed in this context at line 20 column 22 (Psych::SyntaxError)
-
Added by Leonel Iturralde about 10 years ago
I think there is a mistake in your yaml files. For example: configuration.yml, database.yml
Check your yaml files.