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

Augeas related error messages under Debian Jessie #40

Open
kalbfuss opened this issue Mar 20, 2016 · 1 comment
Open

Augeas related error messages under Debian Jessie #40

kalbfuss opened this issue Mar 20, 2016 · 1 comment

Comments

@kalbfuss
Copy link

I am receiving multiple warnings and error messages which seem to be related to Augeas (see end of ticket). Since I am new to puppet and have never worked with Augeas before I am unable to solve (even understand) the problem. Here is the puppet code I am trying to execute:

.../puppet/modules/my_mail/manifests/dovecot.pp

class my_mail::dovecot {
include dovecot
class { dovecot::ssl:
ssl => 'yes',
ssl_keyfile => '/etc/ssl/private/ssl-cert-snakeoil.key',
ssl_certfile => '/etc/ssl/certs/ssl-cert-snakeoil.pem',
}
include dovecot::sieve
class { dovecot::master:
postfix => yes
}
include dovecot::mail
class { dovecot::lda:
postmaster_address => '[email protected]'
}
include dovecot::imap
include dovecot::base
include dovecot::auth
}

.../puppet/manifests/site.pp

class { 'my_mail::dovecot' : }

Some facts about my setup:

OS: Debian Jessie (Raspbian)
Puppet: 3.7.2-4
mjhas/dovecot: latest (2016-03-19)
Postfix: 2.11.3-1

Anything I can do to fix the problem? I will be happy to test and provide further information. Thanks in advance for any help you can provide.

Cheers,

Bernd

Error: /Stage[main]/Dovecot::Master/Dovecot::Config::Dovecotcfmulti[/etc/dovecot/conf.d/10-master.conf-userdblistener0]/Augeas[dovecot /etc/dovecot/conf.d/10-master.conf /etc/dovecot/conf.d/10-master.conf-userdblistener0]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Sieve/Dovecot::Config::Dovecotcfmulti[plugin]/Augeas[dovecot /etc/dovecot/conf.d/90-plugin.conf plugin]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Master/Dovecot::Config::Dovecotcfsingle[service[ . = "auth-worker"]/group]/Augeas[dovecot /etc/dovecot/conf.d/10-master.conf service[ . = "auth-worker"]/group]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Imap/Dovecot::Config::Dovecotcfmulti[imap]/Augeas[dovecot /etc/dovecot/conf.d/20-imap.conf imap]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Mail/Dovecot::Config::Dovecotcfmulti[mail]/Augeas[dovecot /etc/dovecot/conf.d/10-mail.conf mail]: Could not evaluate: unknown error - Failed to initialize Augeas
...
Warning: /Stage[main]/Dovecot::Master/Dovecot::Config::Dovecotcfmulti[/etc/dovecot/conf.d/10-master.conf-userdblistener1]/Augeas[dovecot /etc/dovecot/conf.d/10-master.conf /etc/dovecot/conf.d/10-master.conf-userdblistener1]: Skipping because of failed dependencies
Error: /Stage[main]/Dovecot::Lda/Dovecot::Config::Dovecotcfmulti[lda]/Augeas[dovecot /etc/dovecot/conf.d/15-lda.conf lda]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Ssl/Dovecot::Config::Dovecotcfsingle[ssl_ca]/Augeas[dovecot /etc/dovecot/conf.d/10-ssl.conf ssl_ca]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Ssl/Dovecot::Config::Dovecotcfsingle[ssl_key]/Augeas[dovecot /etc/dovecot/conf.d/10-ssl.conf ssl_key]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Ssl/Dovecot::Config::Dovecotcfsingle[ssl_key_password]/Augeas[dovecot /etc/dovecot/conf.d/10-ssl.conf ssl_key_password]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Ssl/Dovecot::Config::Dovecotcfsingle[ssl]/Augeas[dovecot /etc/dovecot/conf.d/10-ssl.conf ssl]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Ssl/Dovecot::Config::Dovecotcfsingle[ssl_cert]/Augeas[dovecot /etc/dovecot/conf.d/10-ssl.conf ssl_cert]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Base/Dovecot::Config::Dovecotcfmulti[base]/Augeas[dovecot /etc/dovecot/dovecot.conf base]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Auth/Dovecot::Config::Dovecotcfmulti[auth]/Augeas[dovecot /etc/dovecot/conf.d/10-auth.conf auth]: Could not evaluate: unknown error - Failed to initialize Augeas
Error: /Stage[main]/Dovecot::Master/Dovecot::Config::Dovecotcfsingle[service[ . = "auth-worker"]/user]/Augeas[dovecot /etc/dovecot/conf.d/10-master.conf service[ . = "auth-worker"]/user]: Could not evaluate: unknown error - Failed to initialize Augeas

@kalbfuss
Copy link
Author

In the meanwhile I have found out that the problem was exclusively augeas related. A broken lense ("yum.aug") prevented augeas from starting properly. In the presence of this lense, the following error messages were returned by augtool:

$ augtool /print//error
error: Syntax error in lens definition
/usr/share/augeas/lenses/dist/yum.aug:33.14-.37:Undefined variable Build.combine_three_opt
/usr/share/augeas/lenses/dist/yum.aug:43.28-.35:Undefined variable entries
/usr/share/augeas/lenses/dist/yum.aug:49.34-.40:Undefined variable record
/usr/share/augeas/lenses/dist/yum.aug:58.22-.25:Undefined variable lns

Deleting the lense fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant