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

rubygems.rb:284:in `find_spec_for_exe': can't find gem puppet (>= 0.a) with executable puppet #114

Open
LooOOooM opened this issue Mar 18, 2021 · 0 comments

Comments

@LooOOooM
Copy link

Hi community and supporters,

OS: CentOS 8.x
Puppet: 7.4
Gitlab: GitLab Community Edition 13.5.1

I am playing around with your git-hooks, which seem to run fine so far, however I see some ugly lines: in case of reject:

Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 2 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (7/7), 584 bytes | 584.00 KiB/s, done.
Total 7 (delta 4), reused 0 (delta 0), pack-reused 0
remote: /opt/gitlab/embedded/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem puppet (>= 0.a) with executable puppet (Gem::GemNotFoundException)
remote:         from /opt/gitlab/embedded/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
remote:         from /bin/puppet:23:in `<main>'
remote: Error: puppet syntax error in /tmp/tmp.vGOlb8XhHw/modules/profiles/manifests/co/hiera_test.pp (see above)
remote: Error: 1 syntax error(s) found in puppet manifests. Commit will be aborted.
remote: /opt/gitlab/embedded/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem puppet-lint (>= 0.a) with executable puppet-lint (Gem::GemNotFoundException)
remote:         from /opt/gitlab/embedded/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
remote:         from /bin/puppet-lint:23:in `<main>'
remote: Error: styleguide violation in modules/profiles/manifests/co/hiera_test.pp (see above)
remote: Error: 3 styleguide violation(s) found. Commit will be aborted.
remote: Please follow the puppet style guide outlined at:
remote: http://docs.puppetlabs.com/guides/style_guide.html
remote: Error: 2 subhooks failed. Declining push.
To gitlab01.a.ht-haj-a.de.vier.services:co/puppet.git
 ! [remote rejected] pre-receive_hook-test -> pre-receive_hook-test (pre-receive hook declined)
error: failed to push some refs to 'gitlab01.a.ht-haj-a.de.vier.services:co/puppet.git'

In fact I wounder about:

remote: /opt/gitlab/embedded/lib/ruby/site_ruby/2.6.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem puppet (>= 0.a) with executable puppet (Gem::GemNotFoundException)
remote:         from /opt/gitlab/embedded/lib/ruby/site_ruby/2.6.0/rubygems.rb:303:in `activate_bin_path'
remote:         from /bin/puppet:23:in `<main>'

Is there anything I can do about it?


Even I belive this doesn't matter,- I have to say that I manually needed to symlnk the pre-receive into my repo on the server as the deploy was giving me another error, I guess because gitlab uses hashes thosedays, it could not CD into the given path to the git-repo.

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

1 participant