New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kOSKextReturnNotLoadable on Mojave 10.14.6 #2373
Comments
Based on the temporary directory error, can you check the permissions and flags for the following:
I recently had an issue where VMWare Fusion broke after upgrading to 10.14.6, and after some digging around through the console log, I found that it was trying to use these directories while staging the kexts. When compared to another Mac running 10.14.6, I found that the "restricted" flag was not set against KernelExtensionManagement, which appears to have affected how SIP treats the directory. If that's the case for you, you should be able to repair it using chflags (e.g |
Oh my! It works! I don't know how to express my appreciation to you @StoneJT! It costed me so much time on solving this problem. For IME other than English, caps lock is usually the default way to switch between that language and English. Caps lock delay really drives me crazy. Thank you so much on providing such a detailed solution! |
Glad it worked out. This was the only result I got whilst searching for "error making temporary directory: 1", so I wanted to make sure I replied once I figured out what was happening. |
Not related to this repo, but I was having problems with some external kexts not being loaded, mainly:
And I've been debugging non-stop, and was even planing on doing a full new clean OS install since I had this issue. (This after upgrading from High Sierra to Catalina). Thank you for the tip, would have costed me a good few hours of work for nothing! Cheers. |
@StoneJT This actually also helped me with an issue in VirtualBox! I do find it odd that I don't see any difference on
after running chflags. Also I ran chflags on "Staging" quite a lot as it appeared to do nothing from within the rescue console. But as I said, it worked nevertheless! I have a different Mac where the entire directory /private/var/db/KernelExtensionManagement does not exist, so maybe you could also just delete it?! EDIT:
|
@StoneJT, just wanted to add my thanks as well. I've been dealing with issues with several apps (Google File Stream, AdGuard, TripMode, Shimo) failing here and there and I could not find the cause. Adding that 'restricted' flag solved the problem. |
@StoneJT thank you. This fixed an issue I had with VMware Fusion after reinstalling Mojave 10.14.6 on top of the existing Mojave 10.14.6. VMware was in the sqlite3 of approved KEXTs but wouldn't load its KEXTs. You've earned a virtual mug of your favorite brew! |
Turns out that just putting |
Hi thprychn, |
Just wanted to add that @StoneJT was right on the money with a different issue - MacFUSE not loading on Mojave. Following his suggestion I set the 'restricted' flag on the KernelExtensionManagement dir and subdir, and it resolved the issue! |
I had a similar issue. I have a MacPro5,1 with 10.13.6 on a fusion drive, used Disk Utility's 'Restore' feature to copy everything to a big 4 TB SSD and then updated to 10.14.6. VMWare then couldn't load it's kexts. Trashing the KernalExtensionManagement folder and rebooting did the trick. I also can't empty the trash, I imagine you'd have to do that with SIP disabled, or maybe as root from Recovery. |
Yes, from the recovery console, you can do a |
This absolutely worked for me on Catalina and Google DriveFileStream. Thank you @StoneJT ! |
I recently did a security update, and was unable to restart my VMWare Fusion machine. The kernel extension /dev/vmmon could not be loaded. I came across https://kb.vmware.com/s/article/80467 which suggested the problem was with kernel extensions. Found my way here, and learned that the directory KernelExtensionManagement did not have the right permission (the flag was not set). So after trying to use 'chflags' in the terminal window, and getting "operation not permitted", I went into recover mode and was able to fix the permissions from a terminal there. Along the way, I learned a few things that I thought I would pass on :
The good news is that after setting the BTW, I am running OSX 10.14.6, which I know by now is out of date. Will work on upgrading to Big Sur shortly. |
I was getting the 'Operation not permitted' when trying to set the restricted flag in the terminal (even as sudo) but dumping the directory in the trash caused Karabiner to instantly recreate it and ask for security clearance. Now things are working as expected |
Hi Everyone. I'm not an expert on coding and I don't understand how to solve this issue on my end. I have a Keychron K2 and I'm trying to use Karabiner for this first time with no luck, I'm getting the KextManagerLoadKextWithURL: kOSKextReturnNotLoadable message and the rules won't work. Please, could anyone help me with this issue? Thanks in advance |
Hi everyone,
I recently upgraded my MacBook Pro 13" 2014-mid from High Sierra to Mojave. I used Karabiner only for eliminating the caps lock delay, and I found Karabiner 12.10 and 11.6 both not work on Mojave 10.14.6. (I have updated to Security Update 2020-004)
There are lots of messages shown in Karabiner Log like:
[info] [kextd] KextManagerLoadKextWithURL: kOSKextReturnNotLoadable
This message shows every 3 seconds. I also found relevant logs in macOS console as follows:
Error making temporary directory: 1
Memory allocation failure.
Unable to stage kext (/Library/Application Support/org.pqrs/Karabiner-VirtualHIDDevice/Extensions/org.pqrs.driver.Karabiner.VirtualHIDDevice.v061000.kext) to secure location.
org.pqrs.driver.Karabiner.VirtualHIDDevice.v061000 was unable to stage properly; failing.
What I have tried:
/var/db/SystemPolicyConfiguration/KextPolicy
with sqlite3 command that Karabiner is allowed.spctl kext-consent add G43BCU2T37
.ls -laO /Library/StagedExtensions/
and checked the flag of /Library/StagedExtensions is "restricted"sudo kextload
andsudo kextutil
org.pqrs.driver.Karabiner.VirtualHIDDevice.v061000.kext but both failed (sudo kextutil gave the exact messages shown in macOS console)All measures failed. The only way I could make it work is to keep SIP off, which I really don't want to.
Does anyone have any idea? It's really frustrating. Any help is appreciated.
The text was updated successfully, but these errors were encountered: