RESTful knowledge exchange
Post Reply
Mardock
Influencer
Posts: 23
Liked: never
Joined: Jul 10, 2014 3:40 pm
Contact:

Guest OS file restore process not working with v8 API?

Post by Mardock »

Hi,

I must start the guest OS file restore process of the VM from the specified restore point.

If I make a POST to URL /catalog/vms/{vmname}/vmRestorePoints/{ID}?action=browse the server response with the following error:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<Error StatusCode="500" Message="Object reference not set to an instance of an object."
 xmlns="http://www.veeam.com/ent/v1.0" 
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<FirstChanceExceptionMessage>Object reference not set to an instance of an object.</FirstChanceExceptionMessage>
	<StackTrace>Veeam.Backup.Interaction.RestAPI.CRestAPICommunicationException: Object reference not set to an instance of an object.
	---> System.NullReferenceException: Object reference not set to an instance of an object.&#xD;
   at Veeam.Common.Remoting.CWindowsAuthentificationInfo.TryGetCurrent(CWindowsAuthentificationInfo& info)&#xD;
   at Veeam.Backup.Enterprise.Core.CCatalogHelper.MakeSureSessionExists()&#xD;
   at Veeam.Backup.Enterprise.Core.CCatalogHelper.DoWithRecreateSession[T](SearcherMethodDelegate`1 dlg)&#xD;
   at Veeam.Backup.Enterprise.Core.CCatalogHelper.CreateVmBrowser(String vmName, Guid oibId, CTaskStatInfo& taskInfo)&#xD;
   at Veeam.Backup.Enterprise.RestAPIService.CVmBrowserController.CreateVmBrowser(Guid origOibId, String vmRealName)&#xD;
   at Veeam.Backup.Enterprise.RestAPIService.CRestApiCatalogScope.BrowseCatalogVmRestorePoint(String vmRealName, String origOibIdStr)&#xD;
   at Veeam.Backup.Enterprise.RestAPIService.CEnterpriseRestServiceStub.BrowseCatalogVmRestorePoint(String vmIdStr, String origOibId)&#xD;
   at SyncInvokeBrowseCatalogVmRestorePoint(Object , Object[] , Object[] )&#xD;
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)&#xD;
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)&#xD;
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)&#xD;
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)&#xD;
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)&#xD;
   --- End of inner exception stack trace ---</StackTrace>
</Error>
I have update veeam API from v7 to v8.0.0.917. With v7 the POST work well but now with v8.0.0.917 it doesn't work...

Any idea?

Thanks,
Mardock.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Guest OS file restore process not working with v8 API?

Post by veremin »

I'm wondering whether you're creating session, using new version of session manager (http://localhost:9399/api/sessionMngr/?v=v1_1) and not the obsolete one. Thanks.
Mardock
Influencer
Posts: 23
Liked: never
Joined: Jul 10, 2014 3:40 pm
Contact:

Re: Guest OS file restore process not working with v8 API?

Post by Mardock »

Hi,
now I'm using new version of session manager (http://localhost:9399/api/sessionMngr/?v=v1_1) but the server returns the same error...

Thank you,
Mardock.
Mardock
Influencer
Posts: 23
Liked: never
Joined: Jul 10, 2014 3:40 pm
Contact:

Re: Guest OS file restore process not working with v8 API?

Post by Mardock »

Sorry, I make a clarification ..

I noticed that if I using HTTP (http://{veeamserver}:9399/api/sessionMngr/?v=v1_1) version of session manager then the POST work great.

The POST return the error only if I using HTTPS (https://{veeamserver}:9398/api/sessionMngr/?v=v1_1) version of session manager.

If I use the HTTPS session manager, all other restufull calls works fine.

Only the POST to URL /catalog/vms/{vmname}/vmRestorePoints/{ID}?action=browse produce the following error:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<Error StatusCode="500" Message="Object reference not set to an instance of an object."
 xmlns="http://www.veeam.com/ent/v1.0"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <FirstChanceExceptionMessage>Object reference not set to an instance of an object.</FirstChanceExceptionMessage>
   <StackTrace>Veeam.Backup.Interaction.RestAPI.CRestAPICommunicationException: Object reference not set to an instance of an object.
   ---> System.NullReferenceException: Object reference not set to an instance of an object.&#xD;
   at Veeam.Common.Remoting.CWindowsAuthentificationInfo.TryGetCurrent(CWindowsAuthentificationInfo& info)&#xD;
   at Veeam.Backup.Enterprise.Core.CCatalogHelper.MakeSureSessionExists()&#xD;
   at Veeam.Backup.Enterprise.Core.CCatalogHelper.DoWithRecreateSession[T](SearcherMethodDelegate`1 dlg)&#xD;
   at Veeam.Backup.Enterprise.Core.CCatalogHelper.CreateVmBrowser(String vmName, Guid oibId, CTaskStatInfo& taskInfo)&#xD;
   at Veeam.Backup.Enterprise.RestAPIService.CVmBrowserController.CreateVmBrowser(Guid origOibId, String vmRealName)&#xD;
   at Veeam.Backup.Enterprise.RestAPIService.CRestApiCatalogScope.BrowseCatalogVmRestorePoint(String vmRealName, String origOibIdStr)&#xD;
   at Veeam.Backup.Enterprise.RestAPIService.CEnterpriseRestServiceStub.BrowseCatalogVmRestorePoint(String vmIdStr, String origOibId)&#xD;
   at SyncInvokeBrowseCatalogVmRestorePoint(Object , Object[] , Object[] )&#xD;
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)&#xD;
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)&#xD;
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)&#xD;
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)&#xD;
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)&#xD;
   --- End of inner exception stack trace ---</StackTrace>
</Error>
nefes
Veeam Software
Posts: 643
Liked: 162 times
Joined: Dec 10, 2012 8:44 am
Full Name: Nikita Efes
Contact:

Re: Guest OS file restore process not working with v8 API?

Post by nefes »

Have you opened a case? It looks like a bug from the first sight.
Mardock
Influencer
Posts: 23
Liked: never
Joined: Jul 10, 2014 3:40 pm
Contact:

Re: Guest OS file restore process not working with v8 API?

Post by Mardock »

Hi,
I opened a case.

case# = 00721625

Thank you,
Mardock.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests