When using the Metaplex candy machine CLI upload command, a timeout error may occur during the initializing config step. This error looks like: Error: Transaction was not confirmed in 60.00 seconds. It is unknown if it succeeded or failed.
If this happens, your deployment wallet might appear to have lost funds without the command completing. Because the transaction may have actually succeeded on-chain despite the timeout, you must manually recover the state to resume the upload.
Recovery Steps:
- Identify the Transaction Hash: Locate the signature hash (
HASH_HERE) from the error message. - Inspect the Transaction: Go to
https://solscan.io/tx/HASH_HERE to view the transaction details. - Extract Account Values: Look for the
Create Account instruction. Identify and save the values for the first two input accounts: NewAccount and Source. - Create a Temporary Cache File: In your project's
.cache folder, create a file named mainnet-beta-temp (with no file extension). - Configure the Cache File: Populate the file with a JSON object using the values extracted from Solscan. Use the first 6 characters of the
NewAccount value for the uuid field. - Resume Upload: Re-run the upload command. It should now resume from the point of failure instead of restarting.
{
"program":{
"uuid":"First 6 Characters of the NewAccount value",
"config":"NewAccount Value"
},
"items":{
},
"env":"mainnet-beta",
"cacheName":"temp",
"authority":"Source Value"
}