Anchor Problem Deploying NFT Program to Devnet - blockchain

Error: Deploying program failed: Error processing Instruction 1: custom program error: 0x1
There was a problem deploying: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" }.
What is this error about? How do I fix it?
I have set the config url to the devnet, and I have already airdropped into my wallet sufficient funds to deploy on the devnet.

Found out that the "custom program error: 0x1" error message is another variation of the Insufficient Funds error. Solved this by airdropping my wallet significantly more SOL. To deploy an NFT with Metadata (using Anchor and Metaplex) my transaction used ~4 SOL, far more than I expected.

Related

ARM64 in cpuArchitecture and no Task Running

I am using terraform to create my architecture.
Adding the following rows on the resource ecs_task_definitions
“runtimePlatform”: {
“operatingSystemFamily”: “LINUX”,
“cpuArchitecture”: “ARM64”
},
The task does not run. This is the error
STOPPED (CannotPullContainerError: inspect image has been retried 1 time(s): failed to resolve ref "********.dkr.ecr.eu-central-1.amazonaws.com/ecr-repo-prod:latest": **********.dkr.ecr.eu-central-1.amazonaws.com/ecr-repo-prod:latest: not found)
Do you know where is the problem?

Solana Anchor framework: Can't connect to localhost and therefor not deply to it

Anchor deploy
Deploying workspace: http://localhost:8899
Upgrade authority: /home/tomcatzy/.config/solana/id.json
Deploying program "basic-1"...
Program path: /home/tomcatzy/projects/anchor/examples/tutorial/basic-1/target/deploy/basic_1.so...
Error: RPC request error: cluster version query failed: error sending request for url (http://localhost:8899/): error trying to connect: tcp connect error: Connection refused (os error 111)
There was a problem deploying: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" }.
solana config set --url http://localhost:8899 (Is this enough to start the localhost ?)
solana-keygen new
solana-test-validator
It seems strange that after a succesful anchor build that i can't do a anchor deploy with the solana command lines ran above.
If by any means 'need' to run a - npm init - then where to do it ?
solana config set --url http://localhost:8899 (Is this enough to start the localhost ?)
solana-keygen new
solana-test-validator
I tried the above and got generated a keypair: keyname_1-keypair.json. The build went succesful but the deploy not !
I'm wondering why not ?
Hopefully some can guide me what to get it succed...
In a separate window / terminal, you need to run solana-test-validator so that the tools can talk to your local network. The error you're seeing on deployment is due to an error on connecting to that network.
By following the Solana docs and doing this
sudo $(command -v solana-sys-tuner) --user $(whoami) > sys-tuner.log 2>&1 &
https://docs.solana.com/running-validator/validator-start#system-tuning
The test-ledger folder is done and a sys-tuner.log file is created but it's 0 bytes...
Then i run the solana-test-validator in a separate terminal and the other solana config commands in another termianl then i get the following results ->
You can deploy on-chain programs with the Solana tools.
To deploy a program, you will need the location of the program's shared object.
It will return when you run anchor build in the command line.
Run solana program deploy <PROGRAM_FILEPATH>.
Successful deployment will return the program id of your program.

Error starting my business network within IBM Blockchain

I am creating a business network with IBM Blockchain.
As I try to deploy the business within its directory, it fails with the message :
Starting business network definition. This may take a minute...
Error: Error trying to start business network.
Error: No valid responses from any peers. Response from attempted peer comms was an error:
Error: 2 UNKNOWN: transaction returned with failure:
ReferenceError: require is not defined Command failed".
The command I am using is this one
composer network start -c adminCard -n tutorial-network -V 0.0.1 -A admin -C credentials/admin-pub.pem -f delete_me.card
What should I do to fix this?

Eris blockchain - Monax getting error while deploying smart contracts

I am new to blockchain platforms and eris. trying to get a private blockchain up and running in my Mac OS from here
https://monax.io/docs/tutorials/getting-started/
all went fine until deployment of a smart contract. While performing "eris pkgs do" command, getting below error.
Performing action. This can sometimes take a wee while
Error connecting to node (tcp://chain:46657) to get chain id: Post http://chain:46657: dial tcp 198.105.244.228:46657: getsockopt: connection refused
Could not perform pkg action service: Could not perform pkg action: Container interactive-73d789a8-4693-4a4c-bcf2-ae2005a12d23 exited with status 1
update:
I am now able to get past this error. Followed the Mona tutorial for docker machines.
This took me to the compiler error (error scenario 6 in getting started session).
Now getting below error. the IP address is taken from the active machine by issuing command "docker-machine ls".
GinguVjs-MacBook-Pro:idi ginguvj$ eris pkgs do --chain simplechain --address $addr --compiler 192.168.99.101:2376
Performing action. This can sometimes take a wee while
Executing Job defaultAddr
Executing Job setStorageBase
Executing Job deployStorageK
failed to send HTTP request Post 192.168.99.101:2376: unsupported protocol scheme ""
Error compiling contracts: Compilers error:
Post 192.168.99.101:2376: unsupported protocol scheme ""
Could not perform pkg action service: Could not perform pkg action: Container interactive-671e81dc-4a1b-4e1e-b1ad-b51d955297b1 exited with status 1
GinguVjs-MacBook-Pro:idi ginguvj$
The compilation issue was resolved by adding a "-z" to the end.
"eris pkgs do --chain simplechain --address $addr -z"

error: unknown host service when reinstall_apps in calabash-android

I tried to install test.apk with calabash-android but always failed with following reason.
Following are my steps:
Calabash-android resign test.apk
calabash-android build test.apk
calabash-android gen
calabash-android console test.apk
reinstall_apps
and met following errors, can anyone help a guide where is the problem? THanks.
irb(main):001:0> reinstall_apps
error: unknown host service
error: unknown host service
error: unknown host service
error: unknown host service
error: unknown host service
error: unknown host service
error: unknown host service
NoMethodError: undefined method `chomp' for nil:NilClass
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/c
alabash-android/operations.rb:333:in `install_app'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/c
alabash-android/operations.rb:309:in `reinstall_apps'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/c
alabash-android/operations.rb:106:in `reinstall_apps'
from (irb):1
from C:/Ruby23-x64/bin/irb.cmd:19:in `<main>'
irb(main):002:0>
Its unclear exactly what you are trying to do or your understanding of calabash. Here is an intro guide to help you get set up
https://www.youtube.com/watch?v=bslZMzEkPeU&list=PLInoIpH9dfLyvdaOjozON9QnQP1pK30y-
If you are past all of this, sorry for the inconvenience.
Just figured out that the reason is that Android studio occupy port "5037" that blocks calabash-android's operation.
Just end of the process which take port 5037 works.
THanks all.