Skip to content

Initialization failure with Puppet Agent 8.10.0 #901

Open
@robeke

Description

@robeke

What Versions are you running?

OS Version: Linux x64 6.6.63-1-MANJARO (Manjaro Linux 24.1.2)
VSCode Version: 1.95.3
Puppet Extension Version: 1.5.4
PDK Version: NA

What You Are Seeing?

Initialization of the server fails when running the extension using Puppet Agent 8.10.1.

What is Expected?

Normal server initialization.

How Did You Get This To Happen? (Steps to Reproduce)

The system update applied on 4 December included an upgrade of Puppet Agent from 7.33.0-1 to 8.10.0-1. The failure was first encountered after that upgrade.

Output Log

<internal:/usr/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require': cannot load such file -- ubygems (LoadError)
Did you mean?  rubygems
	from <internal:/usr/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
[Error - 12:11:28 PM] Server process exited with code 1.
[Error - 12:11:28 PM] Server initialization failed.

Workaround

Changing the value assigned to RUBYOPT in commandHelper.js (line 166) from rubygems to -rrubygems allowed initialization to proceed without failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions