• Time Machine backups failing 6.10 rc8 "Failed to attach using DiskImages2"


    wgstarks
    • Solved

    I'm submitting this in the hope that it gets fixed even though I suspect that it may be the result of the macOS 12.3.1 update. It actually started happening well before rc8 was released. Last successful backup was on April 30th. Now I can create a new share for time machine backups and the first backup will be successful. Subsequent backups will fail with an error in time machine "Failed to attach using DiskImages2".

     

    Time Machine log-

    2022-05-11 22:03:04  Cleared pending cancellation request
    2022-05-11 22:03:10  Not prioritizing backups with priority errors. lockState=0
    2022-05-11 22:03:10  Starting manual backup
    2022-05-11 22:03:10  Rejecting candidate mount point: /Volumes/TM_mini, not owned by root
    2022-05-11 22:03:10  Attempting to mount 'smb://[email protected]/TM_mini'
    2022-05-11 22:03:10  Mounted 'smb://[email protected]/TM_mini' at '/Volumes/.timemachine/10.0.1.20/DEFC5403-1530-4ACF-8A8C-004E23519E00/TM_mini' (420.71 GB of 1.05 TB available)
    2022-05-11 22:03:10  Initial network volume parameters for 'TM_mini' {disablePrimaryReconnect: 0, disableSecondaryReconnect: 0, reconnectTimeOut: 60, QoS: 0x0, attributes: 0x1C}
    2022-05-11 22:03:10  Configured network volume parameters for 'TM_mini' {disablePrimaryReconnect: 0, disableSecondaryReconnect: 0, reconnectTimeOut: 30, QoS: 0x20, attributes: 0x1C}
    2022-05-11 22:03:11  Skipping periodic backup verification: not needed for an APFS sparsebundle
    2022-05-11 22:03:11  'm1-mini.sparsebundle' does not need resizing - current logical size is 996.15 GB (996,147,200,000 bytes), size limit is 996.15 GB (996,147,200,000 bytes)
    2022-05-11 22:03:11  Mountpoint '/Volumes/.timemachine/10.0.1.20/DEFC5403-1530-4ACF-8A8C-004E23519E00/TM_mini' is still valid
    2022-05-11 22:03:11  Checking for runtime corruption on '/Volumes/.timemachine/10.0.1.20/DEFC5403-1530-4ACF-8A8C-004E23519E00/TM_mini/m1-mini.sparsebundle'
    2022-05-11 22:03:47  Failed to attach using DiskImages2 to url '/Volumes/.timemachine/10.0.1.20/DEFC5403-1530-4ACF-8A8C-004E23519E00/TM_mini/m1-mini.sparsebundle', error: Error Domain=NSPOSIXErrorDomain Code=19 "Operation not supported by device" UserInfo={DIErrorVerboseInfo=Failed to initialize IO manager: Failed opening folder for entries reading}
    2022-05-11 22:03:47  Failed to unmount '/Volumes/.timemachine/10.0.1.20/DEFC5403-1530-4ACF-8A8C-004E23519E00/TM_mini', Disk Management error: {
    2022-05-11 22:03:47  Failed to unmount '/Volumes/.timemachine/10.0.1.20/DEFC5403-1530-4ACF-8A8C-004E23519E00/TM_mini', error: Error Domain=com.apple.diskmanagement Code=0 "No error" UserInfo={NSDebugDescription=No error, NSLocalizedDescription=No Error.}
    2022-05-11 22:03:47  Waiting 60 seconds and trying again.
    2022-05-11 22:03:47  Cancelling backup because volume '/Volumes/.timemachine/10.0.1.20/DEFC5403-1530-4ACF-8A8C-004E23519E00/TM_mini' was unmounted.
    2022-05-11 22:03:47  Requested backup cancellation or termination
    2022-05-11 22:03:48  Backup cancelled (22: BACKUP_CANCELED)
    2022-05-11 22:03:48  Failed to unmount '/Volumes/.timemachine/10.0.1.20/DEFC5403-1530-4ACF-8A8C-004E23519E00/TM_mini', Disk Management error: {
    2022-05-11 22:03:48  Failed to unmount '/Volumes/.timemachine/10.0.1.20/DEFC5403-1530-4ACF-8A8C-004E23519E00/TM_mini', error: Error Domain=com.apple.diskmanagement Code=0 "No error" UserInfo={NSDebugDescription=No error, NSLocalizedDescription=No Error.}

     

    Current SMB extra config-

    #unassigned_devices_start
    #Unassigned devices share includes
       include = /tmp/unassigned.devices/smb-settings.conf
    #unassigned_devices_end
    #macOS config start
       server multi channel support = no
    #macOS config end
    #vfs_recycle_start
    #Recycle bin configuration
    [global]
       syslog only = Yes
       syslog = 0
       logging = 0
       log level = 0 vfs:0
    #vfs_recycle_end
    #macOS config start
       vfs objects = catia fruit streams_xattr
       fruit:nfs_aces = no
       fruit:zero_file_id = yes
       fruit:metadata = stream
       fruit:encoding = native
       spotlight backend = tracker
    
    [Media]
       path = /mnt/user/Media
       veto files = /._*/.DS_Store/
       delete veto files = yes
       spotlight = yes
    
    [mini_SMB]
       path = /mnt/user/mini_SMB
       veto files = /._*/.DS_Store/
       delete veto files = yes
       spotlight = yes
    
    [ccc_mini_backup]
       path = /mnt/user/ccc_mini_backup
       veto files = /._*/.DS_Store/
       delete veto files = yes
       spotlight = yes
    
    [ccc_raid1_backup]
       path = /mnt/user/ccc_raid1_backup
       veto files = /._*/.DS_Store/
       delete veto files = yes
       spotlight = yes
    #macOS config end

     

     

    brunnhilde-diagnostics-20220511-2350.zip




    User Feedback

    Recommended Comments



    I am absolutely HATING this TimeMachine issue since my upgrade to 6.11.1 ABSOLUTELY HATE IT

    I got it to work for a while and now it stoped again. I deleted my entire backup and redo another one, it worked for few days and now stoped again. I NEVER EVER had these issues in 6.9.2 and I am seriously contemplating to going back to 6.9.2 just for this major issue.

     

    This is what I get on my client side, MacBook 16 running Ventura 13.1

     

    eXile:~ root# log show --predicate 'subsystem == "com.apple.TimeMachine"' --info | grep 'upd: (' | cut -c 1-19,140-999

     

    2022-12-27 22:26:18al] Starting manual backup

    2022-12-27 22:26:18ing] Rejecting candidate mount point: /Volumes/TimeMachine, not owned by root

    2022-12-27 22:26:18ing] Attempting to mount 'smb://exile@NAS-UNRAID-1._smb._tcp.local/TimeMachine'

    2022-12-27 22:26:21al] Initial network volume options for 'TimeMachine' {disablePrimaryReconnect: 0, disableSecondaryReconnect: 0, reconnectTimeOut: 0, QoS: 0x0, attributes: 0x1C}

    2022-12-27 22:26:21al] Configured network volume options for 'TimeMachine' {disablePrimaryReconnect: 0, disableSecondaryReconnect: 0, reconnectTimeOut: 30, QoS: 0x20, attributes: 0x1C}

    2022-12-27 22:26:21ing] Mounted 'smb://exile@NAS-UNRAID-1._smb._tcp.local/TimeMachine' at '/Volumes/.timemachine/NAS-UNRAID-1._smb._tcp.local/33BC8F3D-CD01-4C98-813F-A6F208765B20/TimeMachine' (34.87 TB of 40 TB available)

    2022-12-27 22:26:22al] Skipping periodic backup verification: not needed for an APFS sparsebundle

    2022-12-27 22:26:23al] 'eXiled.sparsebundle' does not need resizing - current logical size is 38 TB (37,997,448,629,248 bytes), size limit is 38 TB (37,997,448,629,657 bytes)

    2022-12-27 22:26:23al] Mountpoint '/Volumes/.timemachine/NAS-UNRAID-1._smb._tcp.local/33BC8F3D-CD01-4C98-813F-A6F208765B20/TimeMachine' is still valid

    2022-12-27 22:26:23al] Checking for runtime corruption on '/Volumes/.timemachine/NAS-UNRAID-1._smb._tcp.local/33BC8F3D-CD01-4C98-813F-A6F208765B20/TimeMachine/eXiled.sparsebundle'

    2022-12-27 22:27:06ight] Waiting for Spotlight to finish indexing '/Volumes/Backups of eXiled'

    2022-12-27 22:27:10mages] Failed to attach using DiskImages2 to url '/Volumes/.timemachine/NAS-UNRAID-1._smb._tcp.local/33BC8F3D-CD01-4C98-813F-A6F208765B20/TimeMachine/eXiled.sparsebundle', error: Error Domain=NSPOSIXErrorDomain Code=19 "Operation not supported by device" UserInfo={DIErrorVerboseInfo=Failed to initialize IO manager: Failed opening folder for entries reading}

    2022-12-27 22:27:10al] Failed to unmount '/Volumes/.timemachine/NAS-UNRAID-1._smb._tcp.local/33BC8F3D-CD01-4C98-813F-A6F208765B20/TimeMachine', Disk Management error: {

    2022-12-27 22:27:10al] Failed to unmount '/Volumes/.timemachine/NAS-UNRAID-1._smb._tcp.local/33BC8F3D-CD01-4C98-813F-A6F208765B20/TimeMachine', error: Error Domain=com.apple.diskmanagement Code=0 "No error" UserInfo={NSDebugDescription=No error, NSLocalizedDescription=No Error.}

    2022-12-27 22:27:10al] Waiting 60 seconds and trying again.

    2022-12-27 22:27:10llation] Cancelling backup because volume '/Volumes/.timemachine/NAS-UNRAID-1._smb._tcp.local/33BC8F3D-CD01-4C98-813F-A6F208765B20/TimeMachine' was unmounted.

    2022-12-27 22:27:10llation] Requested backup cancellation or termination

    2022-12-27 22:27:11llation] Backup cancelled (22: BACKUP_CANCELED)

    2022-12-27 22:27:11al] Failed to unmount '/Volumes/.timemachine/NAS-UNRAID-1._smb._tcp.local/33BC8F3D-CD01-4C98-813F-A6F208765B20/TimeMachine', Disk Management error: {

    2022-12-27 22:27:11al] Failed to unmount '/Volumes/.timemachine/NAS-UNRAID-1._smb._tcp.local/33BC8F3D-CD01-4C98-813F-A6F208765B20/TimeMachine', error: Error Domain=com.apple.diskmanagement Code=0 "No error" UserInfo={NSDebugDescription=No error, NSLocalizedDescription=No Error.}

    2022-12-27 22:27:11llation] Cleared pending cancellation request

    eXile:~ root#

    • Upvote 1
    Link to comment

     

    1 minute ago, johnwhicker said:

    I NEVER EVER had these issues in 6.9.2 and I am seriously contemplating to going back to 6.9.2

     

    I'm still on 6.9.2 and all is still working fine here with macOS Ventura 13.1. Now that 6.11.5 is out I might try upgrading and giving it a shot at some point. 

    Link to comment

    Instead of downgrading your unRAID installation you could try my approach using a Linux VM with a Netatalk server.

    Works like a charm from my end.

    Currently backing up 4 Macs with this workaround.

    Link to comment

    I noticed that @SpaceInvaderOne recommends to remove all fruity entries in the SMB config in a recent YouTube video about UnRAID & TM. 

     

     

    I recently added a new disk to my array, and tried to move my TM backups to this. It worked for two of my Macs, but for one it failed. I then tried the recommendation to remove the fruity entries, but still no joy. I had to rebuild the backup from scratch. This worked however subsequent incremental backups got the error "Failed to attach using DiskImages2"...

     

    Then I reconfigured the SMB with the following:

     

    Quote

    [Global]
       vfs objects = catia fruit streams_xattr
       fruit:nfs_aces = no
       fruit:zero_file_id = yes
       fruit:metadata = stream
       fruit:encoding = native
       spotlight backend = tracker
       veto files = /.DS_Store/
       delete veto files = yes
    #vfs_recycle_start
    #recycle bin configuration
       syslog only = No
       syslog = 0
       logging = 0
       log level = 0 vfs:0
    #vfs_recycle_end

     

    (Some of the lines were there before as well.) I don't know which line fixed it but incremental backups are running fine now. Hopefully this helps someone, and perhaps @SpaceInvaderOne could do a follow-up video.

    Edited by daTroll
    Link to comment

    I have Time Machine working on Unraid 6.12.3 and macOS Ventura 13.5.1, and wanted to make sure the historical threads were updated with what my solution ended up being. Adding to both the SMB Extras global settings AND the smb-fruit settings ended up being necessary.

    Link to comment



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.