Ask Your Question
0

undefined method `[]=' for :chec:Symbol

asked 2014-02-11 06:11:06 -0500

onitlikesonic gravatar image

updated 2014-02-17 07:08:18 -0500

Getting this strange message when making a puppet run on one of my servers (note: runs fine on all others):

Fri Feb 07 18:00:48 +0000 2014 /File[/logs/puppet/puppet.log.1] (err): Could not evaluate: undefined method `[]=' for :chec:Symbol

The only statement that might be generating this is:

# Create puppet Logs folder
    file { "create-puppet-logs-folder" :
        path => "/logs/puppet/",
        ensure => directory,
        mode  => 777,
        recurse => true,
    }

NOTE: when i clean up the logs folder the puppet run executes OK...

Puppet version: 2.7.19-1puppetlabs2

OS: Ubuntu 12.04

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-07 18:00:38 -0500

Henrik Lindberg gravatar image

The problem is caused because there is a Ruby symbol that is being used instead of a String. This is an internal problem in puppet, or in files that have been produced. What specifically causes this to happen in the very old puppet version 2.7.19 I cannot say. Puppet is at 4.3.2 now, and soon 4.4.0. Think you should consider upgrading if you can - note that with 4.x Agents come bundled with everything that is needed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-02-11 06:11:06 -0500

Seen: 52 times

Last updated: Feb 17 '14