error: snap_metadata_val object (): invalid extentref_tree_oid (0x0)

After upgrading to High Sierra on an 2011 MacBook Air, when running Disk Aid on the boot disk (auto-converted to APFS) I get this error:


error: snap_metadata_val object (oid 0xe79f): invalid extentref_tree_oid (0x0)


it still says the check completed sucessfuly, but this error looks not benign. I also booted in recovery mode and get the same error.

MacBook Air (13-inch Mid 2011), macOS High Sierra (10.13)

Posted on Sep 29, 2017 12:11 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 6, 2017 1:18 PM

I have the same error as you. In my case it turned out to be a dateless time machine local snapshot.


To check for it, open a Terminal and list local time machine snapshot by running the
command "tmutil listlocalsnapshots /"

It will show entries like "com.apple.TimeMachine.YYYY-MM-DD-HHMMSS"

If you see dateless snapshot, delete it use "sudo tmutil deletelocalsnapshots YYYY-MM-DD-HHMMSS"
with the actual date of the dateless entry. You will need to enter your user password.


# tmutil listlocalsnapshots /

com.apple.TimeMachine.2017-10-04-014927 (dataless)

com.apple.TimeMachine.2017-10-04-024750

com.apple.TimeMachine.2017-10-04-024752

com.apple.TimeMachine.2017-10-04-024835

com.apple.TimeMachine.2017-10-04-024852


# sudo tmutil deletelocalsnapshots 2017-10-04-014927

Password:

Deleted local snapshot '2017-10-04-014927'


# tmutil listlocalsnapshots /

com.apple.TimeMachine.2017-10-04-024750

com.apple.TimeMachine.2017-10-04-024752

com.apple.TimeMachine.2017-10-04-024835

com.apple.TimeMachine.2017-10-04-024852

54 replies
Question marked as Top-ranking reply

Oct 6, 2017 1:18 PM in response to dkalchev

I have the same error as you. In my case it turned out to be a dateless time machine local snapshot.


To check for it, open a Terminal and list local time machine snapshot by running the
command "tmutil listlocalsnapshots /"

It will show entries like "com.apple.TimeMachine.YYYY-MM-DD-HHMMSS"

If you see dateless snapshot, delete it use "sudo tmutil deletelocalsnapshots YYYY-MM-DD-HHMMSS"
with the actual date of the dateless entry. You will need to enter your user password.


# tmutil listlocalsnapshots /

com.apple.TimeMachine.2017-10-04-014927 (dataless)

com.apple.TimeMachine.2017-10-04-024750

com.apple.TimeMachine.2017-10-04-024752

com.apple.TimeMachine.2017-10-04-024835

com.apple.TimeMachine.2017-10-04-024852


# sudo tmutil deletelocalsnapshots 2017-10-04-014927

Password:

Deleted local snapshot '2017-10-04-014927'


# tmutil listlocalsnapshots /

com.apple.TimeMachine.2017-10-04-024750

com.apple.TimeMachine.2017-10-04-024752

com.apple.TimeMachine.2017-10-04-024835

com.apple.TimeMachine.2017-10-04-024852

Oct 6, 2017 1:18 PM in response to oxfrombws

This is what I have:


$ tmutil listlocalsnapshots /

com.apple.TimeMachine.2017-09-30-071340 (dataless)

com.apple.TimeMachine.2017-09-30-091235 (dataless)

com.apple.TimeMachine.2017-10-05-084406


$ sudo tmutil deletelocalsnapshots 2017-09-30-071340

Password:

Deleted local snapshot '2017-09-30-071340'

$ sudo tmutil deletelocalsnapshots 2017-09-30-091235

Password:

Deleted local snapshot '2017-09-30-091235'


I no longer see the error condition in Disk Aid. Thanks!

Nov 8, 2017 2:58 AM in response to oxfrombws

I had this same problem, preventing me from installing the 10.13.1 OS update (which failed silently whilst looking like it had worked, grrrr).


I rebooted to recovery, applied disk first aid and saw the error in the title of this thread, which is how I found this thread.


Followed the instructions here and lo and behold, removing a dataless local time machine backup solved the problem.


I regularly switch my laptop between GMT and GMT+1. I wonder whether there’s any commonality there? I also back up to two separate time machines in the different time zones, so at any one time I always have one time machine backup failing whilst the other succeeds.

Mar 28, 2018 11:30 AM in response to Cerniuk

They are very different.

localsnapshot is file system snapshots supported by APFS volumes.

it's not a actual physical path where snapshot is stored (cloned change).

see tmutil man page:


delete path ...

Delete one or more snapshots, machine directories, or backup

stores. This verb can delete items from backups that were not

made by, or are not claimed by, the current machine. Requires

root privileges.


deletelocalsnapshots date

Delete all local Time Machine snapshots for the specified date

(formatted YYYY-MM-DD-HHMMSS).

Apr 1, 2018 11:35 AM in response to AragornBurak

I suggest you run disk utility on the volume first before this.

see Verify a disk using Disk Utility on Mac - Apple Support


If there is huge amount of disk space used for localsnapshots, you can try thinlocalsnapshots verb of the tmutil.


TMUTIL(8) BSD System Manager's Manual TMUTIL(8)



NAME

tmutil -- Time Machine utility

...

thinlocalsnapshots mount_point [purge_amount] [urgency]

Thin local Time Machine snapshots for the specified volume.

When purge_amount and urgency are specified, tmutil will attempt (with urgency level 1-4) to reclaim purge_amount in bytes by thinning snapshots.

If urgency is not specified, the default urgency will be used.


Google thinlocalsnapshots for suggestion.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

error: snap_metadata_val object (): invalid extentref_tree_oid (0x0)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.