GlobalProtect App fails to connect with error 'The virtual adapter was not set up correctly due to a delay.' and PanGPS.log shows "local system error 2"
Symptom
- GlobalProtect App fails to connect with the error 'The virtual adapter was not set up correctly due to a delay.'
- The PanGPS.log shows a specific "local system error 2" error
10:08:40:007 local system error, set error as The virtual adapter was not set up correctly due to a delay. GlobalProtect will try again soon. If the issue persists, try restarting your system.
10:08:40:008 local system error 2, need user action or wait 20 seconds to re-do network discovery
Environment
- PAN-OS firewall configured with GlobalProtect Portal and Gateway
- GlobalProtect App
- Windows OS
- 3rd-party endpoint security apps
Cause
The GP App relies on the Windows system components to access the PANGP Virtual Adapter. The error "The virtual adapter was not set up correctly due to a delay. GlobalProtect will try again soon. If the issue persists, try restarting your system" is a generic error where the PANGP Virtual Adapter is not accessible by the GP App or is not set up correctly. There could be multiple root causes
The 'local system error 2' in PanGPS.log indicates the issue is likely caused by 3rd-party endpoint security app, Windows Update, Windows Patch, etc.
Resolution
You can try the following steps:
- If a Windows patch or update was recently installed, uninstall it
- Uninstall the security applications such as Cylance, Trend Micro, etc.
- Uninstall GlobalProtect App (steps are below)
- Reboot the system
- Reinstall GlobalProtect after the system reboot
Uninstall GlobalProtect App:
- Uninstall GlobalProtect by running the installer or from 'Uninstall or remove apps and programs' in Windows
- Delete the GlobalProtect installation folder - C:\Program Files\Palo Alto Networks\GlobalProtect
- Delete the GlobalProtect user folder - C:\Users\<username\AppData\Local\Palo Alto Networks\GlobalProtect\
- Delete the registry keys:
- HKEY_CURRENT_USER\SOFTWARE\Palo Alto Networks\GlobalProtect
- HKEY_LOCAL_MACHINE\SOFTWARE\Palo Alto Networks\GlobalProtect
- Run the following command as an administrator from the windows cmd line:
- sc delete PanGPS
- Reboot the PC
Additional Information
To confirm which 3rd party products are installed in the GlobalProtect client, check the following line in PanGpHip.log.
10:08:03:025 GpGetHipInfo (DETECT_PRODUCTS) output:
{ "result" :
{ "detected_products" : [
...
"vendor" :
{ "name" : "Cylance Inc.",
.
.
.
The "The virtual adapter was not set up correctly due to a delay" can also happen due to Windows WMI corruption. Please check the article Windows Management Instrumentation Problem causes the Virtual Adapter was not Set up Correctly Due to a Delay Error; GP App reports "The virtual adapter was not set up correctly due to a delay"