Having lots of difficulties installing the code for a working development environment or otherwise. #fabric


WebZest
 

Hello,
I have tried to setup the development environment, from some reliable sources of installation, such as GoLedger; however, my results are not as described on the Goledger pages.  For example, I am not getting the  Install network Chaincode portion in the report when I call ./startDev.sh.  Please see below.
I tried to update the prerequisites sh file to install the latest version of Golang and Node as well as running the sh file that installs the prerequisites as is, but the results are the same; they do not match the goLedger instructions page and getting lots of errors in the reports: GoLedger

I am getting errors and can't verify the results because they do not match the instruction pages from GoLedger.

---------------------------------------
johnny@JSHLF:~/cc-tools-demo$ ./startDev.sh
"docker rmi" requires at least 1 argument.
See 'docker rmi --help'.
 
Usage:  docker rmi [OPTIONS] IMAGE [IMAGE...]
 
Remove one or more images
4b59d9aea77278c9316486ba13d284d962e17117a0485d0d881ef7792bbfb1c8
5aabadde77a0dd187bc01c846ea5cfc07d86ca87f70f8c7516482dcc29689b05
9e9392a2028e08a9f15eb2e2a9772ea1df539739ca801c8ac0a0252bf11e45bb
24a87e5b059bf3fa93c2e61ea9cbbed3f216e9fff46dfe6ed5c42b9604768fb8
fabric_orderer0.org1.example.com
fabric_orderer0.org2.example.com
fabric_orderer0.org3.example.com
fabric_peer0.org1.example.com
fabric_peer0.org2.example.com
fabric_peer0.org3.example.com
No stopped containers
Untagged: dev-peer0.org1.example.com-cc-tools-demo-0.1-a901886cfe68914269e138b122307822ea9170c9b2da50077ec3ec7ff2d21732:latest
Deleted: sha256:fbc5ca08a04347c455ede26ef6a8db504a0788f1e96849388bad7db43a81fa31
Deleted: sha256:d5a47ae22de2985392e301bf22ae96c8139d6b9f969c97c6a15c777f7716626f
Deleted: sha256:82ec4a9d3e2a263586c792f2c4eb0f884406ebf5505a8a4278906e4c217227ca
Deleted: sha256:1285434ae9a079c25707cab1d337ebc97007398a9b127e294660fefaebdb67fc
Network cc-tools-demo-net is external, skipping
Removing volume fabric_orderer0.org1.example.com
WARNING: Volume fabric_orderer0.org1.example.com not found.
Removing volume fabric_peer0.org1.example.com
WARNING: Volume fabric_peer0.org1.example.com not found.
Removing volume fabric_orderer0.org2.example.com
WARNING: Volume fabric_orderer0.org2.example.com not found.
Removing volume fabric_peer0.org2.example.com
WARNING: Volume fabric_peer0.org2.example.com not found.
Removing volume fabric_orderer0.org3.example.com
WARNING: Volume fabric_orderer0.org3.example.com not found.
Removing volume fabric_peer0.org3.example.com
WARNING: Volume fabric_peer0.org3.example.com not found.
Error response from daemon: network with name cc-tools-demo-net already exists
"docker volume rm" requires at least 1 argument.
See 'docker volume rm --help'.
 
Usage:  docker volume rm [OPTIONS] VOLUME [VOLUME...]
 
Remove one or more volumes
WARNING! This will remove all local volumes not used by at least one container.
Are you sure you want to continue? [y/N] Total reclaimed space: 0B
Error response from daemon: network with name cc-tools-demo-net already exists
Pulling orderer0.org1.example.com    ... done
Pulling peer0.org1.example.com       ... done
Pulling couch.peer0.org1.example.com ... done
Pulling orderer0.org2.example.com    ... done
Pulling peer0.org2.example.com       ... done
Pulling couch.peer0.org2.example.com ... done
Pulling orderer0.org3.example.com    ... done
Pulling peer0.org3.example.com       ... done
Pulling couch.peer0.org3.example.com ... done
Pulling api.org1.example.com         ... done
Pulling api.org2.example.com         ... done
Pulling api.org3.example.com         ... done
Pulling cli                          ... done
Creating volume "fabric_orderer0.org1.example.com" with default driver
Creating volume "fabric_peer0.org1.example.com" with default driver
Creating volume "fabric_orderer0.org2.example.com" with default driver
Creating volume "fabric_peer0.org2.example.com" with default driver
Creating volume "fabric_orderer0.org3.example.com" with default driver
Creating volume "fabric_peer0.org3.example.com" with default driver
Creating peer0.org2.example.com       ... done
Creating api.org3.example.com         ... done
Creating cli                          ... done
Creating couch.peer0.org2.example.com ... done
Creating orderer0.org3.example.com    ... done
Creating peer0.org1.example.com       ... done
Creating api.org2.example.com         ... done
Creating couch.peer0.org3.example.com ... done
Creating orderer0.org2.example.com    ... done
Creating couch.peer0.org1.example.com ... done
Creating peer0.org3.example.com       ... done
Creating api.org1.example.com         ... done
Creating orderer0.org1.example.com    ... done
 
 
Create channel - mainchannel
{"status":"SUCCESS","created":true}
 
Join org1 to channel
{"status":"SUCCESS"}
 
Join org2 to channel
{"status":"SUCCESS"}
 
Join org3 to channel
{"status":"SUCCESS"}
 
Update anchor peers on org1
{"status":"SUCCESS"}
 
Update anchor peers on org2
{"status":"SUCCESS"}
 
Update anchor peers on org3
{"status":"SUCCESS"}
 
Install chaincode on org1
{"status":"SUCCESS"}
 
Install chaincode on org2
{"status":"SUCCESS"}
 
Install chaincode on org3
{"status":"SUCCESS"}
 
Instantiate chaincode
{"started":true}
 
d116f24cdd8f
d116f24cdd8f
Network cc-tools-demo-net is external, skipping
Starting intermediate-container ... done
Creating ccapi.org1.example.com ... done
Creating ccapi.org2.example.com ... done
Creating ccapi.org3.example.com ... done
johnny@JSHLF:~/cc-tools-demo$ docker logs ccapi.org1.example.com
 
> cc-tools-demoapi@1.0.0 start /rest-server
> gulp default; gulp start
 
[19:59:38] Using gulpfile /rest-server/gulpfile.js
[19:59:38] Starting 'default'...
[19:59:38] Starting 'assets'...
[19:59:38] Finished 'default' after 28 ms
[19:59:38] Finished 'assets' after 29 ms
src/routes/chaincode/invokeTx.ts(30,7): error TS2322: Type 'string[] | ParsedQs[]' is not assignable to type 'string[]'.
  Type 'ParsedQs[]' is not assignable to type 'string[]'.
    Type 'ParsedQs' is not assignable to type 'string'.
src/routes/chaincode/invokeTx.ts(32,27): error TS2322: Type 'string | ParsedQs' is not assignable to type 'string'.
  Type 'ParsedQs' is not assignable to type 'string'.
TypeScript: 2 semantic errors
TypeScript: emit succeeded (with errors)
Error: TypeScript: Compilation failed
    at Output.mightFinish (/rest-server/node_modules/gulp-typescript/release/output.js:130:43)
    at applySourceMap.then.appliedSourceMap (/rest-server/node_modules/gulp-typescript/release/output.js:43:22)
    at <anonymous>
[20:00:46] Using gulpfile /rest-server/gulpfile.js
[20:00:46] Starting 'start'...
[20:00:46] [nodemon] 2.0.15
[20:00:46] [nodemon] to restart at any time, enter `rs`
[20:00:46] [nodemon] watching path(s): src/**/*
[20:00:46] [nodemon] watching extensions: js,mjs,json
[20:00:46] [nodemon] starting `node dist/`
Listening on port 80
johnny@JSHLF:~/cc-tools-demo$


Ry Jones
 

Hi,
If you're just getting started with Fabric development, I suggest using minifab to get up and running:

On Wed, Nov 10, 2021 at 12:28 PM WebZest <js@...> wrote:
Hello,
I have tried to setup the development environment, from some reliable sources of installation, such as GoLedger; however, my results are not as described on the Goledger pages.  For example, I am not getting the  Install network Chaincode portion in the report when I call ./startDev.sh.  Please see below.
I tried to update the prerequisites sh file to install the latest version of Golang and Node as well as running the sh file that installs the prerequisites as is, but the results are the same; they do not match the goLedger instructions page and getting lots of errors in the reports: GoLedger
--
Ry Jones
Community Architect, Hyperledger


David Faulstich Diniz Reis
 

And you may use ibm microfab:


Hi is integrated with ibm vs code extension:


.

Best regards,

David

Em qua., 10 de nov. de 2021 19:17, Ry Jones <rjones@...> escreveu:

Hi,
If you're just getting started with Fabric development, I suggest using minifab to get up and running:

On Wed, Nov 10, 2021 at 12:28 PM WebZest <js@...> wrote:
Hello,
I have tried to setup the development environment, from some reliable sources of installation, such as GoLedger; however, my results are not as described on the Goledger pages.  For example, I am not getting the  Install network Chaincode portion in the report when I call ./startDev.sh.  Please see below.
I tried to update the prerequisites sh file to install the latest version of Golang and Node as well as running the sh file that installs the prerequisites as is, but the results are the same; they do not match the goLedger instructions page and getting lots of errors in the reports: GoLedger
--
Ry Jones
Community Architect, Hyperledger


Sam Venzi
 

Hello WebZest,

My name is Sam, from the GoLedger team.

We have since removed the networkChaincode functionality and this output from the documentation is outdated. 
As long as you get a SUCCESS during the Chaincode Instantiation you’re good to go.

I apologize for this inconsistency and feel free to contact me if you need anymore help with cc-tools.

Best, 
Sam


Marcos Sarres
 

Hello Johnny,

 

We will fix this compilation messages soon, but do not worry, your HL Fabric is good to go.

 

Do not forget to run the script:

 

./run-cc-web.sh 8080 >> /dev/null &

This will allow you to use the web app integrated with your chaincode.

 

If you have any other questions, contact us at our Discord community.

 

Regards,

 

Marcos Sarres | CEO | +55 61 98116 7866

 

 

De: fabric@... <fabric@...> Em nome de WebZest
Enviada em: quarta-feira, 10 de novembro de 2021 17:29
Para: fabric@...
Assunto: [Hyperledger Fabric] Having lots of difficulties installing the code for a working development environment or otherwise. #fabric

 

Hello,
I have tried to setup the development environment, from some reliable sources of installation, such as GoLedger; however, my results are not as described on the Goledger pages.  For example, I am not getting the  Install network Chaincode portion in the report when I call ./startDev.sh.  Please see below.
I tried to update the prerequisites sh file to install the latest version of Golang and Node as well as running the sh file that installs the prerequisites as is, but the results are the same; they do not match the goLedger instructions page and getting lots of errors in the reports: GoLedger

I am getting errors and can't verify the results because they do not match the instruction pages from GoLedger.

---------------------------------------

johnny@JSHLF:~/cc-tools-demo$ ./startDev.sh

"docker rmi" requires at least 1 argument.

See 'docker rmi --help'.

 

Usage:  docker rmi [OPTIONS] IMAGE [IMAGE...]

 

Remove one or more images

4b59d9aea77278c9316486ba13d284d962e17117a0485d0d881ef7792bbfb1c8

5aabadde77a0dd187bc01c846ea5cfc07d86ca87f70f8c7516482dcc29689b05

9e9392a2028e08a9f15eb2e2a9772ea1df539739ca801c8ac0a0252bf11e45bb

24a87e5b059bf3fa93c2e61ea9cbbed3f216e9fff46dfe6ed5c42b9604768fb8

fabric_orderer0.org1.example.com

fabric_orderer0.org2.example.com

fabric_orderer0.org3.example.com

fabric_peer0.org1.example.com

fabric_peer0.org2.example.com

fabric_peer0.org3.example.com

No stopped containers

Untagged: dev-peer0.org1.example.com-cc-tools-demo-0.1-a901886cfe68914269e138b122307822ea9170c9b2da50077ec3ec7ff2d21732:latest

Deleted: sha256:fbc5ca08a04347c455ede26ef6a8db504a0788f1e96849388bad7db43a81fa31

Deleted: sha256:d5a47ae22de2985392e301bf22ae96c8139d6b9f969c97c6a15c777f7716626f

Deleted: sha256:82ec4a9d3e2a263586c792f2c4eb0f884406ebf5505a8a4278906e4c217227ca

Deleted: sha256:1285434ae9a079c25707cab1d337ebc97007398a9b127e294660fefaebdb67fc

Network cc-tools-demo-net is external, skipping

Removing volume fabric_orderer0.org1.example.com

WARNING: Volume fabric_orderer0.org1.example.com not found.

Removing volume fabric_peer0.org1.example.com

WARNING: Volume fabric_peer0.org1.example.com not found.

Removing volume fabric_orderer0.org2.example.com

WARNING: Volume fabric_orderer0.org2.example.com not found.

Removing volume fabric_peer0.org2.example.com

WARNING: Volume fabric_peer0.org2.example.com not found.

Removing volume fabric_orderer0.org3.example.com

WARNING: Volume fabric_orderer0.org3.example.com not found.

Removing volume fabric_peer0.org3.example.com

WARNING: Volume fabric_peer0.org3.example.com not found.

Error response from daemon: network with name cc-tools-demo-net already exists

"docker volume rm" requires at least 1 argument.

See 'docker volume rm --help'.

 

Usage:  docker volume rm [OPTIONS] VOLUME [VOLUME...]

 

Remove one or more volumes

WARNING! This will remove all local volumes not used by at least one container.

Are you sure you want to continue? [y/N] Total reclaimed space: 0B

Error response from daemon: network with name cc-tools-demo-net already exists

Pulling orderer0.org1.example.com    ... done

Pulling peer0.org1.example.com       ... done

Pulling couch.peer0.org1.example.com ... done

Pulling orderer0.org2.example.com    ... done

Pulling peer0.org2.example.com       ... done

Pulling couch.peer0.org2.example.com ... done

Pulling orderer0.org3.example.com    ... done

Pulling peer0.org3.example.com       ... done

Pulling couch.peer0.org3.example.com ... done

Pulling api.org1.example.com         ... done

Pulling api.org2.example.com         ... done

Pulling api.org3.example.com         ... done

Pulling cli                          ... done

Creating volume "fabric_orderer0.org1.example.com" with default driver

Creating volume "fabric_peer0.org1.example.com" with default driver

Creating volume "fabric_orderer0.org2.example.com" with default driver

Creating volume "fabric_peer0.org2.example.com" with default driver

Creating volume "fabric_orderer0.org3.example.com" with default driver

Creating volume "fabric_peer0.org3.example.com" with default driver

Creating peer0.org2.example.com       ... done

Creating api.org3.example.com         ... done

Creating cli                          ... done

Creating couch.peer0.org2.example.com ... done

Creating orderer0.org3.example.com    ... done

Creating peer0.org1.example.com       ... done

Creating api.org2.example.com         ... done

Creating couch.peer0.org3.example.com ... done

Creating orderer0.org2.example.com    ... done

Creating couch.peer0.org1.example.com ... done

Creating peer0.org3.example.com       ... done

Creating api.org1.example.com         ... done

Creating orderer0.org1.example.com    ... done

 

 

Create channel - mainchannel

{"status":"SUCCESS","created":true}

 

Join org1 to channel

{"status":"SUCCESS"}

 

Join org2 to channel

{"status":"SUCCESS"}

 

Join org3 to channel

{"status":"SUCCESS"}

 

Update anchor peers on org1

{"status":"SUCCESS"}

 

Update anchor peers on org2

{"status":"SUCCESS"}

 

Update anchor peers on org3

{"status":"SUCCESS"}

 

Install chaincode on org1

{"status":"SUCCESS"}

 

Install chaincode on org2

{"status":"SUCCESS"}

 

Install chaincode on org3

{"status":"SUCCESS"}

 

Instantiate chaincode

{"started":true}

 

d116f24cdd8f

d116f24cdd8f

Network cc-tools-demo-net is external, skipping

Starting intermediate-container ... done

Creating ccapi.org1.example.com ... done

Creating ccapi.org2.example.com ... done

Creating ccapi.org3.example.com ... done

johnny@JSHLF:~/cc-tools-demo$ docker logs ccapi.org1.example.com

 

> cc-tools-demoapi@1.0.0 start /rest-server

> gulp default; gulp start

 

[19:59:38] Using gulpfile /rest-server/gulpfile.js

[19:59:38] Starting 'default'...

[19:59:38] Starting 'assets'...

[19:59:38] Finished 'default' after 28 ms

[19:59:38] Finished 'assets' after 29 ms

src/routes/chaincode/invokeTx.ts(30,7): error TS2322: Type 'string[] | ParsedQs[]' is not assignable to type 'string[]'.

  Type 'ParsedQs[]' is not assignable to type 'string[]'.

    Type 'ParsedQs' is not assignable to type 'string'.

src/routes/chaincode/invokeTx.ts(32,27): error TS2322: Type 'string | ParsedQs' is not assignable to type 'string'.

  Type 'ParsedQs' is not assignable to type 'string'.

TypeScript: 2 semantic errors

TypeScript: emit succeeded (with errors)

Error: TypeScript: Compilation failed

    at Output.mightFinish (/rest-server/node_modules/gulp-typescript/release/output.js:130:43)

    at applySourceMap.then.appliedSourceMap (/rest-server/node_modules/gulp-typescript/release/output.js:43:22)

    at <anonymous>

[20:00:46] Using gulpfile /rest-server/gulpfile.js

[20:00:46] Starting 'start'...

[20:00:46] [nodemon] 2.0.15

[20:00:46] [nodemon] to restart at any time, enter `rs`

[20:00:46] [nodemon] watching path(s): src/**/*

[20:00:46] [nodemon] watching extensions: js,mjs,json

[20:00:46] [nodemon] starting `node dist/`

Listening on port 80

johnny@JSHLF:~/cc-tools-demo$