OwlPlug icon indicating copy to clipboard operation
OwlPlug copied to clipboard

deleting plugins always fails [macOs]

Open verstaerkermusic opened this issue 1 year ago • 12 comments

i'm testing OwlPlug 1.27.1 on macOs 15.2 to sort my plugin collection . Unfortunately it's not possible to remove any plugin. All i'm getting is an "Error during plugin removal" I gave OwlPlug full harddrive access.

Anything i could be oding wrong? Can i provide you more information?

verstaerkermusic avatar Dec 19 '24 23:12 verstaerkermusic

Hello @verstaerkermusic,

Thanks for reporting the issue. To help me understanding the root cause, can you extract error logs from your home directory:

/home/{you}/.owlplug/logs

Troubleshooting OwlPlug

DropSnorz avatar Dec 23 '24 20:12 DropSnorz

here's one of the log files owlplug.log

verstaerkermusic avatar Dec 30 '24 14:12 verstaerkermusic

and here a log in debug mode owlplug.log

verstaerkermusic avatar Dec 30 '24 15:12 verstaerkermusic

Hello, thanks for the logs !

It seems the apache-commons library used to delete the directory is trying to perform file permission switch before the delete operation.

41823 ERROR c.o.core.tasks.PluginRemoveTask - Plugin File can't be removed: /Library/Audio/Plug-ins/VST3/DC Snares.vst3
...
Caused by: java.io.IOException: Cannot delete file: /Library/Audio/Plug-ins/VST3/DC Snares.vst3/Contents
...
Caused by: java.nio.file.FileSystemException: /Library/Audio/Plug-ins/VST3/DC Snares.vst3/Contents/_CodeSignature/CodeResources: Operation not permitted
	at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(Unknown Source)
	at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(Unknown Source)
	at java.base/java.nio.file.Files.setPosixFilePermissions(Unknown Source)
	at org.apache.commons.io.file.PathUtils.setReadOnly(PathUtils.java:933)

It looks like we are facing bug IO-751. The apache-commons lib tries to change file permission on POSIX system even if it's not necessary. After checking the code, the library ignores the readOnly flag set to false and tries to put the file in read-only mode which doesn't make sense for a delete operation.

This bug has been fixed so I'll change the dependency version. The next OwlPlug release should fix the issue 👍

DropSnorz avatar Dec 30 '24 15:12 DropSnorz

👍

verstaerkermusic avatar Dec 30 '24 15:12 verstaerkermusic

Hello @verstaerkermusic

I've published a fix in OwlPlug 1.28.0, can you still reproduce the issue ?

DropSnorz avatar Jan 13 '25 20:01 DropSnorz

unfortunately i'm not able to run the app . It just says it's damaged and i should throw into bin. There are no options to open in any security settings .

verstaerkermusic avatar Jan 13 '25 20:01 verstaerkermusic

Unfortunately the app is not notarized by Apple (#31), so the damaged app message will be back after each update 😢

The workaround to bypass the error message change with each version of macOS and i don't have a mac to test.

DropSnorz avatar Jan 13 '25 22:01 DropSnorz

strange - allowed to run all apps, removed quarantine attribute .. still no success. 1.2.7.1 starts without problems

verstaerkermusic avatar Jan 13 '25 22:01 verstaerkermusic

1.28.1 runs properly. However deleting plugins is not working

debug log in debug mode

owlplug.log

verstaerkermusic avatar Jan 18 '25 22:01 verstaerkermusic

Does the following file has specific file permission ? OwlPlug can't delete it and throws an AccessDeniedException.

/Library/Audio/Plug-ins/VST3/DC Snares.vst3/Contents/_CodeSignature/CodeResources

DropSnorz avatar Jan 20 '25 18:01 DropSnorz

nothing uncommon .. it requires a sudo command to delete in terminal

verstaerkermusic avatar Jan 20 '25 21:01 verstaerkermusic