aliciaadley
Hi

I am having a lot of trouble with Hyperledger.
This is the command I ran in the bash terminal using VS Code: ./ byfn.sh up This is the output I received: fatal error: runtime: bsdthread_register error runtime stack: runtime.throw(0x17b0345, 0x21) /opt/go/go1.10.4.linux.amd64/src/runtime/panic.go:616 +0x81 fp=0x7ff7bfeff2b8 sp=0x7ff7bfeff298 pc=0x1028fa1 runtime.goenvs() /opt/go/go1.10.4.linux.amd64/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff2e8 sp=0x7ff7bfeff2b8 pc=0x1026b23 runtime.schedinit() /opt/go/go1.10.4.linux.amd64/src/runtime/proc.go:501 +0xd6 fp=0x7ff7bfeff350 sp=0x7ff7bfeff2e8 pc=0x102b896 runtime.rt0_go(0x7ff7bfeff388, 0x2, 0x7ff7bfeff388, 0x0, 0x1000000, 0x2, 0x7ff7bfeff598, 0x7ff7bfeff5a6, 0x0, 0x7ff7bfeff5ae, ...) /opt/go/go1.10.4.linux.amd64/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff358 sp=0x7ff7bfeff350 pc=0x1051f24 Unable to find image 'hyperledger/fabric-tools:latest' locally docker: Error response from daemon: manifest for hyperledger/fabric-tools:latest not found: manifest unknown: manifest unknown. See 'docker run --help'. LOCAL_VERSION= DOCKER_IMAGE_VERSION= /Users/katlegomatebane/Go/src/github.com/hyperledger/fabric-samples/first-network/../bin/cryptogen ########################################################## ##### Generate certificates using cryptogen tool ######### ########################################################## + cryptogen generate --config=./crypto-config.yaml fatal error: runtime: bsdthread_register error runtime stack: runtime.throw(0x14f66f7, 0x21) /opt/go/go1.10.4.linux.amd64/src/runtime/panic.go:616 +0x81 fp=0x7ff7bfeff298 sp=0x7ff7bfeff278 pc=0x1028e71 runtime.goenvs() /opt/go/go1.10.4.linux.amd64/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff2c8 sp=0x7ff7bfeff298 pc=0x10269f3 runtime.schedinit() /opt/go/go1.10.4.linux.amd64/src/runtime/proc.go:501 +0xd6 fp=0x7ff7bfeff330 sp=0x7ff7bfeff2c8 pc=0x102b766 runtime.rt0_go(0x7ff7bfeff368, 0x3, 0x7ff7bfeff368, 0x0, 0x1000000, 0x3, 0x7ff7bfeff580, 0x7ff7bfeff58a, 0x7ff7bfeff593, 0x0, ...) /opt/go/go1.10.4.linux.amd64/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff338 sp=0x7ff7bfeff330 pc=0x1051184 + res=2 + set +x Failed to generate certificates... May I please get assistance with this?
Reply 0 0
admin
Hey

Following is the solution to your query:

This error can be caused by multiple issues. I'm pasting the solutions for some of them.

[1] Problem with the GO path:

You might want to check your $PATH and manually clean up $GOPATH/bin and other old relevant Go binaries you've installed.

If you're trying to compile Go, go tool dist clean might help. You might also install a newer version of it that is built with a newer version of Go.

[2] This might not be an issue of vscode. If you open your shell terminal, the error might still be there. Try changing your default terminal to zsh instead of bash. You can follow this to see how to change the vscode default terminal.
Reply 0 0
Reply