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 command assigns same json to multiple NFTs #2055

Closed will-j-c closed 2 years ago

will-j-c commented 2 years ago

Which package is this bug report for?

candy machine cli

Issue description

Placed the json and png files in the correct folder in with the correct index 0-9 per the example. As you can see in the log file below, for some reason the same json address has been applied 3 times (QmRt68irAsrkA3B15S6o866qoips1cyh5CzVqdmN8pVZuk). I have done this twice and not only has it happened twice but it has been a different json.

No really sure where to go from here.....

Command

ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts upload \
    -e devnet \
    -k ~/.config/solana/devnet.json \
    -cp config2.json \
    -c example \
    -r <my RPC provider gateway>
    ./assets

Relevant log output

wallet public key: 9TxvRVdxgpvShLbc8jYcJaKZdHWsNM3HWmDy66UL9PYj
USING CUSTOM URL https://ancient-purple-shape.solana-devnet.quiknode.pro/0bfda6618f9699823a25d64fc45aa1cde60270d5/
Beginning the upload for 10 (img+json) pairs
started at: 1649860340890
initializing candy machine
Candy machine address:  7NLczVJQiDGJrdJTjfSNTQByuai2Jwc4ekaR9jiVag6s
Collection metadata address:  Dz7A8nuhreUZSGhdvDE2q96qzMnS5KmDGpKsTV8yCVbi
Collection metadata authority:  9TxvRVdxgpvShLbc8jYcJaKZdHWsNM3HWmDy66UL9PYj
Collection master edition address:  8ABfLV3AmujXJnZTBnPYZrC8PjfLh9DXH27D9gzsUwZt
Collection mint address:  2xTXoe1qjRF7gZrw2Xk87styt35pkF5fwFVDQPJqJao8
Collection PDA address:  Eviy457PC83NoMis3Gzz9r7u358DjBW3C9ZDyZ86aXwy
Collection authority record address:  7CmZzpqWo3wMx3DFAoGB7WQ6EHaJr3aL2kXfu8T7MZZj
Collection:  {
  collectionMetadata: 'Dz7A8nuhreUZSGhdvDE2q96qzMnS5KmDGpKsTV8yCVbi',
  collectionPDA: 'Eviy457PC83NoMis3Gzz9r7u358DjBW3C9ZDyZ86aXwy',
  txId: '4ocxJZGDdqV3NEY6YrijaYPATMw7s1MGfCkkFNwDaozhxzubhT8VHnc77q4s86deYug9eiMWrS2Xyw3m48c9AkJL'
}
initialized config for a candy machine with publickey: 7NLczVJQiDGJrdJTjfSNTQByuai2Jwc4ekaR9jiVag6s
[0] out of [10] items have been uploaded
Starting upload for [10] items, format {"mediaExt":".png","index":"0"}
uploaded image:  https://XXX.mypinata.cloud/ipfs/Qmd2hxyhytxtw54fgRywHUkTbchSma11iRAwdxeSYGwGrr
waiting
uploaded image:  https://XXX.mypinata.cloud/ipfs/QmZo3HaDW2z2Cz8nZcYyXbMqwJbFhQ6rFgJeQT1xdDtUik
waiting
uploaded image:  https://XXX.mypinata.cloud/ipfs/QmcS39xtCtV45w6MwgF37HLb41H6CPNmjv7ZJD9UuMaPdV
waiting
uploaded image:  https://XXX.mypinata.cloud/ipfs/Qmf7JAKkQ4xRurW3qdy66SkQnpGzaWNfdkbzq15wvj1V6u
waiting
uploaded image:  https://XXX.mypinata.cloud/ipfs/QmeVkQgzPvhLYDGNH1LFZEMW2NEj9Q2TNwwxWVdTa4tnaq
waiting
uploaded image:  https://XXX.mypinata.cloud/ipfs/Qme5Smy7yyfrxwBJmoeWyUdnRtNxUzonxxQuSqCsuVcG14
waiting
uploaded image:  https://XXX.mypinata.cloud/ipfs/QmTzoNFqCNFjWyZSPiCpHLBLabY2ZteA9gAGLasdcfniXT
waiting
uploaded image:  https://XXX.mypinata.cloud/ipfs/Qma7LVRacY3DDAMNZ5rdJxELTypWadsXKumEGfSHPJRF2u
waiting
uploaded image:  https://XXX.mypinata.cloud/ipfs/QmTZFTVZk4cMg3Fizzstu91MmSpFLPcWpUrkiuN1gTQ7Su
waiting
uploaded image:  https://XXX.mypinata.cloud/ipfs/QmVFFTjkGZpu2BpB7NJmjXrf1daVGk4sn2h2Nbdntt6kMc
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
uploaded manifest:  https://XXX.mypinata.cloud/ipfs/QmQtT1Jtvp4oyiaRC8pRRMLA86mgUe6ov6kqSipap65jeY
uploaded manifest:  https://XXX.mypinata.cloud/ipfs/QmXfiMKU16qacmHCYDyC4dnxutvM1JsYZg3mLnWhDdd2tg
uploaded manifest:  https://XXX.mypinata.cloud/ipfs/QmXFuE2mZN4x9XkDUxHgGusozFNFKtJeX93LHVqTqEniq2
uploaded manifest:  https://XXX.mypinata.cloud/ipfs/QmTdnvom31JB86yaVriTwVkHDx3ep5npBFxkuoztsz6Yxa
uploaded manifest:  https://XXX.mypinata.cloud/ipfs/QmRLdjD7jyTesHZcQdPj792QfGt7SmLTDu9xkJ5gA7HdEe
uploaded manifest:  https://XXX.mypinata.cloud/ipfs/QmTdnvom31JB86yaVriTwVkHDx3ep5npBFxkuoztsz6Yxa
uploaded manifest:  https://XXX.mypinata.cloud/ipfs/QmRt68irAsrkA3B15S6o866qoips1cyh5CzVqdmN8pVZuk
uploaded manifest:  https://XXX.mypinata.cloud/ipfs/QmRt68irAsrkA3B15S6o866qoips1cyh5CzVqdmN8pVZuk
uploaded manifest:  https://XXX.mypinata.cloud/ipfs/QmRt68irAsrkA3B15S6o866qoips1cyh5CzVqdmN8pVZuk
waiting
uploaded manifest:  https://boshlike.mypinata.cloud/ipfs/QmcqZHxJwzxxokkfYx4hcqyKnz5Wjt99ew4PzeVTfG2AvA
Writing all indices in 2 transactions...
Done. Successful = true.
ended at: 2022-04-13T14:32:59.164Z. time taken: 00:00:38

Operating system

Windows 10

Priority this issue should have

Medium (should be fixed soon)

Check the Docs First

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.