Guest OS file restore process not working with v8 API?

RESTful knowledge exchange

Guest OS file restore process not working with v8 API?

Veeam Logoby Mardock » Tue Dec 30, 2014 2:44 pm

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.
   ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.&#xD;
   at Veeam.Common.Remoting.CWindowsAuthentificationInfo.TryGetCurrent(CWindowsAuthentificationInfo&amp; 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&amp; 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[]&amp; outputs)&#xD;
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)&#xD;
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)&#xD;
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp; 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.
Mardock
Influencer
 
Posts: 19
Liked: never
Joined: Thu Jul 10, 2014 3:40 pm

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

Veeam Logoby v.Eremin » Wed Dec 31, 2014 1:15 pm

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.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

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

Veeam Logoby Mardock » Mon Jan 05, 2015 8:56 am

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: 19
Liked: never
Joined: Thu Jul 10, 2014 3:40 pm

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

Veeam Logoby Mardock » Wed Jan 07, 2015 8:16 am

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.
   ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.&#xD;
   at Veeam.Common.Remoting.CWindowsAuthentificationInfo.TryGetCurrent(CWindowsAuthentificationInfo&amp; 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&amp; 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[]&amp; outputs)&#xD;
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)&#xD;
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)&#xD;
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&amp; rpc)&#xD;
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)&#xD;
   --- End of inner exception stack trace ---</StackTrace>
</Error>
Mardock
Influencer
 
Posts: 19
Liked: never
Joined: Thu Jul 10, 2014 3:40 pm

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

Veeam Logoby nefes » Wed Jan 07, 2015 10:49 am

Have you opened a case? It looks like a bug from the first sight.
nefes
Veeam Software
 
Posts: 534
Liked: 125 times
Joined: Mon Dec 10, 2012 8:44 am
Full Name: Nikita Efes

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

Veeam Logoby Mardock » Wed Jan 07, 2015 4:13 pm

Hi,
I opened a case.

case# = 00721625

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


Return to RESTful API



Who is online

Users browsing this forum: No registered users and 3 guests