Hyperledger Caliper on Sample Repo - hyperledger

I'm setting up Hyperledger Caliper and using it to test the sample repo. While performing this:
npx caliper launch manager --caliper-workspace . --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/ethereum/1node-clique/networkconfig.json
I got these errors:
2022.05.30-13:14:17.377 error [caliper] [caliper-utils] Unsuccessful command execution. Error code: 1. Terminating signal: null
2022.05.30-13:14:17.377 error [caliper] [caliper-engine] An error occurred while executing the start command: Error: Command failed: cd .; docker-compose -f ./networks/ethereum/1node-clique/docker-compose.yml up -d && sleep 60s
2022.05.30-11:47:31.196 error [caliper] [cli-launch-manager] Benchmark failed with error code 3
What's Benchmark failed with error code 3?

Related

FAILURE: Build failed with an exception

I'm trying to run my app from inside Visual studio code, but every time I try i get this error:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:validateSigningDebug'.
java.util.concurrent.ExecutionException: com.android.builder.utils.SynchronizedFile$ActionExecutionException: java.io.IOException: com.android.ide.common.signing.KeytoolException: Failed to create keystore.
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2s
Exception: Gradle task assembleDebug failed with exit code 1
Although I searched on Google, but I did not get a suitable solution to my problem

How to fix yarn ios build error in React Native?

When I run:
yarn ios
it throws this error:
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/applemacbook/Library/Developer/Xcode/DerivedData/AwesomeProject-dqnlgtsougxpuwdghrmclyntrevj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-1FA6E1255725D37983E4E9DE0E0B6F29.sh
(1 failure)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Execution failed for task ':website:buildDockerImage'. using gradlew build of apache beam

I need to build apache beam using gradle . ./gradlew build . However, I got the following error :
Execution failed for task ':website:buildDockerImage'. > A problem occurred starting process 'command 'docker''
java version : openjdk version "1.8.0_265"
gradle version : Gradle 5.4
By using --info , I got the following :
Caching disabled for task ':website:buildDockerImage' because:
Caching has not been enabled for the task
Task ':website:buildDockerImage' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Starting process 'command 'docker''. Working directory: /home/namenode/beam/website Command: docker build -t beam-website .
:website:buildDockerImage (Thread[Daemon worker Thread 20,5,main]) completed. Took 0.018 secs.
Closing Git repo: /home/namenode/beam/.git
Closing Git repo: /home/namenode/beam/.git
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':website:buildDockerImage'.
> A problem occurred starting process 'command 'docker''
while --stacktrace outputs :
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':website:buildDockerImage'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:200)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:198)
at org.gradle.process.internal.ExecHandleRunner.startProcess(ExecHandleRunner.java:98)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:71)
... more
Caused by: java.io.IOException: Cannot run program "docker" (in directory "/home/namenode/beam/website"): error=2, No such file or directory
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
... 8 more
BUILD FAILED in 1s
1 actionable task: 1 executed
[root#namenode beam]# ./gradlew build
Watching the file system is not supported on this operating system.
Configuration on demand is an incubating feature.
> Task :website:buildDockerImage FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':website:buildDockerImage'.
> A problem occurred starting process 'command 'docker''
how can I proceed ?

Fail to install signed package with peer chaincode install command

I follow the instruction in the following link to install signed package.
https://hyperledger-fabric.readthedocs.io/en/v1.0.0-beta/cc-packaging-and-signing.html
But I got the following error when execute "peer chaincode install ccpack.out".
The error message is
Error: Error endorsing chaincode: rpc error: code = Unknown desc = proto: bad wiretype for field peer.ChaincodeSpec.Type: got wiretype 2, want 0
If I omit the -s flag in the create chaincode package step, the the raw ChaincodeDeploymentSpe can be successfully installed.
Can someone help me how to install the package with signature (i.e. with -s flag)?
There is a CR pending review https://gerrit.hyperledger.org/r/#/c/12727/ which should fix this issue.

docker build fails in jhipster

Can someone point me in the right direction for the error below?
I have DOCKER_HOST set (192.168.99.100:2376)
I entered the following command on my windows box:
mvnw package -Pprod docker:build -DskipTests -e
All works fine but, when building the image, I am getting the following error:
[ERROR] Failed to execute goal
com.spotify:docker-maven-plugin:0.4.10:build (default-cli) on project
truup: Exception caught: java.util.concurrent.ExecutionException:
com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException:
org.apache.http.client.ClientProtocolException: The server failed to
respond with a valid HTTP response -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal com.spotify:docker-maven-plugin:0.4.10:build
(default-cli) on project truup: Exception caught
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
It sounds like what described at ClientProtocolException (Windows 10 using Docker Toolbox).
Check these environment variables:
set DOCKER_HOST=tcp://192.168.99.100:2376
set DOCKER_MACHINE_NAME=default
set DOCKER_TLS_VERIFY=1
set DOCKER_TOOLBOX_INSTALL_PATH=C:\Program Files\Docker Toolbox
set DOCKER_CERT_PATH=C:\Users\myuserhere.docker\machine\machines\default

Resources