metaplex-foundation / metaplex

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

Unable to mint (Please help) #1408

Closed Medienor closed 2 years ago

Medienor commented 2 years ago

Hello, everything is okey.. except for mint part.. can't seem to mint.

i use this command: ts-node candy-machine-v2-cli.ts mint_one_token -e devnet -k DEV9PBu7gJDfxhuui5X4Yy1m6SABmXKfoupycrCe3PCQ.json -c cm2test

here is console log:

mintproblem
jzsiggy commented 2 years ago

Same issue here!

alialani1993 commented 2 years ago

same issue with u, one thing i noticed when uploading is the size. see how it says size 0 undefined. does urs say that when you upload?

image_2022-01-07_101843

Medienor commented 2 years ago

Yes it does, but it's successfull

fre. 7. jan. 2022, 16:20 skrev alialani1993 @.***>:

same issue with u, one thing i noticed when uploading is the size. see how it says size 0 undefined. does urs say that when you upload?

[image: image_2022-01-07_101843] https://user-images.githubusercontent.com/30391298/148564785-633b0ddf-c67f-45e7-b08e-5988792de466.png

— Reply to this email directly, view it on GitHub https://github.com/metaplex-foundation/metaplex/issues/1408#issuecomment-1007489348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AROLR7Y7CPWIFFTTBPWQU6LUU376TANCNFSM5LLAEFVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

Medienor commented 2 years ago

It look just like urs

fre. 7. jan. 2022, 17:15 skrev Josef Eines @.***>:

Yes it does, but it's successfull

fre. 7. jan. 2022, 16:20 skrev alialani1993 @.***>:

same issue with u, one thing i noticed when uploading is the size. see how it says size 0 undefined. does urs say that when you upload?

[image: image_2022-01-07_101843] https://user-images.githubusercontent.com/30391298/148564785-633b0ddf-c67f-45e7-b08e-5988792de466.png

— Reply to this email directly, view it on GitHub https://github.com/metaplex-foundation/metaplex/issues/1408#issuecomment-1007489348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AROLR7Y7CPWIFFTTBPWQU6LUU376TANCNFSM5LLAEFVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

calam1 commented 2 years ago

I got a similar error

REST null result for 2wiTwqt9sE5Hh1xABrYMvxkLXgaEftoSZawWsiYfHweqbYKzEebKXfq5dhxdaeRF99Yj6VjcnFvu6cdNjoFfkdf8 null
Rejected via websocket { InstructionError: [ 4, { Custom: 319 } ] }
Timeout Error caught {
  err: { InstructionError: [ 4, [Object] ] },
  slot: 106257777,
  confirmations: 0
}
alialani1993 commented 2 years ago

anybody find a solution yet?

Bladen1 commented 2 years ago

Having the same issue. Using a Macbook.

›› image

alialani1993 commented 2 years ago

what helped me was starting over.

calam1 commented 2 years ago

what helped me was starting over.

yeah, it's odd for me. I deleted the repo and tried it again on my Mac just now. I got the same error. Not sure what I am doing wrong if you got it to work (assuming you ran on a mac). But running on my Ubuntu setup, was a lot less problems, I uploaded multiple times, and minted. Guess I will stick with my linux setup when I run metaplex, at least for now.

alialani1993 commented 2 years ago

Im on windows, but i found that i need to delete the .cache folder that gets generated when i restart

reynolkb commented 2 years ago

i'm running into this problem as well on a mac, if anyone finds a fix please let me know.

Bladen1 commented 2 years ago

Well I tried to restart and start again, but again failed. I followed the metaplex documents guidelines.

Has anyway strayed away from the metaplex docs and still got it to work?

what-name commented 2 years ago

same issue with u, one thing i noticed when uploading is the size. see how it says size 0 undefined. does urs say that when you upload?

image_2022-01-07_101843

Please paste in here the exact command you used for uploading.

The issue here is that you're not uploading any assedts. Maybe you didn't execute the upload command right. Make sure to input where your assets are located when you run upload. See: https://docs.metaplex.com/candy-machine-v2/creating-candy-machine

alialani1993 commented 2 years ago

I've learned lots about candymachine cli in the last day or two. I've found that deleting the file in the .cache folder or using a different file name for -c in ur upload command helps this issue. Others may not be having the issue for the same reason as I did, but this is what solved it for me. If you're following the metaplex documentation u will be using "-c example". After you upload once, you cannot use "example" anymore until you delete the 'devnet-example' file from inside the .cache folder OR use something else like "-c example2". Hope that helps someone.

Bladen1 commented 2 years ago

Uploading seems to be ok for me....

I then verify the upload which seems to be fine

But then when i come to mint, it crashes

imageimage image image

Bladen1 commented 2 years ago

I've learned lots about candymachine cli in the last day or two. I've found that deleting the file in the .cache folder or using a different file name for -c in ur upload command helps this issue. Others may not be having the issue for the same reason as I did, but this is what solved it for me. If you're following the metaplex documentation u will be using "-c example". After you upload once, you cannot use "example" anymore until you delete the 'devnet-example' file from inside the .cache folder OR use something else like "-c example2". Hope that helps someone.

Ok cool, will try that

reynolkb commented 2 years ago

I was having issues with the command line and also trying to get the minting react app to work. Below are the solutions I found.

Command Line I updated gatekeeper to null which seemed to fix the issue for me. I'm able to mint now through the command line.

The one thing i'm not sure about is the command line is returning No instructions provided, but is minting the tokens. Not sure if this matters or not?

Minting React App i was given this tip, if you change line 170 to const presale = state.data.whitelistMintSettings?.presale && it worked for me. essentially all you're adding is the new es6 optional chaining operator. i was getting an error in the console which is below. By adding the ? you're essentially saying that if the data before ?. is nullish then it will return undefined which fixed the issue for me.

calam1 commented 2 years ago

I was having issues with the command line and also trying to get the minting react app to work. Below are the solutions I found.

Command Line I updated gatekeeper to null which seemed to fix the issue for me. I'm able to mint now through the command line.

The one thing i'm not sure about is the command line is returning No instructions provided, but is minting the tokens. Not sure if this matters or not?

Minting React App i was given this tip, if you change line 170 to const presale = state.data.whitelistMintSettings?.presale && it worked for me. essentially all you're adding is the new es6 optional chaining operator. i was getting an error in the console which is below. By adding the ? you're essentially saying that if the data before ?. is nullish then it will return undefined which fixed the issue for me.

regarding the CLI on a mac, the changing the gatekeeper to null worked for me just now I deleted my original comment regarding mac vs ubuntu. I inadvertently forgot that I also set the gatekeeper to null on my ubuntu. I was making changes for hours, and spaced it out; because I was so happy it worked :) so apologies for that

what-name commented 2 years ago

See fix https://github.com/metaplex-foundation/metaplex/pull/1470 for the error seen on screenshot above.

Bladen1 commented 2 years ago

I was having issues with the command line and also trying to get the minting react app to work. Below are the solutions I found.

Command Line I updated gatekeeper to null which seemed to fix the issue for me. I'm able to mint now through the command line.

The one thing i'm not sure about is the command line is returning No instructions provided, but is minting the tokens. Not sure if this matters or not?

Minting React App i was given this tip, if you change line 170 to const presale = state.data.whitelistMintSettings?.presale && it worked for me. essentially all you're adding is the new es6 optional chaining operator. i was getting an error in the console which is below. By adding the ? you're essentially saying that if the data before ?. is nullish then it will return undefined which fixed the issue for me.

This worked for me. Switching off the captcha and stating it as null.

I guess this is a little win. Gonna have to turn on the Captcha when going live.

goriunov commented 2 years ago

https://github.com/metaplex-foundation/metaplex/pull/1458

ricarra08 commented 2 years ago

Per Documentation: When you use a captcha, you will not be able to mint from the CLI command mint_one_token. If you want to pre-mint from a CMv2 and are planning to use a captcha, you should set the goLiveDate to null and turn captcha (temporarily) off. This will allow you to mint from the command line, but only you as the CMv2 authority. Once you complete the pre-mint, turn captch on and set the correct goLiveDate.

Solution: Change the configuration file properties in metaplex. Set:
"gatekeeper" : null "goLiveDate" : null

Update your config file by running this command: ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts update_candy_machine

and including the necessary flags and you should be good to go

sirateck commented 2 years ago

Per Documentation: When you use a captcha, you will not be able to mint from the CLI command mint_one_token. If you want to pre-mint from a CMv2 and are planning to use a captcha, you should set the goLiveDate to null and turn captcha (temporarily) off. This will allow you to mint from the command line, but only you as the CMv2 authority. Once you complete the pre-mint, turn captch on and set the correct goLiveDate.

Solution: Change the configuration file properties in metaplex. Set: "gatekeeper" : null "goLiveDate" : null

Update your config file by running this command: ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts update_candy_machine

and including the necessary flags and you should be good to go

Nice answer! It's working for me 👏

victorajayi commented 2 years ago

how do i check the candymachine authority?

ricarra08 commented 2 years ago

ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts show \ -e devnet \ -k ~/.config/solana/devnet.json \ -c example

But with your own flags
0xSmick commented 2 years ago

Per Documentation: When you use a captcha, you will not be able to mint from the CLI command mint_one_token. If you want to pre-mint from a CMv2 and are planning to use a captcha, you should set the goLiveDate to null and turn captcha (temporarily) off. This will allow you to mint from the command line, but only you as the CMv2 authority. Once you complete the pre-mint, turn captch on and set the correct goLiveDate. Solution: Change the configuration file properties in metaplex. Set: "gatekeeper" : null "goLiveDate" : null Update your config file by running this command: ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts update_candy_machine and including the necessary flags and you should be good to go

Nice answer! It's working for me 👏

This also worked for me - use https://docs.metaplex.com/candy-machine-v2/update for correct flags for update_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.