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

chef push with a ruby syntax error isn't helpful #37

Open
silverl opened this issue Jul 24, 2018 · 3 comments
Open

chef push with a ruby syntax error isn't helpful #37

silverl opened this issue Jul 24, 2018 · 3 comments
Labels
Triage: Confirmed Indicates and issue has been confirmed as described. Triage: Needs Information Indicates an issue needs more information in order to work on it.

Comments

@silverl
Copy link

silverl commented Jul 24, 2018

Description

One of my cookbooks had a syntax error. I ran a chef push to my chef server, and it came back with [2018-07-24T13:48:47-05:00] FATAL: Cookbook file has a ruby syntax error:

The response didn't offer any idea where the syntax error occurred.

ChefDK Version

3.1.0

Platform Version

Windows 10 Enterprise 1803 17134.167

Replication Case

Create a Policyfile-based cookbook that has a syntax error.
Attempt to upload it to a chef server using chef push

Stacktrace

Lockfile written to C:/Code/devops-chef/cookbooks/trackabout_app_server/Policyfile.lock.json
Policy revision id: 94fb0efe4e1a1d1a4c1ade90910f137a380ef31e9d4157b9d134daaa2b95042a
Uploading policy to policy group azure_qa
[2018-07-24T13:48:47-05:00] FATAL: Cookbook file  has a ruby syntax error:

NOTE: CHEFDK BUGS ONLY

This issue tracker is for the code contained within this repo -- chefdk.

@afiune
Copy link

afiune commented Sep 24, 2019

We would like to move this issue to either the chef-cli or the chef-workstation repo. @jonsmorrow @tyler-ball Could you move it, please?

@tas50 tas50 transferred this issue from chef-boneyard/chef-dk Sep 24, 2019
@tyler-ball tyler-ball added Aspect: Correctness Triage: Confirmed Indicates and issue has been confirmed as described. labels Sep 30, 2019
@tyler-ball
Copy link
Contributor

Hey @silverl - sorry it took so long to respond but we are trying to get all our existing issues triaged.

It certainly looks like there should be more information after the end of that message (the hanging : implies it). Have you tried this with the latest version of Chef Workstation?

@tyler-ball tyler-ball added the Triage: Needs Information Indicates an issue needs more information in order to work on it. label Sep 30, 2019
@silverl
Copy link
Author

silverl commented Sep 30, 2019

Sorry, after this started happening I created a local script which syntax checks everything before pushing the policy. Solved my own problem, anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Confirmed Indicates and issue has been confirmed as described. Triage: Needs Information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

4 participants