macOS Catalina - Current bundle does not have a SystemExtensions directory

I've upgraded my macOS to Catalina. Then I tried to run via Xcode my macOS VPN app (implemented with Packet Tunnel Provider) -

The VPN fails to connect and I see at the Console a lot of errors, such as:


Current bundle (/Users/myClientPath/Client.app) does not have a SystemExtensions directory

NESMVPNSession[Primary Tunnel:myDetails:(null)]: Received a start command from myClient[2061]

Found 0 (0 active) registrations for com.my.bundle.id.extension (com.apple.networkextension.packet-tunnel) - this msgs repeats several times

NEVPNTunnelPlugin(com.my.bundle.id[794]): Validation of the extension failed

NESMVPNSession in state NESMVPNSessionStateStarting: plugin NEVPNTunnelPlugin started with PID 0 error (null)

Hub connection error: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service on pid 0 named com.my.bundle.id.extension

disposing

Failed to start extension com.my.bundle.id.extension

NSDebugDescription=connection to service on pid 0 named com.my.bundle.id.extension


How can I solve it?

Answered by Systems Engineer in 398628022

I have not heard of this being a known issue on macOS 10.15.1. It looks like during startup, your extension is failing validation due to a communication failure to the kernel. This is an odd case and I am glad 10.15.2 fixed it, but I would recommend opening a bug that includes a sysdiagnose on 10.15.1 while you are reproducing the error.


Matt Eaton

DTS Engineering, CoreOS

meaton3 at apple.com

Update:
Upgrading the OS to 10.15.2 (from 10.15.1) solved this issue.
But any idea what caused it? Can it happen on users' Macs which run the app from the App Store (and not from Xcode as I did)?

Accepted Answer

I have not heard of this being a known issue on macOS 10.15.1. It looks like during startup, your extension is failing validation due to a communication failure to the kernel. This is an odd case and I am glad 10.15.2 fixed it, but I would recommend opening a bug that includes a sysdiagnose on 10.15.1 while you are reproducing the error.


Matt Eaton

DTS Engineering, CoreOS

meaton3 at apple.com

If it will reproduce I'll collect all the info and open a bug.

Thanks!

I reproduced the error (on macOS 10.15.7) and opened a bug - FB8831327
Thank you, I see your bug internally and have copied myself on it for further updates.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
macOS Catalina - Current bundle does not have a SystemExtensions directory
 
 
Q