Skip to content

Problem deleting blobs (failed space/blob/remove invocation) #637

@alexjorgef

Description

@alexjorgef

As I try to clean resources to prevent another bill, as far as I know I cannot delete a space and deleting blobs is a gamble game

$ storacha can blob ls
zQmcj8p8vqtrqabRFUU78Q3apFJD29kLeU3oV2dgeM3eTyM (bafkreigvyywavw6qzbdrgqa4fwxb7t4v3ciy7vuytsffvlghgrmhzretsq)
zQmckLgE1zDM5dfEXRbzpf92y5E6tb8yVPgP9Wvss1HcHcK (bafkreigwcuvmg2tcj2ide5cc3jgum5x6fb54rp37khgajfbtwrdmximlha)
...

When you try to delete your blobs (sometimes works with no errors):

$ storacha can blob rm zQmcj8p8vqtrqabRFUU78Q3apFJD29kLeU3oV2dgeM3eTyM
✖ Error: blob remove failed: failed space/blob/remove invocation
Error: failed space/blob/remove invocation
    at Module.remove (file:///usr/lib/node_modules/@storacha/cli/node_modules/@storacha/upload-client/dist/blob/remove.js:38:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async blobRemove (file:///usr/lib/node_modules/@storacha/cli/can.js:87:5) {
  [cause]: {}
}

Same with the old (I guess) w3.storage cli:

$ w3 can blob ls
zQmcixHtUHrNXG7CU69pkUTeJNVV9dQGzCLwo3dqsqRgG3v (bafkreigvxjdht5hlkep7bbgvmhj44g3yfiuxgm7uicrvmm43gyidhbhj3u)
zQmcj8p8vqtrqabRFUU78Q3apFJD29kLeU3oV2dgeM3eTyM (bafkreigvyywavw6qzbdrgqa4fwxb7t4v3ciy7vuytsffvlghgrmhzretsq)
...

$ w3 can blob rm zQmcixHtUHrNXG7CU69pkUTeJNVV9dQGzCLwo3dqsqRgG3v
✖ Error: blob remove failed: failed space/blob/remove invocation
Error: failed space/blob/remove invocation
    at Module.remove (file:///usr/lib/node_modules/@web3-storage/w3cli/node_modules/@web3-storage/upload-client/dist/src/blob/remove.js:38:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async blobRemove (file:///usr/lib/node_modules/@web3-storage/w3cli/can.js:85:5) {
  [cause]: {}
}

I try to automate the process with a script to all blobs, but appears that the storacha can blob ls do not print all blobs at once. There are no delete buttons in the UI either:

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions