Hyperledger Fabric: Development environment setup make dist-clean allfailing - hyperledger-fabric

I am getting the following error while setting up the development environment for fabric2.3.
go version go1.17.1 linux/amd64
setup environment: Ubuntu 20.04 virtual machine
CLI output after running 'make dist-clean all'
Testing with pkcs11...
Trying configuration [0]
--- FAIL: TestGetBCCSPFromOpts (0.00s)
pkcs11_test.go:67:
Error Trace: pkcs11_test.go:67
Error: Received unexpected error:
pkcs11: library path not provided
Could not initialize BCCSP PKCS11
github.com/hyperledger/fabric/bccsp/factory.GetBCCSPFromOpts
/home/souptik/github.com/souptikmakarov/fabric/bccsp/factory/pkcs11.go:93
github.com/hyperledger/fabric/bccsp/factory.TestGetBCCSPFromOpts
/home/souptik/github.com/souptikmakarov/fabric/bccsp/factory/pkcs11_test.go:57
testing.tRunner
/usr/local/go/src/testing/testing.go:1193
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1371
Test: TestGetBCCSPFromOpts
--- FAIL: TestPKCS11FactoryGet (0.00s)
pkcs11factory_test.go:48:
Error Trace: pkcs11factory_test.go:48
Error: Received unexpected error:
pkcs11: library path not provided
Test: TestPKCS11FactoryGet
--- FAIL: TestPKCS11FactoryGetEmptyKeyStorePath (0.00s)
pkcs11factory_test.go:66:
Error Trace: pkcs11factory_test.go:66
Error: Received unexpected error:
pkcs11: library path not provided
Test: TestPKCS11FactoryGetEmptyKeyStorePath
FAIL
I have even tried installing pkcs11-proxy from https://github.com/SUNET/pkcs11-proxy but that didn't solve the issue
Any help is appreciated in fixing this

Related

When starting session in appium recieving error:

An unknown server-side error occurred while processing the command. Original error: Cannot verify the signature of '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.21.1.apk'. Original error: The JAVA_HOME location '/Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home ' must exist
Can you please check if JAVA_HOME is being configured on your local machine?

Unable to apply changes on device: emulator-5554. Error is: Command gradlew.bat failed with exit code 1

I begin new project with NativeScript, but after more and more try i couldn't fix my error.
After build my application with:
tns run android --device Pixel_4_API_30
i have this error :
Unable to apply changes on device: emulator-5554. Error is: Command gradlew.bat failed with exit code 1.**
...............................................................................................
My trace loge :
#############################################################################
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Debug level logging will leak security sensitive information!
https://docs.gradle.org/6.4/userguide/logging.html#sec:debug_security
#############################################################################
Command gradlew.bat failed with exit code 1
Will send the following information to Google Analytics: {
type: 'googleAnalyticsData',
category: 'CLI',
googleAnalyticsDataType: 'event',
action: 'Performance',
label: 'AndroidProjectService__buildProject',
customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
value: 3529
}
Error: Command gradlew.bat failed with exit code 1
at Errors.failWithOptions (C:\Users\BRYAN\AppData\Roaming\nvm\v12.13.0\node_modules\nativescript\lib\common\errors.js:157:27)
at Errors.fail (C:\Users\BRYAN\AppData\Roaming\nvm\v12.13.0\node_modules\nativescript\lib\common\errors.js:130:21)
at GradleCommandService.<anonymous> (C:\Users\BRYAN\AppData\Roaming\nvm\v12.13.0\node_modules\nativescript\lib\services\android\gradle-command-service.js:40:30)
at Generator.throw (<anonymous>)
at rejected (C:\Users\BRYAN\AppData\Roaming\nvm\v12.13.0\node_modules\nativescript\lib\services\android\gradle-command-service.js:6:65)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
tns info :
√ Getting NativeScript components versions information...
√ Component nativescript has 7.2.0 version and is up to date.
‼ Update available for component #nativescript/core. Your current version is 7.1.4 and the latest available version is 7.3.0.
√ Component #nativescript/ios has 7.2.0 version and is up to date.
√ Component #nativescript/android has 7.0.1 version and is up to date.
Gradle is connected to Java so check your installed version is 8. If not then get the correct version and try again. ns doctor is your friend!
If that doesn't work, stop any java and emulator (android/qemu) related tasks/processes and try again.
If that fails try rebooting your computer and test again.

Hyperledger Fabric and Node.js creation of environment successfully and getting some error in execution

I am creating network but after that when I'm running the query.js and I am getting this errors:
Fatal error in ../deps/v8/src/api.cc, line 1200
Check failed: !value_obj->IsJSReceiver() || value_obj->IsTemplateInfo().
==== C stack trace ===============================
node(v8::base::debug::StackTrace::StackTrace()+0x16) [0x1598936]
node(V8_Fatal+0xd6) [0x15935c6]
node(v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)+0xf7) [0xa9a447]
/home/ubramanyam/fabric-samples/fabcar/node_modules/grpc/src/node/extension_binary
#Subramanyam , What OS and Node version are you using ?
Can you also confirm if you followed instructions given here
http://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html#node-js-runtime-and-npm

Puppet can't deactivate nodes

I'm using Puppet with PuppetDb. The two are connected and I can see PuppetDb update whenever I add or update a node.
But when I try to deactivate a node with puppet node deactivate nodeName I get back:
Warning: Error connecting to puppetdb on 8081 at route /pdb/cmd/v1?checksum=36a4313be5bac718badc45495f0266bf87c7a806&version=3&certname=v-hub-1.5659710c-33d5-45f2-a477-6
ccf1357e1ac.local.dockerapp.io&command=deactivate_node, error message received was 'SSL_connect SYSCALL returned=5 errno=0 state=unknown state'. Failing over to the next
PuppetDB server_url in the 'server_urls' list
Error: Failed to execute '/pdb/cmd/v1?checksum=36a4313be5bac718badc45495f0266bf87c7a806&version=3&certname=v-hub-1.5659710c-33d5-45f2-a477-6ccf1357e1ac.local.dockerapp.i
o&command=deactivate_node' on at least 1 of the following 'server_urls': https://puppetdb:8081
Error: undefined method `[]' for #<Puppet::Util::Log:0x00000003a15178>
Error: Try 'puppet help node deactivate' for usage
Any suggestions on how to debug this? I've tried deleting and regenerating the certificate with puppet cert generate puppetdb. As mentioned when it comes to creating or updating nodes on PuppetDb there is no problem.
Puppetserver version: 2.7.2

rlm_eap error running freeradius in openwrt

I am running openwrt on beagle bone black board. I am getting following error while running freeradius.
radiusd -X
rlm_eap: SSL error error:02001002:lib(2):func(1):reason(2)
rlm_eap_tls: Error reading certificate file /etc/freeradius2/certs/server.pem
rlm_eap: Failed to initialize type tls
/etc/freeradius2/eap.conf[17]: Instantiation failed for module "eap"
/etc/freeradius2/sites/default[312]: Failed to find "eap" in the "modules" section.
/etc/freeradius2/sites/default[254]: Errors parsing authenticate section.
when i checked there is no "cert" directory present in /etc/freeradius2/. Plz help
Problem was solved after installing freeradius2-democerts_2.2.7-1_omap.ipk
after installing following error might trouble:
Debug: Module: Checking authorize {...} for more modules to load
Error: /etc/freeradius2/sites/default[160]: Failed to find "reject" in the "modules" section.
Error: /etc/freeradius2/sites/default[69]: Errors parsing authorize section.
to resolve this go to /etc/freeradius2/sites/default line no. 160. comment the line which has reject word.

Resources