[Puppet - Bug #5285] (Unreviewed) Error "Could not evaluate: Got nil value for content" when trying to serve a symlink's content from the server

35 views
Skip to first unread message

tic...@puppetlabs.com

unread,
Nov 13, 2010, 11:57:26 AM11/13/10
to ja...@lovedthanlost.net, je...@puppetlabs.com, peter...@immerda.ch, puppe...@googlegroups.com, r...@devco.net, d...@puppetlabs.com, Ma...@puppetlabs.com, da...@dasz.at, ja...@puppetlabs.com, pup...@thequod.de
Issue #5285 has been reported by Daniel Hahler.

Bug #5285: Error "Could not evaluate: Got nil value for content" when trying to serve a symlink's content from the server

  • Author: Daniel Hahler
  • Status: Unreviewed
  • Priority: Normal
  • Assignee:
  • Category:
  • Target version:
  • Affected Puppet version: 2.6.2
  • Keywords:
  • Branch:

I want to serve a file using a symlink (but it should serve it’s content):

file { “/root/.gitconfig”:

source => "puppet:///files/gitconfig-root",

}

root@puppetmaster # ls -l /etc/puppet/files/gitconfig-root lrwxrwxrwx 1 root root 16 Nov 13 17:39 /etc/puppet/files/gitconfig-root –> /root/.gitconfig

/root/.gitconfig exists and is a regular file.

Here’s the trace:

puppetd —test —trace —verbose

/dev/mem: Operation not permitted info: Caching catalog for elfe.thequod.de info: Applying configuration version ‘1289666799’ /usr/lib/ruby/1.8/puppet/type.rb:409:in []=' /usr/lib/ruby/1.8/puppet/type/file/source.rb:119:incopy_source_values' /usr/lib/ruby/1.8/puppet/type/file/source.rb:113:in each' /usr/lib/ruby/1.8/puppet/type/file/source.rb:113:incopy_source_values' /usr/lib/ruby/1.8/puppet/type/file.rb:632:in retrieve' /usr/lib/ruby/1.8/puppet/type.rb:703:inretrieve_resource' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:39:in changes_to_perform' /usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:87:inevaluate' /usr/lib/ruby/1.8/puppet/transaction.rb:49:in apply' /usr/lib/ruby/1.8/puppet/transaction.rb:114:ineval_children_and_apply_resource' /usr/lib/ruby/1.8/puppet/transaction.rb:92:in eval_resource' /usr/lib/ruby/1.8/puppet/transaction.rb:143:inevaluate' /usr/lib/ruby/1.8/puppet/util.rb:422:in thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:inrealtime' /usr/lib/ruby/1.8/puppet/util.rb:421:in thinmark' /usr/lib/ruby/1.8/puppet/transaction.rb:142:inevaluate' /usr/lib/ruby/1.8/puppet/transaction.rb:135:in each' /usr/lib/ruby/1.8/puppet/transaction.rb:135:inevaluate' /usr/lib/ruby/1.8/puppet/resource/catalog.rb:144:in apply' /usr/lib/ruby/1.8/puppet/configurer.rb:152:inrun' /usr/lib/ruby/1.8/puppet/util.rb:183:in benchmark' /usr/lib/ruby/1.8/benchmark.rb:308:inrealtime' /usr/lib/ruby/1.8/puppet/util.rb:182:in benchmark' /usr/lib/ruby/1.8/puppet/configurer.rb:151:inrun' /usr/lib/ruby/1.8/puppet/agent.rb:39:in run' /usr/lib/ruby/1.8/puppet/agent/locker.rb:21:inlock' /usr/lib/ruby/1.8/puppet/agent.rb:39:in run' /usr/lib/ruby/1.8/sync.rb:230:insynchronize' /usr/lib/ruby/1.8/puppet/agent.rb:39:in run' /usr/lib/ruby/1.8/puppet/agent.rb:103:inwith_client' /usr/lib/ruby/1.8/puppet/agent.rb:37:in run' /usr/lib/ruby/1.8/puppet/application.rb:171:incall' /usr/lib/ruby/1.8/puppet/application.rb:171:in controlled_run' /usr/lib/ruby/1.8/puppet/agent.rb:35:inrun' /usr/lib/ruby/1.8/puppet/application/agent.rb:114:in onetime' /usr/lib/ruby/1.8/puppet/application/agent.rb:88:inrun_command' /usr/lib/ruby/1.8/puppet/application.rb:287:in run' /usr/lib/ruby/1.8/puppet/application.rb:393:inexit_on_fail' /usr/lib/ruby/1.8/puppet/application.rb:287:in `run' /usr/sbin/puppetd:4 err: /Stage[main]/Dotfiles/File[/root/.gitconfig]: Could not evaluate: Got nil value for content notice: /Stage[main]/Cron/Service[puppet]/ensure: ensure changed ‘running’ to ‘stopped’ notice: Finished catalog run in 1.73 seconds


You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account

tic...@puppetlabs.com

unread,
Mar 21, 2011, 8:06:37 PM3/21/11
to ja...@lovedthanlost.net, peter...@immerda.ch, puppe...@googlegroups.com, r...@devco.net, Ma...@puppetlabs.com, da...@dasz.at, n...@puppetlabs.com, dom...@puppetlabs.com, ja...@puppetlabs.com, pup...@thequod.de, ni...@puppetlabs.com, brice-...@daysofwonder.com
Issue #5285 has been updated by Nigel Kersten.

Actually, does just adding:

links => follow

do the right thing for you?

  • Author: Daniel Hahler
  • Status: Needs More Information
  • Priority: Normal
  • Assignee: Nigel Kersten
  • Category:
  • Target version:
  • Affected Puppet version: 2.6.2
  • Keywords:
  • Branch:

I want to serve a file using a symlink (but it should serve it’s content):

  file { "/root/.gitconfig":
    source => "puppet:///files/gitconfig-root",
  }
root@puppetmaster # ls -l /etc/puppet/files/gitconfig-root 
lrwxrwxrwx 1 root root 16 Nov 13 17:39 /etc/puppet/files/gitconfig-root -> /root/.gitconfig

/root/.gitconfig exists and is a regular file.

Here’s the trace:

# puppetd --test --trace --verbose
/dev/mem: Operation not permitted
info: Caching catalog for elfe.thequod.de
info: Applying configuration version '1289666799'
/usr/lib/ruby/1.8/puppet/type.rb:409:in `[]='
/usr/lib/ruby/1.8/puppet/type/file/source.rb:119:in `copy_source_values'
/usr/lib/ruby/1.8/puppet/type/file/source.rb:113:in `each'
/usr/lib/ruby/1.8/puppet/type/file/source.rb:113:in `copy_source_values'
/usr/lib/ruby/1.8/puppet/type/file.rb:632:in `retrieve'
/usr/lib/ruby/1.8/puppet/type.rb:703:in `retrieve_resource'
/usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:39:in `changes_to_perform'
/usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:87:in `evaluate'
/usr/lib/ruby/1.8/puppet/transaction.rb:49:in `apply'
/usr/lib/ruby/1.8/puppet/transaction.rb:114:in `eval_children_and_apply_resource'
/usr/lib/ruby/1.8/puppet/transaction.rb:92:in `eval_resource'
/usr/lib/ruby/1.8/puppet/transaction.rb:143:in `evaluate'
/usr/lib/ruby/1.8/puppet/util.rb:422:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:421:in `thinmark'
/usr/lib/ruby/1.8/puppet/transaction.rb:142:in `evaluate'
/usr/lib/ruby/1.8/puppet/transaction.rb:135:in `each'
/usr/lib/ruby/1.8/puppet/transaction.rb:135:in `evaluate'
/usr/lib/ruby/1.8/puppet/resource/catalog.rb:144:in `apply'
/usr/lib/ruby/1.8/puppet/configurer.rb:152:in `run'
/usr/lib/ruby/1.8/puppet/util.rb:183:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:182:in `benchmark'
/usr/lib/ruby/1.8/puppet/configurer.rb:151:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:103:in `with_client'
/usr/lib/ruby/1.8/puppet/agent.rb:37:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:171:in `call'
/usr/lib/ruby/1.8/puppet/application.rb:171:in `controlled_run'
/usr/lib/ruby/1.8/puppet/agent.rb:35:in `run'
/usr/lib/ruby/1.8/puppet/application/agent.rb:114:in `onetime'
/usr/lib/ruby/1.8/puppet/application/agent.rb:88:in `run_command'
/usr/lib/ruby/1.8/puppet/application.rb:287:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:393:in `exit_on_fail'
/usr/lib/ruby/1.8/puppet/application.rb:287:in `run'
/usr/sbin/puppetd:4
err: /Stage[main]/Dotfiles/File[/root/.gitconfig]: Could not evaluate: Got nil value for content
notice: /Stage[main]/Cron/Service[puppet]/ensure: ensure changed 'running' to 'stopped'
notice: Finished catalog run in 1.73 seconds

tic...@puppetlabs.com

unread,
Dec 19, 2011, 8:50:16 PM12/19/11
to puppe...@googlegroups.com, r...@devco.net, n...@puppetlabs.com, tux...@gmail.com, sanjiv...@gmail.com, pup...@thequod.de, ni...@puppetlabs.com, brice-...@daysofwonder.com
Issue #5285 has been updated by James Turnbull.

Is this a duplicate of #6856?

  • Author: Daniel Hahler
  • Status: Needs More Information
  • Priority: Normal
  • Assignee: Nigel Kersten
  • Category:
  • Target version:
  • Affected Puppet version: 2.6.2
  • Keywords:
  • Branch:

I want to serve a file using a symlink (but it should serve it’s content):

  file { "/root/.gitconfig":
    source => "puppet:///files/gitconfig-root",
  }
root@puppetmaster # ls -l /etc/puppet/files/gitconfig-root 
lrwxrwxrwx 1 root root 16 Nov 13 17:39 /etc/puppet/files/gitconfig-root -> /root/.gitconfig

/root/.gitconfig exists and is a regular file.

Here’s the trace:

# puppetd --test --trace --verbose
/dev/mem: Operation not permitted
info: Caching catalog for elfe.thequod.de
info: Applying configuration version '1289666799'
/usr/lib/ruby/1.8/puppet/type.rb:409:in `[]='
/usr/lib/ruby/1.8/puppet/type/file/source.rb:119:in `copy_source_values'
/usr/lib/ruby/1.8/puppet/type/file/source.rb:113:in `each'
/usr/lib/ruby/1.8/puppet/type/file/source.rb:113:in `copy_source_values'
/usr/lib/ruby/1.8/puppet/type/file.rb:632:in `retrieve'
/usr/lib/ruby/1.8/puppet/type.rb:703:in `retrieve_resource'
/usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:39:in `changes_to_perform'
/usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:87:in `evaluate'
/usr/lib/ruby/1.8/puppet/transaction.rb:49:in `apply'
/usr/lib/ruby/1.8/puppet/transaction.rb:114:in `eval_children_and_apply_resource'
/usr/lib/ruby/1.8/puppet/transaction.rb:92:in `eval_resource'
/usr/lib/ruby/1.8/puppet/transaction.rb:143:in `evaluate'
/usr/lib/ruby/1.8/puppet/util.rb:422:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:421:in `thinmark'
/usr/lib/ruby/1.8/puppet/transaction.rb:142:in `evaluate'
/usr/lib/ruby/1.8/puppet/transaction.rb:135:in `each'
/usr/lib/ruby/1.8/puppet/transaction.rb:135:in `evaluate'
/usr/lib/ruby/1.8/puppet/resource/catalog.rb:144:in `apply'
/usr/lib/ruby/1.8/puppet/configurer.rb:152:in `run'
/usr/lib/ruby/1.8/puppet/util.rb:183:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:182:in `benchmark'
/usr/lib/ruby/1.8/puppet/configurer.rb:151:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:103:in `with_client'
/usr/lib/ruby/1.8/puppet/agent.rb:37:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:171:in `call'
/usr/lib/ruby/1.8/puppet/application.rb:171:in `controlled_run'
/usr/lib/ruby/1.8/puppet/agent.rb:35:in `run'
/usr/lib/ruby/1.8/puppet/application/agent.rb:114:in `onetime'
/usr/lib/ruby/1.8/puppet/application/agent.rb:88:in `run_command'
/usr/lib/ruby/1.8/puppet/application.rb:287:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:393:in `exit_on_fail'
/usr/lib/ruby/1.8/puppet/application.rb:287:in `run'
/usr/sbin/puppetd:4
err: /Stage[main]/Dotfiles/File[/root/.gitconfig]: Could not evaluate: Got nil value for content
notice: /Stage[main]/Cron/Service[puppet]/ensure: ensure changed 'running' to 'stopped'
notice: Finished catalog run in 1.73 seconds

tic...@puppetlabs.com

unread,
Dec 19, 2011, 9:23:39 PM12/19/11
to ja...@lovedthanlost.net, puppe...@googlegroups.com, r...@devco.net, n...@puppetlabs.com, tux...@gmail.com, sanjiv...@gmail.com, pup...@thequod.de, ni...@puppetlabs.com, brice-...@daysofwonder.com
Issue #5285 has been updated by Nigel Kersten.
  • Status changed from Needs More Information to Duplicate
  • Author: Daniel Hahler
  • Status: Duplicate
  • Priority: Normal
  • Assignee: Nigel Kersten
  • Category:
  • Target version:
  • Affected Puppet version: 2.6.2
  • Keywords:
  • Branch:

I want to serve a file using a symlink (but it should serve it’s content):

  file { "/root/.gitconfig":
    source => "puppet:///files/gitconfig-root",
  }
root@puppetmaster # ls -l /etc/puppet/files/gitconfig-root 
lrwxrwxrwx 1 root root 16 Nov 13 17:39 /etc/puppet/files/gitconfig-root -> /root/.gitconfig

/root/.gitconfig exists and is a regular file.

Here’s the trace:

# puppetd --test --trace --verbose
/dev/mem: Operation not permitted
info: Caching catalog for elfe.thequod.de
info: Applying configuration version '1289666799'
/usr/lib/ruby/1.8/puppet/type.rb:409:in `[]='
/usr/lib/ruby/1.8/puppet/type/file/source.rb:119:in `copy_source_values'
/usr/lib/ruby/1.8/puppet/type/file/source.rb:113:in `each'
/usr/lib/ruby/1.8/puppet/type/file/source.rb:113:in `copy_source_values'
/usr/lib/ruby/1.8/puppet/type/file.rb:632:in `retrieve'
/usr/lib/ruby/1.8/puppet/type.rb:703:in `retrieve_resource'
/usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:39:in `changes_to_perform'
/usr/lib/ruby/1.8/puppet/transaction/resource_harness.rb:87:in `evaluate'
/usr/lib/ruby/1.8/puppet/transaction.rb:49:in `apply'
/usr/lib/ruby/1.8/puppet/transaction.rb:114:in `eval_children_and_apply_resource'
/usr/lib/ruby/1.8/puppet/transaction.rb:92:in `eval_resource'
/usr/lib/ruby/1.8/puppet/transaction.rb:143:in `evaluate'
/usr/lib/ruby/1.8/puppet/util.rb:422:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:421:in `thinmark'
/usr/lib/ruby/1.8/puppet/transaction.rb:142:in `evaluate'
/usr/lib/ruby/1.8/puppet/transaction.rb:135:in `each'
/usr/lib/ruby/1.8/puppet/transaction.rb:135:in `evaluate'
/usr/lib/ruby/1.8/puppet/resource/catalog.rb:144:in `apply'
/usr/lib/ruby/1.8/puppet/configurer.rb:152:in `run'
/usr/lib/ruby/1.8/puppet/util.rb:183:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:182:in `benchmark'
/usr/lib/ruby/1.8/puppet/configurer.rb:151:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:103:in `with_client'
/usr/lib/ruby/1.8/puppet/agent.rb:37:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:171:in `call'
/usr/lib/ruby/1.8/puppet/application.rb:171:in `controlled_run'
/usr/lib/ruby/1.8/puppet/agent.rb:35:in `run'
/usr/lib/ruby/1.8/puppet/application/agent.rb:114:in `onetime'
/usr/lib/ruby/1.8/puppet/application/agent.rb:88:in `run_command'
/usr/lib/ruby/1.8/puppet/application.rb:287:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:393:in `exit_on_fail'
/usr/lib/ruby/1.8/puppet/application.rb:287:in `run'
/usr/sbin/puppetd:4
err: /Stage[main]/Dotfiles/File[/root/.gitconfig]: Could not evaluate: Got nil value for content
notice: /Stage[main]/Cron/Service[puppet]/ensure: ensure changed 'running' to 'stopped'
notice: Finished catalog run in 1.73 seconds
Reply all
Reply to author
Forward
0 new messages