Solana create_candy_machine result in custom program error: 0x8f - solana

After uploaded my asset, I'm trying to create candy machine with
ts-node src/candy-machine-cli.ts create_candy_machine --env devnet --keypair "~\.config\solana\devnet.json" -s xxx -p 1
But I ran into
Transaction simulation failed: Error processing Instruction 0: custom
program error: 0x8f
Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ invoke [1]
Program 11111111111111111111111111111111 invoke [2]
Program 11111111111111111111111111111111 success
Program log: Custom program error: 0x8f
Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ consumed 17076 of 200000 compute units
Program cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ failed: custom program error: 0x8f
The post on issue-exploer of metaplex talks about error: 0x8f doesn't seem to match my case.

My problem was in param -s xxx, the xxx should be the wallet public-key but I pasted candy-machine init public-key.

Related

"Candy Machine v2" - Solana uploading NFT assets failed - "Transaction was not confirmed in 60.01 seconds". Unknown "Candy Machine PublicKey"

I've prepared NFT collection of 2 items for uploading it to the Solana blockchain with using "Candy Machine v2" on the mainnet-beta cluster.
According Solana documentation > Creating the Candy Machine I've tried to upload assets with the CLI.
I've test it with sending small number of assets (2 items).
Unfortunatelly I've got following error message:
"Translating error Error: Transaction was not confirmed in 60.01 seconds. It is unknown if it succeeded or failed. Check signature 2txvVMJ3UK3BHMbppH91uxUL2AS3tNF5Mgf716ZL2kjbgMcffLTMav9d2UFzbeDghH4mcRJNEcZKFq1yATHCtziB using the Solana Explorer or CLI tools."
Transaction is shown as "Success - Finalized" on the solscan:
https://solscan.io/tx/2txvVMJ3UK3BHMbppH91uxUL2AS3tNF5Mgf716ZL2kjbgMcffLTMav9d2UFzbeDghH4mcRJNEcZKFq1yATHCtziB
The problem is the funds has stacked.
How do I get it back?
I have no idea how to retrieve Candy Machine Id.
I guess I could withdraw Rent according to Withdraw Rent documentation.
When I make next try I'll get the same issue.
My CLI commands is:
$ ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts upload -e mainnet-beta -k ~/.config/solana/mainnet-beta.json -cp ./config.json -c example -rl 1 ./assets
wallet public key: 4SLTKpLxcBLxM6PQwgWveYBeYMDyK6GgvmCPUESBbDL4
(node:4402) ExperimentalWarning: buffer.Blob is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Beginning the upload for 2 (img+json) pairs
started at: 1651274892714
initializing candy machine
Translating error Error: Transaction was not confirmed in 60.01 seconds. It is unknown if it succeeded or failed. Check signature 2txvVMJ3UK3BHMbppH91uxUL2AS3tNF5Mgf716ZL2kjbgMcffLTMav9d2UFzbeDghH4mcRJNEcZKFq1yATHCtziB using the Solana Explorer or CLI tools.
at Connection.confirmTransaction (/home/adam/metaplex/js/node_modules/#solana/web3.js/src/connection.ts:2782:13)
at async sendAndConfirmRawTransaction (/home/adam/metaplex/js/node_modules/#solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:33:5)
at async Provider.send (/home/adam/metaplex/js/node_modules/#project-serum/anchor/src/provider.ts:114:18)
at async Object.rpc [as initializeCandyMachine] (/home/adam/metaplex/js/node_modules/#project-serum/anchor/src/program/namespace/rpc.ts:19:23)
at async createCandyMachineV2 (/home/adam/metaplex/js/packages/cli/src/helpers/accounts.ts:156:11)
at async uploadV2 (/home/adam/metaplex/js/packages/cli/src/commands/upload.ts:148:19)
at async Command.<anonymous> (/home/adam/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:269:7)
Error deploying config to Solana network. Error: Transaction was not confirmed in 60.01 seconds. It is unknown if it succeeded or failed. Check signature 2txvVMJ3UK3BHMbppH91uxUL2AS3tNF5Mgf716ZL2kjbgMcffLTMav9d2UFzbeDghH4mcRJNEcZKFq1yATHCtziB using the Solana Explorer or CLI tools.
at Connection.confirmTransaction (/home/adam/metaplex/js/node_modules/#solana/web3.js/src/connection.ts:2782:13)
at async sendAndConfirmRawTransaction (/home/adam/metaplex/js/node_modules/#solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:33:5)
at async Provider.send (/home/adam/metaplex/js/node_modules/#project-serum/anchor/src/provider.ts:114:18)
at async Object.rpc [as initializeCandyMachine] (/home/adam/metaplex/js/node_modules/#project-serum/anchor/src/program/namespace/rpc.ts:19:23)
at async createCandyMachineV2 (/home/adam/metaplex/js/packages/cli/src/helpers/accounts.ts:156:11)
at async uploadV2 (/home/adam/metaplex/js/packages/cli/src/commands/upload.ts:148:19)
at async Command.<anonymous> (/home/adam/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:269:7)
upload was not successful, please re-run. Error: Transaction was not confirmed in 60.01 seconds. It is unknown if it succeeded or failed. Check signature 2txvVMJ3UK3BHMbppH91uxUL2AS3tNF5Mgf716ZL2kjbgMcffLTMav9d2UFzbeDghH4mcRJNEcZKFq1yATHCtziB using the Solana Explorer or CLI tools.
at Connection.confirmTransaction (/home/adam/metaplex/js/node_modules/#solana/web3.js/src/connection.ts:2782:13)
at async sendAndConfirmRawTransaction (/home/adam/metaplex/js/node_modules/#solana/web3.js/src/util/send-and-confirm-raw-transaction.ts:33:5)
at async Provider.send (/home/adam/metaplex/js/node_modules/#project-serum/anchor/src/provider.ts:114:18)
at async Object.rpc [as initializeCandyMachine] (/home/adam/metaplex/js/node_modules/#project-serum/anchor/src/program/namespace/rpc.ts:19:23)
at async createCandyMachineV2 (/home/adam/metaplex/js/packages/cli/src/helpers/accounts.ts:156:11)
at async uploadV2 (/home/adam/metaplex/js/packages/cli/src/commands/upload.ts:148:19)
at async Command.<anonymous> (/home/adam/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts:269:7)
My solana config is:
$ solana config get
Config File: /home/adam/.config/solana/cli/config.yml
RPC URL: https://api.mainnet-beta.solana.com
WebSocket URL: wss://api.mainnet-beta.solana.com/ (computed)
Keypair Path: /home/adam/.config/solana/mainnet-beta.json
Commitment: confirmed
Run the command in your CMD. This command does not require the candy machine ID.
ts-node ~/metaplex/js/packages/cli/src/candy-machine-v2-cli.ts withdraw_all \
-e devnet \
-k ~/.config/solana/devnet.json

`Invalid blockhash` error while deploying smart contract

I am trying to deploy the demo smart contract on solana for chainlink price feed but getting an error. I followed all the steps from https://docs.chain.link/docs/solana/using-data-feeds-solana/
$ anchor deploy --provider.wallet ./id.json --provider.cluster devnet
Deploying workspace: https://api.devnet.solana.com
Upgrade authority: ./id.json
Deploying program "chainlink_solana_demo"...
Program path: /home/test/solana-starter-kit/target/deploy/chainlink_solana_demo.so...
=============================================================================
Recover the intermediate account's ephemeral keypair file with
`solana-keygen recover` and the following 12-word seed phrase:
=============================================================================
until reason almost can clean wish trend buffalo future auto artefact balcony
=============================================================================
To resume a deploy, pass the recovered keypair as the
[BUFFER_SIGNER] to `solana program deploy` or `solana write-buffer'.
Or to recover the account's lamports, pass it as the
[BUFFER_ACCOUNT_ADDRESS] argument to `solana program close`.
=============================================================================
Error: Custom: Invalid blockhash
There was a problem deploying: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" }.
This is just a timeout error message. It happens from time to time depending on the network availability
Follow these steps and run again. I've also found that you'll want quite a bit more sol in your wallet than you think you need.
To resume a deploy, pass the recovered keypair as the
[BUFFER_SIGNER] to `solana program deploy` or `solana write-buffer'.
Or to recover the account's lamports, pass it as the
[BUFFER_ACCOUNT_ADDRESS] argument to `solana program close`.

Why do I get a "0x1004" when trying to deploy my solana anchor IDL?

When I try to deploy an IDL with anchor, I get a cryptic "Custom Error 0x1004" message. What does this mean:?
$ anchor idl init --provider.cluster testnet --filepath ./target/idl/myprogram.json sa3BafcCxwD6G3tUbvTcvnCD28sCXhpasauLtpw9HdA
Error: Error processing Instruction 0: custom program error: 0x1004
0x1004 is hexadecimal for 4100, or the DeclaredProgramIdMismatch error.
So somewhere in your program, you're declaring a different program id than the one you deployed with:
declare_id!("some_other_program_id"); // this is not your program id!

Configuring the REST server with a persistent data store

I am having problems trying to deploy the rest server with persistence storage (mongo db) I ge this message when deploying the rest server:
docker logs -f rest
[2018-03-12 00:01:13] PM2 log: Launching in no daemon mode
[2018-03-12 00:01:14] PM2 log: Starting execution sequence in -fork mode- for app name:composer-rest-server id:0
[2018-03-12 00:01:14] PM2 log: App name:composer-rest-server id:0 online
WARNING: NODE_APP_INSTANCE value of '0' did not match any instance config file names.
WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode
Discovering types from business network definition ...
Connection fails: Error: Error trying to ping. Error: Error trying to query business network. Error: REQUEST_TIMEOUT
It will be retried for the next request.
Exception: Error: Error trying to ping. Error: Error trying to query business network. Error: REQUEST_TIMEOUT
Error: Error trying to ping. Error: Error trying to query business network. Error: REQUEST_TIMEOUT
at _checkRuntimeVersions.then.catch (/home/composer/.npm-global/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:699:34)
at
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
[2018-03-12 00:07:03] PM2 log: App [composer-rest-server] with id [0] and pid [14], exited with code [1] via signal [SIGINT]
I am using composer v.18
is there any work around to fix this error. when I run the composer-rest- server alone it work. but if I try to add the mongodb it does not work

Webcam Performance System Test - WNCameraRequirements - Error: parseEtl Failed with error REGDB_E_CLASSNOTREG (0x80040154)

I am running whck performance tests on our camera, the test that currently fails is:
Webcam Performance System Test - WNCameraRequirements
the test iterates thourgh the camera media types and records a etl file as expected, its stops and closes the camera but then the test fails due to the parsing of the etl file, the logs:
Start Operation: parseEtl average 250 endGuid
{B8197C10-845F-40ca-82AB-9341E98CFC2B} endId 215 max 275 name Time to
switch Preview MediaTypes scenario DiffEventSeries skip 1 startGuid
{B8197C10-845F-40ca-82AB-9341E98CFC2B} startId 243
Parsing Etl: previewIterateMediaTypes_7-20_10-22-58.etl
Warning: CoCreateInstance(CLSID_EtwFilter, NULL, CLSCTX_ALL, IID_IEtwFilter,
(void**)spEtwFilter.ReleaseAndGetAddressOf()) failed with
REGDB_E_CLASSNOTREG (0x80040154)
Warning:
* File: testsrc\multimediatest\common\helpers\capture\videocaptureperf\videocaptureperf.cpp
Ln: 260
Warning: DiffEventSeries( etlFileName, pszStartEventGuid,
startId, pszEndEventGuid, endId, &min, &max, &ave, skip,
m_spLog.Get()) failed with REGDB_E_CLASSNOTREG (0x80040154)
Warning:
* File: testsrc\multimediatest\common\helpers\capture\captureengine\captureengineautomation.cpp
Ln: 2109
Error: parseEtl Failed with error REGDB_E_CLASSNOTREG
(0x80040154)
I tried searcing for a missing dll for ETW but I found nothing related. seems like theres a bug in the whck test while trying to parse the generated etl file... is this Error seems familier to anyone??
thanks!
I used the wrong whql tests platform version (needed x64), and I needed to regsvr32 etwpatterns.dll. that being said, this test is filtered out by microsoft (whql filters) so we eventually ignored it.

Resources