Subscribe

Odd error from vCenter acquisition

I've recently begun getting an odd error with each attempt to acquire my vCenter. I'm happy to go log-diving for the reasons, I'm just not sure where to go look. Here's the error I'm seeing.

Cannot convert value "á" to type "System.Byte". Error: "Value was either too large or too small for an unsigned byte."

Looking for suggestions for chasing this down.

Phil

Re: Odd error from vCenter acquisition

This is interesting Phil. This is coming due to this á  which is a Unicode Character. Do you have any VM with names using this character or Non English OS version?

Can you help by answering the following questions.

1. Its looks like the same VC acquisition was working fine before and then started to fail with this error. Is this Correct?

2. Your WFA version and VC version?

3. Is the language for the VC en-US ( default )?

  • 1.  On your WFA server just run the acquisition once. Let it fail with the same error.
  • 2.  On your WFA server, Go to the location WFA\jboss\standalone\tmp\wfa and send me the following files.
  • 3.  Host.csv
  • 4.  Data_Store.csv
  • 5.  Lun.csv
  • 6.  Virtual_Machine.csv
  • 7.  Virtual_Disk.csv
  • 8.  Nas_Share.csv

Send the Autosupport file and the above files to me at: sinhaa at netapp dot com

I'll look at them and get back to you.

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: Odd error from vCenter acquisition

sinhaa,

I had some virtual machines with "βeta" as part of the display name shown in vCenter - not the actual machine name. I have changed those to "beta" and it made no difference. I will get you the files.

Phil

Re: Odd error from vCenter acquisition

Log files sent April 8th.

Re: Odd error from vCenter acquisition

I hit same error during vCenter 5.5 acquisition.

Version 2.2.0.2.4RC1

Some details here.

Caused by: CommandExecutionException{Message: Cannot convert value "-" to type "System.Byte". Error: "Value was either too large or too small for an unsigned byte.", Cause: null}

at com.netapp.wfa.command.execution.impl.executors.ScriptBasedCommandExecutor.executeScriptCommand(ScriptBasedCommandExecutor.java:184) [command-0.5.jar:]

at com.netapp.wfa.command.execution.impl.executors.ScriptBasedCommandExecutor.executeScriptCommand(ScriptBasedCommandExecutor.java:67) [command-0.5.jar:]

at com.netapp.wfa.command.execution.impl.executors.ScriptBasedCommandExecutor.execute(ScriptBasedCommandExecutor.java:46) [command-0.5.jar:]

at com.netapp.wfa.cache.execution.ScriptBasedExtractor.preProcess(ScriptBasedExtractor.java:42) [cache-0.5.jar:]

... 147 more

2014-04-10 14:37:47,990 ERROR [com.netapp.wfa.cache.job.CacheJobExecutorImpl] (Thread-11503 (HornetQ-client-global-threads-1859749646)) Failed running cache job - databases were dumped to C:\Program Files\NetApp\WFA\jboss\standalone\tmp\wfa\localhost-wfa_staging#vc-7645653829289131888.dump: com.netapp.wfa.cache.execution.CacheException: Error running data acquisition script: Cannot convert value "-" to type "System.Byte". Error: "Value was either too large or too small for an unsigned byte."

at com.netapp.wfa.cache.execution.ScriptBasedExtractor.preProcess(ScriptBasedExtractor.java:45) [cache-0.5.jar:]

at com.netapp.wfa.cache.execution.ETLRunner.extractToFiles(ETLRunner.java:103) [cache-0.5.jar:]

at com.netapp.wfa.cache.job.CacheJobWorkerImpl.extractToFiles(CacheJobWorkerImpl.java:31) [cache-0.5.jar:]

at sun.reflect.GeneratedMethodAccessor431.invoke(Unknown Source) [:1.7.0_25]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]

at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]

at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

Re: Odd error from vCenter acquisition

Phil, Francois,

     A bug has been filed for it, ID: 816207, You can raise a case with NetApp to track its progress.

Francois, Can you send the autosupport to : sinhaa at netapp dot com

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: Odd error from vCenter acquisition

Francois/Phil,

     Please find the attached posh script, save it in your WFA server. Open powershell ISE or any editor and at the beginning of the script, modify the the VC_ip, username, password fields according to your setup.

Execute it. Kindly send entire error message to me at : sinhaa at netapp dot com.

Also mention your Poweshell and .NET version

warm regards,

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: Odd error from vCenter acquisition

Abhishek, I sent the data to you today.  Phil

Re: Odd error from vCenter acquisition

Hi Sinhaa,

I experience similar error with ps script, with machines and disks.

Here a sketch of messages, we don't have information of the fault in csv files.

Writing to ./Virtual_Machine.csv

Cannot convert value "-" to type "System.Byte". Error: "Value was either too large or too small for an unsigned byte."

At C:\Users\itsfe\Documents\vcentergrap.ps1:140 char:39

+         Add-Content $vmsFile ([Byte[]] <<<< [Char[]] "$hashedVmInstanceUuid`t$vmDatastoreId`t$vmHostId`t$vmInstanceUu

id`t$vmName`t$vmDnsName`t$ipAddress`t$wfaVmPowerState`t$vmBootTime`t$vmGuestState`t$vmGuestOs`t$vmNumCpu`t$vmMemoryMb`t

$vmIsTemplate`n") -Encoding Byte

    + CategoryInfo          : NotSpecified: (Smiley Happy [], RuntimeException

    + FullyQualifiedErrorId : RuntimeException

Writing to ./Virtual_Disk.csv

Cannot convert value "-" to type "System.Byte". Error: "Value was either too large or too small for an unsigned byte."

At C:\Users\itsfe\Documents\vcentergrap.ps1:201 char:47

+         Add-Content $virtualDiskFile ([Byte[]] <<<< [Char[]] "\N`t$datastoreId`t$hashedVmInstanceUuid`t$lunId`t$diskF

ileName`t$capacityMB`t$sizeOnDatastoreMB`n") -Encoding Byte

    + CategoryInfo          : NotSpecified: (Smiley Happy [], RuntimeException

    + FullyQualifiedErrorId : RuntimeException

Regards,

Re: Odd error from vCenter acquisition

Francois,

     I'm working on this problem and I think this problem comes when your VC has one or more objects ( VMs, Vdisks etc.) with names in non-english alphabets. The error message may not be able to display this exactly.

I think I have a solution for it, but its still under test. It worked fine in my environment, so can you too try to see if it's working okay for you too. It will be of big help to me in fixing this.

1. Clone the Datasource Type VMWare vCenter and name it like VMWare vCenter 2

2. Select Scheme : vc

3. In the Powershell code block, enter the code which is there in the attached file. No modifications needed.

4. Add a Datasource of the Type: VMWare vCenter 2  and provide the credentials etc.

5. Acquire it as you normally would do.

Let me know if this worked for you.

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.