puppetlabs / puppet

Server automation framework and application
https://puppet.com/open-source/#osp
Apache License 2.0
7.44k stars 2.2k forks source link

puppetserver error: cannot load such file -- puppetserver/ca/cli (LoadError) #9452

Closed banafshehft closed 2 months ago

banafshehft commented 2 months ago

Describe the Bug

i can not run any puppetserver command becasue of this :

sudo puppetserver ca list --all
[sudo] password for bani: 
<internal:/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:86:in `require': cannot load such file -- puppetserver/ca/cli (LoadError)
        from <internal:/usr/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:86:in `require'
        from /opt/puppetlabs/server/apps/puppetserver/cli/apps/ca:3:in `<main>'

Expected Behavior

i can run puppetserver

Environment

Additional Context

if you need any more info please let me know

bastelfreak commented 2 months ago

your problem is that you're mixing puppet agent 7 and puppetserver 8. Both need to have the same major version.

A bit of context: I wasn't able to update the Arch Linux package to 8 because that requires ruby 3.2. Ruby 3.2 was added to the extra repo just a week ago.

banafshehft commented 2 months ago

actually i could fix it by rebuilding the package . it seems now its using new ruby. i will close the ticket since the original issue resolved

Thanks!