Open brahov opened 9 months ago
I'm still running 14.1.1 on M1. Thanks for the logs.
My guess at what's happening is the syslog format is slightly different now. I had written a log parsing library, which UnmountVolumeAfterTimeMachine uses, before I learned that there is a supported MacOS API for reading logs now. Hopefully it's a simple to fix as changing to use that instead.
Might be a while before I look at this still.
Hi Brian,
Thanks for the quick reply and looking into this. I understand life gets in the way of stuff like this and appreciate anything you can do.
I’ll also try to have a go at fixing this, but I’m nowhere near your skill-level. If I do manage to fix it, I’ll let you know.
Met vriendelijke groet, Best regards,
Bram van den Hoven
From: Brian Henry @.> Date: Monday, 8 January 2024 at 23:56 To: BrianHenryIE/UnmountVolumeAfterTimeMachine @.> Cc: brahov @.>, Author @.> Subject: Re: [BrianHenryIE/UnmountVolumeAfterTimeMachine] Really looking forward to this, but unfortunately not working on MBA M2 with Sonoma 14.2.1 (Issue #2)
I'm still running 14.1.1 on M1. Thanks for the logs.
My guess at what's happening is the syslog format is slightly different now. I had written a log parsing libraryhttps://github.com/BrianHenryIE/BHSwiftOSLogStream, which UnmountVolumeAfterTimeMachine uses, before I learned that there is a supported MacOS API for reading logs nowhttps://developer.apple.com/documentation/oslog/oslogstore. Hopefully it's a simple to fix as changing to use that instead.
Might be a while before I look at this still.
— Reply to this email directly, view it on GitHubhttps://github.com/BrianHenryIE/UnmountVolumeAfterTimeMachine/issues/2#issuecomment-1881951696, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFGLVAE5F2CEBORIKUW5IOTYNR2TJAVCNFSM6AAAAABBSCL56KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRHE2TCNRZGY. You are receiving this because you authored the thread.Message ID: @.***>
Hey, sorry for the delay. About two months later I finally ran another backup and I've run a few since and it has always worked. MBA M1 on I think the latest now.
Please try again and let me know
Hi Brian,
Let's start of by thanking you for making this. I've been looking all over!
Unfortunatly, the software currently isn't working for me. I've installed using Mint and can see both processes (UnmountVolumeAfterTimeMachine & DiskUnmountWatcher) appearing in Activity Monitor after connecting my disk.
After TimeMachine is done, the disk doesn't get unmounted. I've used console to dig up some debugging logs and this is what I found:
`default 21:59:17.459872+0100 kernel spaceman_iterate_free_extents_internal:3207: disk5 nx_unmount detected while processing dev=0 cib=1 out of 60 cibs default 21:59:20.596355+0100 mds openStoresByUUIDArray volume:0x11f1f8bd7 unmounting:0 goingAway:0 shut:0 qos:0x11 count:1 default 21:59:20.627201+0100 UnmountVolumeAfterTimeMachine No launchd agent set default 21:59:20.628757+0100 UnmountVolumeAfterTimeMachine launchd agent written default 21:59:20.629981+0100 UnmountVolumeAfterTimeMachine launchd agent startOnMount set default 21:59:20.651477+0100 UnmountVolumeAfterTimeMachine status: 0x600000fd80c0ublic(null) default 21:59:20.651916+0100 UnmountVolumeAfterTimeMachine [0x6000025d0000] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.daemon default 21:59:20.651989+0100 UnmountVolumeAfterTimeMachine [0x6000025d4000] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.agent default 21:59:20.779112+0100 backgroundtaskmanagementd registerLaunchItem: found existing item: uuid=07334784-526E-46D9-BE30-431AF08F998E, name=UnmountVolumeAfterTimeMachine, type=legacy agent, disposition=[enabled, allowed, visible, notified], identifier=ie.BrianHenry.UnmountVolumeAfterTimeMachine, url=file:///Users/bramvandenhoven/Library/LaunchAgents/ie.BrianHenry.UnmountVolumeAfterTimeMachine.plist default 21:59:20.779154+0100 backgroundtaskmanagementd registerLaunchItem: checking for an updated legacy agent or daemon item: uuid=07334784-526E-46D9-BE30-431AF08F998E, name=UnmountVolumeAfterTimeMachine, type=legacy agent, disposition=[enabled, allowed, visible, notified], identifier=ie.BrianHenry.UnmountVolumeAfterTimeMachine, url=file:///Users/bramvandenhoven/Library/LaunchAgents/ie.BrianHenry.UnmountVolumeAfterTimeMachine.plist default 21:59:20.826874+0100 backgroundtaskmanagementd registerLaunchItem: updated item with same LWCR: uuid=07334784-526E-46D9-BE30-431AF08F998E, name=UnmountVolumeAfterTimeMachine, type=legacy agent, disposition=[enabled, allowed, visible, notified], identifier=ie.BrianHenry.UnmountVolumeAfterTimeMachine, url=file:///Users/bramvandenhoven/Library/LaunchAgents/ie.BrianHenry.UnmountVolumeAfterTimeMachine.plist default 21:59:20.827419+0100 backgroundtaskmanagementd effectiveItemDisposition: appURL=(null), type=legacy agent, url=file:///Users/bramvandenhoven/Library/LaunchAgents/ie.BrianHenry.UnmountVolumeAfterTimeMachine.plist, config={ BTMConfigArguments = ( ); BTMConfigBundleIdentifiers = ( ); BTMConfigExecutablePath = "/Users/bramvandenhoven/.mint/packages/github.com_BrianHenryIE_UnmountVolumeAfterTimeMachine/build/master/UnmountVolumeAfterTimeMachine"; BTMConfigLabel = "ie.BrianHenry.UnmountVolumeAfterTimeMachine"; } default 21:59:21.086249+0100 tccd AUTHREQ_ATTRIBUTION: msgID=361.54, attribution={responsible={TCCDProcess: identifier=UnmountVolumeAfterTimeMachine, pid=1311, auid=501, euid=501, responsible_path=/Users/bramvandenhoven/.mint/packages/github.com_BrianHenryIE_UnmountVolumeAfterTimeMachine/build/master/UnmountVolumeAfterTimeMachine, binary_path=/Users/bramvandenhoven/.mint/packages/github.com_BrianHenryIE_UnmountVolumeAfterTimeMachine/build/master/UnmountVolumeAfterTimeMachine}, accessing={TCCDProcess: identifier=com.apple.timemachine.tmutil, pid=1318, auid=501, euid=501, binary_path=/usr/bin/tmutil}, requesting={TCCDProcess: identifier=com.apple.sandboxd, pid=361, auid=0, euid=0, binary_path=/usr/libexec/sandboxd}, }, default 21:59:21.096177+0100 tccd AUTHREQ_SUBJECT: msgID=361.54, subject=/Users/bramvandenhoven/.mint/packages/github.com_BrianHenryIE_UnmountVolumeAfterTimeMachine/build/master/UnmountVolumeAfterTimeMachine, default 21:59:21.098397+0100 tccd -[TCCDAccessIdentity staticCode]: static code for: identifier /Users/bramvandenhoven/.mint/packages/github.com_BrianHenryIE_UnmountVolumeAfterTimeMachine/build/master/UnmountVolumeAfterTimeMachine, type: 1: 0x15a12dcd0 at /Users/bramvandenhoven/.mint/packages/github.com_BrianHenryIE_UnmountVolumeAfterTimeMachine/build/master/UnmountVolumeAfterTimeMachine default 21:59:21.103827+0100 tccd Publishing to 0 subscribers: {
}
error 21:59:21.259923+0100 UnmountVolumeAfterTimeMachine Could not parse line: