Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manifest.yml fails with multiple env values #23

Closed
bitpusher opened this issue Oct 21, 2013 · 3 comments
Closed

manifest.yml fails with multiple env values #23

bitpusher opened this issue Oct 21, 2013 · 3 comments

Comments

@bitpusher
Copy link

builds


---
applications:
- name: logsearch-purge-bot
  buildpack: https://github.com/cloudfoundry-community/.net-buildpack
  memory: 256
  instances: 1
  path: ./_bin
  env:
    elasticSearchUrl: "http://ec2-79-125-57-123.eu-west-1.compute.amazonaws.com:9200"

fails


---
applications:
- name: logsearch-purge-bot
  buildpack: https://github.com/cloudfoundry-community/.net-buildpack
  memory: 256
  instances: 1
  path: ./_bin
  env:
    elasticSearchUrl: "http://ec2-79-125-57-123.eu-west-1.compute.amazonaws.com:9200"
    daysToKeep: "30"
C:\dev3\logsearch-purge-bot-cloudfoundry>cf push
Time of crash:
  2013-10-21 08:46:39 -0700

Psych::SyntaxError: (C:/dev3/logsearch-purge-bot-cloudfoundry/manifest.yml): found character that cannot start any token while scanning for the next token at line 10 column 1

lib/ruby/1.9.1/psych.rb:203:in `parse'
lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
lib/ruby/1.9.1/psych.rb:151:in `parse'
lib/ruby/1.9.1/psych.rb:127:in `load'
lib/ruby/1.9.1/psych.rb:297:in `block in load_file'
lib/ruby/1.9.1/psych.rb:297:in `open'
lib/ruby/1.9.1/psych.rb:297:in `load_file'
src/lib/manifests/loader/builder.rb:7:in `build'
src/lib/manifests/loader.rb:17:in `manifest'
src/lib/manifests/manifests.rb:55:in `load_manifest'
src/lib/manifests/manifests.rb:17:in `manifest'
src/lib/manifests/plugin.rb:72:in `wrap_push'
src/lib/manifests/plugin.rb:25:in `block in <class:ManifestsPlugin>'
mothership-0.5.1/lib/mothership/command.rb:82:in `instance_exec'
mothership-0.5.1/lib/mothership/command.rb:82:in `block (2 levels) in invoke'
mothership-0.5.1/lib/mothership/command.rb:86:in `instance_exec'
mothership-0.5.1/lib/mothership/command.rb:86:in `invoke'
mothership-0.5.1/lib/mothership/base.rb:55:in `execute'
src/lib/cf/cli.rb:195:in `block (2 levels) in execute'
src/lib/cf/cli.rb:206:in `save_token_if_it_changes'
src/lib/cf/cli.rb:194:in `block in execute'
src/lib/cf/cli.rb:123:in `wrap_errors'
src/lib/cf/cli.rb:190:in `execute'
mothership-0.5.1/lib/mothership.rb:45:in `start'
src/bin/cf:18:in `<main>'

C:\dev3\logsearch-purge-bot-cloudfoundry>
@mrdavidlaing
Copy link
Member

YAML is really fussy about tabs vs spaces; I'm almost certain that you have only tabs, or tabs + spaces for one of elasticSearchUrl or daysToKeep

YAML only uses double space for indentation. NO TABS. In this specific case make sure that elasticSearchUrl and daysToKeep are indented with 4 spaces.

Of cause its nearly impossible to visually notice the difference, unless you have your editor visually show tabs (recommended).

Best advise I can give is to use http://yamllint.com/ to check YAML syntax.

I fight with this every time I use YAML. Grr.

@mrdavidlaing
Copy link
Member

@bitpusher I'm going to close this as resolved.

Reopen if you're still having issues

@bitpusher
Copy link
Author

@mrdavidlaing - yes, sorry. thanks for the guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants