Palo Alto Networks GlobalProtect Client on a MacOS system keeps reconnecting.
The following error messages appear in PanGPS.log:
Jun 25 11:28:56:456493 Debug( 40): SCDynamicStoreCopyValue(State:/Network/Global/DNS) failed: No such key
Jun 25 11:28:56:456516 Error( 328): pan_SC_GetPropertyList(State:/Network/Global/DNS) failed
Jun 25 11:28:56:456525 Error( 537): failed to prepare sysconf
Jun 25 11:28:56:456669 Debug( 894): ProcMonitor: do_disconnect()
Jun 25 11:28:56:456677 Info ( 908): VPN disconnect. The reason is Internal error. Notify server
SubKey "Network/Global/DNS" is necessary for Global Protect Client on Mac to work. To verify, run the "scutil" command on the Mac and type "list":
subKey  = Plugin:IPConfiguration
subKey  = Plugin:InterfaceNamer
subKey  = Setup:
subKey  = State:/Network/Global/DNS
subKey  = State:/Network/Global/IPv4
subKey  = State:/Network/Global/Proxies
If the subKey "Network/Global/DNS" doesn't exist, that means there's no DNS setting on any of network interfaces configurations.
Add a DNS server IP address in the network settings on the Mac.
System Preferences... > Network > Ethernet > Advanced... > DNS > DNS Servers