# Nodetool refresh claims TOC is empty, but it's not

**URL:** <https://forum.scylladb.com/t/nodetool-refresh-claims-toc-is-empty-but-its-not/4827>\
**Category:** ScyllaDB\
**Tags:** administration, nodetool, sstable\
**Created:** [May 14, 2025, 3:44am UTC](https://forum.scylladb.com/t/nodetool-refresh-claims-toc-is-empty-but-its-not/4827 "2025-05-14T03:44:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daprodigy](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@daprodigy](https://forum.scylladb.com/u/daprodigy)\
**Post date:** [May 14, 2025, 3:44am UTC](https://forum.scylladb.com/t/nodetool-refresh-claims-toc-is-empty-but-its-not/4827/1 "2025-05-14T03:44:50Z")

</div>

_Installation details_  
#ScyllaDB version: 2024.2.9-0.20250423.9aa1f3a492bc  
#Cluster size: 1  
#os (RHEL/CentOS/Ubuntu/AWS AMI): Ubuntu

Hello all

Trying to load some SSTables using nodetool refresh gibing me the following error:

```auto
sstables::malformed_sstable_exception (Empty TOC in sstable /var/lib/scylla/data/edm/zeitreihe-f4e0fec02f3a11f0a243ef45d6d60258/upload/mc-855-big-TOC.txt in sstable /var/lib/scylla/data/edm/zeitreihe-f4e0fec02f3a11f0a243ef45d6d60258/upload/mc-855-big-TOC.txt)

```

The content of the file mc-855-big-TOC.txt is:

```auto
TOC.txt
Summary.db
Index.db
CompressionInfo.db
Filter.db
Data.db
Digest.crc32
Statistics.db

```

Relevant code is in sstables.cc line from 815:

```auto
future<> sstable::read_toc() noexcept {
    if (_recognized_components.size()) {
        co_return;
    }

    try {
        co_await do_read_simple(component_type::TOC, [&] (version_types v, file f) -> future<> {
            auto comps = co_await read_and_parse_toc(f);
            for (auto& c: comps) {
                // accept trailing newlines
                if (c == "") {
                    continue;
                }
                try {
                    _recognized_components.insert(reverse_map(c, sstable_version_constants::get_component_map(_version)));
                } catch (std::out_of_range& oor) {
                    _unrecognized_components.push_back(c);
                    sstlog.info("Unrecognized TOC component was found: {} in sstable {}", c, toc_filename());
                }
            }
            if (!_recognized_components.size()) {
                throw malformed_sstable_exception("Empty TOC", toc_filename());
            }
        });
    } catch (std::system_error& e) {
        if (e.code() == std::error_code(ENOENT, std::system_category())) {
            throw malformed_sstable_exception(fmt::format("{}: file not found", toc_filename()));
        }
        throw;
    }
}

```

Anyone can help?

Thanks a lot.

daprodigy

---

<div class="post-metadata">

**Author:** ![robertbindar](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/robertbindar/32/1767_2.png) [@robertbindar](https://forum.scylladb.com/u/robertbindar)\
**Post date:** [July 17, 2025, 8:13am UTC](https://forum.scylladb.com/t/nodetool-refresh-claims-toc-is-empty-but-its-not/4827/2 "2025-07-17T08:13:00Z")

</div>

Hey @daprodigy,

The TOC file looks alright. Did anyone edit this file manually?  
The only potential problem I see now is that the file is parsed with “\n” as line terminator and maybe that’s not the case with your file.

Also, do you see any “Unrecognized TOC component was found:” info logs?

Cheers,  
Robert

---

<div class="post-metadata">

**Author:** ![daprodigy](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@daprodigy](https://forum.scylladb.com/u/daprodigy)\
**Post date:** [August 23, 2025, 8:09pm UTC](https://forum.scylladb.com/t/nodetool-refresh-claims-toc-is-empty-but-its-not/4827/3 "2025-08-23T20:09:27Z")

</div>

Hello @robertbindar

You were exactly right. The backup was comming from a Windows System. So the line endings are CR+LF. After eliminating the CRs from the file, the import could be processed without a problem.

Thank you very much.

daprodigy

---

<div class="post-metadata">

**Author:** ![robertbindar](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/robertbindar/32/1767_2.png) [@robertbindar](https://forum.scylladb.com/u/robertbindar)\
**Post date:** [August 25, 2025, 5:50am UTC](https://forum.scylladb.com/t/nodetool-refresh-claims-toc-is-empty-but-its-not/4827/4 "2025-08-25T05:50:35Z")

</div>

@daprodigy nice, I’m glad you fixed the issue!
