metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.32k stars 6.26k forks source link

[Bug]: upload was not successful, please re-run. [Error: ENOENT: no such file or directory, stat #1767

Closed KENHAU closed 2 years ago

KENHAU commented 2 years ago

Which package is this bug report for?

candy machine cli

Issue description

I try to upload my collection on-chain, I ensure that I follow the right steps and which was successful in my testing upload. However, when I try to upload my real collection on-chain, the following errors occur:

wallet public key: xxxxxxxxxx Beginning the upload for 10 (img+json) pairs started at: 1644587242600 config for a candy machine with publickey: xxxxxxxxxxxx has been already initialized Uploading Size 1 { mediaExt: '.png', index: '0' } Saved bundle upload result to cache. upload was not successful, please re-run. [Error: ENOENT: no such file or directory, stat 'C:\Users\ken\NFT\hashlips_art_engine\exports\image.png'] { errno: -4058, code: 'ENOENT', syscall: 'stat', path: 'C:\Users\ken\NFT\hashlips_art_engine\exports\image.png' }

I have only 10 pairs .png and json, from 0-9.png and 0-9.json

I don't understand why it asks me to have the imapge.png in my exports folder. I think it is not necessary because it should be auto get the first file name and start the upload until I set the number of files in the config.js, I was successful to upload during my test progress and I sure that image.png is not required.

Could anyone please give me the direction to fix the problem, thank you.

Command

ts-node candy-machine-v2-cli.js upload C:\Users\ken\NFT\hashlips_art_engine\exports -e mainnet-beta --keypair C:\Users\ken\.config\solana\id.json -cp C:\Users\ken\git\nft\metaplex\js\packages\cli\build\config.js

Relevant log output

No response

Operating system

WIN10

Priority this issue should have

High (immediate attention needed)

Check the Docs First

kelvin2180 commented 2 years ago

sudo

BHALEYART commented 2 years ago

Also experiencing this issue. Used V2 about two weeks ago just fine, didn't try to call "image.png" randomly from no where.

paulinhoAlmeida commented 2 years ago

I am experience this issue right now

stegaBOB commented 2 years ago

Are you still having this issue? Its likely calculating a path wrong in one of your json files resulting in it thinking image.png is a file it has to upload. Can you share one of the .json files? Thanks

github-actions[bot] commented 2 years ago

This Issue has received no activity for 30 days. We will close it in 2 days, please reopen if you are still experiencing this issue.

CuseTheJuice commented 2 years ago

"config for a candy machine with publickey: xxxxxxxxxxxx has been already initialized" be sure to delete the .json file matching your candy machine -cp in the .cache directory I'm assuming you have already withdrawn this candy machine

github-actions[bot] commented 2 years ago

This Issue has received no activity for 30 days. We will close it in 2 days, please reopen if you are still experiencing this issue.