Puppet run on clients registered with Red Hat Satellite 6 fails with Evaluation Error: Error while evaluating a Function Call, 'new' Value of type Undef cannot be converted to Integer

Solution Verified - Updated -

Issue

  • Below error is observed on clients registered with Satellite while running puppet agent -t command:

    root@client var]# puppet agent -t
    Info: Using configured environment 'development'
    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: Evaluation Error: Error while evaluating a Resource Statement,  Evaluation Error: Error while evaluating a Function Call, 'new' Value of type Undef cannot be converted to Integer (file: /etc/puppetlabs/code/environments/development/modules/ntp/manifests/init.pp, line: 62, column: 6) on node client.example.com
    Warning: Not using cache on failed catalog
    Error: Could not retrieve catalog; skipping run
    

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content