# Getting an error when trying to import Vcenter template

**URL:** <https://forum.opennebula.io/t/getting-an-error-when-trying-to-import-vcenter-template/4768>\
**Category:** Product Support\
**Created:** [August 16, 2017, 12:50am UTC](https://forum.opennebula.io/t/getting-an-error-when-trying-to-import-vcenter-template/4768 "2017-08-16T00:50:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webguyz](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/webguyz/32/5253_2.png) [@webguyz](https://forum.opennebula.io/u/webguyz)\
**Post date:** [August 16, 2017, 12:50am UTC](https://forum.opennebula.io/t/getting-an-error-when-trying-to-import-vcenter-template/4768/1 "2017-08-16T00:50:41Z")

</div>

New user making a first attempt to import a vcenter into a new Openebula 5.4 server.

I tried using Sunstone but was getting an error so I tried it using the onevcenter commandline tool. Got an error but not sure how to start troubleshooting it. Any hints on where to look next would be appreciated. Is there a log file I should be looking at?

root@opennebula:~# onevcenter templates --vcenter [vcsa.xxxxxxx.net](http://vcsa.xxxxxxx.net) --vuser [administrator@xxxxx.xxx](mailto:administrator@xxxxx.xxx) --vpass xxxxxx

Connecting to vCenter: [vcsa.xxxxxxxx.net](http://vcsa.xxxxxxxx.net)…done!

Looking for VM Templates…There was an error trying to import a vcenter template: [[one.templatepool.info](http://one.templatepool.info)] User couldn’t be authenticated, aborting call./  
["/usr/lib/one/ruby/vcenter\_driver/vi\_helper.rb:15:in `return_if_error'", "/usr/lib/one/ruby/vcenter_driver/vi_helper.rb:43:in`one\_pool’", “/usr/lib/one/ruby/vcenter\_driver/importer.rb:250:in `import_templates'", "/usr/bin/onevcenter:128:in`block (2 levels) in '”, “/usr/lib/one/ruby/cli/command\_parser.rb:449:in `call'", "/usr/lib/one/ruby/cli/command_parser.rb:449:in`run’”, “/usr/lib/one/ruby/cli/command\_parser.rb:76:in `initialize'", "/usr/bin/onevcenter:57:in`new’”, "/usr/bin/onevcenter:57:in `<main>'"] /usr/lib/one/ruby/vcenter_driver/importer.rb:585:in`rescue in import\_templates’: undefined method `each' for nil:NilClass (NoMethodError) from /usr/lib/one/ruby/vcenter_driver/importer.rb:593:in`import\_templates’  
from /usr/bin/onevcenter:128:in `block (2 levels) in <main>' from /usr/lib/one/ruby/cli/command_parser.rb:449:in`call’  
from /usr/lib/one/ruby/cli/command\_parser.rb:449:in `run' from /usr/lib/one/ruby/cli/command_parser.rb:76:in`initialize’  
from /usr/bin/onevcenter:57:in `new' from /usr/bin/onevcenter:57:in`'  
root@opennebula:~#

I installed vOneCloud successfully using the same vcenter system info, but thought I would try OpenNebula prodcution but not sure what its choking on.

Thanks!
