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

Apr 1, 2018 11:53 AM in response to oxfrombws

First of all, thanks a lot for trying to help.


I have run the disk utility. Here are the results;

User uploaded file

And I tried to thin the localsnapshot too. That seems not working for me as well. Here is the output:


Last login: Sun Apr 1 20:38:57 on console

Buraks-MacBook-Pro:~ Burak$ tmutil listlocalsnapshots /

com.apple.TimeMachine.2018-03-25-021312

Buraks-MacBook-Pro:~ Burak$ tmutil thinlocalsnapshots / 1000000000

Thinned local snapshots:

Buraks-MacBook-Pro:~ Burak$ tmutil thinlocalsnapshots / 1000000000 1

Thinned local snapshots:

Buraks-MacBook-Pro:~ Burak$

Apr 1, 2018 12:12 PM in response to oxfrombws

I tried that as well:


Buraks-MacBook-Pro:~ Burak$ sudo tmutil thinlocalsnapshots / 1000000000 1

Password:

Thinned local snapshots:

Buraks-MacBook-Pro:~ Burak$ sudo tmutil listlocalsnapshots /

com.apple.TimeMachine.2018-03-25-021312

Buraks-MacBook-Pro:~ Burak$ sudo tmutil deletelocalsnapshots 2018-03-25-021312

Error parsing argument 2018-03-25-021312

Buraks-MacBook-Pro:~ Burak$

May 12, 2018 1:17 AM in response to oxfrombws

I ALMOST formatted my SSD to resolve this error, but I'm glad I saw your answer first! The error is resolved!


Just one quick bit of feedback... you might want to edit your response to replace the word "dateless" with the correct word, "dataless." While it's somewhat insignificant, there might be pepo[le honing in on that one keyword, and if they searched for "dataless," your solution might not show up for them in Google.


Anyhow, thanks again for taking the time to share!


User uploaded file

May 14, 2018 12:36 AM in response to dkalchev

Hi, all -


I have tried the suggestions listed in this thread, but I'm getting a different error. Here's my terminal output (I'm doing this in single-user mode, so I'm retyping from photos I took, so sorry for any typos):


localhost:/ root# sudo fsck -fy

[skipping output to errors]

handle_crypto_mount:814: handling crypto mount (volume /dev/disk1s1)

handle_crypto_mount:996: crypto mount finished w/apfs

dev_init:476: Using /private/var/vm/apfs and /private/var/vm/nx for device-io.

[skipping things again...]

error: snap_metadata_val object (oid 8x7915c): invalid extentref_tree_oid (0x0)

Snapshot metadata tree is invalid.

** The volume /dev/rdisk1s1 could not be verified completely.

apfs_vfsop_unmount:1523: fake mount for going away

apfs: total mem allocalted: 3779403 (4 mb):

localhost:/ root# sudo /sbin/mount -uw /

[...]

apfs_vfsop_sync:3020: failed to finish all transactions in sync()! (err 16)

spaceman_trim_free_blocks:3009: scan took 5.986332 s, trims took 5.420211 s

spaceman_trim_free_blocks:3017: 12991201 blocks free in 276005 extents

spaceman_trim_free_blocks:3025: 12991201 blocks trimmed in 276005 extents (19 us/trim, 50921 trims/s)

spaceman_trim_free_blocks:3028: trim distribution 1:97010 2+:48375 4+:52100 16+:37641 64+:26673 256+:14206

localhost:/ root# tmutil listlocalsnapshots /

com.apple.TimeMachine.2018-04-25-151259 (dataless)

[...others listed that aren't dataless...]

localhost:/ root# sudo tmutil deletelocalsnapshots 2018-04-25-151259

Failed to delete local snapshot '2018-04-25-151259'

localhost:/ root# sudo tmutil delete 2018-04-25-151259

2018-05-14 00:08:17.321 tmutil[16:477] Failed to take user idle sleep power assertion (IOPMAssertionCreateWithName returned -536878199)

2018-04-25-151259: No such file or directory (error 2)

Total deleted: 0B

localhost:/ root#


As you can see, it does not delete the snapshot and doesn't offer any further explanation, at least in the first attempt. It may be possible that the com.apple.[etc] prefix is required with the plain tmutil delete command, so I'll try that and update this post.


In the meantime, does anyone have any idea as to why I can't delete the snapshot, even though I seem to be entering the command correctly? It's bizarre that it says it didn't delete the snapshot but doesn't explain why...


Thanks!

May 14, 2018 1:17 AM in response to elgrego

Hi, all -


I tried a couple of things, but they didn't work:


  • I tried adding the prefix com.apple.[etc] to the snapshot name when using sudo tmutil delete, but it didn't help. Same errors.
  • On the hunch that maybe the "idle sleep power assertion" error I got had something to do with the fact that my laptop wasn't plugged in at the time, I tried doing the commands again after having attached the power supply and rebooting. No change. Same errors. I just realized that there was a typo in my first post, though. Here's the correct number:

    IOPMAssertionCreateWithName returned -536870199


Any suggestions?

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.