Upload failed after 1200 successful ones
GW1919 opened this issue · 7 comments
Received this after only 1200 files uploaded and it still charged me 18 SOL??? Is this SOL lost or are these images still usable? How do I use them and upload the rest?
\node_modules\rpc-websockets\dist\lib\client.js:392
this.socket.close(code || 1000, data);
^
TypeError: Cannot read properties of undefined (reading 'close')
at Client.close (C:\Users\gagew\metaplex\js\node_modules\rpc-websockets\dist\lib\client.js:392:19)
at Timeout._onTimeout (C:\Users\gagew\metaplex\js\node_modules@solana\web3.js\src\connection.ts:3820:30)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)
Hey, ser. Don't panic. The upload command from metaplex can be restarted anytime. The most important is not to delete the .cache folder in the root of your project.
Basically you had an error with the node you are using to upload. I will recommend in the readme.md to use a dedicated node for more performance.
Anyway, for solving your problem, you should just run only the upload command again (not the deploy-mainnet). To do that run:
ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-cli.ts upload ./nfts-sources --env mainnet-beta --keypair ~/.config/solana/candyfactory-mainnet.json
After it finishes and exits without any error, run:
ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-cli.ts create_candy_machine --env mainnet-beta --keypair ~/.config/solana/candyfactory-mainnet.json --price 1 > ./logs/main/candy-machine-log.txt
For creating the candy machine and setting the price, and then run this (for setting the start date, so be sure to change the date):
ts-node ~/metaplex-foundation/metaplex/js/packages/cli/src/candy-machine-cli.ts update_candy_machine -d "25 Sep 2021 00:00:00 UTC" --env mainnet-beta --keypair ~/.config/solana/candyfactory-mainnet.json > ./logs/main/candy-machine-start-date.txt
With all that done, finally run the command for generating the env files:
yarn setup-envs-main
Did it work ser @gw19191 ?