Crash V2V Converter & Azure - ExpiredAuthenticationToken -

VM image converter (VMDK, VHD, VHDX, IMG, RAW, QCOW and QCOW2), P2V migrator

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
deenight
Posts: 1
Joined: Fri Jun 12, 2020 6:49 pm

Fri Jun 12, 2020 7:04 pm

Hi all

Everytime I want to convert a VM from VMWare ESX 6.5 and Azure, it works during around 1 hour and after it always crashed.
I don't know what Happen, it starts fine and convert 2 disks and when Starwind V2V Converter wants to start convert the third disk, it crashes.
I read the log and everytime it tolds that the token is expired : (Status code: 401 Error code: ExpiredAuthenticationToken Message: The access token expiry UTC time '6/12/2020 5:55:42 PM' is earlier than current UTC time '6/12/2020 6:21:55 PM'.)
The VM is powered off during the conversion and nothing active on it
The OS is a Linux CentOS
How can I do to increase or changing the token properties for Starwind.
Is anybody have an experience about this issue or help me ?
I Use the lastest build 9.0.0.202

See the log below by example :

The log file name: 'logs\V2V_Log-20200612-185347.log' (PID 12376)
Delete log file 'logs\V2V_Log-20200525-164027.log'.
6/12 18:53:47.365 163c Facility ???INFO: CV2V_ConverterApp::InitInstance: SetDllDirectory: C:\Program Files\StarWind Software\StarWind V2V Converter\lib
6/12 18:53:47.365 163c Facility ???INFO: CV2V_ConverterApp::InitInstance: File Version: 9.0.0.202
6/12 18:53:47.365 163c Facility ???INFO: CV2V_ConverterApp::InitInstance: Load language IDR_XML_ENGLISH
6/12 18:53:47.365 163c Facility ???INFO: CV2V_ConverterApp::InitInstance: Load language IDR_XML_RUSSIAN
6/12 18:53:47.365 163c Facility ???INFO: CV2V_ConverterApp::InitInstance: Set current language English
6/12 18:53:47.365 163c Facility ???INFO: CPS_V2V_Converter::CPS_V2V_Converter: Version MajorVersion 10, MinorVersion 0, BuildNumber 14393
6/12 18:53:47.381 163c Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\Windows\system32\wbem\wmiutils.dll - bf6e0000
6/12 18:53:47.381 163c Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\Windows\system32\wbem\wmiutils.dll - bf6e0000
6/12 18:53:53.069 163c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eESXConnection
6/12 18:54:27.292 163c Facility ???INFO: WrapperESXI::connect: m_url - https://10.xxx.xxx.xxx/sdk
6/12 18:54:27.370 163c Facility ???INFO: WrapperESXI::connect: fullName - Administrator, key - xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
6/12 18:54:27.370 163c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eInputVM
6/12 18:54:27.698 163c Facility ???INFO: VMConverter::ESXIConverter::GetHostListInfo: ESX version: 6.5.0
6/12 18:54:34.449 163c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eLocationTo
6/12 18:54:36.964 163c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eAzureConnectionTo
6/12 18:55:15.797 163c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eVMSettingsAzure
6/12 18:55:37.837 163c Facility ???INFO: CPPVMSettingsAzure::onNext: Create new NI
6/12 18:55:37.962 163c Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eConverting
6/12 18:55:37.978 2204 Facility ???INFO: CPPConverting::Convert: InConvertType: 6, OutConvertType: 10
6/12 18:55:55.856 2204 Facility ???INFO: CPPConverting::ConvertImage: pathInput: [VolumeVM04 - Std] v-srv-xxxx/v-srv-xxxx.vmdk, pathOutput: https://storage3184.blob.core.windows.net/v-srv-xxxx/DiskOS.vhd
6/12 18:55:57.293 2204 Facility ???INFO: ESXVmdk::ParseFile: sFilename - [VolumeVM04 - Std] v-srv-xxxx/v-srv-xxxx.vmdk
6/12 18:55:57.293 2204 Facility ???INFO: ESXVmdk::ParseFile: m_cSSLThumbprint - 95:3E:2C:DE:F3:12:FE:EA:89:2B:66:4E:BB:72:B7:C4:60:40:3F:CF
6/12 18:55:57.293 2204 Facility ???INFO: ESXVmdk::ParseFile: m_cvmxSpec - [VolumeVM04 - Std] v-srv-xxxx/v-srv-xxxx.vmx
6/12 18:55:58.903 2204 Facility ???INFO: CPPConverting::ConvertImage: CreateInputImage: 0
6/12 18:56:02.997 2204 Facility ???INFO: CPPConverting::ConvertImage: CreateOutputImage: 0
6/12 19:14:34.312 2204 Facility ???INFO: CPPConverting::ConvertImage: Success
6/12 19:14:34.327 2204 Facility ???INFO: CPPConverting::ConvertImage: pathInput: [VolumeVM04 - Std] v-srv-xxxx/v-srv-xxxx_1.vmdk, pathOutput: https://storage3184.blob.core.windows.net/v-srv-xxxx/DataDisk1.vhd
6/12 19:14:34.374 2204 Facility ???INFO: ESXVmdk::ParseFile: sFilename - [VolumeVM04 - Std] v-srv-xxxx/v-srv-xxxx_1.vmdk
6/12 19:14:34.374 2204 Facility ???INFO: ESXVmdk::ParseFile: m_cSSLThumbprint - 95:3E:2C:DE:F3:12:FE:EA:89:2B:66:4E:BB:72:B7:C4:60:40:3F:CF
6/12 19:14:34.374 2204 Facility ???INFO: ESXVmdk::ParseFile: m_cvmxSpec - [VolumeVM04 - Std] v-srv-xxxx/v-srv-xxxx.vmx
6/12 19:14:34.921 2204 Facility ???INFO: CPPConverting::ConvertImage: CreateInputImage: 0
6/12 19:14:36.218 2204 Facility ???INFO: CPPConverting::ConvertImage: CreateOutputImage: 0
6/12 20:21:54.846 2204 Facility ???INFO: CPPConverting::ConvertImage: Success
6/12 20:21:54.861 2204 Facility ???INFO: CPPConverting::ConvertImage: pathInput: [VolumeVM04 - Std] v-srv-xxxx/v-srv-xxxx_2.vmdk, pathOutput: https://storage3184.blob.core.windows.net/v-srv-xxxx/DataDisk2.vhd
6/12 20:21:54.893 2204 Facility ???INFO: ESXVmdk::ParseFile: sFilename - [VolumeVM04 - Std] v-srv-xxxx/v-srv-xxxx_2.vmdk
6/12 20:21:54.893 2204 Facility ???INFO: ESXVmdk::ParseFile: m_cSSLThumbprint - 95:3E:2C:DE:F3:12:FE:EA:89:2B:66:4E:BB:72:B7:C4:60:40:3F:CF
6/12 20:21:54.893 2204 Facility ???INFO: ESXVmdk::ParseFile: m_cvmxSpec - [VolumeVM04 - Std] v-srv-xxxx/v-srv-xxxx.vmx
6/12 20:21:55.424 2204 Facility ???INFO: CPPConverting::ConvertImage: CreateInputImage: 0
6/12 20:21:55.643 2204 Facility ???ERROR: VMConverter::AzureConverter::GetDatastoreListInfo: GetStorageAccounts Status code: 401 Error code: ExpiredAuthenticationToken Message: The access token expiry UTC time '6/12/2020 5:55:42 PM' is earlier than current UTC time '6/12/2020 6:21:55 PM'.
6/12 20:21:55.643 2204 Facility ???ERROR: AzureDisk::CreateOutputImage: GetDatastoreListInfo is fail - Error sending request to Azure.
The access token expiry UTC time '6/12/2020 5:55:42 PM' is earlier than current UTC time '6/12/2020 6:21:55 PM'.
6/12 20:21:55.643 2204 Facility ???INFO: CPPConverting::ConvertImage: CreateOutputImage: 7
6/12 20:21:55.643 2204 Facility ???ERROR: CPPConverting::Convert: FAILED


Thanks in advance for your help
Regards
yaroslav (staff)
Staff
Posts: 2277
Joined: Mon Nov 18, 2019 11:11 am

Mon Jun 15, 2020 4:54 am

Hi there,

Looks like an issue on MS Azure side. Here are the articles that may help https://docs.microsoft.com/en-us/azure/ ... -lifetimes and https://docs.microsoft.com/en-us/azure/ ... ime-how-to.
camrock
Posts: 8
Joined: Tue Jul 28, 2020 10:12 am

Wed Jul 29, 2020 5:55 am

Same problem for me.
Since Microsoft disabled the function for longer Token Lifetimes will there be another solution?

Microsoft:
"After hearing from customers during the preview, we've implemented authentication session management capabilities in Azure AD Conditional Access. You can use this new feature to configure refresh token lifetimes by setting sign in frequency. After May 30, 2020 no new tenant will be able to use Configurable Token Lifetime policy to configure session and refresh tokens. The deprecation will happen within several months after that, which means that we will stop honoring existing session and refresh tokens polices. You can still configure access token lifetimes after the deprecation."
yaroslav (staff)
Staff
Posts: 2277
Joined: Mon Nov 18, 2019 11:11 am

Thu Jul 30, 2020 3:21 am

Greetings,

There is the part in your quote that is a subject of interest.
After May 30, 2020 no new tenant will be able to use Configurable Token Lifetime policy to configure session and refresh tokens. (...) You can still configure access token lifetimes after the deprecation.
You still can configure token lifetimes.
camrock
Posts: 8
Joined: Tue Jul 28, 2020 10:12 am

Thu Jul 30, 2020 4:41 am

Ok. I will try to extend the token after I could solve the "neither imageReference nor osDisk" problem in another thread.
yaroslav (staff)
Staff
Posts: 2277
Joined: Mon Nov 18, 2019 11:11 am

Thu Jul 30, 2020 7:13 am

Sure, will assist you there.
Post Reply