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

pre-receive hook ruby error #35

Open
srianirudh84 opened this issue Jul 20, 2015 · 3 comments
Open

pre-receive hook ruby error #35

srianirudh84 opened this issue Jul 20, 2015 · 3 comments

Comments

@srianirudh84
Copy link

The pre-receive hook does not seem to work well with CentOS 7 and puppet 3.8.1

I get this error while committing, not sure what this error mean

git push
Counting objects: 11, done.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (9/9), 718 bytes, done.
Total 9 (delta 3), reused 0 (delta 0)
remote: Checking puppet manifest syntax for site.pp...
remote: /usr/share/rubygems/rubygems/path_support.rb:68:in path=': undefined method+' for nil:NilClass (NoMethodError)
remote: from /usr/share/rubygems/rubygems/path_support.rb:30:in initialize' remote: from /usr/share/rubygems/rubygems.rb:357:innew'
remote: from /usr/share/rubygems/rubygems.rb:357:in paths' remote: from /usr/share/rubygems/rubygems.rb:379:inpath'
remote: from /usr/share/rubygems/rubygems/specification.rb:794:in dirs' remote: from /usr/share/rubygems/rubygems/specification.rb:658:ineach_normal'
remote: from /usr/share/rubygems/rubygems/specification.rb:669:in _all' remote: from /usr/share/rubygems/rubygems/specification.rb:822:ineach'
remote: from /usr/share/rubygems/rubygems/specification.rb:864:in find' remote: from /usr/share/rubygems/rubygems/specification.rb:864:infind_inactive_by_path'
remote: from /usr/share/rubygems/rubygems.rb:175:in try_activate' remote: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:132:inrescue in require'
remote: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:144:in require' remote: from <internal:abrt_prelude>:2:in'
remote: Error: puppet syntax error in site.pp (see above)
remote: Error: 1 syntax error(s) found in puppet manifests. Commit will be aborted.
remote: puppet-lint not installed. Skipping puppet-lint tests...
remote: Error: 1 subhooks failed. Declining push.

@srianirudh84
Copy link
Author

I am using gitlab on Centos 7. This pre-receive hooks works good with Centos 6.6 but breaks with Centos 7.

@mrjoshuap
Copy link
Contributor

Is Puppet version 3.8.1 installed on both CentOS 6 and 7? What version(s) of Ruby are you running?

@srianirudh84
Copy link
Author

Hey My puppet version is 3.8.1 and my ruby version is 1.8.7. It got installed when i installed the puppet agent. It comes with facter and ruby as dependencies.

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