Skip to content

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

@LooOOooM

Description

@LooOOooM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions