Issue #4285 has been updated by James Turnbull.

Sorry forgot server stacktrace:

<pre>

debug: importing '/etc/puppet/modules/sudo/manifests/init.pp' in environment 
production
info: Automatically imported sudo from sudo
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:114:in `alias'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:83:in `add_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:72:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:72:in `add_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:52:in `add_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/resource.rb:55:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/util/errors.rb:35:in `exceptwrap'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/resource.rb:37:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/resource.rb:36:in `collect'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/resource.rb:36:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast.rb:72:in `safeevaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:35:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:34:in `collect'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/astarray.rb:34:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast.rb:72:in `safeevaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/type.rb:75:in `evaluate_code'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/resource.rb:69:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:150:in `evaluate_classes'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:141:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:141:in `evaluate_classes'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/functions/include.rb:6:in 
`function_include'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:34:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb:34:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/ast.rb:72:in `safeevaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/type.rb:75:in `evaluate_code'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/resource.rb:69:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:224:in `evaluate_ast_node'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:102:in `compile'
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:18:in `compile'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in 
`compile'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:175:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:174:in `benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:75:in 
`compile'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:34:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:193:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:101:in `do_find'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:68:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:68:in `process'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick/rest.rb:23:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in `listen'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `call'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in `listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:38:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:38:in `listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:127:in `listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:142:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:125:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:114:in `main'
/usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:46:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:398:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:55:in `execute'
/usr/bin/puppet:4
err: Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot 
alias File[file2] to [nil]; resource ["File", [nil]] already exists at 
/etc/puppet/modules/sudo/manifests/init.pp:11 on node pelin.lovedthanlost.net
/usr/lib/ruby/site_ruby/1.8/puppet/parser/compiler.rb:21:in `compile'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:77:in 
`compile'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:175:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:174:in `benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:75:in 
`compile'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/catalog/compiler.rb:34:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:193:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:50:in `find'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:101:in `do_find'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:68:in `send'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/handler.rb:68:in `process'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick/rest.rb:23:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:45:in `listen'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `call'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:42:in `listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:41:in `listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:38:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:38:in `listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:127:in `listen'
/usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:142:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:125:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:114:in `main'
/usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:46:in `run_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:398:in `exit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:301:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:55:in `execute'
/usr/bin/puppet:4
err: Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot 
alias File[file2] to [nil]; resource ["File", [nil]] already exists at 
/etc/puppet/modules/sudo/manifests/init.pp:11 on node pelin.lovedthanlost.net
debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/private]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring 
File[/var/lib/puppet/ssl/certs]
debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/certs/pelin.lovedthanlost.net.pem]: 
Autorequiring File[/var/lib/puppet/ssl/certs]
debug: /File[/var/lib/puppet/ssl/public_keys/pelin.lovedthanlost.net.pem]: 
Autorequiring File[/var/lib/puppet/ssl/public_keys]
debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring 
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/reports]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/private_keys/pelin.lovedthanlost.net.pem]: 
Autorequiring File[/var/lib/puppet/ssl/private_keys]
debug: Finishing transaction -616213168
debug: //pelin.lovedthanlost.net/Puppet: Using cached certificate for ca
debug: //pelin.lovedthanlost.net/Puppet: Using cached certificate for 
pelin.lovedthanlost.net
debug: //pelin.lovedthanlost.net//File[/var/lib/puppet/ssl]: Autorequiring 
File[/var/lib/puppet]
debug: //pelin.lovedthanlost.net//File[/var/lib/puppet/ssl/crl.pem]: 
Autorequiring File[/var/lib/puppet/ssl]
debug: //pelin.lovedthanlost.net//File[/var/lib/puppet/facts]: Autorequiring 
File[/var/lib/puppet]
debug: 
//pelin.lovedthanlost.net//File[/var/lib/puppet/ssl/certificate_requests]: 
Autorequiring File[/var/lib/puppet/ssl]
debug: //pelin.lovedthanlost.net//File[/var/lib/puppet/ssl/public_keys]: 
Autorequiring File[/var/lib/puppet/ssl]
debug: //pelin.lovedthanlost.net//File[/var/lib/puppet/ssl/certs]: 
Autorequiring File[/var/lib/puppet/ssl]
debug: //pelin.lovedthanlost.net//File[/var/lib/puppet/ssl/private]: 
Autorequiring File[/var/lib/puppet/ssl]
debug: //pelin.lovedthanlost.net//File[/var/lib/puppet/lib]: Autorequiring 
File[/var/lib/puppet]
debug: 
//pelin.lovedthanlost.net//File[/var/lib/puppet/ssl/public_keys/pelin.lovedthanlost.net.pem]:
 Autorequiring File[/var/lib/puppet/ssl/public_keys]
debug: 
//pelin.lovedthanlost.net//File[/var/lib/puppet/ssl/private_keys/pelin.lovedthanlost.net.pem]:
 Autorequiring File[/var/lib/puppet/ssl/private_keys]
debug: //pelin.lovedthanlost.net//File[/var/lib/puppet/state]: Autorequiring 
File[/var/lib/puppet]
debug: //pelin.lovedthanlost.net//File[/var/lib/puppet/ssl/certs/ca.pem]: 
Autorequiring File[/var/lib/puppet/ssl/certs]
debug: 
//pelin.lovedthanlost.net//File[/var/lib/puppet/ssl/certs/pelin.lovedthanlost.net.pem]:
 Autorequiring File[/var/lib/puppet/ssl/certs]
debug: //pelin.lovedthanlost.net//File[/var/lib/puppet/ssl/private_keys]: 
Autorequiring File[/var/lib/puppet/ssl]
debug: //pelin.lovedthanlost.net//File[/var/lib/puppet/reports]: Autorequiring 
File[/var/lib/puppet]
debug: //pelin.lovedthanlost.net/Puppet: Finishing transaction -614748968
debug: //pelin.lovedthanlost.net/Puppet: Using cached 
certificate_revocation_list for ca
debug: //pelin.lovedthanlost.net/Puppet: catalog supports formats: 
b64_zlib_yaml dot marshal pson raw yaml; using pson
err: //pelin.lovedthanlost.net/Puppet: Could not retrieve catalog from remote 
server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error 
ArgumentError: Cannot alias File[file2] to [nil]; resource ["File", [nil]] 
already exists at /etc/puppet/modules/sudo/manifests/init.pp:11 on node 
pelin.lovedthanlost.net
info: //pelin.lovedthanlost.net/Puppet: Not using expired catalog for 
pelin.lovedthanlost.net from cache; expired at Sun Jul 18 17:32:13 -0700 2010
notice: //pelin.lovedthanlost.net/Puppet: Using cached catalog
err: //pelin.lovedthanlost.net/Puppet: Could not retrieve catalog; skipping run
</pre>
----------------------------------------
Bug #4285: ArgumentError: Cannot alias File[mytitle] to [nil]
http://projects.puppetlabs.com/issues/4285

Author: Alan Barrett
Status: Accepted
Priority: Normal
Assigned to: Markus Roberts
Category: 
Target version: 2.6.0
Affected version: 2.6.0rc4
Keywords: 
Branch: 


With puppet 2.6.0rc4, I get the following error:

<pre>
Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot alias 
File[mytitle] to [nil]; resource ["File", [nil]] already exists at 
/dir/filename.pp:25 on node myhost.domain.example
</pre>

The offending part of the manifest is

<pre>
file { "mytitle":
    name => "/dir/subdir/file",
    source => "puppet:///modules/mymodule/file",
}
</pre>

Most of my file resources do not have explicit "name" parameters", and have the 
full path name in the title parameter.  The error appears to be triggered by 
the second file resource that has an explicit "name" parameter.
I have been unable to create a small standalone manifest that demonstrates the 
problem.



-- 
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

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to