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

Wrong/confusing error message for syntax error in Job spec #804

Closed
TiraO opened this issue Apr 16, 2015 · 12 comments
Closed

Wrong/confusing error message for syntax error in Job spec #804

TiraO opened this issue Apr 16, 2015 · 12 comments

Comments

@TiraO
Copy link

TiraO commented Apr 16, 2015

When there is a syntax error in the job spec (eg. a missing colon), running bosh create release results in the error Job spec is missing even though the job spec exists.

@Nopik
Copy link

Nopik commented May 3, 2015

Nice found, I've just got bitten by this bug.

@tushar-dadlani
Copy link

Nice find. We ran into the same issue and found this helpful.
+1

@cyrille-leclerc
Copy link
Contributor

+1

@benlaplanche
Copy link

+1, for me it was tabs vs spaces for indentation

@poblin-orange
Copy link

+1. no idea yet why ..

@robocop-bob
Copy link

for me it was: key : , should be just key:
i found it parsing spec file.

irb
require 'yaml'
thing = YAML.load_file('jobs/vault/spec')

@mtekel
Copy link

mtekel commented Oct 2, 2015

+1, I had a missing :

It should really say syntax error, ideally point to the issue....

@drnic
Copy link
Contributor

drnic commented Nov 10, 2015

I got bit by this today when a spec wasn't valid YAML (although my text editor thought it was) - a value needed "..." quotes around it

@voelzmo
Copy link
Member

voelzmo commented Nov 17, 2015

Fixed in bosh-v225, aka stable-3138

@poblin-orange
Copy link

Met this issue again today using bosh create release.
Should the fix be applied also on bosh-cli (using BOSH 1.3068.0)

@voelzmo
Copy link
Member

voelzmo commented Dec 17, 2015

@poblin-orange the fix is applied in bosh CLI >=1.3138.0 so please update

@poblin-orange
Copy link

@voelzmo done, thks

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

10 participants