shinesolutions / puppet-amazon-ssm-agent

Puppet Module for provisioning AWS Systems Manager Agent
Apache License 2.0
2 stars 14 forks source link

Getting "Server Error: Evaluation Error: Error while evaluating a Function Call, Module support for upstart service provider has been temporarily disabled" #4

Open SohamChakraborty opened 5 years ago

SohamChakraborty commented 5 years ago

I am getting the following error during puppet agent runs with version 0.9.4 of the module.

root@agentname:~# puppet  agent -t
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: Evaluation Error: Error while evaluating a Function Call, Module support for upstart service provider has been temporarily disabled (file: /etc/puppetlabs/code/environments/production/modules/amazon_ssm_agent/manifests/init.pp, line: 78, column: 9) on node agentname.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

The ssm.pp is:

$ cat ssm.pp 
class mymodule::ssm {

  class { 'amazon_ssm_agent':
    region => 'us-east-1',
  }

}

The error is pretty self evident from the message but I am wondering why I am hitting this on systemd based server.

# ps -p 1
  PID TTY          TIME CMD
    1 ?        00:00:03 systemd

OS: Ubuntu 18.04

cliffano commented 4 years ago

@SohamChakraborty The most likely explanation is that the OS family for Ubuntu is not yet configured to use systemd in puppet-amazon-ssm-agent. My apology for super late reply of this issue, I have just recently had the time to revisit old issues.

zahradaryan123 commented 4 years ago

I am getting the following error during puppet agent runs with version 0.9.4 of the module.


root@agentname:~# puppet  agent -t

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: Evaluation Error: Error while evaluating a Function Call, Module support for upstart service provider has been temporarily disabled (file: /etc/puppetlabs/code/environments/production/modules/amazon_ssm_agent/manifests/init.pp, line: 78, column: 9) on node agentname.com

Warning: Not using cache on failed catalog

Error: Could not retrieve catalog; skipping run

The ssm.pp is:


$ cat ssm.pp 

class mymodule::ssm {

  class { 'amazon_ssm_agent':

    region => 'us-east-1',

  }

}

The error is pretty self evident from the message but I am wondering why I am hitting this on systemd based server.


# ps -p 1

  PID TTY          TIME CMD

    1 ?        00:00:03 systemd

OS: Ubuntu 18.04

SohamChakraborty commented 4 years ago

@zahradaryan123 Try this please: https://github.com/SohamChakraborty/puppet-amazon-ssm-agent