Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipfs-car CLI hangs with large directory #114

Open
bryanblaz opened this issue Feb 1, 2022 · 7 comments
Open

ipfs-car CLI hangs with large directory #114

bryanblaz opened this issue Feb 1, 2022 · 7 comments

Comments

@bryanblaz
Copy link

Why when I type in this function it doesn't do anything but sits there

@vasco-santos
Copy link
Collaborator

Hello @bryanblaz

What do you mean by sits there? The usage of CLI should be:

--pack <path> --output <my.car>
--unpack <my.car> --output <path>

@bryanblaz
Copy link
Author

Hello vasco-santos,
Thanks for replying, but it just sits there whenever I run the commend

Capture

@vasco-santos
Copy link
Collaborator

@bryanblaz can you try with a single file to understand if it is an issue with large data?

How big is your images folder and how many files you have there?

@bryanblaz
Copy link
Author

@vasco-santos I've tried a singles file, something happens.

The images folder is 6GB and there are 4000 images in it, but I thought the size didn't matter.

@Ysh-22
Copy link

Ysh-22 commented Feb 8, 2022

Same issue here, but it's a little different from yours.
I was somehow able to generate my CAR file, but my issue happened while uploading to nft.storage
I got the following error.
Error uploading: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.
My file is a little over 9 gigs and it has around 11k files

@vasco-santos vasco-santos changed the title ipfs-car --path ipfs-car CLI hangs with large directory Feb 14, 2022
@vasco-santos
Copy link
Collaborator

The images folder is 6GB and there are 4000 images in it, but I thought the size didn't matter.

It doesn't "matter" in Node.js because we write temporary files in disk. However, we have some known issues with large directories with lot's of files. We are tracking this in nftstorage/nft.storage#928 and aim to solve soon.

@Ysh-22

You are trying to upload in the browser, right? It's browser dependant but I believe Chrome has 1-2GB memory limit and I believe this is the root of the the error message you're receiving. This is because we can currently only stream data with Node.js, not browser

We're building a desktop uploader and also making changes under the hood to allow full streaming of the content.

@blahah
Copy link

blahah commented Jul 11, 2022

The example in the screenshot above 'hangs' because the command includes a single unescaped quote, so the command is not executed. The > on its own line indicates that the command is still being entered. You need to double-quote escape the filename, then it will run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants