SysOptimizer (Error 22) - After trying fix and reinstalling

Nope. I actually went and disabled each option, restarted and tried again, uninstalling and installing many times. I get the same prompt each time, but it fails with the same error message. When I take a look at the directories being referenced as well there is nothing in those paths pertaining to Audirvana. I took a look at the Application contents actually just to ensure that it’s actually there, but I’m not sure what’s going on.

Obviously in the package contents themselves SysOptimizerTool is there, does it make a difference If I manually place that In a directory or?

Can you check if you have a file related to Audirvana in this folder? /Library/PrivilegedHelperTools

Yes, com.audirvana.SysOptimizerTool is there now. But as soon as I go to press play on any song it will initiate the process to install SysOptimizer again and will fail.

Error Code: There was an error executing SysOptimizer. Not all optimizations may be done.

Error = The operation couldn’t be completed. (CFErrorDomainLaunchd error 4.)

Can you use the Terminal application and enter the following commands:

sudo chgrp wheel /Library/PrivilegedHelperTools

sudo chmod 1755 /Library/PrivilegedHelperTools

Tried both of those and then tried to play a song again, same error.

" There was an error executing SysOptimizer. Not all optimizations may be done.

Error = The operation couldn’t be completed. (CFErrorDomainLaunchd error 4.)"

Okay, let’s try another thing, can you close Audirvana and do the three commands below in Terminal?
sudo launchctl load -w /Library/LaunchDaemons/com.audirvana.SysOptimizerTool.plist
sudo rm /Library/PrivilegedHelperTools/com.audirvana.SysOptimizerTool
sudo rm /Library/LaunchDaemons/com.audirvana.SysOptimizerTool.plist
After doing this, can you open Audirvana and play a track?

1 Like

From Console:

getattrlist failed for /Library/GPUBundles/AppleIntelCFLGraphicsVAME.bundle/Contents/MacOS/AppleIntelCFLGraphicsVAME: #2: No such file or directory
getattrlist failed for /Library/GPUBundles/AppleIntelKBLGraphicsVADriver.bundle/Contents/MacOS/AppleIntelKBLGraphicsVADriver: #2: No such file or directory
com.apple.xpc.launchd[1]: Coalition Cache Hit: app<application.com.audirvana.Audirvana.134781298.134781587(501)> [67857]

Now I’m getting this:

There was an error executing SysOptimizer. Not all optimizations may be done.

Error = The operation couldn’t be completed. (OSStatus error 22.)

This is not the folder path we sent to you that is reported here

sudo launchctl load -w /Library/LaunchDaemons/com.audirvana.SysOptimizerTool.plist

Has this error been resolved yet?

It’s a real issue on a headless Mac Mini controlled by a A Remote on an iPad as there is no way to dismiss the error.

Hello @RJKFlyer,

Have you tried the different lines of code that we gave previously on this thread?

Just to be clear you are referring to these?

1 Like

yes, those lines of code that you need to enter in Terminal.

OK, tried that.

The first line returned an error in Terminal saying that the service was already loaded.

The other two lines were accepted.

Re-launching AV and attempting to play a track resulted in the same error 22.

What are the sysoptimizer settings you have in Audirvana?

Are you referring to the ‘Low Level Playback Options’ Damien?

EDIT - sorry, I see where you mean. Will check.

EDIT 2 - on my iMac I do not see this Error 22, and I have

Optimize System for Audio Playback set to ON
AV priority - Very High
Other three OFF

Am just rebooting Mac Mini so will revert shortly.

UPDATE:

The issue appears resolved, by:

  1. Quit AV, Run the above three Terminal commands (first returned an error as noted above)
    2.relaunched AV, tried to play, Error 22 SysOptimizer remained
  2. Rebooted - which installed 11.2.3 update at the same time
  3. Launched AV and played a track - AV notified that it wanted to Install SysOptimizer - which I authorised
  4. AV now works with no SysOptimizer error
  5. Quite and relaunched to test - still OK.

For the record, that Mac Mini has settings (which have not been changed throughout the error):
Optimise for Audio Playback ON
Extreme priority
Disable TM, Spotlight and iDevice recognition all ON

2 Likes

Hi Antoine,

I have the same Error22 on my iMac running with the latest BigSur and Audirvana 3.5.50 versions. And I have tried the above Terminal trick. I still get the message that ‘Not all optimizations may be done’ when I ask AV to restart sysopt - but on the other hand the small SysOpt indicator in the buttom right lights green during playback.

Can you please tell me if all is OK or not?

Best regards,
Erik

Hello @ErikBagger,

Can you send a screenshot of your SysOptimizer settings?

They are like this - including the error message. Thanks for an expedient reply

When you remove the files mentioned earlier in this thread, do you get the message to install Sysoptimizer? When does the message you have appear?