Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::systemd #257

Closed
roiromanoclick opened this issue Sep 3, 2018 · 10 comments
Labels
needs-feedback Further information is requested

Comments

@roiromanoclick
Copy link

Im trying to install prometheus module (https://forge.puppet.com/puppet/prometheus) by puppet, and i get this error ( see the subject).
i installed all Dependencies mudole.
i working with puppet 5.3.3
my client server is centos 7 with systemd
any any suggestions?? please assits

@bastelfreak
Copy link
Member

Did you actually install the systemd module from camptocamp? Which modules do you have in your environment?

puppet module list --tree

@roiromanoclick
Copy link
Author

roiromanoclick commented Sep 3, 2018

Yes - camptocamp was installed

├── puppetlabs-aws (v2.1.0)
├── click_cluster (v0.1.0)
├── click_jenkins (v0.1.0)
├── click_nginxrepo (???)
├─┬ click_pmaster_ci (v0.1.0)
│ └── puppetlabs-vcsrepo (v2.2.0)
├─┬ click_proxy_monitoring (v0.1.0)
│ ├─┬ puppet-prometheus (v6.2.0)
│ │ ├── UNMET DEPENDENCY camptocamp-systemd (>= 1.1.1 < 3.0.0)
│ │ └─┬ puppet-archive (v1.3.0) invalid
│ │ └── puppetlabs-stdlib (v4.24.0)
│ └─┬ puppet-collectd (v5.3.0)
│ ├── puppetlabs-concat (v2.2.1)
│ ├── puppet-yum (v0.10.0)
│ └── puppetlabs-apt (v2.4.0)
├── click_proxyintegration (v0.1.0)
├── click_proxysrv (v0.1.0)
├── click_proxystudio (v0.1.0)
├─┬ click_sql (v0.1.0)
│ └─┬ jriviere-windows_sql (v0.0.9)
│ └── puppetlabs-powershell (v2.1.3)
├── click_stdprep (v0.1.0)
├─┬ click_windows_prov (v0.1.0)
│ └─┬ trlinkin-domain_membership (v1.1.2)
│ └── puppetlabs-reboot (v1.2.1)
├─┬ puppetlabs-docker (v1.0.1)
│ └── stahnma-epel (v1.2.2)
├─┬ bryana-ec2tagfacts (v0.2.0)
│ └── puppetlabs-inifile (v1.6.0)
├── pcfens-filebeat (v3.2.1)
├── filebeat_wrap (v6.1.0)
├── jordan-fileshare (v2.0.4)
├── gildas-firewall (v0.1.1)
├── puppet-logrotate (v3.0.1)
├── puppet-nginx (v0.6.0)
├── pdxcat-nrpe (v2.1.1)
├── prometheusvtwo (v0.1.0)
├── lwf-remote_file (v1.1.3)
├── branan-s3file (v1.0.1)
├── nanliu-staging (v1.0.3)
├─┬ puppetlabs-windows (v5.0.0)
│ ├── puppetlabs-acl (v1.1.2)
│ ├─┬ puppetlabs-chocolatey (v2.0.2)
│ │ └── puppetlabs-registry (v1.1.4)
│ ├── puppetlabs-dsc (v1.4.0)
│ ├── puppetlabs-iis (v4.1.2)
│ ├── puppetlabs-wsus_client (v1.0.3)
│ ├── puppet-download_file (v2.1.0)
│ ├── puppet-windows_env (v2.3.0)
│ └── puppet-windowsfeature (v2.1.0)
├── jriviere-windows_ad (v0.3.2)
├── jriviere-windows_isos (v0.0.4)
├── jriviere-windows_services (v0.0.4)
└── camptocamp-systemd (v2.0.0)

@bastelfreak
Copy link
Member

mhm I do not know why the systemd module is not detected as a proper dependency in your env. In general this works, as our acceptance tests show. Did you try to rebuild the env?

@roiromanoclick
Copy link
Author

roiromanoclick commented Sep 4, 2018 via email

@bastelfreak
Copy link
Member

Can you again do puppet module list --tree and show your puppet manifest that calls the prometheus class? this sounds like some generic puppet issues. Maybe it is easier
to debug them at https://puppetcommunity.slack.com

@roiromanoclick
Copy link
Author

roiromanoclick commented Sep 4, 2018

this is the tree:
/etc/puppetlabs/code/environments/production/modules
├── puppetlabs-aws (v2.1.0)
├── cluster (v0.1.0)
├── cenkins (v0.1.0)
├── nginxrepo (???)
├─┬ pmaster_ci (v0.1.0)
│ └── puppetlabs-vcsrepo (v2.2.0)
├─┬ proxy_monitoring (v0.1.0)
│ ├─┬ puppet-prometheus (v6.2.0)
│ │ ├─┬ puppet-archive (v3.2.0)
│ │ │ └── puppetlabs-stdlib (v5.0.0)
│ │ └── camptocamp-systemd (v2.1.0)
│ └─┬ puppet-collectd (v5.3.0)
│ ├── puppetlabs-concat (v2.2.1)
│ ├── puppet-yum (v0.10.0)
│ └── puppetlabs-apt (v2.4.0)
├── proxyintegration (v0.1.0)
├── proxysrv (v0.1.0)
├── proxystudio (v0.1.0)
├─┬ sql (v0.1.0)
│ └─┬ jriviere-windows_sql (v0.0.9)
│ └── puppetlabs-powershell (v2.1.3)
├── stdprep (v0.1.0)
├─┬ windows_prov (v0.1.0)
│ └─┬ trlinkin-domain_membership (v1.1.2)
│ └── puppetlabs-reboot (v1.2.1)
├─┬ puppetlabs-docker (v1.0.1)
│ └── stahnma-epel (v1.2.2)
├─┬ bryana-ec2tagfacts (v0.2.0)
│ └── puppetlabs-inifile (v1.6.0)
├── pcfens-filebeat (v3.2.1)
├── filebeat_wrap (v6.1.0)
├── jordan-fileshare (v2.0.4)
├── gildas-firewall (v0.1.1)
├── puppet-logrotate (v3.0.1)
├── puppet-nginx (v0.6.0)
├── pdxcat-nrpe (v2.1.1)
├── prometheusvtwo (v0.1.0)
├── lwf-remote_file (v1.1.3)
├── branan-s3file (v1.0.1)
├── nanliu-staging (v1.0.3)
├─┬ puppetlabs-windows (v5.0.0)
│ ├── puppetlabs-acl (v1.1.2)
│ ├─┬ puppetlabs-chocolatey (v2.0.2)
│ │ └── puppetlabs-registry (v1.1.4)
│ ├── puppetlabs-dsc (v1.4.0)
│ ├── puppetlabs-iis (v4.1.2)
│ ├── puppetlabs-wsus_client (v1.0.3)
│ ├── puppet-download_file (v2.1.0)
│ ├── puppet-windows_env (v2.3.0)
│ └── puppet-windowsfeature (v2.1.0)
├── jriviere-windows_ad (v0.3.2)
├── jriviere-windows_isos (v0.0.4)
└── jriviere-windows_services (v0.0.4)

this is my site.pp:

node /^.*.cloud.com$/ {

notify {"site.pp: ec2_tag_role=${::ec2_tag_role}":}

case $::ec2_tag_role {
'MNG-PROXY-IN': {
include epel
include filebeat_wrap
}
'MNG-PROXY-STUDIO': {
include epel
include filebeat_wrap
}
'MNG-PROXY-SRV': {
include epel
include filebeat_wrap
}
'JENKINS': {
include cjenkins
}
'MNG-PROMETHEUS': {
include filebeat_wrap
include ::prometheus # this is the parameter
}

}
}

about the slack, i should have user for this channel ?

@bastelfreak
Copy link
Member

hrm the env looks fine now. No idea why it fails for you. You need to sign up to access the slack rooms.

@binford2k
Copy link
Member

Tangent: sign up for the slack channel via slack.puppet.com

@dhoppe
Copy link
Member

dhoppe commented May 25, 2020

@roiromanoclick Are you still affected by this problem?

@dhoppe dhoppe added the needs-feedback Further information is requested label May 25, 2020
@roiromanoclick
Copy link
Author

roiromanoclick commented May 25, 2020 via email

@dhoppe dhoppe closed this as completed May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-feedback Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants