Jira (PUP-10968) Puppet upgrade 6 -> 7 error NoMethodError 'scheme'

13 views
Skip to first unread message

Christoph F (Jira)

unread,
Mar 17, 2021, 3:35:03 PM3/17/21
to puppe...@googlegroups.com
Christoph F created an issue
 
Puppet / Bug PUP-10968
Puppet upgrade 6 -> 7 error NoMethodError 'scheme'
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2021/03/17 12:34 PM
Priority: Normal Normal
Reporter: Christoph F

Puppet Version:
Puppet Server Version:
OS Name/Version:

I upgraded Puppet from 6.x to 7.x.
puppetserver        6.15.1 -> 7.0.3,
puppet agents      6.21.1 -> 7.4.1,
puppetdb              6.14.0 -> 7.2.0,
puppetdb-termini 6.15.0 -> 7.2.0

After the upgrade when I do

puppet agent -t

 on some of the nodes in my network, I get the following error during puppet run:

Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Puppet::Parser::Compiler failed with error NoMethodError: undefined method `scheme' for #<String:0x216cee9> on node bla.blub.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

On other nodes puppet runs fine.
I also upgraded ruby:
ruby 2.3.3p222 -> ruby 2.7.2p137
I also tried to upgrade some puppet modules e.g. stdlib to a newer version, but it didn't help.

Desired Behavior: Puppet runs without error.

Actual Behavior: Puppet error.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 17, 2021, 5:46:03 PM3/17/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-10968
 
Re: Puppet upgrade 6 -> 7 error NoMethodError 'scheme'

Hi Christoph F, the error is originating on the server side. Can you check /var/log/puppetlabs/puppetserver/puppetserver.log for a stack trace containing Puppet::Parser::Compiler failed with error NoMethodError: undefined method `scheme'?

Also can you confirm that you restarted puppetserver after updating its puppet-agent package?

Christoph F (Jira)

unread,
Mar 18, 2021, 8:42:03 AM3/18/21
to puppe...@googlegroups.com
Christoph F commented on Bug PUP-10968

Hi Josh Cooper,

thanks for reply. I restarted puppetserver and the error is gone! I also updated some gems to the most recent version.

Not exactly sure what solved my problem. Thanks for your help!

Josh Cooper (Jira)

unread,
Mar 18, 2021, 6:44:03 PM3/18/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-10968

Thanks Christoph F, I'm going to close this. If you see the problem again, please reopen.

Mihai Buzgau (Jira)

unread,
Mar 19, 2021, 2:22:03 AM3/19/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages