question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding files fails if not enough space on primary drive

See original GitHub issue

I use ipfs-desktop 0.8.0.0 (and go-ipfs 0.4.21) on Windows 10. I configured IPFS to use a secondary partition for the blocks (drive N in my case). IPFS is installed on my primary drive, C. I created this configuration by editing the config.json of IPFS Desktop and its ipfsConfig / path value.

I tried to add a bigger file (3.3 GB). IPFS first tried to create multiple files in the %APPDATA%/IPFS Desktop/blob_storage. I didn’t expect this, because I set the storage path to the drive N. When I didn’t have enough space on my drive C for those files, the adding failed with a general error message, but I didn’t get an exact error explaining the reason.

It would be good to check the space on both the primary drive (with the blob_storage folder, C in my case) and the drive containing the blocks (N in my case) if they have enough space for the adding before starting the operation, and let the user know if they need to make more space to continue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hacdiascommented, Aug 29, 2019

My problem seems to be solved for now

That’s great! Although, I will leave this issue open until I can find a way to make sure this doesn’t happen.

is there a way to turn on the logging of the exact ipfs commands that ipfs-desktop executes on the daemon?

No, unfortunately no. We’re using js-ipfs-http-client which then makes requests to the IPFS HTTP API. The paths of the API could be easily mapped to strict commands, however that’s not a current feature of ours.

0reactions
lidelcommented, Oct 12, 2020

I added a 3.3 GB file with ipfs add <file> and the blocks became 30.6 GB, so everything looked good when I used go-ipfs directly.

Then I deleted the file using the ipfs files rm <file> command.

I run the ipfs repo gc once again, but the blocks folder stayed 30.6 GB, I don’t know why, I expected it to shrink by 3.3 GB.

When you use CLI, the ipfs add pins added data, so it is protected against GC. You can remove pins via ipfs pin rm $CID, or disable automatic pinning by executing ipfs add --pin=false

ps. adding big files should be MUCH faster in v0.13.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix There is Not Enough Space on the Disk to ...
Fix 1: Rescan Disks in Disk Management · Fix 2: Check Current Partitions · Fix 3: Convert Basic Disk to Dynamic · Fix...
Read more >
FIX - Flash Drive Says Not Enough Free Space but There Is ...
The answer is positive. "Not enough free space on flash drive" error is caused due to the destination hard drive running an FAT32...
Read more >
How to Fix Not Enough Disk Space but There Is Plenty [100 ...
If there is not enough unallocated space on your disk, right-click on a big partition with enough free space, select "Allocate space".
Read more >
4 Ways to Fix the "Not Enough Disk Space for Windows 10 ...
If you have some unallocated space, right-click the C: drive and select Extend Volume to add the unallocated space.
Read more >
Low Disk Space error due to a full Temp folder
Steps to take if your Temp folder continually fills up with APPX files after emptying it out.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found