rjones (Mon, 03 Aug 2020 13:07:59 GMT):
@tongli we can debug minifab here if you like for windows 10

tongli (Mon, 03 Aug 2020 13:51:12 GMT):
hi, Ry, yes, we can do this here.

rjones (Mon, 03 Aug 2020 13:51:30 GMT):
OK. what is the next step I should do?

tongli (Mon, 03 Aug 2020 13:51:52 GMT):
I do not really actually have a windows 10 env.

tongli (Mon, 03 Aug 2020 13:52:13 GMT):
it is a bit hard for me to recreate the issue you were reporting.

rjones (Mon, 03 Aug 2020 13:52:24 GMT):
what is your desktop OS?

tongli (Mon, 03 Aug 2020 13:52:36 GMT):
can you see if in the working directory, you have a vars/run directory?

tongli (Mon, 03 Aug 2020 13:52:42 GMT):
I got a mac.

tongli (Mon, 03 Aug 2020 13:52:45 GMT):
OS X

rjones (Mon, 03 Aug 2020 13:53:11 GMT):
https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/

rjones (Mon, 03 Aug 2020 13:53:17 GMT):
free VM there

rjones (Mon, 03 Aug 2020 13:54:33 GMT):
I do, and I showed the content

rjones (Mon, 03 Aug 2020 13:54:39 GMT):
as a comment on github

tongli (Mon, 03 Aug 2020 13:54:48 GMT):
hmmm. really? I did not know that.

rjones (Mon, 03 Aug 2020 13:55:07 GMT):
```C:\Users\s390x\minifabric>dir vars\run\ Volume in drive C is OS Volume Serial Number is 0A64-E736 Directory of C:\Users\s390x\minifabric\vars\run 08/03/2020 06:09 AM

. 08/03/2020 06:09 AM .. 08/03/2020 06:09 AM 336 certtxgen.sh```

tongli (Mon, 03 Aug 2020 13:55:14 GMT):
were you using these machines when you saw errors using minifabric?

tongli (Mon, 03 Aug 2020 13:55:35 GMT):
hmmm. so the certtxgen.sh file was produced.

tongli (Mon, 03 Aug 2020 13:55:44 GMT):
but the scripts says does not exist.

tongli (Mon, 03 Aug 2020 13:56:10 GMT):
interesting.

rjones (Mon, 03 Aug 2020 13:57:42 GMT):
I'm not using those VMs I pointed you to - I'm using retail windows 10

tongli (Mon, 03 Aug 2020 13:57:53 GMT):
you mentioned windows versions.

tongli (Mon, 03 Aug 2020 13:58:04 GMT):
like WSL. what are the differences do you know?

tongli (Mon, 03 Aug 2020 13:58:20 GMT):
you said that on one version it worked, one the other it did not.

tongli (Mon, 03 Aug 2020 13:58:56 GMT):
WSL2 worked, WSL does not?

rjones (Mon, 03 Aug 2020 13:58:58 GMT):
Yes, if I run it in WSL2 directly, it works. If I run it using the instructions at the command prompt, it doesn't

rjones (Mon, 03 Aug 2020 13:59:07 GMT):
I don't have WSL any more

tongli (Mon, 03 Aug 2020 13:59:40 GMT):
wait, what do you mean you run it in WSL2 directly?

rjones (Mon, 03 Aug 2020 13:59:57 GMT):
https://zoom.us/j/2032622322

tongli (Mon, 03 Aug 2020 14:59:47 GMT):
hi, bro,

tongli (Mon, 03 Aug 2020 14:59:55 GMT):
I think that the issue is here.

tongli (Mon, 03 Aug 2020 15:01:46 GMT):
https://github.com/litong01/minifabric/blob/master/playbooks/ops/certgen/createcerts.yaml#L57

rjones (Mon, 03 Aug 2020 15:02:26 GMT):
Ok

rjones (Mon, 03 Aug 2020 15:02:53 GMT):
Should probably be something like $PWD?

tongli (Mon, 03 Aug 2020 15:03:35 GMT):
https://github.com/litong01/minifabric/blob/master/playbooks/ops/netup/apply.yaml#L41

tongli (Mon, 03 Aug 2020 15:04:00 GMT):
these two lines probably need to be removed.

tongli (Mon, 03 Aug 2020 15:04:12 GMT):
if you can test it on windows by rebuilding the docker image

tongli (Mon, 03 Aug 2020 15:04:26 GMT):
then you will need to get the source code.

tongli (Mon, 03 Aug 2020 15:05:00 GMT):
make changes to these two lines by removing them.

tongli (Mon, 03 Aug 2020 15:05:11 GMT):
then do a docker image build

tongli (Mon, 03 Aug 2020 15:05:31 GMT):
```docker build -t hfrd/minifab:latest . ```

tongli (Mon, 03 Aug 2020 15:06:08 GMT):
these have been working for linux. can not get a windows system. sigh!

tongli (Mon, 03 Aug 2020 15:06:32 GMT):
download the VB image which is about 20 gb kept failing on me.

tongli (Mon, 03 Aug 2020 15:06:50 GMT):
and I actually tried that awhile back, docker wont work on the image.

rjones (Mon, 03 Aug 2020 15:07:43 GMT):
so remove 41 and 57

tongli (Mon, 03 Aug 2020 15:08:04 GMT):
yes.

tongli (Mon, 03 Aug 2020 15:08:41 GMT):
I will be testing this on linux and see if I can remove them without causing any issues.

rjones (Mon, 03 Aug 2020 15:10:13 GMT):
```C:\Users\s390x\minifabric>minifabwin.cmd generate standard_init_linux.go:211: exec user process caused "no such file or directory" ```

rjones (Mon, 03 Aug 2020 15:11:07 GMT):
```C:\Users\s390x\minifabric>git diff diff --git a/playbooks/ops/certgen/createcerts.yaml b/playbooks/ops/certgen/createcerts.yaml index 25a55eb..fd670d3 100755 --- a/playbooks/ops/certgen/createcerts.yaml +++ b/playbooks/ops/certgen/createcerts.yaml @@ -54,7 +54,6 @@ - name: Use fabric tools container to create channel artifacts command: >- docker run --rm --name tools - -v /var/run/:/host/var/run -v {{ hostroot}}/vars:/etc/hyperledger/fabric hyperledger/fabric-tools:{{ fabric.release }} /etc/hyperledger/fabric/run/certtxgen.sh diff --git a/playbooks/ops/netup/apply.yaml b/playbooks/ops/netup/apply.yaml index 4038939..12b3c44 100644 --- a/playbooks/ops/netup/apply.yaml +++ b/playbooks/ops/netup/apply.yaml @@ -38,7 +38,6 @@ command: >- docker run -d --network {{ NETNAME }} --name {{ item.fullname }} --hostname {{ item.fullname }} --env-file {{ pjroot }}/vars/run/{{ item.fullname }}.env {{ item.portmap }} - -v /var/run/:/host/var/run -v {{ mpath }}/{{item.org}}/peers/{{item.fullname}}/msp:/etc/hyperledger/fabric/msp -v {{ mpath }}/{{item.org}}/peers/{{item.fullname}}/tls:/etc/hyperledger/fabric/tls -v {{ item.fullname }}:/var/hyperledger/production C:\Users\s390x\minifabric>```

rjones (Mon, 03 Aug 2020 15:11:58 GMT):
```C:\Users\s390x\minifabric>docker build -t hfrd/minifab:latest . Sending build context to Docker daemon 350.7kB Step 1/10 : FROM alpine:latest ---> a24bb4013296 Step 2/10 : LABEL maintainer="litong01@us.ibm.com" ---> Using cache ---> 0847f42be486 Step 3/10 : ENV PYTHONUNBUFFERED=1 ---> Using cache ---> 1ca195ae64bd Step 4/10 : RUN apk add --no-cache bash ansible docker-cli openssl xxd && if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && mkdir -p /usr/lib/python3.8/site-packages/Crypto/Random/Fortuna ---> Using cache ---> 00501a2ae66b Step 5/10 : COPY . /home ---> Using cache ---> 37919077d5a5 Step 6/10 : COPY plugins /usr/lib/python3.8/site-packages/ansible/plugins ---> Using cache ---> 1f40e669f55e Step 7/10 : COPY pypatch /usr/lib/python3.8/site-packages/Crypto/Random/Fortuna ---> Using cache ---> 8642bfac90b0 Step 8/10 : RUN find /home/plugins -delete && find /home/pypatch -delete ---> Using cache ---> 531c4d23b92b Step 9/10 : ENV PATH $PATH:/home/bin ---> Using cache ---> 20bb8fe24824 Step 10/10 : WORKDIR /home ---> Using cache ---> d27fd26565eb Successfully built d27fd26565eb Successfully tagged hfrd/minifab:latest SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories. C:\Users\s390x\minifabric>```

rjones (Mon, 03 Aug 2020 15:15:16 GMT):
ah right, those would trying to run docker inside hyperv, so it wouldn't work

tongli (Mon, 03 Aug 2020 15:16:29 GMT):
sigh!

tongli (Mon, 03 Aug 2020 15:16:59 GMT):
I just tested on linux, removing these two lines wont cause any issues.

tongli (Mon, 03 Aug 2020 15:17:47 GMT):
but I am not 100% positive that the issue is due to these two lines.

tongli (Mon, 03 Aug 2020 15:18:33 GMT):
it seems to me for some reason that the working directory was not mounted to the container correctly.

rjones (Mon, 03 Aug 2020 15:19:05 GMT):
I would say, drop the windows non-WSL2 support.

rjones (Mon, 03 Aug 2020 15:19:26 GMT):
If someone is using Docker, they probably have WSL2, so just say it's a requirement for windows

tongli (Mon, 03 Aug 2020 15:19:33 GMT):
yes

tongli (Mon, 03 Aug 2020 15:19:44 GMT):
that probably would be the better solution.

rjones (Mon, 03 Aug 2020 15:19:58 GMT):
then `git rm minifabwin` and all

tongli (Mon, 03 Aug 2020 15:20:22 GMT):
I really want this thing to work on windows though

tongli (Mon, 03 Aug 2020 15:20:44 GMT):
a lot of people still have only windows.

rjones (Mon, 03 Aug 2020 15:20:46 GMT):
where did you test it in the past?

tongli (Mon, 03 Aug 2020 15:21:06 GMT):
I have an old windows 10 machine (laptop) and did all the tests.

tongli (Mon, 03 Aug 2020 15:21:18 GMT):
then some other people also helped test it on windows.

tongli (Mon, 03 Aug 2020 15:21:38 GMT):
that windows 10 machine is old and slow.

rjones (Mon, 03 Aug 2020 15:21:49 GMT):
```ver Microsoft Windows [Version 10.0.19042.423]```

tongli (Mon, 03 Aug 2020 15:21:54 GMT):
but I do not know if it is windows WSL2 or not.

rjones (Mon, 03 Aug 2020 15:21:54 GMT):
probably newer

rjones (Mon, 03 Aug 2020 15:22:05 GMT):
it probably isn't

tongli (Mon, 03 Aug 2020 15:22:20 GMT):
I can pull that one machine out again and try it.

rjones (Mon, 03 Aug 2020 15:22:36 GMT):
don't get hung up on WSL versus WSL2 versus HyperV

tongli (Mon, 03 Aug 2020 15:22:43 GMT):
but what is the difference between regular windows WSL and WSL 2 are not clear to me.

rjones (Mon, 03 Aug 2020 15:22:52 GMT):
WSL is deprecated

rjones (Mon, 03 Aug 2020 15:23:11 GMT):
I think you're overindexing on WSL.

rjones (Mon, 03 Aug 2020 15:23:20 GMT):
I don't have a machine without it to test on

tongli (Mon, 03 Aug 2020 15:23:21 GMT):
ok.

rjones (Mon, 03 Aug 2020 15:23:49 GMT):
oh, hmm, I have a machine, but I would need to install windows 10 on it

tongli (Mon, 03 Aug 2020 15:24:10 GMT):
I do not have a windows 10 license.

tongli (Mon, 03 Aug 2020 15:24:20 GMT):
nor I have another machine.

rjones (Mon, 03 Aug 2020 15:24:21 GMT):
you don't need one for the first 14 days

tongli (Mon, 03 Aug 2020 15:24:31 GMT):
oh, the trail.

tongli (Mon, 03 Aug 2020 15:24:52 GMT):
let me try the latest minifabric on my windows machine and see what the issue is.

rjones (Mon, 03 Aug 2020 15:25:02 GMT):
ok

tongli (Mon, 03 Aug 2020 15:25:06 GMT):
thanks for trying minifabric, it is getting a lot of attraction.

tongli (Mon, 03 Aug 2020 15:25:23 GMT):
I am doing another webinar next week.

rjones (Mon, 03 Aug 2020 15:25:27 GMT):
with no composer, it's hard

tongli (Mon, 03 Aug 2020 15:25:39 GMT):
right, right.

rjones (Mon, 03 Aug 2020 15:25:49 GMT):
people keep reaching out to us about composer, because it was way easier to get fabric running using composer

tongli (Mon, 03 Aug 2020 15:25:49 GMT):
minifabric is the thing to have.

tongli (Mon, 03 Aug 2020 15:26:06 GMT):
is even easier.

tongli (Mon, 03 Aug 2020 15:26:17 GMT):
will keep you posted.

rjones (Mon, 03 Aug 2020 15:27:27 GMT):
I gotta get better gifs in here

tongli (Mon, 03 Aug 2020 15:27:36 GMT):
haha.

tongli (Mon, 03 Aug 2020 15:35:32 GMT):
@rjones these two lines actually can not be removed. they are still needed.

tongli (Mon, 03 Aug 2020 15:35:41 GMT):
it has to be some other errors.

rjones (Mon, 03 Aug 2020 15:36:01 GMT):
OK.

tongli (Mon, 03 Aug 2020 16:24:45 GMT):
@rjones I pulled my old windows machine out.

tongli (Mon, 03 Aug 2020 16:25:09 GMT):
it is windows 10 Pro, 10.0.18363 Build 18363

tongli (Mon, 03 Aug 2020 16:27:03 GMT):

IMG_3382.HEIC

tongli (Mon, 03 Aug 2020 16:27:12 GMT):

IMG_3383.HEIC

tongli (Mon, 03 Aug 2020 16:28:20 GMT):

IMG_3384.HEIC

tongli (Mon, 03 Aug 2020 16:35:25 GMT):
everything runs correctly.

tongli (Mon, 03 Aug 2020 16:36:39 GMT):
I mean on windows

rjones (Mon, 03 Aug 2020 16:36:43 GMT):
OK. I will need to set up a machine with an older version of windows and see what is broken

rjones (Mon, 03 Aug 2020 16:37:20 GMT):
or perhaps the guidance is, if you're running this version of windows, do this - otherwise, do that

tongli (Mon, 03 Aug 2020 16:37:28 GMT):
I think that our docker version is the same

rjones (Mon, 03 Aug 2020 16:37:47 GMT):
yeah I'm willing to bet it is the windows version, something has changed

rjones (Mon, 03 Aug 2020 16:38:09 GMT):
since I'm on `ver Microsoft Windows [Version 10.0.19042.423]`

tongli (Mon, 03 Aug 2020 16:38:15 GMT):
is your windows pro?

rjones (Mon, 03 Aug 2020 16:38:56 GMT):
yes

tongli (Mon, 03 Aug 2020 16:39:00 GMT):
I mean windwos 10 pro?

rjones (Mon, 03 Aug 2020 16:39:33 GMT):
```OS Name Microsoft Windows 10 Pro Version 10.0.19042 Build 19042 ```

tongli (Mon, 03 Aug 2020 16:39:48 GMT):
yeah, both windows 10 pro

tongli (Mon, 03 Aug 2020 16:39:51 GMT):
sigh!

rjones (Mon, 03 Aug 2020 16:40:09 GMT):
```Virtualization-based security Running Virtualization-based security Required Security Properties Virtualization-based security Available Security Properties Base Virtualization Support, Secure Boot, DMA Protection, SMM Security Mitigations 1.0, Mode Based Execution Control Virtualization-based security Services Configured Virtualization-based security Services Running A hypervisor has been detected. Features required for Hyper-V will not be displayed. ```

rjones (Mon, 03 Aug 2020 16:40:25 GMT):
¯\_(ツ)_/¯

tongli (Mon, 03 Aug 2020 16:40:46 GMT):
how did you get that info? I like to check mine as well

tongli (Mon, 03 Aug 2020 16:41:05 GMT):
BTW, thanks a lot for creating this channel

rjones (Mon, 03 Aug 2020 16:42:46 GMT):
run "system information"

rjones (Mon, 03 Aug 2020 16:43:58 GMT):
if you run it elevated, you'll see more

tongli (Mon, 03 Aug 2020 16:57:35 GMT):
ok

rjones (Mon, 03 Aug 2020 16:57:49 GMT):
did you find it?

tongli (Mon, 03 Aug 2020 16:59:20 GMT):
got to start a meeting. will try after.

tongli (Mon, 03 Aug 2020 16:59:26 GMT):
sorry @rjones

tongli (Mon, 03 Aug 2020 19:55:21 GMT):

IMG_3385.HEIC

tongli (Mon, 03 Aug 2020 19:56:44 GMT):
@rjones the setting is a bit different.

tongli (Mon, 03 Aug 2020 19:56:44 GMT):
@rjones these setting is almost identical

rjones (Mon, 03 Aug 2020 19:59:11 GMT):
OK. I am rolling through all of the windows 10 versions, looking for breaks. So far I'm up to `Version 10.0.18362.959`

tongli (Mon, 03 Aug 2020 19:59:35 GMT):
wow.

tongli (Mon, 03 Aug 2020 19:59:48 GMT):
working or not working?

rjones (Mon, 03 Aug 2020 20:00:13 GMT):
working. The next one is the big jump - it's the first version with wsl2 baked in

tongli (Mon, 03 Aug 2020 20:00:28 GMT):
ok.

tongli (Mon, 03 Aug 2020 20:00:35 GMT):
great. thanks for trying it.

rjones (Mon, 03 Aug 2020 20:54:19 GMT):
@tongli it is WSL2 - I was wrong. Once you install it, minifab is broken

rjones (Mon, 03 Aug 2020 20:55:12 GMT):
the May update, no WSL2 - works fine. Install WSL2 - broken

tongli (Mon, 03 Aug 2020 20:55:42 GMT):
I could not even update to a level which allows me to install WSL2.

rjones (Mon, 03 Aug 2020 20:56:46 GMT):
I think WSL2 is the default now

rjones (Mon, 03 Aug 2020 20:57:08 GMT):
your intuition was correct; I was wrong to dismiss it ¯\_(ツ)_/¯

tongli (Mon, 03 Aug 2020 20:59:31 GMT):
I wonder what made it broken.

zilich (Mon, 03 Aug 2020 21:33:07 GMT):
Has joined the channel.

zilich (Mon, 03 Aug 2020 21:33:08 GMT):
I installed minifab on Windows 10, WSL 2, but this is Ubuntu 20.04 image...WSL 2 is if you have Windows 10 version 2004...

zilich (Mon, 03 Aug 2020 21:34:45 GMT):
I tested on my office computer and on my home laptop... Lenovo...

zilich (Mon, 03 Aug 2020 21:54:06 GMT):

Screenshot_52.jpg

zilich (Mon, 03 Aug 2020 21:55:14 GMT):

Screenshot_53.jpg

zilich (Mon, 03 Aug 2020 21:56:44 GMT):
With this Ubuntu - minifabric work... maybe you can add ABstore example, too... I tested with minifabric, too... Java code...

zilich (Mon, 03 Aug 2020 22:00:08 GMT):

Screenshot_37.jpg

zilich (Mon, 03 Aug 2020 22:03:31 GMT):

Screenshot_39.jpg

zilich (Mon, 03 Aug 2020 22:04:28 GMT):

Screenshot_40.jpg

tongli (Mon, 03 Aug 2020 22:05:06 GMT):
Yeah. As long as it is a Linux it is ok.

tongli (Mon, 03 Aug 2020 22:05:38 GMT):
What ry tried was to run minifabric on native windows

zilich (Mon, 03 Aug 2020 22:05:48 GMT):
Under Windows 10 I have problem at home Laptop...

tongli (Mon, 03 Aug 2020 22:06:10 GMT):
If you have wsl2 installed, it breaks

tongli (Mon, 03 Aug 2020 22:06:23 GMT):
If you just have wsl , works ok

zilich (Mon, 03 Aug 2020 22:06:29 GMT):
I first try this and report error on Forum...

tongli (Mon, 03 Aug 2020 22:07:26 GMT):
I do not have an wsl2 so can’t really see what broke the tool

zilich (Mon, 03 Aug 2020 22:07:41 GMT):
https://lists.hyperledger.org/g/fabric/message/8788

tongli (Mon, 03 Aug 2020 22:08:25 GMT):
Hmmm. That is exact error Ry got

zilich (Mon, 03 Aug 2020 22:08:45 GMT):
minifab.cmd up / have error... and after that I tested minifab.cmd generate...

zilich (Mon, 03 Aug 2020 22:09:23 GMT):
without success

tongli (Mon, 03 Aug 2020 22:09:48 GMT):
So you @zilich must have wsl 2 on your windows

zilich (Mon, 03 Aug 2020 22:11:16 GMT):
I like to work with minifabric without Linux... Or must get Linux Laptop :)

tongli (Mon, 03 Aug 2020 22:11:34 GMT):
Haha.yeah.

tongli (Mon, 03 Aug 2020 22:11:50 GMT):
I suspect it is a real small issue.

zilich (Mon, 03 Aug 2020 22:12:00 GMT):
Windows with Docker and WSL 2/Ubuntu eat memory...

zilich (Mon, 03 Aug 2020 22:12:24 GMT):
When you made new release, I can test it...

zilich (Mon, 03 Aug 2020 22:12:29 GMT):
Let me know...

tongli (Mon, 03 Aug 2020 22:12:49 GMT):
Hmmm, I do not have a wsl2 system

tongli (Mon, 03 Aug 2020 22:13:03 GMT):
Can’t really recreate the issue

tongli (Mon, 03 Aug 2020 22:13:14 GMT):
Or test.

tongli (Mon, 03 Aug 2020 22:13:27 GMT):
Need a wsl2 system so that I can try it

zilich (Mon, 03 Aug 2020 22:13:52 GMT):

Screenshot_54.jpg

tongli (Mon, 03 Aug 2020 22:14:32 GMT):
Right. The system I have can’t be upgraded to wsl2

zilich (Mon, 03 Aug 2020 22:14:45 GMT):
If IBM cant get mashine for test, who can then get???

tongli (Mon, 03 Aug 2020 22:14:58 GMT):
?

zilich (Mon, 03 Aug 2020 22:15:13 GMT):
Work for IBM or not?

tongli (Mon, 03 Aug 2020 22:15:37 GMT):
What r u try to say ?

zilich (Mon, 03 Aug 2020 22:16:03 GMT):
That maybe you can ask to get new comp for test?

zilich (Mon, 03 Aug 2020 22:16:38 GMT):
or to install new virtual windows???

zilich (Mon, 03 Aug 2020 22:16:48 GMT):
Windows 10...

zilich (Mon, 03 Aug 2020 22:17:15 GMT):
I have problem with update to this version, too...

zilich (Mon, 03 Aug 2020 22:17:31 GMT):
You need Windows 10 Pro...

zilich (Mon, 03 Aug 2020 22:19:37 GMT):
I work at Faculty of Economics... SysAdmin... And now is free time... I can test minifab on 50 computers :) If neede ...

zilich (Mon, 03 Aug 2020 22:23:44 GMT):
Bye... Let me know, if I can help...

zilich (Mon, 03 Aug 2020 22:29:09 GMT):

Screenshot_246.jpg

zilich (Mon, 03 Aug 2020 22:33:25 GMT):

Screenshot_44.jpg

tongli (Mon, 03 Aug 2020 22:33:37 GMT):
Minifabric works fine on wsl1

zilich (Mon, 03 Aug 2020 22:34:21 GMT):
In that time, I tested undel Ubuntu... Not with windows only...

zilich (Mon, 03 Aug 2020 22:35:00 GMT):
But at Faculty isnt all computer updated... Only to see one, where I have remote access...

zilich (Mon, 03 Aug 2020 22:38:01 GMT):
I update it, too :(

rjones (Mon, 03 Aug 2020 22:38:47 GMT):
@zilich if you're on a machine with WSL2, use the WSL2 UI (Ubuntu whatever) to use MiniFab. If your machine doesn't have WSL2 installed, you can use the previous instructions at the prompt

zilich (Mon, 03 Aug 2020 22:38:56 GMT):

Screenshot_56.jpg

rjones (Mon, 03 Aug 2020 22:39:54 GMT):
right now, the windows instructions (the minifabwin.cmd file) won't work under the command prompt on a machine with WSL2 installed

rjones (Mon, 03 Aug 2020 22:41:19 GMT):
I've updated the bug: https://github.com/litong01/minifabric/issues/43

zilich (Mon, 03 Aug 2020 22:41:51 GMT):

Screenshot_248.jpg

zilich (Mon, 03 Aug 2020 22:43:17 GMT):
I will test on office comp... There isnt enabled WSL 2... Or I can set version 1 :)

zilich (Mon, 03 Aug 2020 22:43:39 GMT):
And test Windows only installation... With WSL 1...

zilich (Mon, 03 Aug 2020 22:44:01 GMT):
And last version of Windows 10 Pro... 2004

zilich (Mon, 03 Aug 2020 22:44:28 GMT):
I will report if this work or no...

rjones (Mon, 03 Aug 2020 22:45:06 GMT):
I did these tests today, on clean windows 10 with no WSL2, it's fine.

rjones (Mon, 03 Aug 2020 22:46:00 GMT):
@tongli https://github.com/litong01/minifabric/pull/46

zilich (Mon, 03 Aug 2020 22:46:05 GMT):
OK! Thanks for full information... I will make ScreenShots for every step... good night

rjones (Mon, 03 Aug 2020 22:46:24 GMT):
ok

rjones (Mon, 03 Aug 2020 22:46:30 GMT):
have a good day!

zilich (Mon, 03 Aug 2020 22:47:05 GMT):
Are you test other java programs with minifab? From HLF fabric-samples... FabCar?

zilich (Mon, 03 Aug 2020 22:47:16 GMT):
good night...

zilich (Mon, 03 Aug 2020 22:47:28 GMT):
Here is pass midnight...

zilich (Mon, 03 Aug 2020 22:47:35 GMT):
47 minutes ...

zilich (Mon, 03 Aug 2020 22:55:28 GMT):

Screenshot_57.jpg

zilich (Mon, 03 Aug 2020 22:55:52 GMT):
Bye... Thanks...

zilich (Tue, 04 Aug 2020 04:43:39 GMT):
https://medium.com/@gmusumeci/linux-on-windows-totally-how-to-install-wsl-1-and-wsl-2-307c9dd38a36 Maybe you don`t read articles about WSL1 and WSL2...

zilich (Tue, 04 Aug 2020 04:44:54 GMT):
If you update Windows, (Windows update Assistent?), You can switch to WSL 2...

zilich (Tue, 04 Aug 2020 04:45:35 GMT):
I now look revers proccess to switch to WSL 1...

zilich (Tue, 04 Aug 2020 04:51:30 GMT):
Before I installed miniFabric, I look that HLF work for me... Based on this article... https://hackernoon.com/hyperledger-fabric-installation-guide-74065855eca9 Second part is for Windows 10 only...

zilich (Tue, 04 Aug 2020 05:44:27 GMT):

Screenshot_75.jpg

zilich (Tue, 04 Aug 2020 05:46:17 GMT):
I will finish other steps... Like this... https://golang.org/doc/install?download=go1.14.6.windows-amd64.msi

zilich (Tue, 04 Aug 2020 06:22:32 GMT):
wmic /namespace:\\root\wmi path Lenovo_BiosSetting get I see that on this computer is wrong VT-d...

zilich (Tue, 04 Aug 2020 06:22:32 GMT):
wmic /namespace:\\root\wmi path Lenovo_BiosSetting get I see that on this computer have wrong VT-d...

zilich (Tue, 04 Aug 2020 06:23:32 GMT):

Screenshot_77.jpg

zilich (Tue, 04 Aug 2020 06:23:32 GMT):

Screenshot_77.jpg

zilich (Tue, 04 Aug 2020 06:52:05 GMT):

Screenshot_83.jpg

zilich (Tue, 04 Aug 2020 06:53:38 GMT):
There is some VB scripts to change this values... I dont test it...

zilich (Tue, 04 Aug 2020 06:55:51 GMT):
npm install --global windows-build-tools This command add python, too...

zilich (Tue, 04 Aug 2020 06:56:05 GMT):

Screenshot_84.jpg

zilich (Tue, 04 Aug 2020 07:38:56 GMT):

Screenshot_91.jpg

SpecialAgentCooper (Thu, 06 Aug 2020 10:57:31 GMT):
Has joined the channel.

SpecialAgentCooper (Thu, 06 Aug 2020 10:57:31 GMT):
Hi, anyone have any experience using minifab on a restricted network? At work, we use decrypt to decrypt and inspect all HTTPS traffic going into and out of the firm's network. This means that every docker image we use needs to install and trust our root certificates in order to access the web. I'm attempting to extend the images needed for minifab and I've edited "apply.yaml" so that all of the `docker run` commands launch my custom containers instead of the fabric official ones. This has a few issues: (1) I can only target one version of fabric at a time because I don't have an automated way to extend the images (2) I've had to install an additional package (ca-certificates) on fabric-peer and fabric-orderer in order to install the certificates I need, not sure if this would cause any issues (3) it doesn't work - I can bring up a network but I can't get past the 'create channel' step (see thread). We are attempting to build a HLF developer environment at my workplace and this is currently a blocker for us, if anyone has any time to help me out I would greatly appreciate it. Since HLF is targetting enterprise, I think minifab users can expect to encounter this issue in their own workplaces so a general solution may be of significant value. Cheers

SpecialAgentCooper (Thu, 06 Aug 2020 10:58:26 GMT):

Clipboard - August 6, 2020 11:58 AM

rjones (Thu, 06 Aug 2020 14:53:06 GMT):
@SpecialAgentCooper interesting use case

SpecialAgentCooper (Thu, 06 Aug 2020 14:55:49 GMT):
the orderer goes into a loop where it spits out this error message repeatedly before exiting just after: ``` 2020-08-06 13:22:21.960 UTC [orderer.common.cluster] ReplicateChains -> PANI 8bf Failed pulling system channel: failed obtaining the latest block for channel systemchannel panic: Failed pulling system channel: failed obtaining the latest block for channel systemchannel ```

SpecialAgentCooper (Thu, 06 Aug 2020 14:55:49 GMT):
the orderer goes into a loop where it spits out a TLS handshake error message repeatedly before exiting just after: ``` 2020-08-06 13:22:21.960 UTC [orderer.common.cluster] ReplicateChains -> PANI 8bf Failed pulling system channel: failed obtaining the latest block for channel systemchannel panic: Failed pulling system channel: failed obtaining the latest block for channel systemchannel ```

SpecialAgentCooper (Thu, 06 Aug 2020 15:01:16 GMT):
yeah it's a challenge every time we want to get something to work inside our firewall :laughing: Interesting, I can bring up the network and get all the way to "cc install" before it fails if I don't try anything funky with the certs - it fails at the point where it tries to download the GO binaries because the HTTPS request is blocked without our certificates

SpecialAgentCooper (Thu, 06 Aug 2020 15:01:16 GMT):
yeah it's a challenge every time we want to get something to work inside our firewall :laughing: Interestingly, I can bring up the network and get all the way to "cc install" before it fails if I don't try anything funky with the certs - it fails at the point where it tries to download the GO binaries because the HTTPS request is blocked without our certificates

rjones (Thu, 06 Aug 2020 15:03:37 GMT):
hmm. you might be able to build them from source, but that would take forever.

rjones (Thu, 06 Aug 2020 15:04:22 GMT):
the CI to build/publish the docker images for fabric is in the fabric repo, is what I mean.

tongli (Mon, 10 Aug 2020 13:16:16 GMT):
@SpecialAgentCooper hmmm, I think you probably can try to have your own images tagged as hyperledger fabric image and try that way and see how things go.

tongli (Mon, 10 Aug 2020 13:17:47 GMT):
minifabric trusts your env since it should be completely under your control. As long as you have the image tagged as hyperledger/fabric-peer:4.5.1 (see what I did there?), and you are asking for that release during the deployment, then minifabric will happily use your local image to do things.

tongli (Mon, 10 Aug 2020 13:18:01 GMT):
you could even tag your own image like this

tongli (Mon, 10 Aug 2020 13:18:21 GMT):
```hyperledger/fabric-peer:myrelease```

tongli (Mon, 10 Aug 2020 13:18:30 GMT):
then you can run minifabric like this

tongli (Mon, 10 Aug 2020 13:18:41 GMT):
```minifab up -i myrelease```

tongli (Mon, 10 Aug 2020 13:18:47 GMT):
your own image will be used.

tongli (Mon, 10 Aug 2020 13:19:16 GMT):
have not tried this myself, but it should work in terms of using your own images.

SpecialAgentCooper (Mon, 10 Aug 2020 13:24:30 GMT):
Thanks for these suggestions (I'm makkasu from github by the way, we can chat here if you prefer). I'll give this a go.

tongli (Mon, 10 Aug 2020 13:29:27 GMT):
@SpecialAgentCooper too many names, you get me confused. thought two different persons.

SpecialAgentCooper (Mon, 10 Aug 2020 13:29:35 GMT):
Haha sorry about that

tongli (Mon, 10 Aug 2020 13:29:46 GMT):
@SpecialAgentCooper haha, not a problem at all.

SpecialAgentCooper (Mon, 10 Aug 2020 13:30:40 GMT):
Just checked - spec.yaml changes are having no effect at all. Just described a network with extra nodes and they didn't come up: ``` fabric: cas: - "ca1.shang.example.com" - "ca1.edb.example.com" peers: - "peer1.shang.example.com" - "peer2.shang.example.com" - "peer1.edb.example.com" - "peer2.edb.example.com" - "peer3.edb.example.com" orderers: - "orderer1.example.com" - "orderer2.example.com" - "orderer3.example.com" settings: ca: FABRIC_LOGGING_SPEC: DEBUG peer: FABRIC_LOGGING_SPEC: DEBUG CORE_CHAINCODE_BUILDER: max/fabric-nodeenv:latest orderer: FABRIC_LOGGING_SPEC: DEBUG ``` But the network that came up was the default one

SpecialAgentCooper (Mon, 10 Aug 2020 13:31:10 GMT):
Where is this file supposed to live? I've got it in my working directory (same location as minifab.cmd)

tongli (Mon, 10 Aug 2020 13:31:32 GMT):
the spec.yaml file should be located in your working directory.

tongli (Mon, 10 Aug 2020 13:31:47 GMT):
oh , you are on windows?

SpecialAgentCooper (Mon, 10 Aug 2020 13:31:51 GMT):
that's right

tongli (Mon, 10 Aug 2020 13:32:37 GMT):
the location where minifab.cmd is is where you run your command?

tongli (Mon, 10 Aug 2020 13:33:21 GMT):
where you run that command is what working directory is, you can have minifab.cmd in another directory, that directory wont be considered working directory.

pkirkinezis (Mon, 10 Aug 2020 13:41:18 GMT):
Has joined the channel.

pkirkinezis (Mon, 10 Aug 2020 13:46:48 GMT):
If you are on windows you can use

pkirkinezis (Mon, 10 Aug 2020 13:46:59 GMT):
docker run --rm --name minifab -v /var/run/docker.sock:/var/run/docker.sock -v %CD%/vars:/home/vars ^ -v %CD%/spec.yaml:/home/spec.yaml -e "hostroot=%currentdir%" -e "ADDRS=!_alladdress!" hfrd/minifab:latest /home/main.sh %*

pkirkinezis (Mon, 10 Aug 2020 13:47:09 GMT):
on minifab.cmd

SpecialAgentCooper (Mon, 10 Aug 2020 13:47:16 GMT):
I have a working directory which contains/////////////////////////

SpecialAgentCooper (Mon, 10 Aug 2020 13:47:16 GMT):
I have a working directory which contains vars minifab.cmd spec.yaml

pkirkinezis (Mon, 10 Aug 2020 13:47:42 GMT):
What do you mean //////

SpecialAgentCooper (Mon, 10 Aug 2020 13:47:52 GMT):
sorry mistyped, edited now

tongli (Mon, 10 Aug 2020 13:48:32 GMT):
@SpecialAgentCooper do a `minifab.cmd cleanup`, and make sure that your spec.yaml is correct, then try again.

pkirkinezis (Mon, 10 Aug 2020 13:48:33 GMT):
yeah inside mnifab.cmd you have a line of code

tongli (Mon, 10 Aug 2020 13:49:04 GMT):
and assume that you are not messing with minifabric.

SpecialAgentCooper (Mon, 10 Aug 2020 13:49:19 GMT):
yeah I've been using minifab down and minifab cleanup between tests

pkirkinezis (Mon, 10 Aug 2020 13:49:30 GMT):
Yeah in windows cmd tong you are not specifing the path on spec.yaml

tongli (Mon, 10 Aug 2020 13:49:39 GMT):
in one of your posts, you said that you changed some of minifabric stuff.

tongli (Mon, 10 Aug 2020 13:49:53 GMT):
make sure that you are just using the latest minifabric code.

SpecialAgentCooper (Mon, 10 Aug 2020 13:49:55 GMT):
Yes that was a previous attempt - this time I am just using the minifabwin script in a clean irectory

tongli (Mon, 10 Aug 2020 13:50:05 GMT):
ok, good.

SpecialAgentCooper (Mon, 10 Aug 2020 13:50:38 GMT):
should that be in minifab win in place of the normal docker run command?

pkirkinezis (Mon, 10 Aug 2020 13:51:25 GMT):
My suggestion would be to change minifabwin to this docker run --rm --name minifab -v /var/run/docker.sock:/var/run/docker.sock -v %CD%/vars:/home/vars ^ -v %CD%/spec.yaml:/home/spec.yaml -e "hostroot=%currentdir%" -e "ADDRS=!_alladdress!" hfrd/minifab:latest /home/main.sh %*

pkirkinezis (Mon, 10 Aug 2020 13:51:25 GMT):
My suggestion would be to change minifabwin to this `docker run --rm --name minifab -v /var/run/docker.sock:/var/run/docker.sock -v %CD%/vars:/home/vars ^ -v %CD%/spec.yaml:/home/spec.yaml -e "hostroot=%currentdir%" -e "ADDRS=!_alladdress!" hfrd/minifab:latest /home/main.sh %*`

pkirkinezis (Mon, 10 Aug 2020 13:52:39 GMT):
and insert your specific path for spec.yaml

tongli (Mon, 10 Aug 2020 13:58:52 GMT):
@pkirkinezis that should work.

pkirkinezis (Mon, 10 Aug 2020 13:59:13 GMT):
I 99% confident i tried my self

tongli (Mon, 10 Aug 2020 13:59:16 GMT):
and you can put up a PR for minifabwin

tongli (Mon, 10 Aug 2020 13:59:28 GMT):
@pkirkinezis, check if there is a spec.yaml file available.

tongli (Mon, 10 Aug 2020 13:59:28 GMT):
@pkirkinezis

tongli (Mon, 10 Aug 2020 14:00:27 GMT):
that was what the script for linux did. do not remember why it was not done for windows.

pkirkinezis (Mon, 10 Aug 2020 14:03:31 GMT):
Done

tongli (Mon, 10 Aug 2020 14:04:12 GMT):
reviewed, it wont work when there is no spec.yaml file exist.

tongli (Mon, 10 Aug 2020 14:04:26 GMT):
I think there should be a spec.yaml file check.

tongli (Mon, 10 Aug 2020 14:04:32 GMT):
can you add that logic?

pkirkinezis (Mon, 10 Aug 2020 14:04:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=yr97KZFGyJNBddKbP) Yeah i do not know . But i did found out the hard way teaching a colleague of mine that he use windows 5 days ago.

pkirkinezis (Mon, 10 Aug 2020 14:05:27 GMT):
Yeah let me check i will implement a logic asap

tongli (Mon, 10 Aug 2020 14:05:32 GMT):
the idea is that if there is such file in the working directory, then that file should be used. if there is no such file, then the default would be used.

tongli (Mon, 10 Aug 2020 14:06:11 GMT):
that will be the current command, only use your new command when there is such file exists in the current working directory.

pkirkinezis (Mon, 10 Aug 2020 14:07:13 GMT):
Yeah how can i revert my pull request ?

pkirkinezis (Mon, 10 Aug 2020 14:07:23 GMT):
from github UI

tongli (Mon, 10 Aug 2020 14:07:55 GMT):
you can abandon it or simply make update to your commit.

pkirkinezis (Mon, 10 Aug 2020 14:10:26 GMT):
oK

pkirkinezis (Mon, 10 Aug 2020 14:12:39 GMT):
hOW THIS CODE LOOKS LILE

pkirkinezis (Mon, 10 Aug 2020 14:12:40 GMT):
IF EXIST "%CD%/spec.yaml" ( docker run --rm --name minifab -v /var/run/docker.sock:/var/run/docker.sock -v %CD%/vars:/home/vars ^ -v %CD%/spec.yaml:/home/spec.yaml -e "hostroot=%currentdir%" -e "ADDRS=!_alladdress!" hfrd/minifab:latest /home/main.sh %* ) ELSE ( docker run --rm --name minifab -v /var/run/docker.sock:/var/run/docker.sock -v %CD%/vars:/home/vars ^ -e "hostroot=%currentdir%" -e "ADDRS=!_alladdress!" hfrd/minifab:latest /home/main.sh %* )

tongli (Mon, 10 Aug 2020 14:13:26 GMT):
looks good to me.

pkirkinezis (Mon, 10 Aug 2020 14:14:32 GMT):
Done i updated the commit

tongli (Mon, 10 Aug 2020 14:15:06 GMT):
that is two commits,

tongli (Mon, 10 Aug 2020 14:15:14 GMT):
you should squash the commits into one.

SpecialAgentCooper (Mon, 10 Aug 2020 14:17:44 GMT):
I've just tested out the script - when I log in to the peer container I get: ``` / # env | grep BUILDER CORE_CHAINCODE_BUILDER=max/fabric-nodeenv:latest ``` which is good, the spec.yaml file is being read now. However, when the chaincode builder image launches it is still pulling from hyperledger. So I guess that's a Hyperledger issue at this point since it is not using the CORE_CHAINCODE_BUILDER variable to choose the chaincode environment?

tongli (Mon, 10 Aug 2020 14:19:03 GMT):
@SpecialAgentCooper you probably can point it to some different repo. or try to have that image local to the machine that you are running.

tongli (Mon, 10 Aug 2020 14:19:46 GMT):
do you have the image tagged max/fabric-nodeenv:latest on your machine?

tongli (Mon, 10 Aug 2020 14:20:10 GMT):
or do you have that image on docker hub? if neither, it wont work.

SpecialAgentCooper (Mon, 10 Aug 2020 14:20:22 GMT):
yes: ``` docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE max/fabric-nodeenv latest b1201b995698 3 hours ago 294MB ```

tongli (Mon, 10 Aug 2020 14:20:43 GMT):
then it should work.

SpecialAgentCooper (Mon, 10 Aug 2020 14:20:53 GMT):
interesting

tongli (Mon, 10 Aug 2020 14:21:22 GMT):
you can remove the hyperledger/fabric-nodeenv and try again and see if it gets downloaded.

tongli (Mon, 10 Aug 2020 14:21:29 GMT):
if it is, then it has to be a fabric issue.

pkirkinezis (Mon, 10 Aug 2020 14:23:39 GMT):
@tongli did whole think again

SpecialAgentCooper (Mon, 10 Aug 2020 14:24:35 GMT):
`Error response from daemon: conflict: unable to delete ab88fe4d29dd (cannot be forced) - image has dependent child images` - I get this error message when I attempt to delete `hyperledger/fabric-nodeenv`, which my image extends. Perhaps I need to build from source

tongli (Mon, 10 Aug 2020 14:24:51 GMT):
@pkirkinezis ?

tongli (Mon, 10 Aug 2020 14:25:24 GMT):
@SpecialAgentCooper your own image depends on that image.

tongli (Mon, 10 Aug 2020 14:25:48 GMT):
not sure how to test it more.

pkirkinezis (Mon, 10 Aug 2020 14:26:09 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=jzhwCuodaHypQtRwJ) I did a new pull request cancelled the old one

tongli (Mon, 10 Aug 2020 14:27:04 GMT):
@pkirkinezis yeah. looks good to me. thanks for your contribution.

tongli (Mon, 10 Aug 2020 14:27:41 GMT):
@pkirkinezis I assume that you are using windows 10 WSL1, is that right?

SpecialAgentCooper (Mon, 10 Aug 2020 14:30:05 GMT):
Fair enough, thanks for all of your help. Minifab looks like a great tool, hopefully I'll get it to work inside my company firewall. It seems that fabric is tricky to run on restricted networks in general

pkirkinezis (Mon, 10 Aug 2020 14:30:13 GMT):
Microsoft Windows [Version 10.0.18363.959] @tongli

pkirkinezis (Mon, 10 Aug 2020 14:30:13 GMT):
Microsoft Windows [Version 10.0.18363.959]

tongli (Mon, 10 Aug 2020 14:31:20 GMT):
yeah, that is windows 10 WSL 1.

pkirkinezis (Mon, 10 Aug 2020 14:32:23 GMT):
FIY I am on company computer .Is there any difference in WSL 2?

tongli (Mon, 10 Aug 2020 14:32:54 GMT):
@pkirkinezis if you are using WSL2, you can not use windows script.

tongli (Mon, 10 Aug 2020 14:33:14 GMT):
you will need to use linux script on windows in WSL 2 console.

tongli (Mon, 10 Aug 2020 14:33:24 GMT):
it is a whole lot different animal.

pkirkinezis (Mon, 10 Aug 2020 14:33:28 GMT):
o so the querstion was kind of pointless

tongli (Mon, 10 Aug 2020 14:33:41 GMT):
I would really really hope that you get a linux machine.

tongli (Mon, 10 Aug 2020 14:34:09 GMT):
well, if you were using WSL 2, and made this far, I would be quite surprised.

pkirkinezis (Mon, 10 Aug 2020 14:35:58 GMT):
@tongli I strangled hard to get hyper ledger fabric-samples to work when i was first introduced to the HYPERLEDGER my self . So my only experience with minifab and windows if from my colleague. I have only used minifab on linux my self .

pkirkinezis (Mon, 10 Aug 2020 14:35:58 GMT):
@tongli I strangled hard to get hyper ledger fabric-samples to work when i was first introduced to the HYPERLEDGER my self . So my only experience with minifab and windows is from my colleague. I have only used minifab on linux my self .

tongli (Mon, 10 Aug 2020 14:36:29 GMT):
ok.

tongli (Mon, 10 Aug 2020 14:37:04 GMT):
well, I certainly hope that you have found minifabric useful to what you do.

pkirkinezis (Mon, 10 Aug 2020 14:39:25 GMT):
More than useful I clearly can say . I am still working on approving and committing chain code as the issue I raised . Also i am on first staged of an API using java SDK

pkirkinezis (Mon, 10 Aug 2020 14:39:25 GMT):
More than useful I clearly can say . I am still working on approving and committing chain code as the issue I raised . Also i am on first stages of an API using java SDK

tongli (Mon, 10 Aug 2020 14:40:39 GMT):
@pkirkinezis congrats to your first contribution.

tongli (Mon, 10 Aug 2020 14:40:54 GMT):
now take minifabric to the people who are in needs.

pkirkinezis (Mon, 10 Aug 2020 14:40:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=xCC5i6Esk66SaBw6F) Second contribution

tongli (Mon, 10 Aug 2020 14:41:01 GMT):
and spread the words.

pkirkinezis (Mon, 10 Aug 2020 14:41:39 GMT):
I did fix the "-" :P

tongli (Mon, 10 Aug 2020 14:41:44 GMT):
@pkirkinezis so your github id and the id here are different?

pkirkinezis (Mon, 10 Aug 2020 14:42:53 GMT):

Clipboard - August 10, 2020 5:42 PM

tongli (Mon, 10 Aug 2020 14:43:10 GMT):
@pkirkinezis haha.

pkirkinezis (Mon, 10 Aug 2020 14:43:51 GMT):
For some reason when i was searching desperately for documentation explanation etc i urgently created this account to login here

pkirkinezis (Mon, 10 Aug 2020 14:51:56 GMT):
I did changed my ID to much my github .

SpecialAgentCooper (Mon, 10 Aug 2020 16:32:27 GMT):
@tongli just tried your earlier suggestion of tagging each of the required images as a specific version (went with 3.0.1) - the network is brought up, a channel created and joined (all using `hyperledger/fabric-node:3.0.1`, etc) but when the chaincode was installed it used `fabric-nodeenv:2.2`. Seems like this is a fabric bug? If it is, do you know where I should raise it? Do you have any further suggestions?

rjones (Mon, 10 Aug 2020 17:24:18 GMT):
@tongli try this out: https://github.com/litong01/minifabric/pull/51

rjones (Mon, 10 Aug 2020 17:24:26 GMT):
should make it easier to help people

tongli (Mon, 10 Aug 2020 18:32:41 GMT):
@SpecialAgentCooper probably first ask in the fabric channel.

tongli (Mon, 10 Aug 2020 18:33:00 GMT):
I mean before file a bug report

tongli (Mon, 10 Aug 2020 18:34:42 GMT):
I think that the builder setting is only to alter the chaincode image building process, how did you make sure which process was used?

tongli (Mon, 10 Aug 2020 18:35:16 GMT):
Was the chaincode image created?

tongli (Mon, 10 Aug 2020 18:35:38 GMT):
Can you check if the chaincode container uses right container image?

pkirkinezis (Tue, 11 Aug 2020 06:47:25 GMT):
yeah

pkirkinezis (Tue, 11 Aug 2020 06:48:53 GMT):
I did a new commit to the project so pullng the latest minifab will have it fixe

SpecialAgentCooper (Tue, 11 Aug 2020 09:05:06 GMT):
I'm not sure, I thought setting that variable was all I needed to control which env image was used to build the chaincode. The chaincode was not built (it fails on `npm install` because it isn't using my special image, designed to work inside our network). I don't know what you mean by the last question.

SpecialAgentCooper (Wed, 12 Aug 2020 09:02:27 GMT):
Just to update - with the following lines in my spec.yaml: ``` peer: FABRIC_LOGGING_SPEC: DEBUG CORE_CHAINCODE_BUILDER: hyperledger/fabric-ccenv:3.0.1 CORE_CHAINCODE_NODE_RUNTIME: hyperledger/fabric-nodeenv:3.0.1 ``` the correct image for building node.js chaincode was launched! I've now got minifab working properly on my windows machine on a restricted network :D thanks for the help guys, and thanks @tongli for minifab - I think it's saved me a hell of a lot of work.

tongli (Wed, 12 Aug 2020 10:39:09 GMT):
@SpecialAgentCooper great. you probably can add a doc in the /docs directory to talk about this use case. it will be a great help for others who may face same issue.

tongli (Wed, 12 Aug 2020 10:40:15 GMT):
@SpecialAgentCooper I thought you were planning to have your own builder, from the configuration you posted above, it does not seem to be customized.

tongli (Wed, 12 Aug 2020 10:40:15 GMT):
@SpecialAgentCooper so your fabric-ccenv:3.0.1 is your own image?

tongli (Wed, 12 Aug 2020 10:42:04 GMT):
to avoid long term possible issues, you probably can make the release like my3.0.1 or something alone the line to distinguish from the official one.

tongli (Wed, 12 Aug 2020 10:43:12 GMT):
the new doc can be titled like `how to use customized chaincode builders`

tongli (Wed, 12 Aug 2020 10:43:31 GMT):
I suspect real app developers probably will be interested in this.

SpecialAgentCooper (Wed, 12 Aug 2020 11:06:29 GMT):
Sure, I'll do some more testing to make sure it's working and write something up by the end of the week

SpecialAgentCooper (Wed, 12 Aug 2020 11:07:27 GMT):
And yeah, it is my own image. I'll try changing the tag for my next build.

tongli (Wed, 12 Aug 2020 13:21:08 GMT):
@SpecialAgentCooper thanks. BTW, which company do you work for?

SpecialAgentCooper (Wed, 12 Aug 2020 13:44:24 GMT):
Baillie Gifford, an asset manager in Edinburgh, UK

tongli (Wed, 12 Aug 2020 15:35:41 GMT):
@SpecialAgentCooper cool. thanks.

rjones (Wed, 12 Aug 2020 16:41:43 GMT):
Docker installed on Windows host: `v19.03.12`

rjones (Wed, 12 Aug 2020 16:42:23 GMT):
Docker installed within WSL2: ```$ docker -v Docker version 19.03.8, build afacb8b7f0```

rjones (Wed, 12 Aug 2020 16:43:06 GMT):
`minifab generate` and `minifab up` work fine

rjones (Wed, 12 Aug 2020 16:43:38 GMT):
```$ git log -1 commit dfff0eb327e7a1cf4d5922c8161182d91b13f41c (HEAD -> master, origin/master, origin/HEAD) Author: Tong Li Date: Tue Aug 11 13:41:45 2020 +0000 Fixed cc init required flag bug Signed-off-by: Tong Li ```

rjones (Wed, 12 Aug 2020 16:44:05 GMT):
so @tongli to answer your question - that's what I'm using on Windows 10, and it works

tongli (Wed, 12 Aug 2020 16:59:57 GMT):
@rjones hmmm. now I am really confused.

tongli (Wed, 12 Aug 2020 17:00:10 GMT):
this is using linux script?

rjones (Wed, 12 Aug 2020 17:05:23 GMT):
Yes

rjones (Wed, 12 Aug 2020 17:26:32 GMT):
@tongli https://gist.github.com/ryjones/1f90f243ca95e77468accedbd407451d

tongli (Wed, 12 Aug 2020 20:29:56 GMT):
This is great. Thanks Ry.

rjones (Wed, 12 Aug 2020 20:30:29 GMT):
https://github.com/litong01/minifabric/pull/51 also :)

tongli (Thu, 13 Aug 2020 12:40:17 GMT):
@rjones Merged, thanks a lot for your contribution.

rjones (Thu, 13 Aug 2020 12:41:02 GMT):
thank you! Is there anything else I can do?

rjones (Thu, 13 Aug 2020 12:43:37 GMT):
I have plugged in my other wintendo for testing if need be

tongli (Thu, 13 Aug 2020 12:43:39 GMT):
had a talk tuesday, a lot of people interested in.

tongli (Thu, 13 Aug 2020 12:44:47 GMT):
it will be great if you can contribute a doc specifically on how to use it in WSL2 env. like a detailed steps to set it up.

tongli (Thu, 13 Aug 2020 12:45:01 GMT):
that will be really helpful to those on windows, but completely up to you.

rjones (Thu, 13 Aug 2020 12:46:17 GMT):
ok, I can try to do that. does wsl2 not work for you?

tongli (Thu, 13 Aug 2020 12:46:29 GMT):
no.

rjones (Thu, 13 Aug 2020 12:46:50 GMT):
awesome

tongli (Thu, 13 Aug 2020 12:47:31 GMT):
Once the wsl2 is installed, I even downloaded ubuntu 20.04 and booted it up, but the ubunto I boot up does not have docker, then I installed docker onto, but the docker would not work.

tongli (Thu, 13 Aug 2020 12:47:53 GMT):
so I think I missed some important steps or misunderstood how wsl2 actually work,

AndrewPark 1 (Thu, 13 Aug 2020 13:32:23 GMT):
Has joined the channel.

SpecialAgentCooper (Thu, 13 Aug 2020 15:44:27 GMT):
@tongli added an extra section to the docs about using custom chaincode builders/runtimes, just put in a PR. Let me know if there's anything else I can help with

rjones (Fri, 14 Aug 2020 00:49:18 GMT):
@tongli I think I have questions for you when you have time with your wsl2 machine

rjones (Fri, 14 Aug 2020 00:51:12 GMT):
in an elevated cmd prompt, what is the output of `wsl --list --verbose`

rjones (Fri, 14 Aug 2020 00:51:50 GMT):
```C:\WINDOWS\system32>wsl --set-default-version 2+ For information on key differences with WSL 2 please visit https://aka.ms/wsl2 C:\WINDOWS\system32>wsl --list --verbose NAME STATE VERSION * docker-desktop Running 2 Ubuntu Stopped 1 Ubuntu-20.04 Stopped 1 docker-desktop-data Running 2 C:\WINDOWS\system32>wsl --set-version Ubuntu-20.04 2 Conversion in progress, this may take a few minutes... For information on key differences with WSL 2 please visit https://aka.ms/wsl2 Conversion complete. C:\WINDOWS\system32>wsl --set-version Ubuntu 2 Conversion in progress, this may take a few minutes... For information on key differences with WSL 2 please visit https://aka.ms/wsl2 Conversion complete. C:\WINDOWS\system32>```

rjones (Fri, 14 Aug 2020 00:51:50 GMT):
```C:\WINDOWS\system32>wsl --set-default-version 2 C:\WINDOWS\system32>wsl --list --verbose NAME STATE VERSION * docker-desktop Running 2 Ubuntu Stopped 1 Ubuntu-20.04 Stopped 1 docker-desktop-data Running 2 C:\WINDOWS\system32>wsl --set-version Ubuntu-20.04 2 Conversion in progress, this may take a few minutes... C:\WINDOWS\system32>wsl --set-version Ubuntu 2 Conversion in progress, this may take a few minutes... ```

rjones (Fri, 14 Aug 2020 00:54:27 GMT):
then `wsl --list --verbose` should show all VMs are version 2

rjones (Fri, 14 Aug 2020 00:54:45 GMT):
then start a new vm, `sudo usermod -aG docker $USER` and exit and start a new one

rjones (Fri, 14 Aug 2020 00:55:37 GMT):

features.gif

rjones (Fri, 14 Aug 2020 00:55:54 GMT):
then it will work. this is on stock windows 10 (I reset the computer)

rjones (Fri, 14 Aug 2020 00:58:26 GMT):
```ry@DESKTOP-DOQJ7SM:~$ groups ry adm dialout cdrom floppy sudo audio dip video plugdev netdev docker ry@DESKTOP-DOQJ7SM:~$ cd minifabric/ ry@DESKTOP-DOQJ7SM:~/minifabric$ ./minifab up ./minifab: line 3: ifconfig: command not found Unable to find image 'hfrd/minifab:latest' locally latest: Pulling from hfrd/minifab df20fa9351a1: Pull complete 16d327ff9a88: Pull complete 6e0c6abef359: Pull complete 63185ac9f51a: Pull complete cb46d2e655f9: Pull complete Digest: sha256:cbb8dab63494f4ca9dc6884961c2ef3778fa3447567cf2cb1c1d46a394048dcd Status: Downloaded newer image for hfrd/minifab:latest Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES= WORKING_DIRECTORY: /home/ry/minifabric ... # Preparing for the following operations: ********************* verify options, download images, generate certificates, start network, network status, channel create, channel join, anchor update, profile generation, cc install, cc approve, cc commit, cc initialize, discover ................. # Running operation: ****************************************** verify options . # Running operation: ****************************************** download images ...................... # Running operation: ****************************************** generate certificates ............. # Running operation: ****************************************** start network .................... # Running operation: ****************************************** network status ...... # Docker node status ****************************************** f37c4326ea_cli : Up Less than a second ca1.org1.example.com : Up 2 seconds ca1.org0.example.com : Up 3 seconds orderer3.example.com : Up 5 seconds orderer2.example.com : Up 6 seconds orderer1.example.com : Up 7 seconds peer2.org1.example.com : Up 9 seconds peer1.org1.example.com : Up 10 seconds peer2.org0.example.com : Up 11 seconds peer1.org0.example.com : Up 12 seconds # Fabric network peer and orderer node health status ********** peer1.org0.example.com "OK" peer2.org0.example.com "OK" peer1.org1.example.com "OK" peer2.org1.example.com "OK" orderer1.example.com "OK" orderer2.example.com "OK" orderer3.example.com "OK" # Running operation: ****************************************** channel create ...... # Running operation: ****************************************** channel join ........................... # Running operation: ****************************************** anchor update ............ # Running operation: ****************************************** profile generation ................................. # Running operation: ****************************************** cc install ........................... # Running operation: ****************************************** cc approve ...... # Running operation: ****************************************** cc commit ...... # Running operation: ****************************************** cc initialize ...... # Running operation: ****************************************** discover ........................ # STATS ******************************************************* minifab: ok=274 failed=0 real 7m15.331s user 2m53.865s sys 0m30.426s ry@DESKTOP-DOQJ7SM:~/minifabric$ git log -1 commit 222b0b1c345922f62bc1fba368145d18d85297e9 (HEAD -> master, origin/master, origin/HEAD) Merge: 7bc2b84 2075a6b Author: litong01 Date: Thu Aug 13 13:41:12 2020 -0400 Merge pull request #54 from makkasu/master Instructions for using custom chaincode builders ```

rjones (Fri, 14 Aug 2020 00:58:26 GMT):
```ry@DESKTOP-DOQJ7SM:~$ groups ry adm dialout cdrom floppy sudo audio dip video plugdev netdev docker ry@DESKTOP-DOQJ7SM:~$ cd minifabric/ ry@DESKTOP-DOQJ7SM:~/minifabric$ ./minifab up ./minifab: line 3: ifconfig: command not found Unable to find image 'hfrd/minifab:latest' locally latest: Pulling from hfrd/minifab df20fa9351a1: Pull complete 16d327ff9a88: Pull complete 6e0c6abef359: Pull complete 63185ac9f51a: Pull complete cb46d2e655f9: Pull complete Digest: sha256:cbb8dab63494f4ca9dc6884961c2ef3778fa3447567cf2cb1c1d46a394048dcd Status: Downloaded newer image for hfrd/minifab:latest Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES= WORKING_DIRECTORY: /home/ry/minifabric ... # Preparing for the following operations: ********************* verify options, download images, generate certificates, start network, network status, channel create, channel join, anchor update, profile generation, cc install, cc approve, cc commit, cc initialize, discover # STATS ******************************************************* minifab: ok=274 failed=0 real 7m15.331s user 2m53.865s sys 0m30.426s ry@DESKTOP-DOQJ7SM:~/minifabric$ git log -1 commit 222b0b1c345922f62bc1fba368145d18d85297e9 (HEAD -> master, origin/master, origin/HEAD) Merge: 7bc2b84 2075a6b Author: litong01 Date: Thu Aug 13 13:41:12 2020 -0400 Merge pull request #54 from makkasu/master Instructions for using custom chaincode builders ```

tongli (Fri, 14 Aug 2020 12:34:09 GMT):
@rjones see the screen capture.

tongli (Fri, 14 Aug 2020 12:34:15 GMT):

Screen Shot 2020-08-14 at 8.33.42 AM.png

tongli (Fri, 14 Aug 2020 12:35:35 GMT):

Screen Shot 2020-08-14 at 8.34.51 AM.png

tongli (Fri, 14 Aug 2020 12:43:53 GMT):
I rebooted the machine few times after I installed docker onto the vm, now once I launch the vm, I was able to run all the minifab command as well.

tongli (Fri, 14 Aug 2020 12:44:41 GMT):
I am testing few other things to make sure everything is working great.

tongli (Fri, 14 Aug 2020 12:56:47 GMT):
@rjones expose docker port also worked flawlessly.

tongli (Fri, 14 Aug 2020 12:57:15 GMT):
I think we can write a rather detailed doc so that people on windows wsl2 can have an easier time dealing with it.

tongli (Fri, 14 Aug 2020 13:00:04 GMT):
@rjones it seems to me that the ubuntu shell connects to the same docker engine as the windows shell docker engine because things were setting up using minifabric in the ubuntu shell show up in the windows shell as well.

tongli (Fri, 14 Aug 2020 13:01:39 GMT):
also the port mapped out correctly.

tongli (Fri, 14 Aug 2020 13:07:22 GMT):
so are the volumes.

pkirkinezis (Fri, 14 Aug 2020 15:54:09 GMT):
Hi to the community

pkirkinezis (Fri, 14 Aug 2020 15:54:56 GMT):
I would like to adress a question about if it is a best practice to save the identity secret to database to use afterwords for endrollment

rjones (Fri, 14 Aug 2020 16:32:11 GMT):
@tongli yes, it is talking directly to the docker install on windows. there is no docker running inside WSL2

rjones (Fri, 14 Aug 2020 16:32:50 GMT):
I think the steps I listed above would do it.

zilich (Fri, 14 Aug 2020 16:52:53 GMT):
https://lists.hyperledger.org/g/fabric/message/8863

tongli (Fri, 14 Aug 2020 17:04:34 GMT):
@rjones I think I have found the magic on windows, I should be able to make changes to the script so that we do not have to run any shells to use minifabric, one just need to run the script in the windows shell.

tongli (Fri, 14 Aug 2020 17:04:47 GMT):
should be able to put up a PR soon.

tongli (Fri, 14 Aug 2020 17:07:13 GMT):
this way, we do not really need to download ubuntu or any linux distribution. as long as one has docker desktop running (regardless it is WSL or WSL2), it wont matter.

tongli (Fri, 14 Aug 2020 17:07:30 GMT):
just run script in the windows cmd promopt.

rjones (Fri, 14 Aug 2020 17:09:36 GMT):
nice

zilich (Fri, 14 Aug 2020 17:23:16 GMT):
And when I use "-e true" whenever firewall is off, I have problem...

zilich (Fri, 14 Aug 2020 17:24:37 GMT):
..... # Run the channel creation script on cli container ************ non-zero return code 2020-08-14 17:11:04.937 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-08-14 17:11:04.969 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /vars/configtx.yaml 2020-08-14 17:11:04.969 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2020-08-14 17:11:04.973 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 004 Writing new channel tx Error: failed to create deliver client for orderer: orderer client failed to connect to 160.99.71.153:7006: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 160.99.71.153:7006: connect: no route to host" # STATS ******************************************************* minifab: ok=103 failed=1

zilich (Fri, 14 Aug 2020 17:31:23 GMT):
[zilic@pc86 mywork]$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4807663648ed hyperledger/fabric-tools:2.2.0 "/bin/sh" 13 minutes ago Up 13 minutes ab1d229f5e_cli b1022f97bee0 hyperledger/fabric-ca:1.4 "/bin/sh -c 'fabric-…" 13 minutes ago Up 13 minutes 0.0.0.0:7001->7054/tcp ca1.org1.example.com 9b653e235db5 hyperledger/fabric-ca:1.4 "/bin/sh -c 'fabric-…" 13 minutes ago Up 13 minutes 0.0.0.0:7000->7054/tcp ca1.org0.example.com 4a120d3a2604 hyperledger/fabric-orderer:2.2.0 "orderer" 13 minutes ago Up 13 minutes 0.0.0.0:7008->7050/tcp, 0.0.0.0:8008->7060/tcp orderer3.example.com d9704296289d hyperledger/fabric-orderer:2.2.0 "orderer" 13 minutes ago Up 13 minutes 0.0.0.0:7007->7050/tcp, 0.0.0.0:8007->7060/tcp orderer2.example.com 1d50cde32d24 hyperledger/fabric-orderer:2.2.0 "orderer" 13 minutes ago Up 13 minutes 0.0.0.0:7006->7050/tcp, 0.0.0.0:8006->7060/tcp orderer1.example.com 886a83e3ba18 hyperledger/fabric-peer:2.2.0 "peer node start" 13 minutes ago Up 13 minutes 0.0.0.0:7005->7051/tcp, 0.0.0.0:8005->7061/tcp peer2.org1.example.com 8b78fa48b7b5 hyperledger/fabric-peer:2.2.0 "peer node start" 13 minutes ago Up 13 minutes 0.0.0.0:7004->7051/tcp, 0.0.0.0:8004->7061/tcp peer1.org1.example.com fd1c3d39f0c6 hyperledger/fabric-peer:2.2.0 "peer node start" 13 minutes ago Up 13 minutes 0.0.0.0:7003->7051/tcp, 0.0.0.0:8003->7061/tcp peer2.org0.example.com 1edcc2abefe4 hyperledger/fabric-peer:2.2.0 "peer node start" 13 minutes ago Up 13 minutes 0.0.0.0:7002->7051/tcp, 0.0.0.0:8002->7061/tcp peer1.org0.example.com a003a9bd5394 hello-world "/hello" 8 hours ago Exited (0) 8 hours ago unruffled_dhawan [zilic@pc86 mywork]$

tongli (Fri, 14 Aug 2020 17:36:04 GMT):
@zilich is your network working ok? can it connect to internet?

tongli (Fri, 14 Aug 2020 17:36:35 GMT):
I certainly have not tested it on centos.

tongli (Fri, 14 Aug 2020 17:36:46 GMT):
not sure what could be the differences between ubuntu and centos

zilich (Fri, 14 Aug 2020 17:42:07 GMT):
you use/test "-e true"? You know that if you installed miniFabric without "-e true" you must remove installation and repeat it to work with "-e true"? (on Ubuntu)...

zilich (Fri, 14 Aug 2020 17:42:33 GMT):
miniFab restart dont help...

zilich (Fri, 14 Aug 2020 17:43:06 GMT):
down and up with "-e true" dont work, too

rjones (Fri, 14 Aug 2020 17:43:50 GMT):
I don't have a centos machine to test on

zilich (Fri, 14 Aug 2020 17:43:53 GMT):
Its on intarnet.... 160.99.71.153

zilich (Fri, 14 Aug 2020 17:44:17 GMT):
you can made it virtual :)

zilich (Fri, 14 Aug 2020 17:44:27 GMT):
20 GB or less...

zilich (Fri, 14 Aug 2020 17:46:40 GMT):
internet...

zilich (Fri, 14 Aug 2020 17:47:11 GMT):
misstype

zilich (Fri, 14 Aug 2020 17:47:31 GMT):
not intranet... on internet is... ip you can see...

tongli (Fri, 14 Aug 2020 17:47:36 GMT):
whatever of centos?

tongli (Fri, 14 Aug 2020 17:48:07 GMT):
I have not tried it on centos, but I can boot up one centos vm and give it a try.

tongli (Fri, 14 Aug 2020 17:48:18 GMT):
but if you can figure out what the issue is, please submit a pr.

zilich (Fri, 14 Aug 2020 17:48:46 GMT):

Screenshot_499.jpg

zilich (Fri, 14 Aug 2020 17:49:11 GMT):

Screenshot_500.jpg

zilich (Fri, 14 Aug 2020 17:49:34 GMT):

Screenshot_501.jpg

zilich (Fri, 14 Aug 2020 17:51:40 GMT):
I will try to delete miniFabric and again install it with and without "-e true"... and post here results...

zilich (Fri, 14 Aug 2020 17:52:16 GMT):
only to eat something :)

zilich (Fri, 14 Aug 2020 17:53:34 GMT):

Screenshot_502.jpg

tongli (Fri, 14 Aug 2020 19:07:25 GMT):
@rjones https://github.com/litong01/minifabric/commit/9f2f39bf7c1fc9937e1a69ea608fed009a6d4415

tongli (Fri, 14 Aug 2020 19:08:07 GMT):
please see this PR. I think this fixes the issue. now you can just run minifab at windows shell. no need to have a Ubuntu system.

rjones (Fri, 14 Aug 2020 19:25:45 GMT):
```C:\Users\s390x\minifabric>git log -2 commit e3acc7e3152213c6e1d467735ec9af01ffa659fd (HEAD -> master, origin/master, origin/HEAD) Author: litong01 Date: Fri Aug 14 15:22:13 2020 -0400 Update README.md commit 9f2f39bf7c1fc9937e1a69ea608fed009a6d4415 Author: Tong Li Date: Fri Aug 14 18:58:57 2020 +0000 Fixed the windows WSL issue Windows WSL changed a lot in terms of the volumes, it breaks the local volume mounting. This patch fixed that problem and also removed need of passing in working directory parameter for the main script Signed-off-by: Tong Li ```

rjones (Fri, 14 Aug 2020 19:26:02 GMT):
```# Running operation: ****************************************** generate certificates ........... # Use fabric tools container to create channel artifacts ****** non-zero return code docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/etc/hyperledger/fabric/run/certtxgen.sh\": stat /etc/hyperledger/fabric/run/certtxgen.sh: no such file or directory": unknown. time="2020-08-14T19:25:15Z" level=error msg="error waiting for container: context canceled" # STATS ******************************************************* minifab: ok=65 failed=1 real 0m7.852s user 0m5.898s sys 0m1.041s ```

tongli (Fri, 14 Aug 2020 19:33:57 GMT):
Did you @rjones pull the latest hfrd/minifab image?

rjones (Fri, 14 Aug 2020 19:34:10 GMT):
I just ran your script in a new directory

tongli (Fri, 14 Aug 2020 19:34:22 GMT):
the image needs to be updated as well.

rjones (Fri, 14 Aug 2020 19:34:33 GMT):
ok how do I build it

tongli (Fri, 14 Aug 2020 19:34:36 GMT):
the changes are not only in the script but also the image.

tongli (Fri, 14 Aug 2020 19:34:44 GMT):
docker pull hfrd/minifab:latest

rjones (Fri, 14 Aug 2020 19:35:19 GMT):
```# Running operation: ****************************************** start network .......[WARNING]: Unable to convert data using to_nice_json, falling back to to_json: 'allkeys' is undefined # Produce the key var file ************************************ The task includes an option with an undefined variable. The error was: 'allkeys' is undefined The error appears to be in '/home/playbooks/common/processkeys.yaml': line 56, column 5, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Produce the key var file ^ here # STATS ******************************************************* minifab: ok=64 failed=1 real 0m6.318s```

rjones (Fri, 14 Aug 2020 19:37:11 GMT):
I deleted all downloaded images in docker and tried again, same error

rjones (Fri, 14 Aug 2020 19:37:31 GMT):
```C:\Users\s390x\minifabric>docker -v Docker version 19.03.12, build 48a66213fe```

rjones (Fri, 14 Aug 2020 19:42:05 GMT):
I had the same error about allkeys on my other machine

tongli (Fri, 14 Aug 2020 19:42:24 GMT):
@rjones that is really weird. let me dig through this more.

rjones (Fri, 14 Aug 2020 19:42:32 GMT):
OK.

zilich (Fri, 14 Aug 2020 19:54:29 GMT):
under windows you can use git bash and cmd "shell"....

zilich (Fri, 14 Aug 2020 19:54:37 GMT):
maybe you dont know...

zilich (Fri, 14 Aug 2020 19:54:46 GMT):
Or dont use it...

zilich (Fri, 14 Aug 2020 19:55:10 GMT):

Screenshot_503.jpg

zilich (Fri, 14 Aug 2020 20:02:35 GMT):
C:\Users\Administrator\mywork>minifab.cmd up -e true Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=true CURRENT_ORG=org0.example.com HOST_ADDRESSES=160.99.71.211,160.99.71.21 WORKING_DIRECTORY: /home ... # Preparing for the following operations: ********************* verify options, download images, generate certificates, start network, network status, channel create, channel join, anchor update, profile generation, cc install, cc approve, cc commit, cc initialize, discover ................. # Running operation: ****************************************** verify options . # Running operation: ****************************************** download images ............ # Running operation: ****************************************** generate certificates ........... # Use fabric tools container to create channel artifacts ****** non-zero return code docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/etc/hyperledger/fabric/run/certtxgen.sh\": stat /etc/hyperledger/fabric/run/certtxgen.sh: no such file or directory": unknown. # STATS ******************************************************* minifab: ok=65 failed=1 real 0m11.311s user 0m9.131s sys 0m2.153s C:\Users\Administrator\mywork>

zilich (Fri, 14 Aug 2020 20:03:39 GMT):

Screenshot_505.jpg

zilich (Fri, 14 Aug 2020 20:06:39 GMT):
I run it one time more... purge all docker images before that...

zilich (Fri, 14 Aug 2020 20:07:21 GMT):

Screenshot_507.jpg

zilich (Fri, 14 Aug 2020 20:09:56 GMT):

Screenshot_509.jpg

zilich (Fri, 14 Aug 2020 20:10:07 GMT):

Screenshot_510.jpg

zilich (Fri, 14 Aug 2020 20:12:39 GMT):
And now Centos 8.2...

zilich (Fri, 14 Aug 2020 20:13:00 GMT):

Screenshot_511.jpg

tongli (Fri, 14 Aug 2020 20:18:44 GMT):
@zilich I just made some important changes to minifabric. You probably want to refresh both the minifab command and image

zilich (Fri, 14 Aug 2020 20:19:30 GMT):
yessss

zilich (Fri, 14 Aug 2020 20:19:55 GMT):
just remove and all old images

tongli (Fri, 14 Aug 2020 20:28:17 GMT):
Just need to remove hfrd/minifab:latest

tongli (Fri, 14 Aug 2020 20:28:27 GMT):
Do not need to remove fabric images

tongli (Fri, 14 Aug 2020 20:28:59 GMT):
Get the latest minifab script as well , there is a small change in it as well

zilich (Fri, 14 Aug 2020 20:29:41 GMT):
All dockers removed... All images removed...

zilich (Fri, 14 Aug 2020 20:30:30 GMT):

Screenshot_515.jpg

tongli (Fri, 14 Aug 2020 20:31:21 GMT):
Ok. Should not take long

zilich (Fri, 14 Aug 2020 20:31:44 GMT):
I start as user zilic... which is in docker group...

zilich (Fri, 14 Aug 2020 20:32:03 GMT):

Screenshot_516.jpg

zilich (Fri, 14 Aug 2020 20:32:19 GMT):
I have at office very fast internet... 1Gb...

zilich (Fri, 14 Aug 2020 20:33:51 GMT):
[zilic@pc86 mywork]$ ls [zilic@pc86 mywork]$ curl -o minifab -sL https://tinyurl.com/twrt8zv && chmod +x minifab [zilic@pc86 mywork]$ ls -lat укупно 8 drwxrwxr-x 2 zilic zilic 21 14. авг. у 22:30 . -rwxrwxr-x 1 zilic zilic 578 14. авг. у 22:30 minifab drwx------. 19 zilic zilic 4096 14. авг. у 11:52 .. [zilic@pc86 mywork]$ ./minifab up Unable to find image 'hfrd/minifab:latest' locally latest: Pulling from hfrd/minifab df20fa9351a1: Pull complete 16d327ff9a88: Pull complete 8ee9eafbcbc4: Pull complete d21bd51726e1: Pull complete c2815d624a85: Pull complete Digest: sha256:c0b59f6143601a368e18221cf9eb7586647b29fa5e13c96597f944e56f0e8b2e Status: Downloaded newer image for hfrd/minifab:latest Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=160.99.71.153 WORKING_DIRECTORY: /home/zilic/mywork ... # Preparing for the following operations: ********************* verify options, download images, generate certificates, start network, network status, channel create, channel join, anchor update, profile generation, cc install, cc approve, cc commit, cc initialize, discover ................. # Running operation: ****************************************** verify options . # Running operation: ****************************************** download images ...................... # Running operation: ****************************************** generate certificates ............. # Running operation: ****************************************** start network .................... # Running operation: ****************************************** network status ...... # Docker node status ****************************************** ab1d229f5e_cli : Up Less than a second ca1.org1.example.com : Up 1 second ca1.org0.example.com : Up 1 second orderer3.example.com : Up 2 seconds orderer2.example.com : Up 3 seconds orderer1.example.com : Up 4 seconds peer2.org1.example.com : Up 5 seconds peer1.org1.example.com : Up 6 seconds peer2.org0.example.com : Up 6 seconds peer1.org0.example.com : Up 8 seconds # Fabric network peer and orderer node health status ********** peer1.org0.example.com peer2.org0.example.com peer1.org1.example.com peer2.org1.example.com orderer1.example.com orderer2.example.com orderer3.example.com # Running operation: ****************************************** channel create ..... # Run the channel creation script on cli container ************ non-zero return code 2020-08-14 20:32:35.131 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-08-14 20:32:35.165 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /vars/configtx.yaml 2020-08-14 20:32:35.165 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2020-08-14 20:32:35.168 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 004 Writing new channel tx Error: failed to create deliver client for orderer: orderer client failed to connect to orderer1.example.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.18.0.6:7050: connect: no route to host" # STATS *******************************************************

zilich (Fri, 14 Aug 2020 20:34:05 GMT):

Screenshot_517.jpg

zilich (Fri, 14 Aug 2020 20:34:58 GMT):
[zilic@pc86 mywork]$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 80b7f05c1116 hyperledger/fabric-tools:2.2.0 "/bin/sh" 2 minutes ago Up 2 minutes ab1d229f5e_cli 30349007e521 hyperledger/fabric-ca:1.4 "/bin/sh -c 'fabric-…" 2 minutes ago Up 2 minutes 7054/tcp ca1.org1.example.com 6073243e8f4e hyperledger/fabric-ca:1.4 "/bin/sh -c 'fabric-…" 2 minutes ago Up 2 minutes 7054/tcp ca1.org0.example.com da1e34d2507d hyperledger/fabric-orderer:2.2.0 "orderer" 2 minutes ago Exited (2) About a minute ago orderer3.example.com a8bc04a5971d hyperledger/fabric-orderer:2.2.0 "orderer" 2 minutes ago Exited (2) About a minute ago orderer2.example.com f0b42aa68e53 hyperledger/fabric-orderer:2.2.0 "orderer" 2 minutes ago Exited (2) 2 minutes ago orderer1.example.com 567c237b574c hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 7051/tcp peer2.org1.example.com ea0fd59d93bd hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 7051/tcp peer1.org1.example.com 03b3c2e53a35 hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 7051/tcp peer2.org0.example.com a8fc36b0088f hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 7051/tcp peer1.org0.example.com [zilic@pc86 mywork]$

tongli (Fri, 14 Aug 2020 20:35:03 GMT):
Seems still network issue

zilich (Fri, 14 Aug 2020 20:35:36 GMT):
firewall is down... maybe to switch off se linux... i will look this...

tongli (Fri, 14 Aug 2020 20:35:40 GMT):
Hmmm, docker container automatically quit?

zilich (Fri, 14 Aug 2020 20:39:57 GMT):
maybe need to be root???

zilich (Fri, 14 Aug 2020 20:40:12 GMT):

Screenshot_519.jpg

zilich (Fri, 14 Aug 2020 20:40:26 GMT):
and start down and up again...

zilich (Fri, 14 Aug 2020 20:41:04 GMT):
[root@pc86 sysconfig]# exit exit [zilic@pc86 mywork]$ ls minifab vars [zilic@pc86 mywork]$ ./minifab down Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=160.99.71.153 WORKING_DIRECTORY: /home/zilic/mywork ... # Preparing for the following operations: ********************* verify options, shutdown network ................. # Running operation: ****************************************** verify options . # Running operation: ****************************************** shutdown network ........ # STATS ******************************************************* minifab: ok=33 failed=0 real 0m7.827s user 0m6.436s sys 0m1.315s [zilic@pc86 mywork]$ ./minifab up Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=160.99.71.153 WORKING_DIRECTORY: /home/zilic/mywork ... # Preparing for the following operations: ********************* verify options, download images, generate certificates, start network, network status, channel create, channel join, anchor update, profile generation, cc install, cc approve, cc commit, cc initialize, discover ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** download images ............ # Running operation: ****************************************** generate certificates .. # Running operation: ****************************************** start network .. # Create fabric docker network if it does not exist *********** non-zero return code Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-8341e4c0ce78 -j RETURN: iptables: No chain/target/match by that name. (exit status 1)) # STATS ******************************************************* minifab: ok=49 failed=1 real 0m5.845s user 0m5.069s sys 0m1.296s [zilic@pc86 mywork]$

zilich (Fri, 14 Aug 2020 20:41:10 GMT):
error was different...

zilich (Fri, 14 Aug 2020 20:41:24 GMT):
I will delet again all images and script...

zilich (Fri, 14 Aug 2020 20:41:37 GMT):
and start as root

tongli (Fri, 14 Aug 2020 20:41:39 GMT):
hmmm.

tongli (Fri, 14 Aug 2020 20:41:50 GMT):
no need to delete fabric images.

zilich (Fri, 14 Aug 2020 20:41:55 GMT):
ok

tongli (Fri, 14 Aug 2020 20:42:03 GMT):
you need the latest hfrd/minifab:latest image

tongli (Fri, 14 Aug 2020 20:42:12 GMT):
and the latest minifab script.

tongli (Fri, 14 Aug 2020 20:42:14 GMT):
that is all.

zilich (Fri, 14 Aug 2020 20:42:38 GMT):
curl -o minifab -sL https://tinyurl.com/twrt8zv && chmod +x minifab

zilich (Fri, 14 Aug 2020 20:42:48 GMT):
only this to start?

tongli (Fri, 14 Aug 2020 20:42:53 GMT):
right.

tongli (Fri, 14 Aug 2020 20:43:20 GMT):
wow. centos iso is huge.

tongli (Fri, 14 Aug 2020 20:43:32 GMT):
7.7 GB. holly cow.

zilich (Fri, 14 Aug 2020 20:44:23 GMT):
When you have 1Gb network... no problem :)

zilich (Fri, 14 Aug 2020 20:44:47 GMT):
I worked for provider which have 10Gb network...

zilich (Fri, 14 Aug 2020 20:45:03 GMT):
[root@pc86 mywork]# ./minifab up Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=160.99.71.153 WORKING_DIRECTORY: /home/zilic/mywork ... # Preparing for the following operations: ********************* verify options, download images, generate certificates, start network, network status, channel create, channel join, anchor update, profile generation, cc install, cc approve, cc commit, cc initialize, discover ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** download images ............ # Running operation: ****************************************** generate certificates .. # Running operation: ****************************************** start network .. # Create fabric docker network if it does not exist *********** non-zero return code Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-5fafd9362635 -j RETURN: iptables: No chain/target/match by that name. (exit status 1)) # STATS ******************************************************* minifab: ok=49 failed=1 real 0m5.821s user 0m5.025s sys 0m1.286s [root@pc86 mywork]#

tongli (Fri, 14 Aug 2020 20:45:20 GMT):
ha.

tongli (Fri, 14 Aug 2020 20:45:21 GMT):
I see.

zilich (Fri, 14 Aug 2020 20:45:28 GMT):
maybe to clear IPtables?

tongli (Fri, 14 Aug 2020 20:45:31 GMT):
you cannot create a docker network.

tongli (Fri, 14 Aug 2020 20:45:48 GMT):
you can try to do this without running any minifabric command.

tongli (Fri, 14 Aug 2020 20:45:55 GMT):
just try to create a docker network.

tongli (Fri, 14 Aug 2020 20:46:01 GMT):
and see what error you are getting.

zilich (Fri, 14 Aug 2020 20:46:12 GMT):
how?

tongli (Fri, 14 Aug 2020 20:46:31 GMT):
google is your friend. this is docker.

tongli (Fri, 14 Aug 2020 20:46:35 GMT):
should be something like this

zilich (Fri, 14 Aug 2020 20:46:35 GMT):
ok

tongli (Fri, 14 Aug 2020 20:46:52 GMT):
``` docker network create testnet```

tongli (Fri, 14 Aug 2020 20:46:59 GMT):
something like that

tongli (Fri, 14 Aug 2020 20:47:22 GMT):
why do you@zilich use centos?

tongli (Fri, 14 Aug 2020 20:47:51 GMT):
I mean is there a good reason you pick centos over ubuntu?

zilich (Fri, 14 Aug 2020 20:53:29 GMT):
I started with Linux with Slackware... After that with RedHat... and after that with Centos for servers...

zilich (Fri, 14 Aug 2020 20:54:02 GMT):
Nao I sersch some error in some java client application which work under miniFabric...

zilich (Fri, 14 Aug 2020 20:54:33 GMT):
Now, I search for ...

zilich (Fri, 14 Aug 2020 20:55:03 GMT):
I am one of the best sysadmin in this region :)

zilich (Fri, 14 Aug 2020 20:55:29 GMT):
And as good as possible programmer, too :)

zilich (Fri, 14 Aug 2020 20:56:33 GMT):
zvonko.ilich@bestfromserbia.com :) zilic@acm.org... member of ACM since 1997... :)

zilich (Fri, 14 Aug 2020 20:57:46 GMT):

Screenshot_521.jpg

zilich (Fri, 14 Aug 2020 20:58:00 GMT):
Network inside container work...

zilich (Fri, 14 Aug 2020 21:22:37 GMT):
maybe only root access is needed... [root@pc86 mywork]# ./minifab up Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=160.99.71.153 WORKING_DIRECTORY: /home/zilic/mywork ... # Preparing for the following operations: ********************* verify options, download images, generate certificates, start network, network status, channel create, channel join, anchor update, profile generation, cc install, cc approve, cc commit, cc initialize, discover ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** download images ............ # Running operation: ****************************************** generate certificates .. # Running operation: ****************************************** start network ................ # Running operation: ****************************************** network status ...... # Docker node status ****************************************** ab1d229f5e_cli : Up Less than a second ca1.org1.example.com : Up 1 second ca1.org0.example.com : Up 1 second orderer3.example.com : Up 2 seconds orderer2.example.com : Up 3 seconds orderer1.example.com : Up 4 seconds peer2.org1.example.com : Up 5 seconds peer1.org1.example.com : Up 6 seconds peer2.org0.example.com : Up 6 seconds peer1.org0.example.com : Up 7 seconds # Fabric network peer and orderer node health status ********** peer1.org0.example.com "OK" peer2.org0.example.com "OK" peer1.org1.example.com "OK" peer2.org1.example.com "OK" orderer1.example.com "OK" orderer2.example.com "OK" orderer3.example.com "OK" # Running operation: ****************************************** channel create ..... # Run the channel creation script on cli container ************ non-zero return code 2020-08-14 21:21:29.351 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-08-14 21:21:29.385 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /vars/configtx.yaml 2020-08-14 21:21:29.386 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2020-08-14 21:21:29.389 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 004 Writing new channel tx 2020-08-14 21:21:29.430 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not successfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied # STATS ******************************************************* minifab: ok=78 failed=1 real 0m22.945s user 0m15.250s sys 0m3.647s [root@pc86 mywork]#

zilich (Fri, 14 Aug 2020 21:29:26 GMT):
I have similarly error and under ubuntu...

tongli (Fri, 14 Aug 2020 21:43:20 GMT):
@zilich I think that your system is having some serious issues.

tongli (Fri, 14 Aug 2020 21:43:50 GMT):
all the errors that you reported having something to do with network.

tongli (Fri, 14 Aug 2020 21:45:06 GMT):
you probably can figure out what the real issue is.

tongli (Fri, 14 Aug 2020 21:47:08 GMT):
I mean that you were saying you are one of the best sysadmin in the region. I have a lot of respect to system admins.

tongli (Fri, 14 Aug 2020 21:50:50 GMT):
@zilich I feel that on centos some of the port are restricted.

tongli (Fri, 14 Aug 2020 21:51:11 GMT):
that is the reason why containers can not communicated with each other.

zilich (Fri, 14 Aug 2020 22:42:32 GMT):

Screenshot_523.jpg

zilich (Fri, 14 Aug 2020 22:43:08 GMT):
I go to sleep... This is Ubuntu error... another computer...

zilich (Fri, 14 Aug 2020 22:43:44 GMT):
good day

tongli (Sat, 15 Aug 2020 02:00:20 GMT):
@zilich I boot up centos 8.2.2 and did the following.

tongli (Sat, 15 Aug 2020 02:00:25 GMT):
1. install docker ce

tongli (Sat, 15 Aug 2020 02:01:00 GMT):
2. open up docker firewall doing this ```firewall-cmd --zone=public --add-masquerade --permanent # Specifically allow incoming traffic on port 80/443 (nothing new here) firewall-cmd --zone=public --add-port=80/tcp firewall-cmd --zone=public --add-port=443/tcp # Reload firewall to apply permanent rules firewall-cmd --reload```

tongli (Sat, 15 Aug 2020 02:01:00 GMT):
2. open up docker firewall doing this ```firewall-cmd --zone=public --add-masquerade --permanent # Reload firewall to apply permanent rules firewall-cmd --reload```

tongli (Sat, 15 Aug 2020 02:07:48 GMT):
everything worked just fine. as I have suspected, it was the firewall issue.

tongli (Sat, 15 Aug 2020 02:11:49 GMT):
the --add-masquerade command basically allows docker container ports to be open so that containers can communicate with each other.

tongli (Sat, 15 Aug 2020 02:12:43 GMT):
@zilich please see ^^^

rjones (Sat, 15 Aug 2020 02:12:58 GMT):
now the next trick: how do we replicate all of the composer stuff in minifab?

rjones (Sat, 15 Aug 2020 02:13:49 GMT):
A professor reached out to us about using composer in a classroom... yikes

tongli (Sat, 15 Aug 2020 02:13:53 GMT):
@zilich of course this is only applicable to centos because of its default firewall policy

tongli (Sat, 15 Aug 2020 02:14:07 GMT):
sigh!

rjones (Sat, 15 Aug 2020 02:14:23 GMT):
he's handing out VMs on USB sticks

tongli (Sat, 15 Aug 2020 02:14:39 GMT):
@rjones I do not know if we can do vscode plugin.

tongli (Sat, 15 Aug 2020 02:14:47 GMT):
in theory, we should be able to.

tongli (Sat, 15 Aug 2020 02:15:07 GMT):
I mean vscode minifab plugin.

rjones (Sat, 15 Aug 2020 02:15:20 GMT):
hmm ok

tongli (Sat, 15 Aug 2020 02:15:28 GMT):
i have never done a such thing,

tongli (Sat, 15 Aug 2020 02:15:34 GMT):
not sure what is really involved.

rjones (Sat, 15 Aug 2020 02:15:44 GMT):
you mean to edit and deploy chaincode?

tongli (Sat, 15 Aug 2020 02:15:54 GMT):
thinking we already have vscode fabric extension which is always behind

tongli (Sat, 15 Aug 2020 02:16:17 GMT):
@rjones no, I mean vscode plugin which drives minifab commands from vscode

rjones (Sat, 15 Aug 2020 02:16:35 GMT):
oh, that should be straightforward really

tongli (Sat, 15 Aug 2020 02:16:53 GMT):
not editing chaincode, but update chaincode onto peer.

rjones (Sat, 15 Aug 2020 02:17:38 GMT):
it's all javascript.

rjones (Sat, 15 Aug 2020 02:17:38 GMT):
https://code.visualstudio.com/api/get-started/your-first-extension

tongli (Sat, 15 Aug 2020 02:19:29 GMT):
I can take a look.but you can craft up a first shot, that will be nice.

rjones (Sat, 15 Aug 2020 02:20:58 GMT):
I guess I don't understand what you want to do. minifab up? minifab cleanup?

tongli (Sat, 15 Aug 2020 02:21:23 GMT):
yeah , any of the commands can be a candidate I guess.

tongli (Sat, 15 Aug 2020 02:22:22 GMT):
so I guess the idea is to replace minifab cli? users can do this via vscode?

rjones (Sat, 15 Aug 2020 02:23:35 GMT):
so, send docker commands via vscode?

tongli (Sat, 15 Aug 2020 02:27:54 GMT):
yes.

tongli (Sat, 15 Aug 2020 02:28:14 GMT):
at the same time showing some nodes status,

rjones (Sat, 15 Aug 2020 02:28:18 GMT):
why would minifab exist, then?

rjones (Sat, 15 Aug 2020 02:28:32 GMT):
let me rephrase that. exist for other platforms.

tongli (Sat, 15 Aug 2020 02:28:47 GMT):
minifab is working behind the scene

tongli (Sat, 15 Aug 2020 02:29:24 GMT):
vscode will still need the docker behind it, otherwise, nothing will work.

tongli (Sat, 15 Aug 2020 02:29:52 GMT):
I am not completely sure it is really necessary to do vscode minifab extension.

rjones (Sat, 15 Aug 2020 02:30:28 GMT):
when I was thinking of composer, I was not thinking of the vscode plugin, but the webUI

tongli (Sat, 15 Aug 2020 02:30:56 GMT):
yeah.

tongli (Sat, 15 Aug 2020 02:31:19 GMT):
probably we can think about this idea a bit more.

tongli (Sat, 15 Aug 2020 02:31:38 GMT):
give the professor minifab first, he might like it at the end.

tongli (Sat, 15 Aug 2020 02:32:09 GMT):
now, minifabric really made things easy and especially run it basically natively on all major platforms.

tongli (Sat, 15 Aug 2020 02:32:26 GMT):
before minifab, running fabric on windows is a huge struggle.

rjones (Sat, 15 Aug 2020 02:33:39 GMT):
yes, agreed, this is what I pointed him to

rjones (Sat, 15 Aug 2020 02:35:33 GMT):
there are people asking questions on your youtube videos, btw.

tongli (Sat, 15 Aug 2020 02:52:31 GMT):
Oh, I will take a look and try to answer.

zilich (Sat, 15 Aug 2020 03:50:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=3AkAmpJkTfXZFo4X5) If I removed (switch off) firewalld?

zilich (Sat, 15 Aug 2020 03:51:09 GMT):
and clear iptables rules ...

zilich (Sat, 15 Aug 2020 04:03:16 GMT):
Ubuntu, removed old docker images, removed vars folder... clean install... root@broktest1:/home/zilic/mywork# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES root@broktest1:/home/zilic/mywork# ./minifab up -e true Unable to find image 'hfrd/minifab:latest' locally latest: Pulling from hfrd/minifab df20fa9351a1: Pull complete 16d327ff9a88: Pull complete 19e43598f246: Pull complete df4f36a03e0c: Pull complete d3d46f357c13: Pull complete Digest: sha256:99f830f4e43ca516ca58f04299e8f627db924ef37d618364d04df1ed893d380f Status: Downloaded newer image for hfrd/minifab:latest Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=true CURRENT_ORG=org0.example.com HOST_ADDRESSES=160.99.71.158 WORKING_DIRECTORY: /home/zilic/mywork ... # Preparing for the following operations: ********************* verify options, download images, generate certificates, start network, network status, channel create, channel join, anchor update, profile generation, cc install, cc approve, cc commit, cc initialize, discover ................. # Running operation: ****************************************** verify options . # Running operation: ****************************************** download images ...................... # Running operation: ****************************************** generate certificates ............. # Running operation: ****************************************** start network .................... # Running operation: ****************************************** network status ...... # Docker node status ****************************************** ab1d229f5e_cli : Up Less than a second ca1.org1.example.com : Up 1 second ca1.org0.example.com : Up 6 seconds orderer3.example.com : Up 7 seconds orderer2.example.com : Up 9 seconds orderer1.example.com : Up 10 seconds peer2.org1.example.com : Up 11 seconds peer1.org1.example.com : Up 11 seconds peer2.org0.example.com : Up 12 seconds peer1.org0.example.com : Up 13 seconds # Fabric network peer and orderer node health status ********** peer1.org0.example.com "OK" peer2.org0.example.com "OK" peer1.org1.example.com "OK" peer2.org1.example.com "OK" orderer1.example.com "OK" orderer2.example.com "OK" orderer3.example.com "OK" # Running operation: ****************************************** channel create ..... # Run the channel creation script on cli container ************ non-zero return code 2020-08-15 04:01:21.990 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-08-15 04:01:22.055 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /vars/configtx.yaml 2020-08-15 04:01:22.058 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2020-08-15 04:01:22.063 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 004 Writing new channel tx 2020-08-15 04:01:22.223 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: FORBIDDEN -- config update for existing channel did not pass initial checks: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Writers' sub-policies to be satisfied: permission denied # STATS ******************************************************* minifab: ok=113 failed=1 real 1m11.047s user 0m30.855s sys 0m5.766s root@broktest1:/home/zilic/mywork#

zilich (Sat, 15 Aug 2020 04:05:05 GMT):
root@broktest1:/home/zilic/mywork# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 15612d82db5d hyperledger/fabric-javaenv:2.2 "/bin/sh -c ./build.…" 33 seconds ago Up 32 seconds brave_banzai e7f2d51db6cb hyperledger/fabric-javaenv:2.2 "/bin/sh -c ./build.…" 33 seconds ago Up 32 seconds upbeat_heyrovsky 5ebecf3516d3 hyperledger/fabric-javaenv:2.2 "/bin/sh -c ./build.…" 33 seconds ago Up 32 seconds vigilant_cannon e62d91cae682 hyperledger/fabric-javaenv:2.2 "/bin/sh -c ./build.…" 34 seconds ago Up 33 seconds sharp_cori b14c5151b309 hyperledger/fabric-tools:2.2.0 "/bin/sh" 2 minutes ago Up 2 minutes ab1d229f5e_cli 471f79882885 hyperledger/fabric-ca:1.4 "/bin/sh -c 'fabric-…" 2 minutes ago Up 2 minutes 0.0.0.0:7001->7054/tcp ca1.org1.example.com 763097810d1b hyperledger/fabric-ca:1.4 "/bin/sh -c 'fabric-…" 2 minutes ago Up 2 minutes 0.0.0.0:7000->7054/tcp ca1.org0.example.com 6e86b4439eca hyperledger/fabric-orderer:2.2.0 "orderer" 2 minutes ago Exited (2) 2 minutes ago orderer3.example.com 63ae30f445da hyperledger/fabric-orderer:2.2.0 "orderer" 2 minutes ago Exited (2) 2 minutes ago orderer2.example.com 815adae24e25 hyperledger/fabric-orderer:2.2.0 "orderer" 2 minutes ago Exited (2) 2 minutes ago orderer1.example.com 22c0aee47f0e hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 0.0.0.0:7005->7051/tcp, 0.0.0.0:8005->7061/tcp peer2.org1.example.com d3ecec782bf9 hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 0.0.0.0:7004->7051/tcp, 0.0.0.0:8004->7061/tcp peer1.org1.example.com c6b93296c301 hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 0.0.0.0:7003->7051/tcp, 0.0.0.0:8003->7061/tcp peer2.org0.example.com 79d9120d5472 hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 0.0.0.0:7002->7051/tcp, 0.0.0.0:8002->7061/tcp peer1.org0.example.com root@broktest1:/home/zilic/mywork# root@broktest1:/home/zilic/mywork# root@broktest1:/home/zilic/mywork# nc -zv 8000-8005 nc: missing port number root@broktest1:/home/zilic/mywork# nc -zv localhost 8000-8005 nc: connect to localhost port 8000 (tcp) failed: Connection refused nc: connect to localhost port 8001 (tcp) failed: Connection refused Connection to localhost 8002 port [tcp/*] succeeded! Connection to localhost 8003 port [tcp/*] succeeded! Connection to localhost 8004 port [tcp/*] succeeded! Connection to localhost 8005 port [tcp/*] succeeded! root@broktest1:/home/zilic/mywork#

zilich (Sat, 15 Aug 2020 04:08:04 GMT):
root@broktest1:/home/zilic/mywork# nc -zv localhost 7000-7005 Connection to localhost 7000 port [tcp/afs3-fileserver] succeeded! Connection to localhost 7001 port [tcp/afs3-callback] succeeded! Connection to localhost 7002 port [tcp/afs3-prserver] succeeded! Connection to localhost 7003 port [tcp/afs3-vlserver] succeeded! Connection to localhost 7004 port [tcp/afs3-kaserver] succeeded! Connection to localhost 7005 port [tcp/afs3-volser] succeeded! root@broktest1:/home/zilic/mywork# nc -zv localhost 7051-7061 nc: connect to localhost port 7051 (tcp) failed: Connection refused nc: connect to localhost port 7052 (tcp) failed: Connection refused nc: connect to localhost port 7053 (tcp) failed: Connection refused nc: connect to localhost port 7054 (tcp) failed: Connection refused nc: connect to localhost port 7055 (tcp) failed: Connection refused nc: connect to localhost port 7056 (tcp) failed: Connection refused nc: connect to localhost port 7057 (tcp) failed: Connection refused nc: connect to localhost port 7058 (tcp) failed: Connection refused nc: connect to localhost port 7059 (tcp) failed: Connection refused nc: connect to localhost port 7060 (tcp) failed: Connection refused nc: connect to localhost port 7061 (tcp) failed: Connection refused root@broktest1:/home/zilic/mywork#

zilich (Sat, 15 Aug 2020 04:08:59 GMT):
I will now go to centos and switch on firewall with your advice...

zilich (Sat, 15 Aug 2020 04:28:54 GMT):

Screenshot_530.jpg

zilich (Sat, 15 Aug 2020 04:29:58 GMT):
[root@pc86 mywork]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c28fc9d6f302 hyperledger/fabric-tools:2.2.0 "/bin/sh" 2 minutes ago Up 2 minutes ab1d229f5e_cli f3547f209cc2 hyperledger/fabric-ca:1.4 "/bin/sh -c 'fabric-…" 2 minutes ago Up 2 minutes 0.0.0.0:7001->7054/tcp ca1.org1.example.com f72b9236f940 hyperledger/fabric-ca:1.4 "/bin/sh -c 'fabric-…" 2 minutes ago Up 2 minutes 0.0.0.0:7000->7054/tcp ca1.org0.example.com 6d8120ed6c50 hyperledger/fabric-orderer:2.2.0 "orderer" 2 minutes ago Exited (2) 2 minutes ago orderer3.example.com ef2534ca2f1f hyperledger/fabric-orderer:2.2.0 "orderer" 2 minutes ago Exited (2) 2 minutes ago orderer2.example.com 1dad906a7b1a hyperledger/fabric-orderer:2.2.0 "orderer" 2 minutes ago Exited (2) 2 minutes ago orderer1.example.com 8d341c6f5caf hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 0.0.0.0:7005->7051/tcp, 0.0.0.0:8005->7061/tcp peer2.org1.example.com fe985a3975e4 hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 0.0.0.0:7004->7051/tcp, 0.0.0.0:8004->7061/tcp peer1.org1.example.com 70557bf05f3f hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 0.0.0.0:7003->7051/tcp, 0.0.0.0:8003->7061/tcp peer2.org0.example.com 05e5b3274713 hyperledger/fabric-peer:2.2.0 "peer node start" 2 minutes ago Up 2 minutes 0.0.0.0:7002->7051/tcp, 0.0.0.0:8002->7061/tcp peer1.org0.example.com [root@pc86 mywork]#

zilich (Sat, 15 Aug 2020 04:32:23 GMT):

Screenshot_531.jpg

zilich (Sat, 15 Aug 2020 04:37:23 GMT):
Run the channel creation script on cli container ************ non-zero return code 2020-08-15 04:27:12.583 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-08-15 04:27:12.615 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /vars/configtx.yaml 2020-08-15 04:27:12.615 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2020-08-15 04:27:12.618 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 004 Writing new channel tx Error: failed to create deliver client for orderer: orderer client failed to connect to 160.99.71.153:7007: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 160.99.71.153:7007: connect: no route to host" # STATS ******************************************************* minifab: ok=78 failed=1 real 0m24.622s user 0m15.317s sys 0m3.576s

zilich (Sat, 15 Aug 2020 04:37:53 GMT):

Screenshot_532.jpg

zilich (Sat, 15 Aug 2020 05:07:25 GMT):
Under Windows, you can use bash without WSL/Ubuntu... git bash...

zilich (Sat, 15 Aug 2020 05:10:58 GMT):

Screenshot_536.jpg

zilich (Sat, 15 Aug 2020 05:11:13 GMT):

Screenshot_537.jpg

tongli (Sat, 15 Aug 2020 11:07:55 GMT):
@zilich please please try this process

tongli (Sat, 15 Aug 2020 11:08:29 GMT):
1.get a clean cents 8.2.2 system, do not change anything especially the iptables

tongli (Sat, 15 Aug 2020 11:09:01 GMT):
2.install right docker if it is not on your clean system

tongli (Sat, 15 Aug 2020 11:09:19 GMT):
3. Run these command

tongli (Sat, 15 Aug 2020 11:09:19 GMT):
3. Run these two command

tongli (Sat, 15 Aug 2020 11:11:34 GMT):
```firewall-cmd --zone=public --add-masquerade --permanent # Reload firewall to apply permanent rules firewall-cmd --reload```

tongli (Sat, 15 Aug 2020 11:13:15 GMT):
2. open up docker firewall doing this ```firewall-cmd --zone=public --add-masquerade --permanent # Reload firewall to apply permanent rules firewall-cmd --reload```

tongli (Sat, 15 Aug 2020 11:13:15 GMT):
open up docker firewall doing this ```firewall-cmd --zone=public --add-masquerade --permanent # Reload firewall to apply permanent rules firewall-cmd --reload```

tongli (Sat, 15 Aug 2020 11:13:15 GMT):
open up docker firewall doing this ```firewall-cmd --zone=public --add-masquerade --permanent firewall-cmd --reload```

tongli (Sat, 15 Aug 2020 11:13:15 GMT):
```firewall-cmd --zone=public --add-masquerade --permanent firewall-cmd --reload```

tongli (Sat, 15 Aug 2020 11:13:15 GMT):
Run ```firewall-cmd --zone=public --add-masquerade --permanent firewall-cmd --reload```

tongli (Sat, 15 Aug 2020 11:13:15 GMT):
Run ```firewall-cmd --zone=public --add-masquerade --permanent && firewall-cmd --reload```

tongli (Sat, 15 Aug 2020 11:13:15 GMT):
```firewall-cmd --zone=public --add-masquerade --permanent && firewall-cmd --reload```

tongli (Sat, 15 Aug 2020 11:13:15 GMT):
```firewall-cmd --zone=public --add-masquerade --permanent firewall-cmd --reload```

tongli (Sat, 15 Aug 2020 11:15:21 GMT):
4. Get minifabric, and run the command.

tongli (Sat, 15 Aug 2020 11:15:42 GMT):
Follow the above 4 steps, you should be fine

tongli (Sat, 15 Aug 2020 11:16:23 GMT):
@zilich please please read the above instructions. You got be able to follow these instructions.

tongli (Sat, 15 Aug 2020 11:16:23 GMT):
@zilich please please read the above instructions.

tongli (Sat, 15 Aug 2020 13:14:43 GMT):
@zilich see this https://github.com/litong01/minifabric/blob/master/docs/Running%20Minifabric%20on%20centos.md

rjones (Sat, 15 Aug 2020 13:16:57 GMT):
Get some sleep Tong 😂

tongli (Sat, 15 Aug 2020 13:21:39 GMT):
@rjones haha, I did, actually pretty good one last night.

tongli (Sat, 15 Aug 2020 13:22:12 GMT):
6 hours , not too bad comparing to other nights.

tongli (Sat, 15 Aug 2020 13:23:02 GMT):
minifabric worked great on the centos system that I setup. after enabling masquerade.

rjones (Sat, 15 Aug 2020 13:26:22 GMT):
nice. any other things to try? it would be nice if we could get fabric CI to use minifab

tongli (Sat, 15 Aug 2020 13:26:51 GMT):
@rjones it will be awesome if we do that.

tongli (Sat, 15 Aug 2020 13:30:06 GMT):
I do not know if we should try fedora CoreOS

tongli (Sat, 15 Aug 2020 13:30:15 GMT):
@rjones ^^^

rjones (Sat, 15 Aug 2020 13:48:18 GMT):
I don't have a machine where I can do that easily - I really don't want to flatten my little windows box you used

rjones (Sat, 15 Aug 2020 13:48:56 GMT):
I mean, the largest install base is probably Ubuntu, and everything else is probably noise.

tongli (Sat, 15 Aug 2020 14:04:57 GMT):
Ok. If I have time, I can try on fedora

tongli (Sat, 15 Aug 2020 14:05:47 GMT):
I was just using vbox creating these systems

tongli (Sat, 15 Aug 2020 14:06:05 GMT):
VirtualBox I mean

zilich (Sat, 15 Aug 2020 15:38:16 GMT):

Screenshot_562.jpg

rjones (Sat, 15 Aug 2020 15:38:53 GMT):
@zilich did following the instructions @tongli provided work for you?

zilich (Sat, 15 Aug 2020 15:39:28 GMT):
I get last Centos, and I will made KVM Centos mashine on Centos ... At Faculty I have 40 computers... New... Empty... But I am now Far from office...

zilich (Sat, 15 Aug 2020 15:39:28 GMT):
I get last Centos, and I will made virtual KVM Centos mashine on Centos host... At Faculty I have 40 computers... New... Empty... But I am now far from office...

zilich (Sat, 15 Aug 2020 15:39:47 GMT):
I will follow on new KVM installation...

zilich (Sat, 15 Aug 2020 15:42:22 GMT):
И ам ноњ он vacation... I will try installation on empty Centos 8.2 system...

zilich (Sat, 15 Aug 2020 15:42:22 GMT):
I am now on vacation... I will try installation on empty Centos 8.2 system...

zilich (Sat, 15 Aug 2020 15:42:33 GMT):
I am now on vacation...

zilich (Sat, 15 Aug 2020 15:47:51 GMT):
"Make sure that your Centos system has docker 18.03 or newer installed" Here is important API version, too... 1.40 minimum!!!

zilich (Sat, 15 Aug 2020 15:47:51 GMT):
"Make sure that your Centos system has docker 18.03 or newer installed" Here is important Docker API version, too... 1.40 minimum!!!

zilich (Sat, 15 Aug 2020 15:47:51 GMT):
"Make sure that your Centos system has docker 18.03 or newer installed" Here is important Docker API version, too... 1.40 minimum!!!

zilich (Sat, 15 Aug 2020 15:49:54 GMT):

Screenshot_498.jpg

zilich (Sat, 15 Aug 2020 15:51:18 GMT):

Screenshot_488.jpg

zilich (Sat, 15 Aug 2020 16:06:29 GMT):

Screenshot_499.jpg

zilich (Sat, 15 Aug 2020 16:07:10 GMT):

Screenshot_500.jpg

zilich (Sat, 15 Aug 2020 16:07:10 GMT):

Screenshot_500.jpg

zilich (Sat, 15 Aug 2020 16:07:10 GMT):

Screenshot_500.jpg

tongli (Sat, 15 Aug 2020 18:09:51 GMT):
@zilich you are using old minifabric image. Try to get the latest one.

zilich (Sun, 16 Aug 2020 07:36:20 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=tJfvEAchaJVAHnqB5) I use last one... Finally, I installed Centos 8.2.2004... I will try miniFabric again... KVM virtualisation...

zilich (Sun, 16 Aug 2020 07:37:35 GMT):

Screenshot_585.jpg

zilich (Sun, 16 Aug 2020 09:08:37 GMT):

Screenshot_593.jpg

zilich (Sun, 16 Aug 2020 09:09:12 GMT):

Screenshot_594.jpg

zilich (Sun, 16 Aug 2020 09:09:30 GMT):

Screenshot_595.jpg

zilich (Sun, 16 Aug 2020 09:09:49 GMT):

Screenshot_596.jpg

zilich (Sun, 16 Aug 2020 09:10:06 GMT):

Screenshot_597.jpg

zilich (Sun, 16 Aug 2020 09:11:16 GMT):
I will add after only java,gradle,maven... What I need for java applications...

zilich (Sun, 16 Aug 2020 09:13:39 GMT):

Screenshot_599.jpg

zilich (Sun, 16 Aug 2020 09:46:40 GMT):
only to check "-e true"

zilich (Sun, 16 Aug 2020 09:48:48 GMT):
before... [zilic@pc112 mywork]$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f1f659135842 dev-peer2.org1.example.com-simple_1.0-c82db0b56d66da90ef4dcd01c4da7c0afc6f6225867477f7eb0409a022fceeee-3a957cd272925a8c04817ef991069376a87c9691913038ae5d300b200b52fc45 "chaincode -peer.add…" 36 minutes ago Up 36 minutes dev-peer2.org1.example.com-simple_1.0-c82db0b56d66da90ef4dcd01c4da7c0afc6f6225867477f7eb0409a022fceeee 2df98b62da55 dev-peer1.org0.example.com-simple_1.0-c82db0b56d66da90ef4dcd01c4da7c0afc6f6225867477f7eb0409a022fceeee-0d13f315230afaf6059afa9eddc90ae892a82aace1ecd22d12dfa0e180f77381 "chaincode -peer.add…" 36 minutes ago Up 36 minutes dev-peer1.org0.example.com-simple_1.0-c82db0b56d66da90ef4dcd01c4da7c0afc6f6225867477f7eb0409a022fceeee e54abe393f84 dev-peer2.org0.example.com-simple_1.0-c82db0b56d66da90ef4dcd01c4da7c0afc6f6225867477f7eb0409a022fceeee-a84d74ac14999be91c58b5a314802150e644143030263e88a82fa55884952712 "chaincode -peer.add…" 36 minutes ago Up 36 minutes dev-peer2.org0.example.com-simple_1.0-c82db0b56d66da90ef4dcd01c4da7c0afc6f6225867477f7eb0409a022fceeee e1eb4607d377 dev-peer1.org1.example.com-simple_1.0-c82db0b56d66da90ef4dcd01c4da7c0afc6f6225867477f7eb0409a022fceeee-2b76ce85dc3e11b8fb846b4e01fc05fbe6a7f2d87378364537dae86c7fb1540f "chaincode -peer.add…" 36 minutes ago Up 36 minutes dev-peer1.org1.example.com-simple_1.0-c82db0b56d66da90ef4dcd01c4da7c0afc6f6225867477f7eb0409a022fceeee 550e3be920f0 hyperledger/fabric-tools:2.2.0 "/bin/sh" 41 minutes ago Up 41 minutes ab1d229f5e_cli 70e6d4f9f443 hyperledger/fabric-ca:1.4 "/bin/sh -c 'fabric-…" 41 minutes ago Up 41 minutes 7054/tcp ca1.org1.example.com a24884f908f6 hyperledger/fabric-ca:1.4 "/bin/sh -c 'fabric-…" 41 minutes ago Up 41 minutes 7054/tcp ca1.org0.example.com feb1728d91c4 hyperledger/fabric-orderer:2.2.0 "orderer" 41 minutes ago Up 41 minutes 7050/tcp orderer3.example.com 2dfa2efdc7ea hyperledger/fabric-orderer:2.2.0 "orderer" 41 minutes ago Up 41 minutes 7050/tcp orderer2.example.com 496db7ba8a4e hyperledger/fabric-orderer:2.2.0 "orderer" 41 minutes ago Up 41 minutes 7050/tcp orderer1.example.com 277c22e6e7e3 hyperledger/fabric-peer:2.2.0 "peer node start" 41 minutes ago Up 41 minutes 7051/tcp peer2.org1.example.com c2923c3c9f9c hyperledger/fabric-peer:2.2.0 "peer node start" 41 minutes ago Up 41 minutes 7051/tcp peer1.org1.example.com 870d83943a76 hyperledger/fabric-peer:2.2.0 "peer node start" 41 minutes ago Up 41 minutes 7051/tcp peer2.org0.example.com e306b27e970d hyperledger/fabric-peer:2.2.0 "peer node start" 42 minutes ago Up 41 minutes 7051/tcp peer1.org0.example.com [zilic@pc112 mywork]$

zilich (Sun, 16 Aug 2020 09:52:31 GMT):
[zilic@pc112 mywork]$ date;./minifab up -e true;date Sun Aug 16 05:50:01 EDT 2020 Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=true CURRENT_ORG=org0.example.com HOST_ADDRESSES=160.99.71.177 WORKING_DIRECTORY: /home/zilic/mywork ... # Preparing for the following operations: ********************* verify options, download images, generate certificates, start network, network status, channel create, channel join, anchor update, profile generation, cc install, cc approve, cc commit, cc initialize, discover ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** download images ............ # Running operation: ****************************************** generate certificates .. # Running operation: ****************************************** start network ................ # Running operation: ****************************************** network status ...... # Docker node status ****************************************** ab1d229f5e_cli : Up 3 seconds ca1.org1.example.com : Up 12 seconds ca1.org0.example.com : Up 18 seconds orderer3.example.com : Up 25 seconds orderer2.example.com : Up 31 seconds orderer1.example.com : Up 37 seconds peer2.org1.example.com : Up 44 seconds peer1.org1.example.com : Up 49 seconds peer2.org0.example.com : Up 55 seconds peer1.org0.example.com : Up 59 seconds # Fabric network peer and orderer node health status ********** peer1.org0.example.com "OK" peer2.org0.example.com "OK" peer1.org1.example.com "OK" peer2.org1.example.com "OK" orderer1.example.com "OK" orderer2.example.com "OK" orderer3.example.com "OK" # Running operation: ****************************************** channel create ..... # Run the channel creation script on cli container ************ non-zero return code 2020-08-16 09:51:40.260 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-08-16 09:51:40.453 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /vars/configtx.yaml 2020-08-16 09:51:40.453 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2020-08-16 09:51:40.471 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 004 Writing new channel tx 2020-08-16 09:51:40.908 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application/org1-example-com be at version 0, but it is currently at version 1 # STATS ******************************************************* minifab: ok=78 failed=1 real 1m39.847s user 0m18.020s sys 0m6.225s Sun Aug 16 05:51:45 EDT 2020 [zilic@pc112 mywork]$

zilich (Sun, 16 Aug 2020 09:53:18 GMT):

Screenshot_601.jpg

zilich (Sun, 16 Aug 2020 09:54:27 GMT):
Maybe different order of operations??? for "-e true"? to delete all docker images and try again with "-e true"?

tongli (Sun, 16 Aug 2020 11:23:38 GMT):
You did not do minifab cleanup, did you?

zilich (Sun, 16 Aug 2020 12:16:56 GMT):
no! :(

zilich (Sun, 16 Aug 2020 12:17:19 GMT):
After cleanup, up -e true report error...

zilich (Sun, 16 Aug 2020 12:18:20 GMT):

Screenshot_603.jpg

zilich (Sun, 16 Aug 2020 12:21:35 GMT):

LOGcleanupEtrue.txt

zilich (Sun, 16 Aug 2020 12:23:16 GMT):

Screenshot_604.jpg

zilich (Sun, 16 Aug 2020 12:42:32 GMT):

Screenshot_605.jpg

zilich (Sun, 16 Aug 2020 12:42:42 GMT):

Screenshot_606.jpg

zilich (Sun, 16 Aug 2020 12:43:39 GMT):

Screenshot_607.jpg

zilich (Sun, 16 Aug 2020 12:43:49 GMT):

Screenshot_608.jpg

zilich (Sun, 16 Aug 2020 12:44:47 GMT):
its look that is OK.. But miniFabric report error...

tongli (Sun, 16 Aug 2020 12:47:25 GMT):
@zilich so you have no idea what might have gone wrong?

zilich (Sun, 16 Aug 2020 12:53:31 GMT):
I look logs... Maybe you ask wrong ip/port combination...

zilich (Sun, 16 Aug 2020 12:53:31 GMT):
I look logs... Maybe you ask wrong ip:port combination...

zilich (Sun, 16 Aug 2020 12:53:58 GMT):
from Java port localhost:ip is accessible...

zilich (Sun, 16 Aug 2020 12:53:58 GMT):
from Java port localhost:port is accessible...

zilich (Sun, 16 Aug 2020 12:54:52 GMT):
not ip port... 160.99.71.177:port... You can test with nc ... I sent to you screenshots... above...

zilich (Sun, 16 Aug 2020 12:55:34 GMT):
same problem is in Ubuntu, too... One of reason, what i try to move to Centos is to test clean system with -e true...

zilich (Sun, 16 Aug 2020 12:58:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=WfeJyYDixByhmsGiA) this is test on Ubuntu... And ports test from OS...

zilich (Sun, 16 Aug 2020 13:00:12 GMT):
IP number of broktest1 ubuntu installation is 160.99.71.158! And if I use this instead localhost I cant access to ports...

zilich (Sun, 16 Aug 2020 13:05:24 GMT):

Ubuntu158.txt

zilich (Sun, 16 Aug 2020 13:08:02 GMT):
And list minifab to see date of installation...

zilich (Sun, 16 Aug 2020 13:10:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=Ex6QdjK6qYLaqTsHG) Maybe some firewall problem, again... With ubuntu work ...

zilich (Sun, 16 Aug 2020 13:16:18 GMT):

Ubuntu158.txt

zilich (Sun, 16 Aug 2020 13:16:58 GMT):

Screenshot_611.jpg

zilich (Sun, 16 Aug 2020 13:26:47 GMT):
I test under Centos as root... Same result...

zilich (Sun, 16 Aug 2020 13:27:26 GMT):

Screenshot_613.jpg

zilich (Sun, 16 Aug 2020 13:27:48 GMT):

Screenshot_614.jpg

zilich (Sun, 16 Aug 2020 13:29:00 GMT):
Are you have same results at yours centos installation?_

tongli (Sun, 16 Aug 2020 13:49:43 GMT):
@zilich https://github.com/litong01/minifabric/blob/master/docs/RunningOnCentos.md

tongli (Sun, 16 Aug 2020 13:50:21 GMT):
see the bottom part in terms of using -e true

tongli (Sun, 16 Aug 2020 13:51:06 GMT):
@zilich BTW, I add a doc for running minifabric on Fedora as well.

tongli (Sun, 16 Aug 2020 13:52:18 GMT):
if you are interested in trying , but I've tried all the options, after opening up the necessary port and fixing cgroup2 issues, everything worked perfectly.

zilich (Sun, 16 Aug 2020 15:15:51 GMT):

Screenshot_615.jpg

zilich (Sun, 16 Aug 2020 15:18:07 GMT):
Have you some java client test application under miniFabric? Or where can I read/test documentation / examples?

zilich (Sun, 16 Aug 2020 15:37:41 GMT):

Screenshot_619.jpg

tongli (Sun, 16 Aug 2020 20:27:07 GMT):
@zilich happy that you got it all working for you. regarding the app, there are abundant examples available. All I like to tell you is that minifabric made developing apps a lot easier by providing you the ncessary connection profiles, when you develop your apps, you can directly use these profiles based on the sdk you use.

zilich (Mon, 17 Aug 2020 08:01:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=ivcT69b9HDtnDuGeP)
Screenshot_650.jpg

zilich (Mon, 17 Aug 2020 08:02:21 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=ivcT69b9HDtnDuGeP)
Screenshot_649.jpg

zilich (Mon, 17 Aug 2020 08:06:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=ivcT69b9HDtnDuGeP) @tongli I made ...javasdk.yaml based on ...gosdk.yaml. Path for file was OK, and readed... Format for javasdk.yaml was different? I have following error: Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 142.048 sec <<< FAILURE! ClientTest(org.example.ClientTest) Time elapsed: 141.969 sec <<< ERROR! java.lang.IllegalArgumentException: No peers provided at org.hyperledger.fabric.gateway.impl.query.SingleQueryHandler.(SingleQueryHandler.java:29) at org.hyperledger.fabric.gateway.DefaultQueryHandlers.lambda$static$0(DefaultQueryHandlers.java:30) at org.hyperledger.fabric.gateway.DefaultQueryHandlers.create(DefaultQueryHandlers.java:73) at org.hyperledger.fabric.gateway.impl.NetworkImpl.(NetworkImpl.java:54) at org.hyperledger.fabric.gateway.impl.GatewayImpl.getNetwork(GatewayImpl.java:252) at org.example.ClientApp.main(ClientApp.java:40) at org.example.ClientTest.ClientTest(ClientTest.java:15)

zilich (Mon, 17 Aug 2020 08:22:54 GMT):

Screenshot_651.jpg

zilich (Mon, 17 Aug 2020 08:22:54 GMT):

Screenshot_651.jpg

zilich (Mon, 17 Aug 2020 08:22:54 GMT):

Screenshot_651.jpg

tongli (Mon, 17 Aug 2020 11:40:49 GMT):
Well the idea is that the profile will be mounted to a container using right path.

zilich (Mon, 17 Aug 2020 11:48:37 GMT):
This is for network/server side... I develop client application...

zilich (Mon, 17 Aug 2020 11:48:37 GMT):
This is for network/server side... I develop client application, and i change this file... Maybe need to have another name...

zilich (Mon, 17 Aug 2020 11:48:37 GMT):
This is for network/server side... I develop client application, and I change this file... Maybe need to have another name...

zilich (Mon, 17 Aug 2020 11:48:37 GMT):
This is for network/server side... I develop client application, and I change this file... Maybe need to change it to another name...

zilich (Mon, 17 Aug 2020 11:53:58 GMT):
Or I need to run it from docker enviroment...

zilich (Mon, 17 Aug 2020 11:53:58 GMT):
Or I need to run it from docker environment...

zilich (Mon, 17 Aug 2020 11:54:19 GMT):
then I dont need to change nothing...

tongli (Mon, 17 Aug 2020 12:15:34 GMT):
Right. If your app runs inside a docker container then you do not need to change anything if you mount the files appropriately. This is completely up to you.

tongli (Mon, 17 Aug 2020 12:16:38 GMT):
You may not need all the files if your app runs on behave a particular user.

pkirkinezis (Mon, 17 Aug 2020 19:13:40 GMT):
@tongli i defore closing the issue i oped on github i would like to discuss .

pkirkinezis (Mon, 17 Aug 2020 19:14:18 GMT):
I am still confused on approve/ commit sequence you are explaining

pkirkinezis (Mon, 17 Aug 2020 19:15:58 GMT):
Lest say you have 3 servers 1 orginazation per server . Lest say we have a channel between 3 orgs .

pkirkinezis (Mon, 17 Aug 2020 19:18:56 GMT):
To instal the chaincode to this channel we first need to "install" chaincode to every server . Then run "approve" to every server . Which are the next steps ? As of my understanding one orginization peer has to run commit command . Is that correct ?

pkirkinezis (Mon, 17 Aug 2020 19:20:44 GMT):
Why dont use the peers found from discover function to run the commit command ?

tongli (Mon, 17 Aug 2020 19:22:45 GMT):
because that your site may not have the admin cert available to commit.

pkirkinezis (Mon, 17 Aug 2020 19:23:42 GMT):
Yeah but we need majority of the peers in the commit command

pkirkinezis (Mon, 17 Aug 2020 19:24:27 GMT):
You cannot run commit command including only one peer org . You will get endorsement policy failure

pkirkinezis (Mon, 17 Aug 2020 19:46:00 GMT):
Why commit has to be done including more than the peer commiting ?

tongli (Mon, 17 Aug 2020 19:49:38 GMT):
@pkirkinezis you got read more fabric docs.

tongli (Mon, 17 Aug 2020 19:50:22 GMT):
and get a good understanding of how things actually work.

pkirkinezis (Mon, 17 Aug 2020 19:51:49 GMT):
Am i so out of what actoully approve commit initialize does ? I also recntly saw the youtube video on hyperledger for chaincode

pkirkinezis (Mon, 17 Aug 2020 19:54:24 GMT):
I get to the same conclution

pkirkinezis (Mon, 17 Aug 2020 19:54:26 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/chaincode_lifecycle.html

tongli (Mon, 17 Aug 2020 20:00:21 GMT):
what is the conclution?

pkirkinezis (Mon, 17 Aug 2020 20:03:22 GMT):
That after enough aproovements (based on LifecycleEndorsement ) on org admin has to commit the chaincode

pkirkinezis (Mon, 17 Aug 2020 20:03:45 GMT):
But they don;t state anything about how to ryn commit command .

pkirkinezis (Mon, 17 Aug 2020 20:07:07 GMT):
But after looking here on an example of a commit

pkirkinezis (Mon, 17 Aug 2020 20:07:08 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/commands/peerlifecycle.html

pkirkinezis (Mon, 17 Aug 2020 20:07:58 GMT):
You can see it includes all the peer adresses peer lifecycle chaincode commit -o orderer.example.com:7050 --channelID mychannel --name mycc --version 1.0 --sequence 1 --init-required --tls --cafile $ORDERER_CA --peerAddresses peer0.org1.example.com:7051 --peerAddresses peer0.org2.example.com:9051

pkirkinezis (Mon, 17 Aug 2020 20:22:41 GMT):
Is ther something crusial i am missing here ?

sichen (Mon, 17 Aug 2020 21:47:53 GMT):
Has joined the channel.

sichen (Mon, 17 Aug 2020 21:47:53 GMT):
Has anybody gotten Hyperledger Explorer working with Minifabric? I got most of it set up with instructions from https://medium.com/@eplt/5-minutes-to-install-hyperledger-explorer-with-fabric-v2-0-0-unofficial-7958d8e2f540 but am stuck with error Failed to connect to remote gRPC server peer1.auditor1.com url:grpcs://peer1.auditor1.com:7051 timeout:3000 When I do $ docker ps I do see this peer: hyperledger/fabric-peer:2.2.0 "peer node start" 3 hours ago Up 3 hours 7051/tcp peer1.auditor1.com

tongli (Mon, 17 Aug 2020 22:50:30 GMT):
@sichen did you use -e flag to allow access to your node from outside of the docker network?

tongli (Mon, 17 Aug 2020 22:51:20 GMT):
Also if your system may have firewall blocking the access?

sichen (Mon, 17 Aug 2020 22:52:02 GMT):
@tongli No I didn't use the -e. Should I do that as part of $ ./minifab up -o auditor1.com -e?

tongli (Mon, 17 Aug 2020 22:58:54 GMT):
Right. If you do not use -e, you can only access these node from a container running on the same docker network

tongli (Mon, 17 Aug 2020 22:59:16 GMT):
-e true

tongli (Mon, 17 Aug 2020 22:59:30 GMT):
Default is false

tongli (Mon, 17 Aug 2020 22:59:40 GMT):
That flag means expose ports

tongli (Mon, 17 Aug 2020 22:59:54 GMT):
Use -h to see more parameters

tongli (Mon, 17 Aug 2020 23:01:56 GMT):
@sichen if you got it going, please write a small short doc so others can use it as well

sichen (Mon, 17 Aug 2020 23:16:01 GMT):
@tongli I would certainly do that.

sichen (Mon, 17 Aug 2020 23:16:33 GMT):
I'm still stuck though -- I started it with $ ./minifab up -e true -o auditor1.com and I see

sichen (Mon, 17 Aug 2020 23:16:33 GMT):
I'm still stuck though -- I started it with $ ./minifab up -e true -o auditor1.com and I see EXPOSE_ENDPOINTS=true but I still get same error from Hyperledger Explorer.

sichen (Mon, 17 Aug 2020 23:18:17 GMT):
Is there a way to test access that grpcs end point, like a curl?

tongli (Mon, 17 Aug 2020 23:32:08 GMT):
Sure. You can do few transaction and see things are working

tongli (Mon, 17 Aug 2020 23:32:25 GMT):
Like minifab invoke etc

lamnguyen (Tue, 18 Aug 2020 00:21:54 GMT):
Has joined the channel.

tongli (Tue, 18 Aug 2020 01:32:56 GMT):
@sichen I think that you might have the certificates setup in the explorer configuration not correct.

tongli (Tue, 18 Aug 2020 01:34:17 GMT):
obviously you are seeing the server, it is just that it wont connect, you can probably log in to the explorer container to see if you can indeed ping peer1.auditor1.com,

AndrewPark 1 (Tue, 18 Aug 2020 09:38:45 GMT):
Is there anyone know why fabric chaincode evm project stopped?

AndrewPark 1 (Tue, 18 Aug 2020 09:38:46 GMT):
https://github.com/hyperledger/fabric-chaincode-evm

tongli (Tue, 18 Aug 2020 11:44:41 GMT):
@AndrewPark 1 do not really know.

rjones (Tue, 18 Aug 2020 13:16:26 GMT):
@AndrewPark 1 my guess would be the person that was doing most of the work has moved on to another job

sichen (Tue, 18 Aug 2020 22:36:59 GMT):
@tongli Thanks for our advice. I don't see a way to login to the explorer container. Here is what my docker containers look like after trying to startup blockchain explorer: https://drive.google.com/file/d/1w3vk8P7bJL-6AbDEcKxmkJXo7alAT-YX/view?usp=sharing

sichen (Tue, 18 Aug 2020 22:36:59 GMT):
@tongli Thanks for our advice. I don't see a way to login to the explorer container. Here is what my docker containers look like after trying to startup blockchain explorer: https://drive.google.com/file/d/1w3vk8P7bJL-6AbDEcKxmkJXo7alAT-YX/view?usp=sharing and here is what my blockchain explorer connection JSON looks like:

sichen (Tue, 18 Aug 2020 22:36:59 GMT):
@tongli Thanks for our advice. I don't see a way to login to the explorer container. Here is what my docker containers look like after trying to startup blockchain explorer: https://drive.google.com/file/d/1w3vk8P7bJL-6AbDEcKxmkJXo7alAT-YX/view?usp=sharing and here is what my blockchain explorer connection JSON looks like: https://drive.google.com/file/d/1M05olaZQba7HNgZ88CFa2eFKCM__U48b/view?usp=sharing -- Do you see anything wrong with either one?

tongli (Wed, 19 Aug 2020 01:06:41 GMT):
@sichen I've added command to minifabric `minifab explorerup` and `minifab explorerdown` to boot up and shutdown explorer.

tongli (Wed, 19 Aug 2020 01:07:40 GMT):
if you use the latest minifabric, you can start up explorer just using the above command. then you can access the explorer by the showing url.

tongli (Wed, 19 Aug 2020 01:08:27 GMT):
@rjones please see above conversation with @sichen on adding explorer to minifabric.

tongli (Wed, 19 Aug 2020 01:18:51 GMT):
@sichen @rjones https://github.com/litong01/minifabric/commit/bae761ff8873a9ca4413281f24942f83a873d1c0

tongli (Wed, 19 Aug 2020 01:19:15 GMT):
and see the doc https://github.com/litong01/minifabric/blob/master/docs/README.md#explorer-your-fabric-network

pkirkinezis (Wed, 19 Aug 2020 17:18:43 GMT):
regarding the issue with the VScode and identity . From java SDK i was able to register and enroll a new user and save these certificates generated to execute transactions . Why it is not possible from VScode?

pkirkinezis (Wed, 19 Aug 2020 17:29:49 GMT):
There is any way to force ibm blockchain tool to create a user via fabric ca?

sichen (Wed, 19 Aug 2020 18:46:42 GMT):

Screen Shot 2020-08-19 at 11.46.11 AM.png

sichen (Wed, 19 Aug 2020 18:48:07 GMT):
@tongli I cloned your github repo but now it is not working at all. I'm attaching the 2 error messages I get. What is also strange is that WORKING_DIRECTORY=/home whereas before using that tiny.url it sets the working directory correctly.

sichen (Wed, 19 Aug 2020 18:48:31 GMT):

Screen Shot 2020-08-19 at 11.46.21 AM.png

rjones (Wed, 19 Aug 2020 19:20:39 GMT):
@sichen when I was seeing that earlier, I had an old version of the minifab dockerhub imagew

rjones (Wed, 19 Aug 2020 19:20:39 GMT):
@sichen when I was seeing that earlier, I had an old version of the minifab dockerhub image

sichen (Wed, 19 Aug 2020 19:45:54 GMT):
@rjones How do I fix that? I just git clone and git fetch, and everything is up to date.

rjones (Wed, 19 Aug 2020 19:48:10 GMT):
`docker pull hfrd/minifab:latest`

rjones (Wed, 19 Aug 2020 19:48:40 GMT):
@sichen the image ID is `e99fc7185128`

rjones (Wed, 19 Aug 2020 19:50:25 GMT):
I just ran it, and it worked

sichen (Wed, 19 Aug 2020 19:50:49 GMT):

Screen Shot 2020-08-19 at 12.50.34 PM.png

sichen (Wed, 19 Aug 2020 19:51:08 GMT):
Do these look right to you? I just did docker images prune, docker images rmi on some temporary images, so this is all that's left.

rjones (Wed, 19 Aug 2020 19:52:22 GMT):
this is what I have: ```C:\Users\s390x\mywork>docker images REPOSITORY TAG IMAGE ID CREATED SIZE hfrd/minifab latest e99fc7185128 8 hours ago 274MB hyperledger/explorer-db latest 5217ac66f395 6 days ago 97.7MB hyperledger/explorer latest 3f61c0231202 6 days ago 174MB hyperledger/fabric-ca 1.4 152b9082adf6 2 weeks ago 158MB hyperledger/fabric-tools 2.2.0 5eb2356665e7 5 weeks ago 519MB hyperledger/fabric-peer 2.2.0 760f304a3282 5 weeks ago 54.9MB hyperledger/fabric-orderer 2.2.0 5fb8e97da88d 5 weeks ago 38.4MB hyperledger/fabric-ccenv 2.2 aac435a5d3f1 5 weeks ago 586MB hyperledger/fabric-ccenv 2.2.0 aac435a5d3f1 5 weeks ago 586MB hyperledger/fabric-baseos 2.2 aa2bdf8013af 5 weeks ago 6.85MB```

sichen (Wed, 19 Aug 2020 19:54:59 GMT):
I think we have the same ones, except for explorer

sichen (Wed, 19 Aug 2020 19:58:02 GMT):
Wait. I think the problem is on my end -- let me cleanup everything properly and start all over again.

rjones (Wed, 19 Aug 2020 19:58:08 GMT):
I don't know. I built it using the instructions, it worked, the error you were showing is one I got when my minifab image was old

rjones (Wed, 19 Aug 2020 19:58:09 GMT):
OK.

sichen (Wed, 19 Aug 2020 20:08:08 GMT):
That probably helped. Then I had to clean everything up properly and it worked.

sichen (Wed, 19 Aug 2020 20:08:13 GMT):
Thanks so much!

sichen (Wed, 19 Aug 2020 20:21:35 GMT):
@tongli Amazing! The explorer is working!!! Thank you so much!!!!!

rjones (Wed, 19 Aug 2020 20:33:41 GMT):
Pretty cool, no?

sichen (Wed, 19 Aug 2020 20:57:24 GMT):
Yes, very nice! Thanks to you guys.

sichen (Wed, 19 Aug 2020 20:58:31 GMT):
I'm having another problem: When I install, approve, commit my chaincode, there are no error messages. But when I do a stats, I do see that the docker nodes for the chaincode Exited (1) 8 minutes ago. There are no nodes for them with $ docker ps, so running the chaincode doesn't work. Where should I go to debug what happened then?

sichen (Wed, 19 Aug 2020 21:01:21 GMT):

install chaincode log.txt

tongli (Thu, 20 Aug 2020 01:39:50 GMT):
@sichen , what chaincode were you installing?

tongli (Thu, 20 Aug 2020 01:40:35 GMT):
There was no error during the install but failed after awhile? That is quite new to me .

sichen (Thu, 20 Aug 2020 01:40:57 GMT):
It is from our repo https://github.com/opentaps/blockchain-carbon-accounting/tree/master/utility-emissions-channel/chaincode/node

sichen (Thu, 20 Aug 2020 01:41:57 GMT):
what is strange is the dev-peer1.auditor2.org-emissions_1.1-b94e2cac8c709 : Exited (1) 8 minutes ago the peer exited (1) but how do I see the error message?

tongli (Thu, 20 Aug 2020 01:41:57 GMT):
Oh. Ok. I can try it tomorrow.

tongli (Thu, 20 Aug 2020 01:42:16 GMT):
Make sure you use the language flag to indicate that your chaincode is node

sichen (Thu, 20 Aug 2020 01:42:36 GMT):
~/hyperledger/minifabric/minifab install -n emissions -l node -v 1.1

sichen (Thu, 20 Aug 2020 01:44:28 GMT):
I'm running from the blockchain-carbon-accounting/utility-emissions-channel directory and $ ls vars/chaincode/emissions/ emissions_node_1.0.tar.gz emissions_node_1.1.tar.gz node/ so it looks like it built it but then it couldn't deploy it successfully.

sichen (Thu, 20 Aug 2020 01:46:17 GMT):
Thanks for looking into it. I'd like to know where to look for log of the install to see if there are errors. When I try to $ docker logs it just keeps running a very long file of repetitive logs

tongli (Thu, 20 Aug 2020 01:57:50 GMT):
Hmmm. Can you try to install the chaincode which comes with minifabric?

tongli (Thu, 20 Aug 2020 01:58:00 GMT):
That way we know network is fine.

tongli (Thu, 20 Aug 2020 02:33:40 GMT):
@sichen does your chaincode require initialization ?

tongli (Thu, 20 Aug 2020 02:33:58 GMT):
is there a method that I can invoke ?

tongli (Thu, 20 Aug 2020 02:37:20 GMT):
I named your chaincode tongli, and installed , approved and committed. now I see 4 containers running on my 4 nodes network.

tongli (Thu, 20 Aug 2020 02:37:30 GMT):

Screen Shot 2020-08-19 at 10.36.48 PM.png

tongli (Thu, 20 Aug 2020 02:37:54 GMT):
just do not know how to invoke it and what method can be called.

tongli (Thu, 20 Aug 2020 02:39:06 GMT):
@sichen see above ^^^

tongli (Thu, 20 Aug 2020 02:43:24 GMT):
after approve, commit, I did this `minifab initialize -p '"instantiate"'`

tongli (Thu, 20 Aug 2020 02:43:30 GMT):
it worked fine as well.

tongli (Thu, 20 Aug 2020 02:49:36 GMT):
I also did this

tongli (Thu, 20 Aug 2020 02:49:41 GMT):
```minifab invoke -p '"getEmissionsData","101","201","08/01/2020","08/31/2020"'```

tongli (Thu, 20 Aug 2020 02:49:57 GMT):
which successfully created a block on the ledger.

tongli (Thu, 20 Aug 2020 02:50:27 GMT):
however, this one , produced an error

tongli (Thu, 20 Aug 2020 02:50:32 GMT):
```minifab invoke -p '"recordEmissions","101","201","08/01/2020","08/31/2020",100,"kwh"'```

tongli (Thu, 20 Aug 2020 02:51:47 GMT):
I think that the problem is in your code , you assumed that emissionsAmount is a number.

tongli (Thu, 20 Aug 2020 02:51:48 GMT):
https://github.com/opentaps/blockchain-carbon-accounting/blob/master/utility-emissions-channel/chaincode/node/lib/emissionscontract.js#L70

tongli (Thu, 20 Aug 2020 02:54:25 GMT):
I believe that needs to be a string as well, you can change that to a number once you receive it.

tongli (Thu, 20 Aug 2020 02:55:29 GMT):
as far as I can see, the chaincode worked but I do not know if it does what you meant it to. anyhow, the chaincode installed ok and worked ok too. This was running on the latest fabric 2.2

lamnguyen (Thu, 20 Aug 2020 09:20:58 GMT):

Clipboard - 20 tháng 8 năm 2020 11:20

lamnguyen (Thu, 20 Aug 2020 09:34:52 GMT):
Ah, it works. Just make sure the path to chaincode folder is correct. Thanks.

lamnguyen (Thu, 20 Aug 2020 09:37:53 GMT):

Clipboard - 20 tháng 8 năm 2020 11:37

lamnguyen (Thu, 20 Aug 2020 09:37:54 GMT):
After initialize the chaincode, I tried to invoke, but have same error

HeMBaD (Thu, 20 Aug 2020 10:44:09 GMT):
Has joined the channel.

tongli (Thu, 20 Aug 2020 11:25:36 GMT):
@lamnguyen that error was due to the error in the chaincode itself. As I pointed out in an earlier msg, the variable needs to be a string then converted to a number in the chaincode

tongli (Thu, 20 Aug 2020 11:27:03 GMT):
@lamnguyen are you the same person who uses sichen as the id in earlier conversation?

lamnguyen (Thu, 20 Aug 2020 11:28:13 GMT):
hi @tongli , thanks for your help, me and @sichen are working on the same project using minifab :)

lamnguyen (Thu, 20 Aug 2020 11:46:35 GMT):
Hi @tongli, is there anyway to upgrade the chain code as "peer chaincode upgrade" in minifab?

tongli (Thu, 20 Aug 2020 13:08:02 GMT):
@lamnguyen oh i see. Again I think if you convert these number parameters to strings , things will work fine.

tongli (Thu, 20 Aug 2020 13:08:32 GMT):
Once you get strings in your chaincode you should convert them to various types.

SpecialAgentCooper (Thu, 20 Aug 2020 22:08:33 GMT):

Clipboard - August 20, 2020 11:08 PM

SpecialAgentCooper (Thu, 20 Aug 2020 22:08:33 GMT):
When I try to update chaincode I get the following error:
Clipboard - August 20, 2020 11:08 PM

SpecialAgentCooper (Thu, 20 Aug 2020 22:08:33 GMT):
When I try to update chaincode I get the following error (command used `minifab install,approve,commit,discover -v 2.0`):
Clipboard - August 20, 2020 11:08 PM

SpecialAgentCooper (Thu, 20 Aug 2020 22:08:33 GMT):
When I try to update chaincode I get the following error:
Clipboard - August 20, 2020 11:08 PM

SpecialAgentCooper (Thu, 20 Aug 2020 22:19:39 GMT):

Clipboard - August 20, 2020 11:19 PM

SpecialAgentCooper (Thu, 20 Aug 2020 22:21:28 GMT):
Getting the following error when I do the whole thing fresh with the command `minifab up -l node -d false -n tradingtx` ``` # Running operation: ****************************************** cc commit ..... # Run the chaincode commit script on cli container ************ non-zero return code jq: error (at :1): Cannot iterate over null (null) Error: proposal failed with status: 500 - failed to invoke backing implementation of 'CommitChaincodeDefinition': chaincode definition not agreed to by this org (org0-example-com) ```

tongli (Thu, 20 Aug 2020 22:29:13 GMT):
You need to install,approve,commit

tongli (Thu, 20 Aug 2020 22:29:28 GMT):
Just like a new chaincode.

tongli (Thu, 20 Aug 2020 22:29:54 GMT):
Any time there is a change to the chaincode, the same process has to be followed.

tongli (Thu, 20 Aug 2020 22:30:40 GMT):
If your chaincode needs initialize, you will have to use correct initialize parameters to initialize as well

SpecialAgentCooper (Thu, 20 Aug 2020 22:57:53 GMT):

Clipboard - August 20, 2020 11:57 PM

SpecialAgentCooper (Thu, 20 Aug 2020 23:08:39 GMT):
That's what I'm saying, that was one snippet of the output of `minifab up -l node -d false -n tradingtx` which runs through the install, approve commit process. My chaincode does not need to initialise.

sichen (Fri, 21 Aug 2020 00:29:22 GMT):
@tongli Thanks for your help and for looking at my code. Yes, minifabric did work with the the chaincode that comes with minifabric. I've fixed a few things with my code and am continuing to work on it. I don't mean to bug you about my bugs :) But I noticed a few things about minifabric that you might be interested in: 1. If you $ minifabric initialize and it has been run before, it will give you an error about the parameters. You have to $ minifabric initialize -p '' to clear the parameters. Is this expected behavior? 2. If you modify my code and add a var emissionsAmount = 0.0; at https://github.com/opentaps/blockchain-carbon-accounting/blob/master/utility-emissions-channel/chaincode/node/lib/emissions.js#L15, then try to deploy, it crashes the peer nodes. They have error dev-peer1.auditor1.com-emissions_3.0-43dcd6619d08b : Exited (1) 12 seconds ago and then you'd have to start over again.

sichen (Fri, 21 Aug 2020 00:29:57 GMT):

Terminal Saved Output.txt

tongli (Fri, 21 Aug 2020 00:53:18 GMT):
@sichen looks like you are having chaincode issues.

tongli (Fri, 21 Aug 2020 00:53:50 GMT):
especially here ```# Run the chaincode invoke script on cli container ************ non-zero return code Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: ReferenceError: emissionsAmount is not defined" ```

tongli (Fri, 21 Aug 2020 00:53:59 GMT):
this is during the chaincode invoke.

tongli (Fri, 21 Aug 2020 00:54:13 GMT):
the error comes from your chaincode.

tongli (Fri, 21 Aug 2020 00:54:41 GMT):
check your chaincode.

sichen (Fri, 21 Aug 2020 00:57:46 GMT):
@tongli OK I will but I just wanted to point out that by adding a var emissionsAmount = 0.0 it crashes the peer nodes. Is that expected?

SpecialAgentCooper (Fri, 21 Aug 2020 00:59:54 GMT):
Has anyone got an example node sdk client that connects to a minifab network? Even just the connection config for enrolling admins would be helpful

sichen (Fri, 21 Aug 2020 23:21:58 GMT):
@tongli Just wanted to thank you for minifabric. It's truly great! We got everything up and running and are now able to run our chain code. Thank you so much!

tongli (Sat, 22 Aug 2020 01:49:47 GMT):
@sichen happy to hear that.

tongli (Sat, 22 Aug 2020 01:50:16 GMT):
@sichen when you get chance, please promote so that more people can use it and also contribute to it.

tongli (Sat, 22 Aug 2020 02:17:45 GMT):
@SpecialAgentCooper normally you can find some examples from the sdk repo that you are using.

tongli (Sat, 22 Aug 2020 02:18:05 GMT):
If I remember right, node ask has a package for ca

tongli (Sat, 22 Aug 2020 02:18:22 GMT):
There has to be some examples

tongli (Sat, 22 Aug 2020 02:18:41 GMT):
Or look into the test cases

SpecialAgentCooper (Mon, 24 Aug 2020 09:33:24 GMT):
Thanks, I have a node.js client app which works for the test network on my VM, but I'm now trying to connect it to minifab and struggling

SpecialAgentCooper (Mon, 24 Aug 2020 09:35:07 GMT):
How is the mychannel_connection_for_nodesdk.json file to be used? It makes the assumption that a client app will be on the same machine: the CA certificates are specified by location. The test network has the actual key in the connection profiles, which might be a better approach

tongli (Mon, 24 Aug 2020 14:01:57 GMT):
@SpecialAgentCooper no, it does not assume that, you assumed that. You can easily use flag -e true to expose your node ports as described in docs. Please read the docs in docs directory. Few minutes spent there will really save you a lot of time.

SpecialAgentCooper (Tue, 25 Aug 2020 08:41:57 GMT):
@tongli I promise you I have read the docs, sorry if I'm a little slow on the uptake but I'm not as well versed in all of this as you. In fact, I've read the docs and watched all of the videos. I'm really doing my best here so I would appreciate my comments being taken in good faith. I've just read the docs again and the '-e' flag is only really described in the "health & metrics" section, so forgive me for not realising it was relevant to using minifab in conjunction with client apps.

SpecialAgentCooper (Tue, 25 Aug 2020 09:27:00 GMT):
Anyway, thanks for pointing me in the right direction.

tongli (Tue, 25 Aug 2020 10:45:55 GMT):
@SpecialAgentCooper , not at all. Run minifab without any option will tell you all the possible commands and options too.

SpecialAgentCooper (Wed, 26 Aug 2020 12:35:48 GMT):
Another day, another annoying question from me :P Here is a snippet of the output from ` minifab up -l node -n simple -o edb.bg.com` ``` # Running operation: ****************************************** channel create ..... # Run the channel creation script on cli container ************ non-zero return code 2020-08-26 12:27:47.517 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-08-26 12:27:47.544 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /vars/configtx.yaml 2020-08-26 12:27:47.544 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2020-08-26 12:27:47.585 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 004 Writing new channel tx 2020-08-26 12:27:47.646 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader # STATS ******************************************************* minifab: ok=103 failed=1 ``` Here is my spec.yaml: ``` fabric: cas: - "ca1.edb.bg.com" - "ca1.sha.bg.com" peers: - "peer1.edb.bg.com" - "peer2.edb.bg.com" - "peer1.sha.bg.com" - "peer2.sha.bg.com" orderers: - "orderer1.bg.com" - "orderer2.bg.com" - "orderer3.bg.com" settings: ca: FABRIC_LOGGING_SPEC: DEBUG peer: FABRIC_LOGGING_SPEC: DEBUG CORE_CHAINCODE_BUILDER: hyperledger/fabric-ccenv:bg2.2.1 CORE_CHAINCODE_NODE_RUNTIME: hyperledger/fabric-nodeenv:bg2.2.1 orderer: FABRIC_LOGGING_SPEC: DEBUG ``` As usual, I'm running this on windows. I read the docs again but didn't spot anything wrong with my approach. Is there something I'm missing from the spec yaml?

SpecialAgentCooper (Wed, 26 Aug 2020 12:37:29 GMT):
Note that I don't get this error for the default network config & org.

SpecialAgentCooper (Wed, 26 Aug 2020 12:37:29 GMT):
Note that I don't get this `no Raft leader` error for the default network config & org.

SpecialAgentCooper (Wed, 26 Aug 2020 13:48:02 GMT):
When I try to do it in stages (i.e. `netup` first, then wait a bit, then create a channel) the ordering service crashes. The only network config I can get to behave is the default one.

tongli (Wed, 26 Aug 2020 15:24:42 GMT):
@SpecialAgentCooper try to cleanup and update your windows script and minifabric image and give it a try. We’ve made a lot of changes recently for windows. You do not need to change your spec file.

tongli (Wed, 26 Aug 2020 16:19:50 GMT):
@SpecialAgentCooper you are saying that only your customized network has issues?

tongli (Wed, 26 Aug 2020 16:19:50 GMT):
@SpecialAgentCooper you are saying that only when you use customized network spec you found has issues?

tongli (Wed, 26 Aug 2020 17:24:15 GMT):
@SpecialAgentCooper I've tested using your spec but without the customized builder.

tongli (Wed, 26 Aug 2020 17:26:06 GMT):
the error is due to this. when your orderers were up running, each individual node is probably up running but while you are moving on to create channel, the orderers may have not done electing a raft leader yet.

tongli (Wed, 26 Aug 2020 17:26:24 GMT):
when you do netup, and wait for awhile, then everything will work fine.

tongli (Wed, 26 Aug 2020 17:27:10 GMT):
this is normally not a problem and only occurs when your orderer nodes are slow to start up.

tongli (Wed, 26 Aug 2020 17:32:08 GMT):
@SpecialAgentCooper it is a bit difficult to check if the leader has been elected.

tongli (Wed, 26 Aug 2020 17:32:41 GMT):
because any orderer node can be the Raft leader.

tongli (Wed, 26 Aug 2020 18:03:03 GMT):
@SpecialAgentCooper I've added some logic in Minifabric to wait for RAFT leader to be selected before moving on. if you extract latest image, you should not see the RAFT leader issue any more.

SpecialAgentCooper (Thu, 27 Aug 2020 10:42:31 GMT):
Thanks for looking into this @tongli . I'll check out the latest image later today

SpecialAgentCooper (Thu, 27 Aug 2020 14:44:45 GMT):
Latest image + minifabwin script + my custom spec.yaml file - worked! The network is up and running with the names I specified, chaincode installed and accepting queries. Thanks again!

rjones (Thu, 27 Aug 2020 16:03:42 GMT):
@SpecialAgentCooper thoughts on making a video walkthrough, for other people who are in your shoes?

tongli (Thu, 27 Aug 2020 16:33:24 GMT):
@rjones @SpecialAgentCooper I think cooper’s issue is that in his env, orderer nodes do not come up quickly and leader selection process was slow. Minifabric did not check if raft leader selection process has been done or not before moving on creating channels, that was what failed his process. I added a validation clause to check if raft leader has been selected before moving on. The check is done by iterating orderer nodes and wait 2 seconds to see the condition has been met. It sounded that the clause worked pretty well.

SpecialAgentCooper (Thu, 27 Aug 2020 16:37:28 GMT):
@rjones once I've managed to connect a client app, I might do a walkthrough of the whole process of getting this stuff to work behind corporate firewalls since I imagine that's a common use case (and no one has written this tutorial for me to follow!). Just struggling to use the connection profile at the minute

rjones (Thu, 27 Aug 2020 16:37:57 GMT):
if you can put it together, I'll publish it on the Hyperledger Youtube channel

SpecialAgentCooper (Thu, 27 Aug 2020 16:42:37 GMT):
nice! It's been one of those awkward problems to solve where you don't get to see the whole shape of it at once - just one error message at a time... Mostly my companies fault rather than hyperledger, though node-gyp shares a lot of the blame for being generally awkward to use. Would be a mammoth task without minifab though so thanks for all your efforts

rjones (Thu, 27 Aug 2020 16:43:17 GMT):
well, IIRC, a few bugs have been fixed as you work through this, so thank you for being persistent.

SpecialAgentCooper (Mon, 31 Aug 2020 10:27:29 GMT):
any tips for operating minifab with client apps? Any environment variables I need to set? The reason I ask is I'm getting timeouts when I try to enroll the admin user. I tried to just connect directly using curl and got the same timeout error: ``` curl https://ca1.edb.bg.com:7054/api/v1/cainfo curl: (7) Failed to connect to ca1.edb.bg.com port 7054: Timed out ```

SpecialAgentCooper (Mon, 31 Aug 2020 10:32:05 GMT):
Here's the minifab command: `minifab up -l node -n tradingtx -p '\"instantiate\"' -o edb.bg.com -c ordermanagement -e 7000-8000:7000-8000` for the same spec.yaml I posted last time.

tongli (Mon, 31 Aug 2020 12:49:39 GMT):
-e can only take either true, false or a port as starting port.

tongli (Mon, 31 Aug 2020 12:51:32 GMT):
Seems to me that you command is also using the container port not the mapped port. Correct these two issues and also provide the tls cert to make it working. You probably can read some of the ca command docs before you execute the command.

SpecialAgentCooper (Mon, 31 Aug 2020 13:37:02 GMT):
Thanks, how do I provide the TLS cert? Do you mean to provide it to curl?

tongli (Mon, 31 Aug 2020 13:59:15 GMT):
When you do anything with ca, you should be using fabric-ca-client

tongli (Mon, 31 Aug 2020 14:00:13 GMT):
I never used bare https and do not know how you provide cert doing curl. You will have to look up docs from ca server.

SpecialAgentCooper (Mon, 31 Aug 2020 15:45:05 GMT):
`-e true` was all I needed, my client has happily enrolled an admin user now. Ran into an error after that, but progress!

tongli (Mon, 31 Aug 2020 15:59:55 GMT):
great.

tongli (Mon, 31 Aug 2020 16:01:06 GMT):
I've updated quite a bit of connection profiles for easier adoption. If you are using connection profiles, you may want to get the latest minifab container.

tongli (Mon, 31 Aug 2020 16:01:15 GMT):
if you are not using connection profile, then it is ok.

SpecialAgentCooper (Tue, 01 Sep 2020 13:33:43 GMT):
Having issues upgrading a chaincode that was previously installed (see thread)

SpecialAgentCooper (Tue, 01 Sep 2020 13:34:02 GMT):

Clipboard - September 1, 2020 2:33 PM

SpecialAgentCooper (Tue, 01 Sep 2020 13:34:28 GMT):
this was the execution context: ``` Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=ordermanagement PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=node CHAINCODE_NAME=tradingtx CHAINCODE_VERSION=2.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="instantiate" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=true CURRENT_ORG=edb.bg.com HOST_ADDRESSES=10.134.6.32,255.255.255.255,192.168.0.18,172.18.81.161,255.255.255.240 WORKING_DIRECTORY: /host_mnt/c/projects/fintech/Blockchain/repos/blockchain-poc/minifab ```

SpecialAgentCooper (Tue, 01 Sep 2020 13:44:24 GMT):
after the command, there is a `tradingtx_node_2.0.tar.gz` file in `vars\chaincode\tradingtx', the same size as the old one. I'm not able to initialize the new chaincode or submit transaction to the old one: ``` # Running operation: ****************************************** cc invoke .......... # Run the chaincode invoke script on cli container ************ non-zero return code Error: error getting endorser client for invoke: endorser client failed to connect to 10.134.3.68:7003: failed to create new connection: context deadline exceeded ```

SpecialAgentCooper (Tue, 01 Sep 2020 14:58:20 GMT):
Ended up getting it to install: - `minifab cleanup` - set up chaincode dir - `minifab up -l node -n tradingtx -p '\"instantiate\"' -o edb.bg.com -c ordermanagement -e true` - copy new chaincode into folder - `minifab install -v 2.0` - `minifab approve,commit,initialize,discover` Should I add a section to the docs? The part on upgrading chaincode is missing some steps (I think!)

rjones (Tue, 01 Sep 2020 15:42:34 GMT):
please do

rjones (Tue, 01 Sep 2020 15:43:38 GMT):
I'm in favor of documentation that skips no steps :)

SpecialAgentCooper (Tue, 01 Sep 2020 16:11:39 GMT):
Nice, ok I'll add something tomorrow

SpecialAgentCooper (Wed, 02 Sep 2020 13:10:12 GMT):
Just created a pull request - I've expanded the instructions to upgrade chaincode and fixed spelling mistakes throughout the docs page

rjones (Wed, 02 Sep 2020 13:10:40 GMT):
cool, thanks!

zilich (Sat, 05 Sep 2020 10:44:50 GMT):
some problem with installation of minifabric???

zilich (Sat, 05 Sep 2020 10:45:48 GMT):

Screenshot_935.jpg

tongli (Sat, 05 Sep 2020 11:25:46 GMT):
What command were you using? Seems that you are having trouble pulling down the docker images. Make sure that you can docker pull fabric images

zilich (Sat, 05 Sep 2020 11:43:50 GMT):
I try to reinstall minifabric...

zilich (Sat, 05 Sep 2020 11:44:01 GMT):
remove all docker and images...

zilich (Sat, 05 Sep 2020 11:44:26 GMT):
and install wait more then 1 houre...

tongli (Sat, 05 Sep 2020 11:52:34 GMT):
Hmm, you have network issues

tongli (Sat, 05 Sep 2020 11:53:27 GMT):
And please follow the docs procedure on updating minifabric itself

zilich (Sat, 05 Sep 2020 12:00:23 GMT):
I delete everything and try to install clean system...

zilich (Sat, 05 Sep 2020 12:01:10 GMT):

Screenshot_944.jpg

zilich (Sat, 05 Sep 2020 12:01:23 GMT):

Screenshot_945.jpg

zilich (Sat, 05 Sep 2020 12:08:01 GMT):
on Centos 8.2 work now... wait short... [root@pc86 mywork]# ./minifab up -e true Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=true CURRENT_ORG=org0.example.com HOST_ADDRESSES=160.99.71.153 WORKING_DIRECTORY: /home/zilic/mywork ... # Preparing for the following operations: ********************* verify options, download images, generate certificates, start network, network status, channel create, channel join, anchor update, profile generation, cc install, cc approve, cc commit, cc initialize, discover ................. # Running operation: ****************************************** verify options . # Running operation: ****************************************** download images ............ # Running operation: ****************************************** generate certificates ............. # Running operation: ****************************************** start network ....................... # Running operation: ****************************************** network status ...... # Docker node status ****************************************** ab1d229f5e_cli : Up 6 seconds ca1.org1.example.com : Up 7 seconds ca1.org0.example.com : Up 8 seconds orderer3.example.com : Up 9 seconds orderer2.example.com : Up 10 seconds orderer1.example.com : Up 10 seconds peer2.org1.example.com : Up 11 seconds peer1.org1.example.com : Up 12 seconds peer2.org0.example.com : Up 13 seconds peer1.org0.example.com : Up 14 seconds # Fabric network peer and orderer node health status ********** peer1.org0.example.com "OK" peer2.org0.example.com "OK" peer1.org1.example.com "OK" peer2.org1.example.com "OK" orderer1.example.com "OK" orderer2.example.com "OK" orderer3.example.com "OK" # Running operation: ****************************************** channel create ...... # Running operation: ****************************************** channel join ........................... # Running operation: ****************************************** anchor update ............ # Running operation: ****************************************** profile generation ................................. # Running operation: ****************************************** cc install ............ date ............... # Running operation: ****************************************** cc approve ...... # Running operation: ****************************************** cc commit ...... # Running operation: ****************************************** cc initialize ...... # Running operation: ****************************************** discover ........................ # STATS ******************************************************* minifab: ok=267 failed=0 real 3m38.682s user 0m56.475s sys 0m11.357s [root@pc86 mywork]# [root@pc86 mywork]# [root@pc86 mywork]# date суб, 5. сеп 2020. 14:07:37 CEST [root@pc86 mywork]#

zilich (Sat, 05 Sep 2020 12:08:33 GMT):
I dont know what is problem... maybe network...

zilich (Sat, 05 Sep 2020 12:42:28 GMT):
Thanks!

zilich (Sun, 06 Sep 2020 13:47:08 GMT):
Are you test following: 1. Start miniFabric.(./minifab up) 2. Install java chaincode(simple/sample). 3. Stop miniFabric network.(./minifab down) How to start miniFabric network again (./minifab up)? Are you have any error after that?

zilich (Sun, 06 Sep 2020 13:48:06 GMT):
Or this is wrong order of steps for that?

tongli (Sun, 06 Sep 2020 16:05:08 GMT):
minifab restart

zilich (Sun, 06 Sep 2020 20:00:08 GMT):
This restart work as expected! Thanks!

zilich (Mon, 07 Sep 2020 04:09:43 GMT):
# Run the channel creation script on cli container ************ non-zero return code 2020-09-07 04:05:26.532 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-09-07 04:05:26.655 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /vars/configtx.yaml 2020-09-07 04:05:26.655 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2020-09-07 04:05:26.683 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 004 Writing new channel tx 2020-09-07 04:05:26.884 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1 # STATS ******************************************************* minifab: ok=81 failed=1 This error is reported if I do ./minifab down, and ./minifab up... whithout ./minifab reset

zilich (Mon, 07 Sep 2020 04:10:53 GMT):
even if I remove envsettings, i.e. rm vars/envsettings

SpecialAgentCooper (Mon, 07 Sep 2020 09:03:02 GMT):
you need to do minifab cleanup before running minifab up that to avoid the error

SpecialAgentCooper (Mon, 07 Sep 2020 09:03:24 GMT):
which deletes everything in vars

tongli (Mon, 07 Sep 2020 11:36:50 GMT):
When you do minifab up, that means you will be creating the channel as well, the issue is that though you did minifab down, your data including channel still exists, it is just that peers and orderers are not running, if you brings peers and orderers up, then your channel will be up as well, then when minifab up comes to create the channel, it will fail.

tongli (Mon, 07 Sep 2020 11:37:05 GMT):
That is all expected and should fail.

SpecialAgentCooper (Thu, 10 Sep 2020 10:43:05 GMT):
I'm quite satisfied with minifab as a development tool for HLF, but I'm now looking at deploying a proper network to a kubernetes array. Is there a way to take a network generated by minifab commands and deploy it, or should I be looking at another tool? Thanks

tongli (Thu, 10 Sep 2020 10:44:11 GMT):
@SpecialAgentCooper I was looking at making minifabric supporting kubernetes, but got distracted by other tasks.

tongli (Thu, 10 Sep 2020 10:44:42 GMT):
minifabric can actually be made to setup network on k8s, then all other commands remain the same.

tongli (Thu, 10 Sep 2020 10:44:53 GMT):
but I just do not have time to do this.

SpecialAgentCooper (Thu, 10 Sep 2020 10:45:00 GMT):
ah interesting

tongli (Thu, 10 Sep 2020 10:45:04 GMT):
at present, you will have to look at some other means.

SpecialAgentCooper (Thu, 10 Sep 2020 10:45:22 GMT):
fair enough

SpecialAgentCooper (Thu, 10 Sep 2020 10:45:34 GMT):
do you have an idea of what needs to be done?

tongli (Tue, 15 Sep 2020 01:25:55 GMT):
Hi, everyone, Minifabric has just added caliper. to run a test using caliper, you simply need to run two commands if you do not really have anything at all. please see doc here https://github.com/litong01/minifabric/tree/master/docs#run-caliper-test here are the two commands needed to run caliper test. ```minifab install,approve,commit,initialize -n samplecc -p '' minifab caliperrun``` see the document at the link above if you like to run your own test with your own chaincode.

tongli (Tue, 15 Sep 2020 01:26:40 GMT):
some of the recent updates also include adding explorerup and apprun command

tongli (Tue, 15 Sep 2020 01:27:06 GMT):
explorerup command will bring up Explorer up running, so that you can see from a user interface what is happening.

tongli (Tue, 15 Sep 2020 01:27:33 GMT):
apprun command makes running your blockchain app very easy.

tongli (Tue, 15 Sep 2020 01:27:41 GMT):
please see the document for the details.

tongli (Tue, 15 Sep 2020 01:28:02 GMT):
also I will be giving a webminar this Wednesday. welcome to participate in the talk.

rjones (Tue, 15 Sep 2020 14:52:42 GMT):
cool, will it be recorded for YouTube usage?

rjones (Tue, 15 Sep 2020 15:28:11 GMT):
@tongli https://github.com/litong01/minifabric/pull/71

tongli (Tue, 15 Sep 2020 15:29:24 GMT):
Merged, thanks a lot for your contribution.

tongli (Tue, 15 Sep 2020 15:29:37 GMT):
were you able to start up explorer and see the UI?

rjones (Tue, 15 Sep 2020 15:30:13 GMT):
yes

tongli (Tue, 15 Sep 2020 15:30:31 GMT):
great.

tongli (Tue, 15 Sep 2020 15:30:43 GMT):
you can do the caliper as well if you want to.

rjones (Tue, 15 Sep 2020 15:30:50 GMT):
I tried to find a way to make it emit the actual username/password in case they were edited, but I figured nobody would do that

rjones (Tue, 15 Sep 2020 15:31:14 GMT):
does Caliper have a website with a username/password?

tongli (Tue, 15 Sep 2020 15:31:24 GMT):
not really.

tongli (Tue, 15 Sep 2020 15:31:29 GMT):
it creates a html file.

rjones (Tue, 15 Sep 2020 15:31:40 GMT):
OK, I'll add something

tongli (Tue, 15 Sep 2020 15:31:59 GMT):
it would be nice to simply serve that using apache?

rjones (Tue, 15 Sep 2020 15:32:15 GMT):
oh, interesting.

tongli (Tue, 15 Sep 2020 15:32:57 GMT):
yeah. I mean, we can simply hook it up to an apache container to server that html.

tongli (Tue, 15 Sep 2020 15:33:10 GMT):
but you know, I do not know if it is really needed.

tongli (Tue, 15 Sep 2020 15:33:19 GMT):
it is just one file.

tongli (Tue, 15 Sep 2020 15:34:29 GMT):
Ry, on 9/30 contributers meeting,I will do minifabric updates once more and will ask to make it a formal project under hyperledger.

rjones (Tue, 15 Sep 2020 15:36:13 GMT):
ok, cool. I was telling the Explorer team about it today

rjones (Tue, 15 Sep 2020 15:49:34 GMT):
it's interesting: running `caliperrun`, it doesn't look like I'm limited by CPU or RAM and it's still really slow

tongli (Tue, 15 Sep 2020 17:24:13 GMT):
@ry, I am not really sure why. but minifabric only setup two workers to run things and caliper is running inside of a container.

tongli (Tue, 15 Sep 2020 17:24:17 GMT):
can that be an issue?

tongli (Tue, 15 Sep 2020 17:26:15 GMT):
@ry, I think I know why.

tongli (Tue, 15 Sep 2020 17:26:22 GMT):
the interval is set to 5s.

tongli (Tue, 15 Sep 2020 17:26:28 GMT):
that is probably the problem.

tongli (Tue, 15 Sep 2020 17:26:55 GMT):
let me do something real quick and put up a PR to allow more customizations.

tongli (Tue, 15 Sep 2020 17:34:10 GMT):
also caliper has to be setup which include downloading caliper docker image and all necessary dependency files, this happens for each run, that is why it is slow.

tongli (Tue, 15 Sep 2020 17:35:03 GMT):
the reason is that caliper container does not contain any necessary libraries, :-(

tongli (Tue, 15 Sep 2020 17:38:19 GMT):
I think that most of the time spent was downloading the caliper docker image, setup node dependencies, the actual run is not long.

tongli (Tue, 15 Sep 2020 17:40:20 GMT):
the log file actually tells user that.

tongli (Tue, 15 Sep 2020 17:40:33 GMT):
```2020.09.15-17:39:22.359 info [caliper] [bind] User-provided arguments for npm: "-g" 2020.09.15-17:39:22.359 info [caliper] [bind] Binding for fabric@1.4.8. This might take some time... 2020.09.15-17:39:22.360 info [caliper] [bind] Using working directory: /hyperledger/caliper/workspace```

tongli (Tue, 15 Sep 2020 17:54:40 GMT):
to make it run faster is possible for the 2nd time or 3rd time, but that will require create a docker image which contains all necessary file. You probably can add a PR.

tongli (Tue, 15 Sep 2020 17:54:48 GMT):
@rjones ^^^

zilich (Tue, 15 Sep 2020 20:42:29 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=ceenCPWakn5JFwcxw) Link?

tongli (Tue, 15 Sep 2020 21:25:09 GMT):
https://zoom.us/w/97342328890?tk=LjV3YBzpfwnHQyzF7TBxM9Jc1wV3BaDMXl4gHReeQn0.DQIAAAAWqg4QOhZoVF8xM3AxTVJhV2F4QUNEOW9ZOWVnAAAAAAAAAAAAAAAAAAAAAAAAAAAA&uuid=WN_Ck6aCqJOQ-u7wD-E63-erA

tongli (Tue, 15 Sep 2020 21:25:15 GMT):
@zilich ^^^

zilich (Wed, 16 Sep 2020 02:48:17 GMT):
Thanks!

zilich (Wed, 16 Sep 2020 17:07:14 GMT):
Link on youtube? My friend ask me to see it... You havent GUI for Caliper, as for Explorer? https://wiki.hyperledger.org/display/INTERN/Hyperledger+Caliper+visualization

zilich (Wed, 16 Sep 2020 17:08:47 GMT):
Thanks again for Webinar!

nedc (Wed, 16 Sep 2020 17:20:51 GMT):
Has joined the channel.

nedc (Wed, 16 Sep 2020 17:20:51 GMT):
@tongli Thanks for the zoom webinar!

tongli (Wed, 16 Sep 2020 17:25:41 GMT):
@nedc happy to do it. thanks for participating

tongli (Wed, 16 Sep 2020 19:17:30 GMT):
@rjones Hi, Ry, added a bit more code to Minifabric, so that you only need to suffer once when binding fabric sdk to caliper. Any following runs will not need to suffer from installing the sdk. Please give it a try to see the results.

rjones (Wed, 16 Sep 2020 19:31:49 GMT):
OK. how can I make it run for say, 10 minutes?

tongli (Wed, 16 Sep 2020 22:07:33 GMT):
You can change this file vars/run/caliperbenchmarkconfig.yaml file

tongli (Wed, 16 Sep 2020 22:08:00 GMT):
Open that up and change txDuration to be 600,

tongli (Wed, 16 Sep 2020 22:08:15 GMT):
Then run the same command

rjones (Wed, 16 Sep 2020 23:14:05 GMT):
ok cool

rjones (Thu, 17 Sep 2020 15:27:37 GMT):
Hi, if you have anything you'd like to see added to the /dev/weekly newsletter, please comment in the next two hours: https://wiki.hyperledger.org/pages/viewpage.action?pageId=39618911

mvkillu (Fri, 18 Sep 2020 00:14:04 GMT):
Has joined the channel.

mvkillu (Fri, 18 Sep 2020 00:15:27 GMT):
How can I update my minifab to get the latest changes? I am using WSL2 and facing the issue mentioned on [this page](https://github.com/litong01/minifabric/issues/43)

rjones (Fri, 18 Sep 2020 02:20:16 GMT):
@mvkillu `docker pull hfrd/minifab:latest` ; if you checked out the source tree, `docker build -t hfrd/minifab:latest .`

ericmvaughn (Mon, 21 Sep 2020 22:48:30 GMT):
Has joined the channel.

mvkillu (Tue, 22 Sep 2020 14:19:58 GMT):
@rjones I did update minifabric, but I am not able to spin up a network on WSL2/Windows 10. I posted some screenshots [here](https://github.com/litong01/minifabric/issues/72)

tongli (Tue, 22 Sep 2020 15:20:24 GMT):
@mvkillu I though that you were running the command inside wsl2 which was not supposed to be used that way. Doing that created way too much docker inside docker problem, minifabric never meant to do that. You should do what the tool meant to. And you closed the issue, not sure why you still stated that it won’t work for you.

mvkillu (Tue, 22 Sep 2020 15:31:20 GMT):
@tongli Yes. To be clear, when I run it in command prompt of Windows 10, everything is working fine as expected. The reason I was still hung up on running it in WSL2 was because it was running fine inside WSL2 earlier (couple of weeks back). it

mvkillu (Tue, 22 Sep 2020 15:31:20 GMT):
@tongli Yes. To be clear, when I run it in command prompt of Windows 10, everything is working fine as expected. The reason I was still hung up on running it in WSL2 was because it was running fine inside WSL2 earlier (couple of weeks back). it's no big deal, I just wanted to know if there is a way to run minifab inside wsl2, thats all. no issues.

rjones (Tue, 22 Sep 2020 15:32:59 GMT):
yes, something changed in the way Docker and WSL work, and the old way no longer works

SpecialAgentCooper (Tue, 22 Sep 2020 16:24:13 GMT):
hi guys, not sure if this is a minifab issue but a basic transaction scenario which was working two weeks ago is no longer working: - two orgs with MSPs: sha-bg-com and edb-bg-com - register one user with sha-bg-com, another with edb-bg-com - open a gateway - get contract, do transaction It now fails at opening a gateway with the following error: "2020-09-22T16:18:44.042Z - error: [DiscoveryService]: send[ordermanagement] - Channel:ordermanagement received discovery error:access denied" When I look in the peer logs, I see: "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected edb-bg-com, got sha-bg-com)" I've checked both wallets and they have the correct user IDs, with the correct MSPid fields, so I'm a bit stumped. Like I said, not sure if this is a minifab issue so can you think of any changes that would affect how connection profiles and identity registration works? Thanks

SpecialAgentCooper (Tue, 22 Sep 2020 16:24:13 GMT):
hi guys, not sure if this is a minifab issue but a basic transaction scenario, written using node.js sdk v2.2, which was working two weeks ago is no longer working: - two orgs with MSPs: sha-bg-com and edb-bg-com - register one user with sha-bg-com, another with edb-bg-com - open a gateway - get contract, do transaction It now fails at opening a gateway with the following error: "2020-09-22T16:18:44.042Z - error: [DiscoveryService]: send[ordermanagement] - Channel:ordermanagement received discovery error:access denied" When I look in the peer logs, I see: "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected edb-bg-com, got sha-bg-com)" I've checked both wallets and they have the correct user IDs, with the correct MSPid fields, so I'm a bit stumped. Like I said, not sure if this is a minifab issue so can you think of any changes that would affect how connection profiles and identity registration works? Thanks

SpecialAgentCooper (Tue, 22 Sep 2020 16:24:13 GMT):
hi guys, not sure if this is a minifab issue but a basic transaction scenario, written using node.js sdk v2.2, which was working two weeks ago is no longer working: - two orgs with MSPs: sha-bg-com and edb-bg-com - register one user with sha-bg-com, another with edb-bg-com - open a gateway - get contract, do transaction It now fails at opening a gateway with the following error: "2020-09-22T16:18:44.042Z - error: [DiscoveryService]: send[ordermanagement] - Channel:ordermanagement received discovery error:access denied" When I look in the peer logs, I see: "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected edb-bg-com, got sha-bg-com)" I've checked both wallets and they have the correct user IDs, with the correct MSPid fields, so I'm a bit stumped. Like I said, not sure if this is a minifab issue so can you think of any changes that would affect how connection profiles and identity registration works? I pulled the latest versions of the windows script and docker image mid last week. Thanks

SpecialAgentCooper (Tue, 22 Sep 2020 16:24:13 GMT):
hi guys, not sure if this is a minifab issue but a basic transaction scenario, written using node.js sdk v2.2, which was working two weeks ago is no longer working: - two orgs with MSPs: sha-bg-com and edb-bg-com - register one user with sha-bg-com, another with edb-bg-com - open a gateway - get contract, do transaction It now fails at opening a gateway with the following error: "2020-09-22T16:18:44.042Z - error: [DiscoveryService]: send[ordermanagement] - Channel:ordermanagement received discovery error:access denied" When I look in the peer logs, I see: "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected edb-bg-com, got sha-bg-com)" I've checked both wallets and they have the correct user IDs, with the correct MSPid fields, so I'm a bit stumped. Like I said, not sure if this is a minifab issue so can you think of any changes that would affect how connection profiles and identity registration works? I pulled the latest versions of the windows script and docker image mid last week but have only just tested this scenario. Thanks

SpecialAgentCooper (Tue, 22 Sep 2020 16:24:13 GMT):
hi guys, not sure if this is a minifab issue but a basic transaction scenario, written using node.js sdk v2.2, which was working two weeks ago is no longer working: - two orgs with MSPs: sha-bg-com and edb-bg-com - register one user with sha-bg-com, another with edb-bg-com - open a gateway - get contract, do transaction It now fails at opening a gateway with the following error: "2020-09-22T16:18:44.042Z - error: [DiscoveryService]: send[ordermanagement] - Channel:ordermanagement received discovery error:access denied" When I look in the peer logs, I see: "identity 0 does not satisfy principal: the identity is a member of a different MSP (expected edb-bg-com, got sha-bg-com)" I've checked both wallets and they have the correct user IDs, with the correct MSPid fields, so I'm a bit stumped. Like I said, not sure if this is a minifab issue so can you think of any changes that would affect how connection profiles and identity registration works? I pulled the latest versions of the windows script and docker image mid last week but have only just tested this scenario - submitting transactions via minifab in the terminal still works. Thanks

tongli (Tue, 22 Sep 2020 16:48:49 GMT):
I did change how certs are generated recently due to the limitation of cryptogen, minifabric was using that but now it completely removed using of that tool. All certs get created by using OpenSSL so that we are under full control. That being said, if your network was set up awhile back , your existing certs should still work. Minifab would not regenerate.

tongli (Tue, 22 Sep 2020 16:50:57 GMT):
If your network never changed, any minifabric change can’t possibly affect that.

SpecialAgentCooper (Tue, 22 Sep 2020 16:57:55 GMT):
it's a fresh network, so there has been some changes

SpecialAgentCooper (Tue, 22 Sep 2020 16:58:04 GMT):
it will have been regenerated, that is

SpecialAgentCooper (Tue, 22 Sep 2020 16:58:10 GMT):
just based off the same spec

SpecialAgentCooper (Tue, 22 Sep 2020 17:00:18 GMT):
Just before the gateway connection is refused, the logs in peer1.*sha*.bg.com show: `[36m2020-09-22 16:32:47.791 UTC [cauthdsl] func2 -> DEBU 49ea 0xc00476fad0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected edb-bg-com, got sha-bg-com)` the logs in peer1.*edb*.bg.com: `[36m2020-09-22 16:32:49.740 UTC [cauthdsl] func2 -> DEBU 4ac7 0xc003e0afd0 identity 0 does not satisfy principal: the identity is a member of a different MSP (expected sha-bg-com, got edb-bg-com)` What do you think?

tongli (Tue, 22 Sep 2020 17:27:50 GMT):
Can you try to use minifabric command to do the same thing that your app is doing to see what happens?

mvkillu (Wed, 23 Sep 2020 00:47:48 GMT):
I am able to create and run a chaincode successfully in minifabric. I am now trying to create a nodeJS api to communicate wit the fabric network. I borrowed the scripts from [here](https://github.com/hyperledger/fabric-samples/tree/master/fabcar/javascript) and running enrollAdmin. I am getting the error ``` Wallet path: C:\Users\Calvin\code\minifab\exp\javascript\wallet 2020-09-23T00:43:38.964Z - error: [FabricCAClientService.js]: Failed to enroll admin, error:%o message=Calling enrollment endpoint failed with error [Error: getaddrinfo ENOTFOUND ca1.org0.example.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26) { errno: 'ENOTFOUND', code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'ca1.org0.example.com' }], stack=Error: Calling enrollment endpoint failed with error [Error: getaddrinfo ENOTFOUND ca1.org0.example.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26) { errno: 'ENOTFOUND', code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'ca1.org0.example.com' }] at ClientRequest. (C:\Users\Calvin\code\minifab\exp\javascript\node_modules\fabric-ca-client\lib\FabricCAClient.js:484:12) at ClientRequest.emit (events.js:311:20) at TLSSocket.socketErrorListener (_http_client.js:426:9) at TLSSocket.emit (events.js:311:20) at emitErrorNT (internal/streams/destroy.js:92:8) at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) at processTicksAndRejections (internal/process/task_queues.js:84:21) Failed to enroll admin user "admin": Error: Calling enrollment endpoint failed with error [Error: getaddrinfo ENOTFOUND ca1.org0.example.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26) { errno: 'ENOTFOUND', code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'ca1.org0.example.com' }] ```

mvkillu (Wed, 23 Sep 2020 00:57:29 GMT):
I used the profilegen command and modified the enrollAdmin.js with these lines ``` const ccpPath = path.resolve(__dirname, '..', 'vars', 'profiles', 'mychannel_connection_for_nodesdk.json'); ........ const caInfo = ccp.certificateAuthorities['ca1.org0.example.com']; ```

SpecialAgentCooper (Wed, 23 Sep 2020 08:59:32 GMT):
the problem is it's the client app trying to open a gateway that causes the problem. I can do the transaction within minifab, but that uses peer lifecycle chaincode commands right? The client app successfully enrolls some identities, but then it can't use them to open gateways

SpecialAgentCooper (Wed, 23 Sep 2020 09:00:31 GMT):
have you tried using the expose endpoints flag? if it's not there, add `-e true` to your minifab up command

mvkillu (Wed, 23 Sep 2020 09:25:48 GMT):
yes, that flag is set to true and I could see it in the execution context as well.

SpecialAgentCooper (Wed, 23 Sep 2020 10:19:17 GMT):
Update: my first scenario fails (register users works, open gateway fails), but if I follow it up with registering new identities and using those it proceeds and completes as expected. Very odd

tongli (Wed, 23 Sep 2020 12:38:07 GMT):
Register users are against ca nodes, open gateway is to establish a connection, that fails? If so, it sounds like a configuration issue in your app.

mvkillu (Wed, 23 Sep 2020 14:04:18 GMT):
@tongli could you help me with my issue pls?

tongli (Wed, 23 Sep 2020 15:30:03 GMT):
@mvkillu can you please open an issue against minifab with very detailed steps you took and supporting materials such as your apps, so that I can recreate the issue.

mvkillu (Wed, 23 Sep 2020 15:52:32 GMT):
@tongli Sure will do, thank you.

tongli (Wed, 23 Sep 2020 15:53:02 GMT):
@mvkillu not a problem, will be happy if we figure it out.

mvkillu (Wed, 23 Sep 2020 15:53:26 GMT):
quick question, will enrolladmin.js (provided in fabric samples) work with minifab nodesdk json?

SpecialAgentCooper (Wed, 23 Sep 2020 15:56:26 GMT):
Yeah, the interesting part is that it only fails for some user identities - the first ones I create after bringing up the network. Any new users added after that work fine

tongli (Wed, 23 Sep 2020 15:59:48 GMT):
sdk 1.4.8 yes.

tongli (Wed, 23 Sep 2020 15:59:48 GMT):
hmm. I thought you were talking about the app.js coming with minifabirc.

tongli (Wed, 23 Sep 2020 16:00:10 GMT):
not 2.1.0 which has issues as far as I know.

sichen (Wed, 23 Sep 2020 16:00:33 GMT):
Has left the channel.

tongli (Wed, 23 Sep 2020 16:01:53 GMT):
have not run the enrolladmin.js myself, I would not know.

mvkillu (Wed, 23 Sep 2020 16:09:11 GMT):
I am looking for a sample NodeJS Web Service (API) that would communicate with the fabric network. Thanks to minifabric, I am able to write my chaincode and bring up the fabric network. I am now stuck with how my Node APP will communicate with the chaincode.

mvkillu (Wed, 23 Sep 2020 16:09:11 GMT):
I am looking for a sample NodeJS Web Service code (API) that would communicate with the fabric network. Thanks to minifabric, I am able to write my chaincode and bring up the fabric network. I am now trying to figure out with how my Node APP will communicate with the chaincode. Do you happen to have any sample code that I can use?

tongli (Wed, 23 Sep 2020 16:11:13 GMT):
minifab support a command called apprun

tongli (Wed, 23 Sep 2020 16:11:42 GMT):
which run go apps where you place in vars/app directory.

tongli (Wed, 23 Sep 2020 16:12:07 GMT):
see doc here https://github.com/litong01/minifabric/tree/master/docs#run-your-application-quickly

tongli (Wed, 23 Sep 2020 16:12:32 GMT):
it was meant to also support node js apps but I have not had time to support node js apps,

tongli (Wed, 23 Sep 2020 16:13:17 GMT):
the idea is that you can use your application to replace app/main.go, then you can simply do `minifab apprun`

tongli (Wed, 23 Sep 2020 16:13:23 GMT):
your app will start running.

tongli (Wed, 23 Sep 2020 16:13:45 GMT):
but currently one can only do go, by replacing go app with the main.go file.

tongli (Wed, 23 Sep 2020 16:14:20 GMT):
I would think we may eventually support main.js, to run node js apps.

tongli (Wed, 23 Sep 2020 16:14:37 GMT):
any way, take a look at that and you probably can get some ideas.

tongli (Wed, 23 Sep 2020 16:14:51 GMT):
the other issue you might have is the actually connection profile.

tongli (Wed, 23 Sep 2020 16:15:11 GMT):
various sdk uses different format of connection profile, that really sucks.

tongli (Wed, 23 Sep 2020 16:15:49 GMT):
when you use node connection profile, you might have to change few the path in the connection profile for the certs to be correct.

tongli (Wed, 23 Sep 2020 16:16:06 GMT):
if you use as is, it may give you issues.

mvkillu (Wed, 23 Sep 2020 16:19:28 GMT):
@tongli I will try the apprun command to see if it helps. Unfortunately, I don't have much knowledge in Go. That's the reason I was trying the enrollAdmin.js (provided in fabric-samples/fabcar) with the nodesdk json generated by minifabric (profilegen command?) My idea is to build a webapp (front end in React and backend in NodeJS) that can communicate with the fabric blockchain. Anyway, I will try to figure it out. Minifabric is an excellent tool.

SpecialAgentCooper (Wed, 23 Sep 2020 16:37:39 GMT):
I've based my client app on this stuff for setting up connections https://github.com/hyperledger/fabric-samples/tree/master/test-application/javascript and this for the app itself https://github.com/hyperledger/fabric-samples/blob/master/asset-transfer-basic/application-javascript/app.js These are the most up to date sample apps, things have changed a little from the fabcar one. So far I have had some success, but occassionally run into identity problems (not sure why). Hope that helps

mvkillu (Wed, 23 Sep 2020 16:51:24 GMT):
Thank you very much. I will give it a try in the morning tomorrow. Looking at the source code in the first link, which file from (minifabric vars directory) should we provide the path for the ccpPath?

mvkillu (Wed, 23 Sep 2020 16:52:08 GMT):
@SpecialAgentCooper Is it \vars\profiles\mychannel_connection_for_nodesdk.json ?

tongli (Wed, 23 Sep 2020 16:52:20 GMT):
look at the connection profiles in vars/profiles

tongli (Wed, 23 Sep 2020 16:52:34 GMT):
you probably want nodesdk profile.

tongli (Wed, 23 Sep 2020 21:37:02 GMT):
@mvkillu , just added apprun to support node js app. Take a look at the example in app/node/main.js file.

tongli (Wed, 23 Sep 2020 21:37:29 GMT):
It uses the wallets and connection file to get things going.

tongli (Wed, 23 Sep 2020 21:37:49 GMT):
Your enrollAdmin can run as well,

tongli (Wed, 23 Sep 2020 21:55:43 GMT):
Please also read the docs/readme.md file to learn a bit more how to get your own app running.

mvkillu (Thu, 24 Sep 2020 00:30:31 GMT):
@tongli That was super quick. I tested it out and it was working just fine. thank you very much.

SpecialAgentCooper (Thu, 24 Sep 2020 10:47:09 GMT):
I'm using /vars/profiles/ordermanagement_connection_for_nodesdk.json

SpecialAgentCooper (Thu, 24 Sep 2020 10:47:09 GMT):
You're welcome, I'm using /vars/profiles/ordermanagement_connection_for_nodesdk.json

SpecialAgentCooper (Thu, 24 Sep 2020 10:47:09 GMT):
You're welcome, I'm using /vars/profiles/_connection_for_nodesdk.json

SpecialAgentCooper (Thu, 24 Sep 2020 10:47:09 GMT):
You're welcome, I'm using `/vars/profiles/_connection_for_nodesdk.json`

mvkillu (Thu, 24 Sep 2020 14:22:05 GMT):
What is the flag to check verbose log of minifabric ?

tongli (Thu, 24 Sep 2020 14:30:40 GMT):
-f default

tongli (Thu, 24 Sep 2020 14:31:18 GMT):
Run minifab without any parameter or just -h , then you will see all the options and commands

mvkillu (Thu, 24 Sep 2020 15:07:56 GMT):
I am having an issue with custom spec.yaml file. Posted details [here](https://github.com/litong01/minifabric/issues/80)

tongli (Thu, 24 Sep 2020 15:39:35 GMT):
@mvkillu I wonder if you have an outdated minifab.cmd, try to update that script and hfrd/minifab:latest container

mvkillu (Thu, 24 Sep 2020 15:56:14 GMT):
@tongli updated both minifab.cmd and minifab image. still no luck

mvkillu (Thu, 24 Sep 2020 15:56:39 GMT):
may be in the future you could add some version info for those commands..

mvkillu (Thu, 24 Sep 2020 15:57:23 GMT):
is this valid spec.yaml? ```fabric: cas: - "ca1.dfp.com" - "ca1.amc.com" peers: - "peer1.dfp.com" - "peer1.amc.com" orderers: - "orderer1.dfp.com" settings: ca: FABRIC_LOGGING_SPEC: DEBUG peer: FABRIC_LOGGING_SPEC: DEBUG orderer: FABRIC_LOGGING_SPEC: DEBUG ### use go proxy when default go proxy is restricted in some of the regions. ### the default goproxy # goproxy: "https://proxy.golang.org,direct" ### the goproxy in China area # goproxy: "https://goproxy.cn,direct"````

mvkillu (Fri, 25 Sep 2020 12:04:15 GMT):
I am trying to send a json as parameter while invoking a chaincode. The JSON contains a space which I think minifab thinks is another parameter. How to fix this? ``` minifab invoke -p \"updateISIN\",\"Infy\",\"{'isin':'INFY','price':'20.4567','dttm':'2020-09-25 17:26'}\"``` The output is: ```17:26'}" is a not supported option\\\ ```

mvkillu (Fri, 25 Sep 2020 12:04:15 GMT):
I am trying to send a json as parameter while invoking a chaincode. The JSON contains a space which I think minifab thinks is another parameter. How to fix this? ``` minifab invoke -p \"updateISIN\",\"Infy\",\"{'isin':'INFY','price':'20.4567','dttm':'2020-09-25 17:26'}\"``` The output is: ```17:26'}" is a not supported option```

mvkillu (Fri, 25 Sep 2020 12:04:15 GMT):
I am trying to send a json as parameter while invoking a chaincode. The JSON contains a space which I think minifab thinks is another parameter. How to fix this? `minifab invoke -p \"updateISIN\",\"Infy\",\"{'isin':'INFY','price':'20.4567','dttm':'2020-09-25 17:26'}\"` The output is: `17:26'}" is a not supported option`

mvkillu (Fri, 25 Sep 2020 12:40:52 GMT):
How to add space in the parameter. For eg: `minifab invoke -p \"updateISIN\",\"Infy\",\"{\"isin\":\"INFY\",\"text\":\"20.4567 123\"}\"` throws error: `123"}" is a not supported option`

tongli (Fri, 25 Sep 2020 12:41:59 GMT):
I assume that you are using windows, right?

tongli (Fri, 25 Sep 2020 12:42:41 GMT):
I am not really sure how that can be done, do google search to see how space can be used as part of a parameter on windows.

tongli (Fri, 25 Sep 2020 12:42:55 GMT):
this is really just a windows thing.

tongli (Fri, 25 Sep 2020 12:49:00 GMT):
https://stackoverflow.com/questions/18639663/how-to-pass-command-line-parameters-with-space-in-batch-file

tongli (Fri, 25 Sep 2020 12:49:16 GMT):
@mvkillu take a look at ^^^

tongli (Fri, 25 Sep 2020 12:49:26 GMT):
so your command becomes this?

tongli (Fri, 25 Sep 2020 12:50:06 GMT):
```minifab invoke -p \"updateISIN\",\"Infy\",\"{\"isin\":\"INFY\",\"text\":\"\"20.4567 123\"\"}\"```

tongli (Fri, 25 Sep 2020 12:50:20 GMT):
not really sure it will work, but give it a try.

mvkillu (Fri, 25 Sep 2020 12:50:33 GMT):
that didn't work, but I will look it up on internet.

tongli (Fri, 25 Sep 2020 12:50:40 GMT):
windows certainly make things difficult to deal with.

mvkillu (Fri, 25 Sep 2020 12:50:56 GMT):
yeah, i am thinking of installing ubuntu on my laptop and work there...

tongli (Fri, 25 Sep 2020 12:51:24 GMT):
well, I know on windows docker and virtualbox do not play well together.

tongli (Fri, 25 Sep 2020 12:51:46 GMT):
if you have docker running and at the same time having virtualbox going, things can mess up real quick.

tongli (Fri, 25 Sep 2020 12:51:59 GMT):
so you probably can have one of the two on your windows, not both.

tongli (Fri, 25 Sep 2020 12:52:11 GMT):
from my own experiences.

mvkillu (Fri, 25 Sep 2020 12:52:22 GMT):
i will install ubuntu on a different partition and will do dualboot

tongli (Fri, 25 Sep 2020 12:52:30 GMT):
you can always try and come to your own conclusion.

tongli (Fri, 25 Sep 2020 12:52:45 GMT):
ah, yeah, that will work for sure.

tongli (Fri, 25 Sep 2020 12:53:16 GMT):
18.04 or 20.04 will be nice I think.

mvkillu (Fri, 25 Sep 2020 12:54:03 GMT):
minifab used to work fine with wsl2 and docker on windows earlier, but it stopped working after i upgraded docker. anyway, I will install ubuntu on a different partition. that is much better than working on windows i think.

tongli (Fri, 25 Sep 2020 12:54:36 GMT):
I would agree with that.

tongli (Fri, 25 Sep 2020 12:55:04 GMT):
you can also invoke a chaincode from a node js or go app by using apprun command.

tongli (Fri, 25 Sep 2020 12:55:18 GMT):
that way, you do not need to mess with the command line.

tongli (Fri, 25 Sep 2020 12:55:41 GMT):
you can operate things from a program and I think you wont have issues with spaces in your parameter.

tongli (Fri, 25 Sep 2020 12:55:55 GMT):
take a look at app/node/main.js.

tongli (Fri, 25 Sep 2020 12:56:06 GMT):
it is easy to change it to do what you want to.

mvkillu (Fri, 25 Sep 2020 12:56:34 GMT):
yeah, i tried it yesterday on a sample chaincode and worked. Have started a new project now. will use apprun.

mvkillu (Fri, 25 Sep 2020 12:56:52 GMT):
also small suggestion, would it possible to not delete custom chaincode when running the minifab cleanup command/

mvkillu (Fri, 25 Sep 2020 12:57:14 GMT):
also, with contents in app run folder too..

tongli (Fri, 25 Sep 2020 12:59:49 GMT):
hmmmm.

tongli (Fri, 25 Sep 2020 12:59:54 GMT):
not sure.

tongli (Fri, 25 Sep 2020 13:00:07 GMT):
cleanup is supposed to cleanup everything.

tongli (Fri, 25 Sep 2020 13:00:31 GMT):
leave things there could cause some issues I think.

tongli (Fri, 25 Sep 2020 13:00:45 GMT):
like versions, I probably would not do that.

tongli (Fri, 25 Sep 2020 13:01:12 GMT):
your code should be saved in github or some repo, no?

mvkillu (Fri, 25 Sep 2020 13:04:41 GMT):
yeah, i am maintaining my code in github. no issues.

tongli (Fri, 25 Sep 2020 13:55:12 GMT):
all, I've just added `minifab update` command, if you already have minifabric on your system, you need to do one last time `docker pull hfrd/minifab:latest` to start using `minifab update`.

tongli (Fri, 25 Sep 2020 13:55:50 GMT):
If you have not had minifabric on your system, please follow the README.md file to get Minifabric.

SpecialAgentCooper (Fri, 25 Sep 2020 14:02:31 GMT):
just to add to the passing parameters on windows discussion, I didn't manage to get any JSON objects to work as arguments on Windows from the minifab command line tool

SpecialAgentCooper (Fri, 25 Sep 2020 14:02:52 GMT):
ended up just making a client app to submit transactions, which works fine (apart from my weird user id issue)

tongli (Fri, 25 Sep 2020 14:04:00 GMT):
@SpecialAgentCooper yeah, windows command line stuff is a mess. if you can avoid , please do.

tongli (Fri, 25 Sep 2020 14:04:18 GMT):
I do not feel there are whole lot of things we can do to improve that.

tongli (Fri, 25 Sep 2020 14:04:44 GMT):
this is really just an issue when dealing with invocation parameters. I do not feel there are a lot of options.

tongli (Fri, 25 Sep 2020 14:05:49 GMT):
but I think for json objection, you can probably do base64 encoding the entire object, then pass the string as one parameter, then in your chaincode, you can base64 decode it.

tongli (Fri, 25 Sep 2020 14:06:05 GMT):
that will be probably the best thing you can do.

SpecialAgentCooper (Fri, 25 Sep 2020 14:07:19 GMT):
good idea! yeah I figured it wasn't worth figuring out how to properly escape everything just for testing purposes, but it we use minifab in some sort of release pipeline then the encoding option is a good bet

tongli (Fri, 25 Sep 2020 14:08:54 GMT):
minifabric already base64 encode the entire parameters, then decode when it is time to invoke a method.

tongli (Fri, 25 Sep 2020 14:09:27 GMT):
these space and weird escaping thing is really just the windows command line issue.

SpecialAgentCooper (Fri, 25 Sep 2020 14:20:46 GMT):
yeah, classic windows issues. Trying to convince my org to give me a better environment for r&d...

tongli (Fri, 25 Sep 2020 14:21:20 GMT):
well, if you can remove docker from your windows env and install VirtualBox, that can work well.

tongli (Fri, 25 Sep 2020 14:21:31 GMT):
I have been doing that for years before I moved onto macbook.

tongli (Fri, 25 Sep 2020 14:22:00 GMT):
the only issue is that VirtualBox does not co-exist with Docker Desktop for Windows.

mvkillu (Tue, 29 Sep 2020 00:11:51 GMT):
@tongli When I run apprun -l node, there is a connections.json getting created. Is it the same file as /vars/profiles/dfchannel_connection_for_nodesdk.json ? I am creating my own express server in NodeJS and loading this file for ccpPath. When I am trying to submit the transaction, I am getting few errors such as: `020-09-29T00:06:37.613Z - error: [ServiceEndpoint]: Error: Failed to connect before the deadline on Committer- name: orderer1.dff.com, url:grpcs://orderer1.dff.com:7050, connected:false, connectAttempted:true 2020-09-29T00:06:37.613Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server orderer1.dff.com url:grpcs://orderer1.dff.com:7050 timeout:3000 2020-09-29T00:06:37.613Z - error: [NetworkConfig]: buildOrderer - Unable to connect to the committer orderer1.dff.com due to Error: Failed to connect before the deadline on Committer- name: orderer1.dff.com, url:grpcs://orderer1.dff.com:7050, connected:false, connectAttempted:true at checkState (/home/calvin/code/github/mfbc/app/server/node_modules/@grpc/grpc-js/build/src/client.js:69:26) at Timeout._onTimeout (/home/calvin/code/github/mfbc/app/server/node_modules/@grpc/grpc-js/build/src/channel.js:292:17) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7) { connectFailed: true } ` I looked up on the [internet](https://stackoverflow.com/questions/61420539/hyperledger-fabric-2-0-1-error-failed-to-connect-before-the-deadline-on-discov) which says the issue could be because of incorrect pem values.

mvkillu (Tue, 29 Sep 2020 00:11:51 GMT):
@tongli When I run apprun -l node, there is a connections.json getting created. Is it the same file as /vars/profiles/dfchannel_connection_for_nodesdk.json ? I am creating my own express server in NodeJS and loading this file for ccpPath. When I am trying to submit the transaction, I am getting few errors such as: ```[ServiceEndpoint]: Error: Failed to connect before the deadline on Committer- name: orderer1.dff.com, url:grpcs://orderer1.dff.com:7050, connected:false, connectAttempted:true 2020-09-29T00:06:37.613Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server orderer1.dff.com url:grpcs://orderer1.dff.com:7050 timeout:3000 2020-09-29T00:06:37.613Z - error: [NetworkConfig]: buildOrderer - Unable to connect to the committer orderer1.dff.com due to Error: Failed to connect before the deadline on Committer- name: orderer1.dff.com, url:grpcs://orderer1.dff.com:7050, connected:false, connectAttempted:true at checkState (/home/calvin/code/github/mfbc/app/server/node_modules/@grpc/grpc-js/build/src/client.js:69:26) at Timeout._onTimeout (/home/calvin/code/github/mfbc/app/server/node_modules/@grpc/grpc-js/build/src/channel.js:292:17) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7) { connectFailed: true } ``` I looked up on the [internet](https://stackoverflow.com/questions/61420539/hyperledger-fabric-2-0-1-error-failed-to-connect-before-the-deadline-on-discov) which says the issue could be because of incorrect pem values.

mvkillu (Tue, 29 Sep 2020 00:11:51 GMT):
@tongli When I run apprun -l node, there is a connections.json getting created. Is it the same file as /vars/profiles/dfchannel_connection_for_nodesdk.json ? I am creating my own express server in NodeJS and loading this file for ccpPath. When I am trying to submit the transaction, I am getting few errors such as: ```[ServiceEndpoint]: Error: Failed to connect before the deadline on Committer- name: orderer1.dff.com, url:grpcs://orderer1.dff.com:7050, connected:false, connectAttempted:true 2020-09-29T00:06:37.613Z - error: [ServiceEndpoint]: waitForReady - Failed to connect to remote gRPC server orderer1.dff.com url:grpcs://orderer1.dff.com:7050 timeout:3000 2020-09-29T00:06:37.613Z - error: [NetworkConfig]: buildOrderer - Unable to connect to the committer orderer1.dff.com due to Error: Failed to connect before the deadline on Committer- name: orderer1.dff.com, url:grpcs://orderer1.dff.com:7050, connected:false, connectAttempted:true at checkState (/home/calvin/code/github/mfbc/app/server/node_modules/@grpc/grpc-js/build/src/client.js:69:26) at Timeout._onTimeout (/home/calvin/code/github/mfbc/app/server/node_modules/@grpc/grpc-js/build/src/channel.js:292:17) at listOnTimeout (internal/timers.js:549:17) at processTimers (internal/timers.js:492:7) { connectFailed: true } ``` I looked up on the [internet](https://stackoverflow.com/questions/61420539/hyperledger-fabric-2-0-1-error-failed-to-connect-before-the-deadline-on-discov) which says the issue could be because of incorrect pem values. What am I doing wrong?

mvkillu (Tue, 29 Sep 2020 00:17:33 GMT):
My code is available [here](https://github.com/mvkillu/mfbc) if you want to take a look

rjvsa (Tue, 29 Sep 2020 06:09:07 GMT):
Has joined the channel.

rjvsa (Tue, 29 Sep 2020 06:20:13 GMT):
Hi everyone, I am not able to find information on how to add specific peers to a channel. As per the minifab help: - 'join' - join all peers currently in the network to a channel. What if I don't want to join all peers but add only selected peers. For example, using default spec.yaml file: https://raw.githubusercontent.com/litong01/minifabric/master/spec.yaml I wan tot create two channels.... channel1 between peer1.org0.example.com and peer1.org1.example.com and channel2 between peer2.org0.example.com and peer2.org1.example.com. Any help on how to do that using minifab is much appreciated.

rjvsa (Tue, 29 Sep 2020 06:20:13 GMT):
Hi everyone, I am not able to find information on how to add specific peers to a channel. As per the minifab help: - 'join' - join all peers currently in the network to a channel. What if I don't want to join all peers but add only selected peers. For example, using the default spec.yaml file: https://raw.githubusercontent.com/litong01/minifabric/master/spec.yaml I want tocreate two channels.... channel1 between peer1.org0.example.com and peer1.org1.example.com and channel2 between peer2.org0.example.com and peer2.org1.example.com. Any help on how to do that using minifab is much appreciated.

tongli (Tue, 29 Sep 2020 11:40:33 GMT):
@rjvsa you can create another working directory, set up a peer, then do join that new org to the channel and peer to the channel eventually

rjvsa (Tue, 29 Sep 2020 11:42:31 GMT):
@tongli Is it possible to create a channel for the existing peers. I mean is creating a new org is the only way ?

tongli (Tue, 29 Sep 2020 12:11:11 GMT):
You can, but minifabric will add all the peers to the channel. It was done that way by design , otherwise you will have to specify which peer to join, that makes a command more complex, but it can be done with new parameter.

tongli (Tue, 29 Sep 2020 12:11:11 GMT):
minifabric will add all the peers to the channel. It was done that way by design , otherwise you will have to specify which peer to join, that makes a command more complex, but it can be done with new parameter.

tongli (Tue, 29 Sep 2020 12:12:18 GMT):
What is your use case ?

tongli (Tue, 29 Sep 2020 12:14:19 GMT):
Install, and join both commands behave the same.

tongli (Tue, 29 Sep 2020 12:15:06 GMT):
If we ever add that new parameter to specify which peer to join, it would apply to both install and join.

tongli (Tue, 29 Sep 2020 12:15:41 GMT):
Currently I am not see a need for it unless you present a really good use case.

tongli (Tue, 29 Sep 2020 12:15:41 GMT):
Currently I am not seeing a need for it unless you present a really good use case.

rjvsa (Tue, 29 Sep 2020 13:31:36 GMT):
Primarily when a customer signs up on a website we add each one of the customer to their region specific org for example say OrgFL. Then assign a specific person from our org say OrgXYZ to that customer via a private channel. Thus we have to add a org and create a channel on the go as soon as a customer signs up and then we add that customer (say from OrgFL) as well as one peer from our OrgXYZ. Similarly for customer from CA say we add them to OrgCA and then create a channel and add that customer and one of our OrgXYZ peer to that channel.

rjones (Tue, 29 Sep 2020 14:13:38 GMT):
@rjvsa I think minifab is for development and testing, not deployment.

tongli (Tue, 29 Sep 2020 19:15:12 GMT):
@rjones it can be used for deployment if one knows how to correctly use it.

rjvsa (Wed, 30 Sep 2020 01:56:04 GMT):
Right now I am in dev and testing phase. I think best option here will be to bring up the network using minifab. After that to add channels modify the configtx.yaml as per the instructions given in here: https://hyperledger-fabric.readthedocs.io/en/release-2.2/create_channel/create_channel.html

rjvsa (Wed, 30 Sep 2020 01:57:29 GMT):
I am hoping that changes made as per: https://hyperledger-fabric.readthedocs.io/en/release-2.2/create_channel/create_channel.html will picked up by minifab next time I bring up the network.

pkirkinezis (Mon, 05 Oct 2020 16:26:37 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=wp4FAfLJ7zBGHiLgN) What holds back minifabric for deployment use ?

rjones (Mon, 05 Oct 2020 16:37:01 GMT):
@pkirkinezis I was wrong, Tong corrected me.

pkirkinezis (Mon, 05 Oct 2020 16:47:21 GMT):
Yeash out of the box is pretty basic l. But if you read carfully the documentation (that currently i realized it's beeing updated regurly with couchdb detailed funtionality because i was searching for indexes ) you can do many thinks . I also implemented a basic java API for registering a user / enrolling a user / invoking with a specific user / quering with a specific user . Is was a little tricky at first because cryptogen and fabric ca are 2 different ways to generate keyfiles . Also the signing process was a bit tricky also

pkirkinezis (Mon, 05 Oct 2020 16:49:32 GMT):
Without the community here in some situations you want to implement something very specific you are playing the trial and error method

tongli (Mon, 05 Oct 2020 16:55:52 GMT):
@pkirkinezis minifabric recently abandoned cryptogen and now it uses OpenSSL to produce certs, this is to fix pitfalls of cryptogen. Now you can really use it even for your production env.

pkirkinezis (Mon, 05 Oct 2020 16:58:15 GMT):
O missed that . For my API because of the nature of java SDK the keys where produced via Fabric ca

pkirkinezis (Mon, 05 Oct 2020 17:00:37 GMT):
And i can admit that in first generating afterwords keyfiles with fabric ca was very straight forword via java sdk

pkirkinezis (Mon, 05 Oct 2020 17:02:49 GMT):
I am not 100% but java sdk will by default enroll a user inside fabric ca and generate the keys. Cryptogen was only used to start the fabric ca containers with specific admin keys . Is that right ?

tongli (Mon, 05 Oct 2020 21:33:34 GMT):
Minifabric creates certs and private keys, then use them to start all nodes including ca node.

tongli (Mon, 05 Oct 2020 21:34:15 GMT):
You can always use either sdk or fabric_ca_client to enroll users against the ca nodes

tongli (Mon, 05 Oct 2020 21:35:06 GMT):
Minifabric added a great feature today

tongli (Mon, 05 Oct 2020 21:35:17 GMT):
minifab orgjoin

tongli (Mon, 05 Oct 2020 21:35:39 GMT):
This is to allow user having a much easier time to join new org to a channel

tongli (Mon, 05 Oct 2020 21:35:55 GMT):
See the doc in docs directory

pkirkinezis (Tue, 06 Oct 2020 05:23:02 GMT):
I was doing the whole process you describe manually .In my 6 server/ 6 node , each server has one node , Automating the process will help 100%

pkirkinezis (Tue, 06 Oct 2020 05:24:08 GMT):
My only concert would be this part : Install and approve chaincode samplecc for orgx peers cd ~/mysite1 minifab install,approve -n samplecc -p '' Approve the chaincode on org0 and org1 Since new orgs joined, the chaincode will need to be approved again so that new org can also commit cd ~/mysite0 minifab approve,commit

pkirkinezis (Tue, 06 Oct 2020 05:24:40 GMT):
Will this work between different servers ?

aguel (Tue, 06 Oct 2020 07:12:48 GMT):
Has joined the channel.

aguel (Tue, 06 Oct 2020 07:12:49 GMT):
@tongli is there a way to control Fabric CA Server configuration? Like i want to increase the certificate expiry (enrollment) from 365 days to like 10 years?

pkirkinezis (Tue, 06 Oct 2020 10:44:03 GMT):
I did get the latest update . Finally you add a function to only channelsign. I was doing it manually across all the server very time i was testing

pkirkinezis (Tue, 06 Oct 2020 10:49:52 GMT):
I did download the latest update . I can see many interesting updates . Does any functionality of the pre existing functions changed ?

tongli (Tue, 06 Oct 2020 12:50:56 GMT):
@pkirkinezis no, any existing functions all work same way, added new functions mostly or improved.

tongli (Tue, 06 Oct 2020 12:52:51 GMT):
@aguel currently the certs all generated with 10 year length for all nodes. You can use the ca (setup by minifabric) to generate more certs if you want to.

tongli (Tue, 06 Oct 2020 13:00:38 GMT):
3560 days to be specific

aguel (Tue, 06 Oct 2020 13:33:19 GMT):
@tongli yes i think that was for TLS certs, but for the enrollment certs it is 8760h or 365days.

aguel (Tue, 06 Oct 2020 13:34:18 GMT):
by the way, can enlighten me about the ca setup from minifabric?

tongli (Tue, 06 Oct 2020 17:16:50 GMT):
@aguel if you use the default spec, you should have two ca setup

tongli (Tue, 06 Oct 2020 17:17:14 GMT):
You can run fabric ca client aginast the ca node for enrollment or registration

aguel (Tue, 06 Oct 2020 23:57:13 GMT):
@tongli no I mean yes i was able to do that now, im more into how we can configure via minifab to change fabric ca server configuration

tongli (Wed, 07 Oct 2020 01:08:31 GMT):
Hmmm, @aguel I am not really sure what you are trying to get at. If your ca server is up running, you can get certs with fabric-ca-client, right? Should be all the attributes being specified in the csr?

aguel (Wed, 07 Oct 2020 01:18:00 GMT):
@tongli basically no issue with the fabric ca server, all is working well, it can generate tls certificate valid for 10 years and enrollment certificate valid for 1 year. Is there a way to change enrollment certificate validity from 1 year to say 5 years from within fabric spec file? I know this can be done by changing the fabric-ca-service config file directly but not sure if it is possible to inject such configuration from minifabric spec file

tongli (Wed, 07 Oct 2020 01:45:46 GMT):
@aguel not really sure though. If you found something configuration we can change, please do a PR, we can review it and see if that is good. I thought that fabric-ca-client can specify that in csr.

aguel (Wed, 07 Oct 2020 01:46:53 GMT):
thank you

tongli (Wed, 07 Oct 2020 01:50:39 GMT):
@aguel looks like you can just set this in spec file for ca node

aguel (Wed, 07 Oct 2020 01:52:00 GMT):
thank you, i will check it out

tongli (Wed, 07 Oct 2020 01:52:34 GMT):
FABRIC_CA_SIGNING_DEFULT_EXPIRY=87600h

tongli (Wed, 07 Oct 2020 01:53:00 GMT):
That is the parameter but I am not sure if I get it exactly right

tongli (Wed, 07 Oct 2020 01:53:53 GMT):
In theory, anything you put in spec.yaml under settings, the parameters will be passed to the node

aguel (Wed, 07 Oct 2020 01:53:55 GMT):
@tongli excellent, i will test this one. Do we have any documentation on spec file parameters?

tongli (Wed, 07 Oct 2020 01:55:28 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/serverconfig.html

tongli (Wed, 07 Oct 2020 01:56:28 GMT):
You will need to confirm the name , how the described parameters get translated to the env variable. I made that up from my memory, maybe a bit different

aguel (Wed, 07 Oct 2020 01:57:01 GMT):
will do the test and will provide the feedback

tongli (Wed, 07 Oct 2020 01:57:41 GMT):
Just checked

aguel (Wed, 07 Oct 2020 01:58:03 GMT):
it works?

tongli (Wed, 07 Oct 2020 01:59:15 GMT):
It should be FABRIC_CA_SERVER_SIGNING_DEFAULT_EXPIRY=87600h

tongli (Wed, 07 Oct 2020 01:59:27 GMT):
Try this one. Should work I think

aguel (Wed, 07 Oct 2020 01:59:53 GMT):
Thank you. will surely test this out.

tongli (Wed, 07 Oct 2020 02:00:35 GMT):
The naming convention was described at the top of the page I sent above

aguel (Wed, 07 Oct 2020 02:01:16 GMT):
@tongli really appreciate the help. thank you very much.

tongli (Wed, 07 Oct 2020 02:01:33 GMT):
Not a problem. Now promote minifabric

aguel (Wed, 07 Oct 2020 02:02:39 GMT):
will surely do, im not sure if you can still remember, got a few PR to minifab months back. im a big fan

tongli (Wed, 07 Oct 2020 02:03:29 GMT):
Yeah. I remember. Thanks for your contributions. We need more people using it and making it better

tongli (Wed, 07 Oct 2020 02:05:01 GMT):
Btw, I just added orgjoin command to help with expanding the network

aguel (Wed, 07 Oct 2020 02:05:10 GMT):
great work. thank very much. this should be promoted for incubation

aguel (Wed, 07 Oct 2020 02:05:37 GMT):
will this be in hyperledger-labs soon?

tongli (Wed, 07 Oct 2020 02:05:50 GMT):
Not sure

aguel (Wed, 07 Oct 2020 02:06:43 GMT):
would love to see this part or incubation in hyperledger

aguel (Wed, 07 Oct 2020 02:06:52 GMT):
🙏

tongli (Wed, 07 Oct 2020 02:07:01 GMT):
Goal is a real project not just a lab

aguel (Wed, 07 Oct 2020 02:07:33 GMT):
i agree, hence having this for incubation will be the first step

aguel (Wed, 07 Oct 2020 02:08:00 GMT):
will definitely be supporting this all the way

aguel (Wed, 07 Oct 2020 02:09:07 GMT):
minifabric is game changer

tongli (Wed, 07 Oct 2020 02:09:33 GMT):
Great. Thanks

aguel (Wed, 07 Oct 2020 02:10:45 GMT):
No, we should be the one that should be saying thanks for bringing out such an amazing project

tongli (Wed, 07 Oct 2020 02:11:11 GMT):
Cool, cool. Glad I can help.

aguel (Wed, 07 Oct 2020 02:12:46 GMT):
Not just that, despite your busy schedule, you still find time to help people here and in github, replying to questions and so

aguel (Wed, 07 Oct 2020 02:14:18 GMT):
and community is growing now because of that, i think we should do out part as well but at least promoting or help answer basic questions to those who are new to this project

tongli (Wed, 07 Oct 2020 02:18:10 GMT):
That is great. Happy that you like to help as well.

aguel (Wed, 07 Oct 2020 02:18:21 GMT):
I have one suggestion though, it looks like github becomes a channel for Q & A filing issues after issues, would suggest to post there link to rocket chat link for discussion (cant see it there at the moment)

tongli (Wed, 07 Oct 2020 02:34:50 GMT):
yeah,good idea.

tongli (Wed, 07 Oct 2020 02:35:12 GMT):
Do a PR to add the rocket channel so that people can ask questions here

aguel (Wed, 07 Oct 2020 11:06:18 GMT):
PR requested.

tongli (Wed, 07 Oct 2020 13:02:01 GMT):
@aguel the file should look like this

tongli (Wed, 07 Oct 2020 13:02:07 GMT):
```fabric: cas: - "ca1.guild.wrappy.net" peers: - "peer1.guild.wrappy.net" orderers: - "orderer1.wrappy.net" settings: ca: FABRIC_LOGGING_SPEC: DEBUG FABRIC_CA_SERVER_SIGNING_DEFAULT_EXPIRY: 87600h peer: FABRIC_LOGGING_SPEC: DEBUG orderer: FABRIC_LOGGING_SPEC: DEBUG ```

tongli (Wed, 07 Oct 2020 13:02:17 GMT):
noticed the setting section?

tongli (Wed, 07 Oct 2020 13:02:48 GMT):
you can literally add any settings described in ca, peer or orderer node there to affect how the node is going to run.

aguel (Wed, 07 Oct 2020 13:20:07 GMT):
@tongli thanks will do some testing

aguel (Wed, 07 Oct 2020 13:30:23 GMT):

settings.png

aguel (Wed, 07 Oct 2020 13:30:59 GMT):
It seems the CA Server still using the 8760h (from: /etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml)

aguel (Wed, 07 Oct 2020 13:31:14 GMT):
But tried issuing an enrollment certificate, it seems to be working fine

aguel (Wed, 07 Oct 2020 13:31:22 GMT):

cert.png

aguel (Wed, 07 Oct 2020 13:31:51 GMT):
strange behaviour, though it works, i wonder were the modified CA server setting was saved

aguel (Wed, 07 Oct 2020 13:38:27 GMT):
@tongli got only one CA server. looks strange behaviour but wondering enrollment seems to behave correctly

tongli (Wed, 07 Oct 2020 13:45:42 GMT):
Environmental settings, not saved in the generated config by the ca server. That is what is supposed to do

tongli (Wed, 07 Oct 2020 13:46:11 GMT):
Minifabric basically using the env variable to override the default setting

aguel (Wed, 07 Oct 2020 13:48:43 GMT):
@tongli i see. thanks for clarifying. i think that would make it even more flexible to change configuration on the fly.

tongli (Wed, 07 Oct 2020 16:01:09 GMT):
Yes, that is why I suggested to change your spec.yaml file and do a `minifab restart` to test

tongli (Wed, 07 Oct 2020 23:01:03 GMT):
Guys, good news, Minifabric is now a Hyperledger lab project.

tongli (Wed, 07 Oct 2020 23:01:09 GMT):
you can find it here. https://github.com/hyperledger-labs/minifabric

tongli (Wed, 07 Oct 2020 23:01:21 GMT):
the repo under my name no longer exist.

tongli (Wed, 07 Oct 2020 23:01:33 GMT):
but links should still work.

aguel (Wed, 07 Oct 2020 23:36:32 GMT):
@tongli thats good news

aguel (Wed, 07 Oct 2020 23:37:22 GMT):
i was talking about ut ealier and this happened

tongli (Wed, 07 Oct 2020 23:48:22 GMT):
@aguel haha, yeah, it was in the works for awhile, I was not sure if it will be approved. but it was approved today. I am pretty happy about that. @rjones helped tremendously and put up many PRs to make it happen. Big thanks to @rjones .

tongli (Wed, 07 Oct 2020 23:57:59 GMT):
Minifabric has a new home now https://github.com/hyperledger-labs/minifabric

aguel (Wed, 07 Oct 2020 23:59:25 GMT):
congratulation, this is a very deserving project

tongli (Wed, 07 Oct 2020 23:59:37 GMT):
haha. cool cool.

tongli (Thu, 08 Oct 2020 00:00:02 GMT):
just go to that page, download the new sccript. everything will work exactly the same.

mvkillu (Thu, 08 Oct 2020 02:11:02 GMT):
congratulations @tongli and I am very happy for Minifabric.

mvkillu (Thu, 08 Oct 2020 02:14:26 GMT):
I recently created a sub on reddit to gain some traction for the Minifabric community. Feel free to stop by if you are on reddit. The link is https://www.reddit.com/r/minifabric/

mvkillu (Thu, 08 Oct 2020 02:18:51 GMT):
For some reason, Hyperledger explorer isn't working. The command `minifab explorerup` completes successfully and i get a url http://192.168.0.103:7006. However, when I try to open the url in the browser, I get a connection refused. Am I doing something wrong? i swear it worked fine few days ago.

tongli (Thu, 08 Oct 2020 03:02:28 GMT):
@mvkillu the problem is due to the new explorer image. We have to fallback to 1.1.2 of explorer which was the latest. So go ahead use the latest from official minifabric repo, your issue will be fixed.

skulos (Thu, 08 Oct 2020 09:32:14 GMT):
Has joined the channel.

skulos (Thu, 08 Oct 2020 09:32:15 GMT):
AHAHAHAHAHA @tongli and @mvkillu Congrats. I am really happy. Also so glad I found this post. I came across this project last night, and wanted to use it for a demo today. Everything worked like a charm, and then this morning when I tried to show it o my boss to show our clients, HL Explorer didn't start. I was so confused. Have like 7 different instances of minifab running and that container just crashes. Now everything makes sense. Because I couldn't understand how in the span of 6 hours (from when I left work and from when I showed up again) minifab broke. Thank you. Will try the new repo, but looks like the tinyURL is still the same in the README.md

skulos (Thu, 08 Oct 2020 09:32:15 GMT):
AHAHAHAHAHA @tongli and @mvkillu Congrats. I am really happy. Also so glad I found this post. I came across this project last night, and wanted to use it for a demo today. Everything worked like a charm, and then this morning when I tried to show it o my boss to show our clients, HL Explorer didn't start. I was so confused. Have like 7 different instances of minifab running and that container just crashes. Now everything makes sense. Because I couldn't understand how in the span of 6 hours (from when I left work and from when I showed up again) minifab broke. Thank you. Will try the new repo, but looks like the tinyURL is still the same in the README.md (https://github.com/hyperledger-labs/minifabric) - old one (https://github.com/litong01/minifabric)

skulos (Thu, 08 Oct 2020 09:32:15 GMT):
AHAHAHAHAHA @tongli and @mvkillu Congrats. I am really happy. Also so glad I found this post. I came across this project last night, and wanted to use it for a demo today. Everything worked like a charm, and then this morning when I tried to show it to my boss to show our clients, HL Explorer didn't start. I was so confused. Have like 7 different instances of minifab running and that container just crashes. Now everything makes sense. Because I couldn't understand how in the span of 6 hours (from when I left work and from when I showed up again) minifab broke. Thank you. Will try the new repo, but looks like the tinyURL is still the same in the README.md (https://github.com/hyperledger-labs/minifabric) - old one (https://github.com/litong01/minifabric)

aguel (Thu, 08 Oct 2020 09:53:08 GMT):
@skulos dont worry. liton01/minifabric is now a fork of hyperledgerlabs/minifabric so they should be the same

aguel (Thu, 08 Oct 2020 09:53:08 GMT):
@skulos dont worry. litong01/minifabric is now a fork of hyperledgerlabs/minifabric so they should be the same

aguel (Thu, 08 Oct 2020 09:53:18 GMT):

fork.png

skulos (Thu, 08 Oct 2020 09:54:17 GMT):
Yeah I saw. But I still can't get Explorer to start up gain

skulos (Thu, 08 Oct 2020 09:56:02 GMT):
minifab swallows my spec.yaml, but the docker container for the hl explorer keeps on crashing. So I thought that a new url might point to a new minifab script that pulls the 1.1.2 version of explorer (of the one that worked)

skulos (Thu, 08 Oct 2020 09:56:02 GMT):
minifab swallows my spec.yaml, but the docker container for the hl explorer keeps on crashing. So I thought that a new url might point to a new minifab script that pulls the 1.1.2 version of explorer (or the one that worked)

aguel (Thu, 08 Oct 2020 09:59:53 GMT):
if you look at the ansible template, it still point to hyperledger/explorer:latest, which is now at 1.1.3 which causes the issue, must fallback first to 1.1.2 for it to work

aguel (Thu, 08 Oct 2020 10:01:44 GMT):
if you can do a PR, to accept parameter for explorer version for "explorerup" command, that will help the project

skulos (Thu, 08 Oct 2020 10:20:10 GMT):
I'll look into it.

skulos (Thu, 08 Oct 2020 10:20:35 GMT):
Thanks @aguel for the help

skulos (Thu, 08 Oct 2020 10:23:52 GMT):
I've honestly not worked a lot with python and ansible, but think my colleagues have. Will rope them in if I get stuck

tongli (Thu, 08 Oct 2020 11:18:06 GMT):
@skulos you do not need to know either python or ansible to use it, your problem has been fixed in minifabric. You just need to get the latest minifabric.

tongli (Thu, 08 Oct 2020 11:53:32 GMT):
Try ‘’’minifab update’’’

tongli (Thu, 08 Oct 2020 11:54:32 GMT):
Then ‘’’ minifab explordown’’’ and ‘’’ minifab explorerup’’’

tongli (Thu, 08 Oct 2020 11:55:51 GMT):
If the update command failed, that means you have a rather old minifabric, do an manual update to get the latest minifabric from the official repo which has been posted above

skulos (Thu, 08 Oct 2020 12:00:10 GMT):
Thanks for the feedback. Saw it on github.com too. I'm running the commands right now to see. I should have a version that's too old, since I started using it approximately 18 hours ago.

tongli (Thu, 08 Oct 2020 12:05:54 GMT):
Hmmm, the fix was put in right before we moved over. But in any case, do an update and it won’t hurt

skulos (Thu, 08 Oct 2020 12:16:40 GMT):
Nope.

skulos (Thu, 08 Oct 2020 12:17:35 GMT):
$ ./minifab cleanup Using default spec file Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=172.23.0.248 WORKING_DIRECTORY: /home/hendreh/mywork ... # Preparing for the following operations: ********************* verify options, shutdown network, cleanup working directory ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** shutdown network ......... # Running operation: ****************************************** cleanup working directory ...... # STATS ******************************************************* minifab: ok=32 failed=0 real 0m20.813s user 0m17.790s sys 0m3.011s

skulos (Thu, 08 Oct 2020 12:17:35 GMT):
*$ ./minifab cleanup* Using default spec file Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=172.23.0.248 WORKING_DIRECTORY: /home/hendreh/mywork ... # Preparing for the following operations: ********************* verify options, shutdown network, cleanup working directory ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** shutdown network ......... # Running operation: ****************************************** cleanup working directory ...... # STATS ******************************************************* minifab: ok=32 failed=0 real 0m20.813s user 0m17.790s sys 0m3.011s

skulos (Thu, 08 Oct 2020 12:17:46 GMT):
Then I deleted the docker image

skulos (Thu, 08 Oct 2020 12:17:46 GMT):
Then I deleted the docker image and then I ran update

skulos (Thu, 08 Oct 2020 12:17:46 GMT):
*Then I deleted the docker image and then I ran update*

skulos (Thu, 08 Oct 2020 12:18:12 GMT):
$ ./minifab update Using default spec file Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=172.23.0.248 WORKING_DIRECTORY: /home/hendreh/mywork ... # Preparing for the following operations: ********************* verify options, update Minifabric ................. # Running operation: ****************************************** verify options . # Running operation: ****************************************** update Minifabric ... # Minifabric update succeeded ********************************* "Latest Windows script is vars/minifab.cmd" "Latest Linux and OS X script is vars/minifab" "Replace your existing minifab script with the one for your system" # STATS ******************************************************* minifab: ok=29 failed=0 real 0m9.228s user 0m6.058s sys 0m0.905s

skulos (Thu, 08 Oct 2020 12:18:12 GMT):
./minifab update Using default spec file Unable to find image 'hyperledgerlabs/minifab:latest' locally latest: Pulling from hyperledgerlabs/minifab df20fa9351a1: Already exists d0f029206413: Pull complete 6f963bb304b2: Pull complete 55118b3327e1: Pull complete fd3d1be34328: Pull complete Digest: sha256:8910cf60e691b935cc8a4a052cd26ad59a011a8f53d328b836e2f1ad452bd6d0 Status: Downloaded newer image for hyperledgerlabs/minifab:latest Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=172.23.0.248 WORKING_DIRECTORY: /home/hendreh/mywork ... # Preparing for the following operations: ********************* verify options, update Minifabric ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** update Minifabric ... # Minifabric update succeeded ********************************* "Latest Windows script is vars/minifab.cmd" "Latest Linux and OS X script is vars/minifab" "Replace your existing minifab script with the one for your system" # STATS ******************************************************* minifab: ok=19 failed=0 real 0m7.381s user 0m4.667s sys 0m0.789s

skulos (Thu, 08 Oct 2020 12:18:12 GMT):
$ ./minifab update Using default spec file Unable to find image 'hyperledgerlabs/minifab:latest' locally latest: Pulling from hyperledgerlabs/minifab df20fa9351a1: Already exists d0f029206413: Pull complete 6f963bb304b2: Pull complete 55118b3327e1: Pull complete fd3d1be34328: Pull complete Digest: sha256:8910cf60e691b935cc8a4a052cd26ad59a011a8f53d328b836e2f1ad452bd6d0 Status: Downloaded newer image for hyperledgerlabs/minifab:latest Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=172.23.0.248 WORKING_DIRECTORY: /home/hendreh/mywork ... # Preparing for the following operations: ********************* verify options, update Minifabric ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** update Minifabric ... # Minifabric update succeeded ********************************* "Latest Windows script is vars/minifab.cmd" "Latest Linux and OS X script is vars/minifab" "Replace your existing minifab script with the one for your system" # STATS ******************************************************* minifab: ok=19 failed=0 real 0m7.381s user 0m4.667s sys 0m0.789s

skulos (Thu, 08 Oct 2020 12:18:12 GMT):
*$ ./minifab update* Using default spec file Unable to find image 'hyperledgerlabs/minifab:latest' locally latest: Pulling from hyperledgerlabs/minifab df20fa9351a1: Already exists d0f029206413: Pull complete 6f963bb304b2: Pull complete 55118b3327e1: Pull complete fd3d1be34328: Pull complete Digest: sha256:8910cf60e691b935cc8a4a052cd26ad59a011a8f53d328b836e2f1ad452bd6d0 Status: Downloaded newer image for hyperledgerlabs/minifab:latest Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=172.23.0.248 WORKING_DIRECTORY: /home/hendreh/mywork ... # Preparing for the following operations: ********************* verify options, update Minifabric ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** update Minifabric ... # Minifabric update succeeded ********************************* "Latest Windows script is vars/minifab.cmd" "Latest Linux and OS X script is vars/minifab" "Replace your existing minifab script with the one for your system" # STATS ******************************************************* minifab: ok=19 failed=0 real 0m7.381s user 0m4.667s sys 0m0.789s

tongli (Thu, 08 Oct 2020 12:21:25 GMT):
Now use the new script in vars directory to replace your old one

tongli (Thu, 08 Oct 2020 12:21:38 GMT):
As the output says

skulos (Thu, 08 Oct 2020 12:26:52 GMT):
I did. I moved the minifab script from inside vars one directory up. Also ran `chmod +x minifab`

tongli (Thu, 08 Oct 2020 12:27:15 GMT):
Good. You should be good to go then.

skulos (Thu, 08 Oct 2020 12:28:06 GMT):
> Executing task: docker logs -f 92517f41b2f78643d0f884c10f26560ff4a48f6fb00b5c5d37afd4fdb0b156f9 < internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module '/opt/explorer/main.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) Terminal will be reused by tasks, press any key to close it.

skulos (Thu, 08 Oct 2020 12:28:06 GMT):
```> Executing task: docker logs -f 92517f41b2f78643d0f884c10f26560ff4a48f6fb00b5c5d37afd4fdb0b156f9 < internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module '/opt/explorer/main.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) Terminal will be reused by tasks, press any key to close it.```

skulos (Thu, 08 Oct 2020 12:28:36 GMT):
Container hyperledger/explorer:latest stopped

tongli (Thu, 08 Oct 2020 12:29:40 GMT):
You still use the wrong image.

tongli (Thu, 08 Oct 2020 12:30:15 GMT):
The latest should be using explorer:1.1.2

tongli (Thu, 08 Oct 2020 12:30:36 GMT):
Do a cat minifab script which you were using

tongli (Thu, 08 Oct 2020 12:30:43 GMT):
And copy content here

skulos (Thu, 08 Oct 2020 12:31:05 GMT):
``` ```

skulos (Thu, 08 Oct 2020 12:31:08 GMT):
$ cat minifab #!/bin/bash [ ! -d "$(pwd)/vars" ] && mkdir vars ADDRS=$(ifconfig|grep 'inet '|grep -v '\.1 '|tr -s ' '|awk '{$1=$1};1'|cut -d ' ' -f 2|cut -d '/' -f 1|paste -sd "," -|sed s/addr://g) if [ -f "$(pwd)/spec.yaml" ]; then echo "Using spec file: $(pwd)/spec.yaml" docker run --rm --name minifab -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/vars:/home/vars \ -v $(pwd)/spec.yaml:/home/spec.yaml -e "ADDRS=$ADDRS" hyperledgerlabs/minifab:latest /home/main.sh "$@" else echo "Using default spec file" docker run --rm --name minifab -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/vars:/home/vars \ -e "ADDRS=$ADDRS" hyperledgerlabs/minifab:latest /home/main.sh "$@" fi ``` ```

skulos (Thu, 08 Oct 2020 12:31:08 GMT):
``` $ cat minifab #!/bin/bash [ ! -d "$(pwd)/vars" ] && mkdir vars ADDRS=$(ifconfig|grep 'inet '|grep -v '\.1 '|tr -s ' '|awk '{$1=$1};1'|cut -d ' ' -f 2|cut -d '/' -f 1|paste -sd "," -|sed s/addr://g) if [ -f "$(pwd)/spec.yaml" ]; then echo "Using spec file: $(pwd)/spec.yaml" docker run --rm --name minifab -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/vars:/home/vars \ -v $(pwd)/spec.yaml:/home/spec.yaml -e "ADDRS=$ADDRS" hyperledgerlabs/minifab:latest /home/main.sh "$@" else echo "Using default spec file" docker run --rm --name minifab -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/vars:/home/vars \ -e "ADDRS=$ADDRS" hyperledgerlabs/minifab:latest /home/main.sh "$@" fi ```

tongli (Thu, 08 Oct 2020 12:32:17 GMT):
That is the latest.

skulos (Thu, 08 Oct 2020 12:32:34 GMT):
I've also delete all my docker images

tongli (Thu, 08 Oct 2020 12:32:47 GMT):
Make sure that is the sceilt you are using.

tongli (Thu, 08 Oct 2020 12:32:51 GMT):
Script

skulos (Thu, 08 Oct 2020 12:33:36 GMT):
Only terminal I've got open at the moment.

skulos (Thu, 08 Oct 2020 12:33:50 GMT):
And minifab isn't in my $PATH

tongli (Thu, 08 Oct 2020 12:34:36 GMT):
minifab cleanup, minifab up, minifab explorerup

tongli (Thu, 08 Oct 2020 12:34:44 GMT):
Try that sequence

tongli (Thu, 08 Oct 2020 12:36:12 GMT):
Hmmm, I saw what went wrong

tongli (Thu, 08 Oct 2020 12:36:28 GMT):
The changes made to fix the issue was lost somehere

tongli (Thu, 08 Oct 2020 12:36:37 GMT):
Sigh!

skulos (Thu, 08 Oct 2020 12:37:09 GMT):
Ok. Should I still post the output?

tongli (Thu, 08 Oct 2020 12:37:43 GMT):
This is really strange. I fixed that right after the issue was reported

tongli (Thu, 08 Oct 2020 12:38:45 GMT):
Ok. Not sure how comfortable you feel working with git, you can build minifab with a single command.

tongli (Thu, 08 Oct 2020 12:39:05 GMT):
But let me put up the fix again.

skulos (Thu, 08 Oct 2020 12:39:20 GMT):
If I manually set the tag somewhere in the repo I cloned this morning it works fine. It's just not the curl tinyURL approach that works.

tongli (Thu, 08 Oct 2020 12:39:40 GMT):
Ok.

tongli (Thu, 08 Oct 2020 12:40:11 GMT):
Yeah , you can pull down 1.1.2 image and tag it as latest, that will work for you

aguel (Thu, 08 Oct 2020 12:40:53 GMT):
@tongli i saw your changes yesterday, somehow i was looking for it in the labs repo, it was not there , but when i checked back on your repo, it was already forked to labs

tongli (Thu, 08 Oct 2020 12:41:32 GMT):
@aguel yeah. I do not know what happened.

tongli (Thu, 08 Oct 2020 12:41:54 GMT):
Will fix it up as soon as I am at my computer

rjones (Thu, 08 Oct 2020 12:42:01 GMT):
what needs fixed?

tongli (Thu, 08 Oct 2020 12:42:10 GMT):
You can also put up a pr. I can review and approve it

aguel (Thu, 08 Oct 2020 12:42:14 GMT):
i have mine forked from yours, too bad i forked it as well to labs

tongli (Thu, 08 Oct 2020 12:42:41 GMT):
@rjones the explorer latest image broke.

aguel (Thu, 08 Oct 2020 12:43:15 GMT):
@rjones by the way, thanks for all your work putting things to labs

tongli (Thu, 08 Oct 2020 12:43:16 GMT):
In one place we use hyperledger/explorer:latest , we need to replace latest with 1.1.2

tongli (Thu, 08 Oct 2020 12:43:28 GMT):
Two places, that is the fix

rjones (Thu, 08 Oct 2020 12:43:38 GMT):
OK will fix

tongli (Thu, 08 Oct 2020 12:44:12 GMT):
One is for explorer db, one is explorer, should be in one file

tongli (Thu, 08 Oct 2020 12:44:32 GMT):
I thought I fixed that.

aguel (Thu, 08 Oct 2020 12:45:14 GMT):
i guess it was in minifabric/playbooks/ops/explorerup/

tongli (Thu, 08 Oct 2020 12:45:56 GMT):
@rjones @aguel Ry is really good at this, he knows.

tongli (Thu, 08 Oct 2020 12:46:14 GMT):
I bet taking him a minute to put up PR.

rjones (Thu, 08 Oct 2020 12:46:14 GMT):
https://github.com/hyperledger-labs/minifabric/pull/98

tongli (Thu, 08 Oct 2020 12:46:20 GMT):
Haha

aguel (Thu, 08 Oct 2020 12:46:32 GMT):
@tongli i know, really appreciate his help putting things together

aguel (Thu, 08 Oct 2020 12:46:45 GMT):
@rjones that was quick :) thanks

rjones (Thu, 08 Oct 2020 12:47:15 GMT):
np

rjones (Thu, 08 Oct 2020 12:47:37 GMT):
something has changed in docker for windows, so I need to figure it out

tongli (Thu, 08 Oct 2020 12:48:11 GMT):
Approved but it is doing the checks

rjones (Thu, 08 Oct 2020 12:48:24 GMT):
yes, we should add mergify

tongli (Thu, 08 Oct 2020 12:48:46 GMT):
@rjones something changed for windows, what do you mean?

skulos (Thu, 08 Oct 2020 12:52:12 GMT):
(just a side note, it's not important, but the hyperledger/explorer-db:latest works, just not the hyperledger/explorer:latest ... but I suppose it's better to keep the version aligned)

rjones (Thu, 08 Oct 2020 12:52:50 GMT):
not sure. minifab is getting permissions problems right now after a docker update

tongli (Thu, 08 Oct 2020 12:52:55 GMT):
Right. We should use the 1.1.2, until we know what breaks

rjones (Thu, 08 Oct 2020 12:53:04 GMT):
```# Use fabric tools container to create channel artifacts ****** non-zero return code docker: Error response from daemon: mkdir C:Userss390xmywork: Access is denied. See 'docker run --help'. # STATS ******************************************************* minifab: ok=201 failed=1 real 0m52.148s user 0m43.729s sys 0m7.277s```

tongli (Thu, 08 Oct 2020 12:53:26 GMT):
Is this on windows?

rjones (Thu, 08 Oct 2020 12:53:35 GMT):
note that the director should be `c:\users\s390x\mywork\`

rjones (Thu, 08 Oct 2020 12:53:44 GMT):
yes, this is for windows

tongli (Thu, 08 Oct 2020 12:53:50 GMT):
Right.

tongli (Thu, 08 Oct 2020 12:54:03 GMT):
Just saw that.

tongli (Thu, 08 Oct 2020 12:54:51 GMT):
Interesting

tongli (Thu, 08 Oct 2020 12:55:01 GMT):
I will take a look on that issue

tongli (Thu, 08 Oct 2020 12:55:48 GMT):
Thanks Ry for checking it and fix the image issue

pkirkinezis (Thu, 08 Oct 2020 12:57:35 GMT):
Hi @tongli i downloaded and deployed the latest minifabric (because i was using the old one with cryptogen keys) . My java API gives an error PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors. The old version of minifabric worked great

pkirkinezis (Thu, 08 Oct 2020 12:57:46 GMT):
Is something i have to consider extra ?

pkirkinezis (Thu, 08 Oct 2020 12:57:52 GMT):
That i am not aware of ?

tongli (Thu, 08 Oct 2020 12:58:42 GMT):
Hmmm, I am not sure. @pkirkinezis

pkirkinezis (Thu, 08 Oct 2020 12:59:11 GMT):
As of java perspective https://stackoverflow.com/questions/23775155/pkix-path-does-not-chain-with-any-of-the-trust-anchors-error-in-windows-environm i found that

pkirkinezis (Thu, 08 Oct 2020 12:59:20 GMT):
is propable realted to ssl

pkirkinezis (Thu, 08 Oct 2020 13:01:32 GMT):
How are you generating the openssl keys ?

tongli (Thu, 08 Oct 2020 13:01:53 GMT):
The code is in the certgen directory

tongli (Thu, 08 Oct 2020 13:02:02 GMT):
You can take a look.

tongli (Thu, 08 Oct 2020 13:02:38 GMT):
The changes were made to accommodate some issues with no way adding SANs

tongli (Thu, 08 Oct 2020 13:03:04 GMT):
Should have been transparent to application

tongli (Thu, 08 Oct 2020 13:03:41 GMT):
Cryptogen won’t allow adding SANs for ca node.

tongli (Thu, 08 Oct 2020 13:04:05 GMT):
Which made it hard to use.

pkirkinezis (Thu, 08 Oct 2020 13:04:25 GMT):
yeah that true

tongli (Thu, 08 Oct 2020 13:04:39 GMT):
@rjones merged

tongli (Thu, 08 Oct 2020 13:05:28 GMT):
@skulos you can do an update in few minutes so that you do not have to mess with explorer image

tongli (Thu, 08 Oct 2020 13:06:28 GMT):
@pkirkinezis in terms of the Java stuff , I am not sure. I have tested it with node and go apps, no issue at all

tongli (Thu, 08 Oct 2020 13:08:19 GMT):
@rjones when you have time, can you add the new minifabric repo link for this channel announcement ?

tongli (Thu, 08 Oct 2020 13:08:33 GMT):
People always ask for that link.

rjones (Thu, 08 Oct 2020 13:09:48 GMT):
Minifab is a lab, check it out! https://github.com/hyperledger-labs/minifabric

rjones (Thu, 08 Oct 2020 13:09:48 GMT):
Discussion of minifab, the only way to run Fabric

pkirkinezis (Thu, 08 Oct 2020 13:10:42 GMT):
and something else

pkirkinezis (Thu, 08 Oct 2020 13:11:22 GMT):
when i run my api i use go.yaml file as an network config file. I now find out that you user ${ROOTPATH}.

rjones (Thu, 08 Oct 2020 13:12:06 GMT):
well maybe I goofed up the rewrite, dang

pkirkinezis (Thu, 08 Oct 2020 13:12:15 GMT):
i manually added my path to keyfiles in a folder on windows . Is that affecting the key validation ?

skulos (Thu, 08 Oct 2020 13:12:55 GMT):
@tongli @aguel @rjones thank you, will link the pr done by Ry and close the issue on github. Again, thanks.

rjones (Thu, 08 Oct 2020 13:14:15 GMT):
@skulos I want to let you know I really appreciated how well your bug report was written

pkirkinezis (Thu, 08 Oct 2020 13:19:46 GMT):
Is there a posibility java not accepting the openssl key because is self signed from a non trusted source?

tongli (Thu, 08 Oct 2020 13:20:23 GMT):
Should not be since the cryptogen produced certs are also self signed

rjones (Thu, 08 Oct 2020 13:23:54 GMT):
If the new folks could: 1) [set up an LFID like this](https://wiki.hyperledger.org/display/CA/Setting+up+an+LFID) 2) [make sure this page works for you when you have your LFID setup](https://myprofile.linuxfoundation.org/) I'd really appreciate it.

rjones (Thu, 08 Oct 2020 13:23:54 GMT):
If the new folks could: [make sure this page works for you when you have your LFID setup](https://myprofile.linuxfoundation.org/) I'd really appreciate it.

rjones (Thu, 08 Oct 2020 13:25:29 GMT):
(since you're in chat, I know you have an LFID)

pkirkinezis (Thu, 08 Oct 2020 13:28:11 GMT):
I don't know also how to search about this bug online. Strange

pkirkinezis (Thu, 08 Oct 2020 13:33:16 GMT):
NetworkConfig.CAInfo myCA = CAList.get(0); Properties props = new Properties(); props = myCA.getProperties(); props.put("allowAllHostNames", "true"); //USED TO CREATE KEYFILES FOR ADMIN HFCAClient caClient = HFCAClient.createNewInstance(myCA.getUrl(), props); CryptoSuite cryptoSuite = CryptoSuiteFactory.getDefault().getCryptoSuite(); caClient.setCryptoSuite(cryptoSuite); final EnrollmentRequest enrollmentRequestTLS = new EnrollmentRequest(); enrollmentRequestTLS.addHost(myCA.getUrl()); enrollmentRequestTLS.setProfile("tls"); Enrollment enrollment= caClient.enroll("admin", "adminpw",enrollmentRequestTLS); String key = Identities.toPemString(enrollment.getKey()); System.out.println(key); System.out.println("###############################"); System.out.println(enrollment.getCert());

pkirkinezis (Thu, 08 Oct 2020 13:34:03 GMT):
for your expierence i have to change something to the above . Because i has allowallhost to true and TLS enabled

pkirkinezis (Thu, 08 Oct 2020 13:34:18 GMT):
I also asked the guys in java sdk

tongli (Thu, 08 Oct 2020 13:37:07 GMT):
@rjones I just tested the latest on windows 10, with docker engine v19.03.12, use wsl 2 based engine, everything worked ok

tongli (Thu, 08 Oct 2020 13:37:17 GMT):
Did not see permission error

skulos (Thu, 08 Oct 2020 13:55:55 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=uqWhY9fsFPFSzPyjZ) As in how does the dashboard look and feel from a UI/UX perspective?

rjones (Thu, 08 Oct 2020 13:56:06 GMT):
yeah

rjones (Thu, 08 Oct 2020 14:00:17 GMT):
like, maybe add your github credentials to sign on and stuff

skulos (Thu, 08 Oct 2020 14:01:11 GMT):
:man_shrugging: Maybe a little button at the *Events I am Attending* similar to the `Enroll` button at *Training & Certifications* to get info about upcoming events

skulos (Thu, 08 Oct 2020 14:01:11 GMT):
:man_shrugging: Maybe a little button at the *Events I am Attending* similar to the `Enroll` button at *Training & Certifications* to get info about upcoming events to register for them

rjones (Thu, 08 Oct 2020 14:06:06 GMT):
I think that comes from cevent. not sure

tongli (Thu, 08 Oct 2020 14:06:54 GMT):
@rjones Thanks so much for changing the channel announcement. it is now very easy to take user there.

tongli (Thu, 08 Oct 2020 14:23:00 GMT):
@pkirkinezis just looked at the portainer,

tongli (Thu, 08 Oct 2020 14:23:06 GMT):
seems quite nice.

tongli (Thu, 08 Oct 2020 14:23:32 GMT):
but do not like the UI that much, wonder if there is anything similar to that in terms of functionnality.

tongli (Thu, 08 Oct 2020 14:26:28 GMT):
I've hooked it up with minifabric, it worked quite nice.

tongli (Thu, 08 Oct 2020 14:34:28 GMT):
very tempting to add it to minifabric

rjones (Thu, 08 Oct 2020 14:34:57 GMT):
what is it?

pkirkinezis (Thu, 08 Oct 2020 14:43:32 GMT):
Yeah minifabric it evolved to a quite necessery tool while 1. debugging chaincode reuqest . In my case I had to implement complex COUCHDB quries so ... 2. Log mechanism in portainer is handy for docker containers 3. It gave me the functionality to clone couchdb and access fauxrt UI of couchdb to check my SAVED COUCHDB documents .

pkirkinezis (Thu, 08 Oct 2020 14:43:32 GMT):
Yeah portainer it evolved to a quite necessery tool while 1. debugging chaincode reuqest . In my case I had to implement complex COUCHDB quries so ... 2. Log mechanism in portainer is handy for docker containers 3. It gave me the functionality to clone couchdb and access fauxrt UI of couchdb to check my SAVED COUCHDB documents .portainer

pkirkinezis (Thu, 08 Oct 2020 14:44:29 GMT):
@rjones https://github.com/portainer/portainer

tongli (Thu, 08 Oct 2020 14:44:31 GMT):

Screen Shot 2020-10-08 at 10.44.21 AM.png

tongli (Thu, 08 Oct 2020 14:44:47 GMT):
@rjones it is web based container management tool.

rjones (Thu, 08 Oct 2020 14:45:01 GMT):
nice

tongli (Thu, 08 Oct 2020 14:45:04 GMT):
I just booted it up.

pkirkinezis (Thu, 08 Oct 2020 14:45:17 GMT):
It is hasle free to set up

tongli (Thu, 08 Oct 2020 14:45:20 GMT):
I can see all the fabric containers, logs, networks, volumes etc.

pkirkinezis (Thu, 08 Oct 2020 14:45:22 GMT):
less than a minute

tongli (Thu, 08 Oct 2020 14:45:36 GMT):
we can do what we did for explorer.

tongli (Thu, 08 Oct 2020 14:45:50 GMT):
if user wants to use it, run `minifab portainerup`

tongli (Thu, 08 Oct 2020 14:46:02 GMT):
if does not want to use it, never need to touch that command.

pkirkinezis (Thu, 08 Oct 2020 14:46:22 GMT):
@tongli that is great . I will not have ti manually install it everytime now

pkirkinezis (Thu, 08 Oct 2020 14:46:24 GMT):
thanks !!!

tongli (Thu, 08 Oct 2020 14:46:42 GMT):
just thinking how we do that.

tongli (Thu, 08 Oct 2020 14:46:45 GMT):
have not done it.

tongli (Thu, 08 Oct 2020 14:47:02 GMT):
will have `minifab portainerup` and `minifab portaindown`

tongli (Thu, 08 Oct 2020 14:47:13 GMT):
should be really easy to do.

pkirkinezis (Thu, 08 Oct 2020 14:47:56 GMT):
The port has to be empty . So in a very complex hyperledger fabric network maybe port 9000 is not empty

tongli (Thu, 08 Oct 2020 14:48:28 GMT):
yeah, I do not want to add too many parameters though.

tongli (Thu, 08 Oct 2020 14:52:59 GMT):
@rjones Arnaud made an announcement just today.

tongli (Thu, 08 Oct 2020 14:54:28 GMT):
@rjones u ok with adding portainer command to minifabric?

rjones (Thu, 08 Oct 2020 14:54:40 GMT):
sure

tongli (Thu, 08 Oct 2020 14:54:43 GMT):
fairly easy to add and seems can help quite a bit.

tongli (Thu, 08 Oct 2020 14:54:52 GMT):
especially it has a user interface.

tongli (Thu, 08 Oct 2020 16:05:14 GMT):
https://github.com/hyperledger-labs/minifabric/pull/99

tongli (Thu, 08 Oct 2020 16:05:37 GMT):
@rjones @pkirkinezis @skulos the portainer ui integration. please see the PR ^^^

tongli (Thu, 08 Oct 2020 16:38:02 GMT):
Probably do a minifab update, then the portainerup and portainerdown will be available.

rjones (Thu, 08 Oct 2020 17:20:37 GMT):
https://wiki.hyperledger.org/pages/viewpage.action?pageId=41583107 I added a line about minifab

tongli (Thu, 08 Oct 2020 17:22:56 GMT):
I see it, thanks @rjones

tongli (Thu, 08 Oct 2020 18:32:12 GMT):
https://github.com/hyperledger-labs/minifabric/pull/100

tongli (Thu, 08 Oct 2020 18:33:30 GMT):
this PR is to make changes to use specific Explorer version in Minifabric. and it is now using 1.1.3 with this PR. also fixed the launch command parameters which cause the explorer flash quit issue earlier.

rjones (Thu, 08 Oct 2020 19:34:45 GMT):
https://old.reddit.com/r/hyperledger/comments/j7jszg/minifab_has_become_a_hyperledger_lab_help_us_make/?

tongli (Thu, 08 Oct 2020 19:53:45 GMT):
@rjones awesome , thanks

tongli (Thu, 08 Oct 2020 21:46:45 GMT):
@rjones what do you think about converting the minifab script to a small go program to compile it to binary targeting different os?

rjones (Thu, 08 Oct 2020 21:52:10 GMT):
More difficult to understand, but more portable

rjones (Thu, 08 Oct 2020 21:53:09 GMT):
It’s harder to hack on, since someone needs the whole golang build chain

tongli (Thu, 08 Oct 2020 21:57:36 GMT):
True.

tongli (Thu, 08 Oct 2020 21:57:47 GMT):
I will sit on it for now then.

tongli (Thu, 08 Oct 2020 21:58:41 GMT):
Normally I build go using golang container since docker is already available.

tongli (Thu, 08 Oct 2020 22:03:16 GMT):
@rjones ^^^

rjones (Fri, 09 Oct 2020 01:28:57 GMT):
Ah gotcha

rjones (Fri, 09 Oct 2020 02:07:37 GMT):
I'm not against it. Certainly, it would be more portable

pkirkinezis (Fri, 09 Oct 2020 06:35:35 GMT):
I solved the problem java sdk I had PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors. Something went wrong with the minifabric network . I did a test in a vmware machine and my java sdk is working fine with the latest minifabric .

pkirkinezis (Fri, 09 Oct 2020 06:37:41 GMT):
I don't know why minifabric I setup in the server is giving me this error . So i decided to clean everything up and start from the begginging on the server . And now everything works fine

pkirkinezis (Fri, 09 Oct 2020 06:37:57 GMT):
FIY the server is running on Azure a verion of Oracle Linux

skulos (Fri, 09 Oct 2020 10:09:55 GMT):

skulos - Fri Oct 09 2020 12:09:29 GMT+0200 (South Africa Standard Time).txt

skulos (Fri, 09 Oct 2020 10:11:25 GMT):
Good morning everyone. Has anyone tested the privatemarbles chaincode since the update? I've been trying to run it all morning. I seem to be getting an endosement error, even after I approved it to the channel via org0.example.com, ``` $ ./minifab approve,commit,initialize -p '' Using default spec file Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=privatemarbles CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS= CHAINCODE_PRIVATE=true CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=172.23.0.248 WORKING_DIRECTORY: /home/hendreh/episodic-demo-v5.0 ... # Preparing for the following operations: ********************* verify options, cc approve, cc commit, cc initialize ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** cc approve ...... # Running operation: ****************************************** cc commit ............. # Running operation: ****************************************** cc initialize ...... # STATS ******************************************************* minifab: ok=44 failed=0 real 0m17.363s user 0m8.427s sys 0m1.412s ```

skulos (Fri, 09 Oct 2020 10:11:25 GMT):
Good morning everyone. Has anyone tested the privatemarbles chaincode since the update? I've been trying to run it all morning. I seem to be getting an endorsement error, even after I approved it to the channel via org0.example.com, ``` $ ./minifab approve,commit,initialize -p '' Using default spec file Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=privatemarbles CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS= CHAINCODE_PRIVATE=true CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=172.23.0.248 WORKING_DIRECTORY: /home/hendreh/episodic-demo-v5.0 ... # Preparing for the following operations: ********************* verify options, cc approve, cc commit, cc initialize ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** cc approve ...... # Running operation: ****************************************** cc commit ............. # Running operation: ****************************************** cc initialize ...... # STATS ******************************************************* minifab: ok=44 failed=0 real 0m17.363s user 0m8.427s sys 0m1.412s ```

skulos (Fri, 09 Oct 2020 10:11:41 GMT):
Then I set the variable ` $ MARBLE=$( echo '{"name":"marble1","color":"blue","size":35,"owner":"tom","price":99}' | base64 | tr -d \\n ) `, followed by ``` $ ./minifab invoke -p '"initMarble"' -t '{"marble":"'$MARBLE'"}' Using default spec file Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=privatemarbles CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="initMarble" CHAINCODE_PRIVATE=true CHAINCODE_POLICY= TRANSIENT_DATA={"marble":"eyJuYW1lIjoibWFyYmxlMSIsImNvbG9yIjoiYmx1ZSIsInNpemUiOjM1LCJvd25lciI6InRvbSIsInByaWNlIjo5OX0K"} BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=172.23.0.248 WORKING_DIRECTORY: /home/hendreh/episodic-demo-v5.0 ... # Preparing for the following operations: ********************* verify options, cc invoke ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** cc invoke ............. # Run the chaincode invoke script on cli container ************ non-zero return code Error: endorsement failure during invoke. response: status:500 message:"Failed to get marble: GET_STATE failed: transaction ID: 2bbfc466805270bb350bd150f5be407892d9fa9a069aac1f2470e6caf29e3aad: collection mychannel/privatemarbles/collectionMarbles could not be found" # STATS ******************************************************* minifab: ok=28 failed=1 real 0m5.375s user 0m4.757s sys 0m0.983s ``` If I change the *privatemarbles_collection_config.json* I get errors about the config but that goes away if I change the config back to the original that minifab spits out : ``` $ ./minifab approve,commit,initialize -p '' Using default spec file Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=privatemarbles CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS= CHAINCODE_PRIVATE=true CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=172.23.0.248 WORKING_DIRECTORY: /home/hendreh/episodic-demo-v5.0 ... # Preparing for the following operations: ********************* verify options, cc approve, cc commit, cc initialize ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** cc approve ..... # Run the channel signing off script on cli container ********* non-zero return code Error: proposal failed with status: 500 - failed to invoke backing implementation of 'ApproveChaincodeDefinitionForMyOrg': error validating chaincode definition: collection-name: collectionMarbles -- collection member 'org0examplecom' is not part of the channel Error: proposal failed with status: 500 - failed to invoke backing implementation of 'ApproveChaincodeDefinitionForMyOrg': error validating chaincode definition: collection-name: collectionMarbles -- collection member 'org0examplecom' is not part of the channel # STATS ******************************************************* minifab: ok=22 failed=1 real 0m5.147s user 0m4.486s sys 0m0.774s ```

skulos (Fri, 09 Oct 2020 10:11:52 GMT):
Also, after the `discover` command, I get this as my *channel endorsement policy* ``` { "Chaincode": "privatemarbles", "EndorsersByGroups": { "G0": [ { "MSPID": "org1-example-com", "Endpoint": "peer1.org1.example.com:7051" }, { "MSPID": "org1-example-com", "Endpoint": "peer2.org1.example.com:7051" } ], "G1": [ { "MSPID": "org0-example-com", "Endpoint": "peer1.org0.example.com:7051" }, { "MSPID": "org0-example-com", "Endpoint": "peer2.org0.example.com:7051" } ] }, "Layouts": [ { "quantities_by_group": { "G0": 1, "G1": 1 } } ] } ```

skulos (Fri, 09 Oct 2020 10:13:10 GMT):
Is the error just a config I need to dig and sort out, or was there a change in the way `minifab` creates the *endorsement policy*?

skulos (Fri, 09 Oct 2020 10:14:58 GMT):
Explorer also sees the endorsement as *OK*: Transaction ID: c4820f58145e36c19f0d264369528ebf8ee3365d7e87005c105e256b2b035111 Validation Code: VALID Payload Proposal Hash: 613826c3168de459c846143b2fd580ffa8b27e0b61fd57b8bc8db921a3fc6025 Creator MSP: org0-example-com Endorser: {"org0-example-com","org1-example-com"} Chaincode Name: privatemarbles Type: ENDORSER_TRANSACTION Time: 2020-10-09T09:48:59.189Z

skulos (Fri, 09 Oct 2020 10:14:58 GMT):
Explorer also sees the endorsement as *OK*: ``` Transaction ID: c4820f58145e36c19f0d264369528ebf8ee3365d7e87005c105e256b2b035111 Validation Code: VALID Payload Proposal Hash: 613826c3168de459c846143b2fd580ffa8b27e0b61fd57b8bc8db921a3fc6025 Creator MSP: org0-example-com Endorser: {"org0-example-com","org1-example-com"} Chaincode Name: privatemarbles Type: ENDORSER_TRANSACTION Time: 2020-10-09T09:48:59.189Z ```

skulos (Fri, 09 Oct 2020 10:14:58 GMT):
Explorer also sees the endorsement as *OK*: ``` Transaction ID: c4820f58145e36c19f0d264369528ebf8ee3365d7e87005c105e256b2b035111 Validation Code: VALID Payload Proposal Hash: 613826c3168de459c846143b2fd580ffa8b27e0b61fd57b8bc8db921a3fc6025 Creator MSP: org0-example-com Endorser: {"org0-example-com","org1-example-com"} Chaincode Name: privatemarbles Type: ENDORSER_TRANSACTION Time: 2020-10-09T09:48:59.189Z ```

skulos (Fri, 09 Oct 2020 10:14:58 GMT):
Explorer also sees the endorsement as *OK*: ``` Transaction ID: c4820f58145e36c19f0d264369528ebf8ee3365d7e87005c105e256b2b035111 Validation Code: VALID Payload Proposal Hash: 613826c3168de459c846143b2fd580ffa8b27e0b61fd57b8bc8db921a3fc6025 Creator MSP: org0-example-com Endorser: {"org0-example-com","org1-example-com"} Chaincode Name: privatemarbles Type: ENDORSER_TRANSACTION Time: 2020-10-09T09:48:59.189Z ```

skulos (Fri, 09 Oct 2020 10:14:58 GMT):
Explorer also sees the endorsement as *OK*: ``` Transaction ID:**c4820f58145e36c19f0d264369528ebf8ee3365d7e87005c105e256b2b035111 Validation Code: VALID Payload Proposal Hash: 613826c3168de459c846143b2fd580ffa8b27e0b61fd57b8bc8db921a3fc6025 Creator MSP: org0-example-com Endorser: {"org0-example-com","org1-example-com"} Chaincode Name: privatemarbles Type: ENDORSER_TRANSACTION Time: 2020-10-09T09:48:59.189Z ```

skulos (Fri, 09 Oct 2020 10:49:56 GMT):
From explorer: ``` org0-example-com mychannel c4820f... ENDORSER_TRANSACTION privatemarbles 2020-10-09T09:48:59.189Z org0-example-com mychannel 06a08d... ENDORSER_TRANSACTION _lifecycle 2020-10-09T09:48:55.263Z org1-example-com mychannel 6492d8... ENDORSER_TRANSACTION _lifecycle 2020-10-09T09:48:51.019Z org0-example-com mychannel 490c15... ENDORSER_TRANSACTION _lifecycle 2020-10-09T09:48:48.849Z ```

tongli (Fri, 09 Oct 2020 11:49:13 GMT):
Mspid for org0.example.com is org0-example-com

tongli (Fri, 09 Oct 2020 11:49:39 GMT):
Your mspid is missing the dash, I think that is the problem

tongli (Fri, 09 Oct 2020 11:50:06 GMT):
Once upon a time, minifabric did that but that has been changed long time ago

tongli (Fri, 09 Oct 2020 11:50:47 GMT):
So org mspid is always the string with dot being replaced by dash

tongli (Fri, 09 Oct 2020 11:51:04 GMT):
Docs/readme.md has a section for it

tongli (Fri, 09 Oct 2020 12:37:03 GMT):
@skulos ^^^^

skulos (Fri, 09 Oct 2020 12:42:34 GMT):
mmm, sorry. I'm trying to fix it. I didn't change anything. I started with a clean directory and docker RT this morning. Ran the tinyURL cURL command. Did the update, swapped out the shells, add execution permission (+x) and started up the network with `./minifab up`

skulos (Fri, 09 Oct 2020 12:42:55 GMT):
I'm checking to see if I get the same results before the update command

skulos (Fri, 09 Oct 2020 12:47:40 GMT):
mmm, still getting that error before `./minifab update`

skulos (Fri, 09 Oct 2020 12:48:03 GMT):
@tongli I'll check out your suggestion now

skulos (Fri, 09 Oct 2020 12:50:31 GMT):
Do I still need to change the *privatemarbles_collection_config.json* file before running `./minifab approve,commit,initialize -p '' `

skulos (Fri, 09 Oct 2020 12:50:31 GMT):
Do I still need to change the *privatemarbles_collection_config.json* file before running `./minifab approve,commit,initialize -p '' ` ?

skulos (Fri, 09 Oct 2020 12:54:04 GMT):
I think that the *privatemarbles_collection_config.json* is the problem

skulos (Fri, 09 Oct 2020 12:54:23 GMT):
Testing my theory now

skulos (Fri, 09 Oct 2020 13:12:42 GMT):
:woo:

skulos (Fri, 09 Oct 2020 13:17:06 GMT):
@tongli I only changed the policy names from *collectionPublic* to *collectionMarbles* and the other policy too, left the actual policy in tack, i.e. left `"policy": "OR( 'org0-example-com.member', 'org1-example-com.member' )"` instead of changing it to `"policy": "OR( 'org0examplecom.member', 'org1examplecom.member' )"`

tongli (Fri, 09 Oct 2020 13:35:42 GMT):
@skulos that is right, the private collection name is specific per chaincode, minifabric can only create one so that you can use as a starting point, with different chaincode, you should change it to the way the chaincode expect.

skulos (Fri, 09 Oct 2020 13:38:20 GMT):
Ah. Makes so much sense. Thank you so much. I'm learning so much about HL Fabric using this tool. It's going to help my so much in the next few weeks when we start building our own network.

skulos (Fri, 09 Oct 2020 13:38:20 GMT):
Ah. Makes so much sense. Thank you so much. I'm learning so much about HL Fabric using this tool. It's going to help me so much in the next few weeks when we start building our own network.

tongli (Fri, 09 Oct 2020 13:40:01 GMT):
great. happy to help. and please spread the words about the tool and get more people using it so that the community grow and more people do not have to pull their hair out on small things. Also please check the channel often to help others with their questions.

skulos (Fri, 09 Oct 2020 13:45:11 GMT):
I'm going to check it everyday. It's loaded into my startup browser folder, and I'm telling everyone at work. I'm starting first, and later when my colleagues start with Fabric, this will be their starting point. And I'm going to use it for all our demos. I'll try and contribute where I can. :smile:

tongli (Fri, 09 Oct 2020 13:45:59 GMT):
@skulos great, great. I appreciate that.

rjones (Fri, 09 Oct 2020 16:31:26 GMT):
@skulos by being an active user, you are already contributing :)

tongli (Mon, 12 Oct 2020 18:08:03 GMT):
please review https://github.com/hyperledger-labs/minifabric/pull/101

rjones (Mon, 12 Oct 2020 18:31:31 GMT):
merged

tongli (Mon, 12 Oct 2020 18:42:33 GMT):
@rjones thanks very much!

rjones (Tue, 13 Oct 2020 06:46:32 GMT):
`portainer` is pretty ncie

rjones (Tue, 13 Oct 2020 06:46:32 GMT):
`portainer` is pretty nice

skulos (Tue, 13 Oct 2020 06:50:44 GMT):
It is right? I usually used the `docker ps` and VS Code Docker Plugin to check out running containers, but since @tongli and @pkirkinezis mentioned `Portainer` with all my Docker enviroments. I still a sucker for `Kube Ops View` for Kubernetes.

skulos (Tue, 13 Oct 2020 06:50:44 GMT):
It is right? I usually used the `docker ps` and VS Code Docker Plugin to check out running containers, but since @tongli and @pkirkinezis mentioned `Portainer`, I've been using it with all my Docker enviroments. I still a sucker for `Kube Ops View` for Kubernetes.

skulos (Tue, 13 Oct 2020 06:50:44 GMT):
It is right? I usually used the `docker ps` and VS Code Docker Plugin to check out running containers, but since @tongli and @pkirkinezis mentioned `Portainer`, I've been using it with all my Docker enviroments. I'm still a sucker for `Kube Ops View` for Kubernetes.

rjones (Tue, 13 Oct 2020 06:52:05 GMT):
I'd never used it until just now with minifab. I'm blown away by how easy it is

pkirkinezis (Tue, 13 Oct 2020 06:53:20 GMT):
xaxa you can thanks me later . I am in the middle of a proof of concept with 6 servers and 7 organization peers with total of 11 channels so portainer was mandatory

pkirkinezis (Tue, 13 Oct 2020 06:58:45 GMT):
beggining my journey I was doing everything manually playing with 6 vms between multiple machines(more than 1 instance in 1 machine was not available at the beggining of minifabric ) . You can imagine the struggle . Anyway portainer helped most with chaincode /smart contract debbuging

pkirkinezis (Tue, 13 Oct 2020 11:58:33 GMT):
@tongli @rjones Something else . Do minifabric checks for already taken ports when you expose_endopoints ?

pkirkinezis (Tue, 13 Oct 2020 11:59:38 GMT):
For example you running 2 instances of minifabric on the same computer with exposed ports . Do both minifabric networks will try to expose a peer to 7001 and return an error ?

pkirkinezis (Tue, 13 Oct 2020 12:01:25 GMT):
beacuse if i try it a get an error docker: Error response from daemon: driver failed programming external connectivity on endpoint peer1.learom.node6.com (7dd97c12fe4dc06deb496d932917b6ed50e3be3bc8d0925ba987a169532c7b59): Bind for 0.0.0.0:7001 failed: port is already allocated.

tongli (Tue, 13 Oct 2020 12:09:28 GMT):
@pkirkinezis not , it does not, but you can use -e 7001 or -e some number to start your site. Minifabric will use the number as a starting port to allocating sequentially to other containers

pkirkinezis (Tue, 13 Oct 2020 12:10:16 GMT):
o ok thanks

tongli (Tue, 13 Oct 2020 12:11:08 GMT):
@pkirkinezis for example, you can do the following things for different sites on same machine

tongli (Tue, 13 Oct 2020 12:11:25 GMT):
```minifab netup -e 7000```

tongli (Tue, 13 Oct 2020 12:11:27 GMT):
or

tongli (Tue, 13 Oct 2020 12:11:40 GMT):
```minifab netup -e 7200```

tongli (Tue, 13 Oct 2020 12:12:15 GMT):
doing the above, you start allocating 7000 for your first site, and 7200 for your second site on the same machine.

tongli (Tue, 13 Oct 2020 12:12:36 GMT):
of course, you can use this to avoid ports which may have already been allocated.

tongli (Tue, 13 Oct 2020 12:12:56 GMT):
minifabric runs inside a container and wont be able to see if a port has been taken.

pkirkinezis (Tue, 13 Oct 2020 12:13:08 GMT):
also cleanup how it is working in that situation ?

tongli (Tue, 13 Oct 2020 12:13:39 GMT):
cleanup mostly based on docker network.

pkirkinezis (Tue, 13 Oct 2020 12:14:14 GMT):
so it will cleanup the specific network based on spec.yaml?

tongli (Tue, 13 Oct 2020 12:14:26 GMT):
but it did a bit extra to remove chaincode images as well. which can fail when you have multiple sites on same machine.

tongli (Tue, 13 Oct 2020 12:14:51 GMT):
but that failure is ok, and would not impact anything.

pkirkinezis (Tue, 13 Oct 2020 12:15:02 GMT):
yeah i just realized that

tongli (Tue, 13 Oct 2020 12:15:39 GMT):
you could avoid that failure by simply use ```minifab down``` on one site.

tongli (Tue, 13 Oct 2020 12:15:50 GMT):
then do cleanup against each site.

pkirkinezis (Tue, 13 Oct 2020 12:16:03 GMT):
works like a churm . Another think i am trying to resolve .

pkirkinezis (Tue, 13 Oct 2020 12:17:42 GMT):
i have a minifab folder with the /vars . If i zip this folder and transfer it to another machine and trye to run ./minifab restart

pkirkinezis (Tue, 13 Oct 2020 12:17:45 GMT):
will it work ?

tongli (Tue, 13 Oct 2020 12:18:51 GMT):
it should work for most of the commands, but not network related.

tongli (Tue, 13 Oct 2020 12:19:07 GMT):
for example, it should work for explorer, and caliper.

tongli (Tue, 13 Oct 2020 12:19:29 GMT):
but it probably wont work for chaincode operations since you do not have cli container.

tongli (Tue, 13 Oct 2020 12:19:52 GMT):
even if you start up cli container, it wont work because the cli container wont be on the same network.

pkirkinezis (Tue, 13 Oct 2020 12:22:09 GMT):
ok . I accidentally recreated a the node 6 of my total 6 nodes

pkirkinezis (Tue, 13 Oct 2020 12:22:44 GMT):
i had 11 channels running on the net across servers . Is there any way to join the network from node 6

pkirkinezis (Tue, 13 Oct 2020 12:22:44 GMT):
?

tongli (Tue, 13 Oct 2020 12:23:27 GMT):
have no idea what you are talking about

pkirkinezis (Tue, 13 Oct 2020 12:25:51 GMT):
i had 6 servers with 1 node in each server .

pkirkinezis (Tue, 13 Oct 2020 12:27:02 GMT):
i had my network working with 11 channels across the nodes .

pkirkinezis (Tue, 13 Oct 2020 12:27:46 GMT):
For a test i took backup of server 6 node 6 zipping the folder and run cleanup netup .

pkirkinezis (Tue, 13 Oct 2020 12:29:57 GMT):
I thought reusing this zipped folder will work with ./minifab restart

tongli (Tue, 13 Oct 2020 12:31:20 GMT):
hmmm. you can try. but consider your container may need docker volumes. unless you have all volumes recreated, if you already have some data, I am not sure how it will work.

tongli (Tue, 13 Oct 2020 12:32:01 GMT):
but if this is just a small piece of the bigger network, these volumes can be rebuilt, it should work in that case.

tongli (Tue, 13 Oct 2020 12:32:12 GMT):
if this is the entire network, I would not think it will work.

pkirkinezis (Tue, 13 Oct 2020 13:36:03 GMT):
Yeah but how i can access the channels i was previusly joined?

pkirkinezis (Tue, 13 Oct 2020 13:36:16 GMT):
i can to join them again from the beggining ?

skulos (Tue, 13 Oct 2020 15:09:58 GMT):
@pkirkinezis https://github.com/hyperledger-labs/minifabric/tree/master/docs#add-a-new-organization-to-your-fabric-network

skulos (Tue, 13 Oct 2020 15:12:40 GMT):
Check out the vid on Youtube: https://youtu.be/c1Ab57IrgZg?t=544

rjones (Tue, 13 Oct 2020 15:13:45 GMT):
If you want to make short youtube videos for the hyperledger channel, let me know, @skulos (well, anybody, really)

tongli (Tue, 13 Oct 2020 15:15:00 GMT):
@skulos https://github.com/hyperledger-labs/minifabric/blob/master/docs/ExpandYourNetwork.md#join-orgxexamplecom-to-the-application-channel-with-the-following-step

tongli (Tue, 13 Oct 2020 15:15:09 GMT):
looks at this new way of doing it.

tongli (Tue, 13 Oct 2020 15:15:18 GMT):
takes a few seconds.

skulos (Tue, 13 Oct 2020 15:15:32 GMT):
Okay cool. I linked the minifabric vids, think @tongli still made them.

tongli (Tue, 13 Oct 2020 15:15:34 GMT):
use orgjoin method.

tongli (Tue, 13 Oct 2020 15:15:34 GMT):
use `minifab orgjoin`

rjones (Tue, 13 Oct 2020 15:15:56 GMT):
for some reason, the video you pointed to is unlisted, which makes me think it might be old

skulos (Tue, 13 Oct 2020 15:18:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=nGwea4FgBvzNvK5dt) Ooo, this looks really useful. Thank you.

skulos (Tue, 13 Oct 2020 15:19:46 GMT):
@rjones It's the vids on YouTube post earlier this year.

pkirkinezis (Tue, 13 Oct 2020 19:25:23 GMT):
Why you tagged me on that ?

pkirkinezis (Tue, 13 Oct 2020 19:27:10 GMT):
What was skulos question?

pkirkinezis (Tue, 13 Oct 2020 19:27:18 GMT):
i lost track

skulos (Wed, 14 Oct 2020 06:27:21 GMT):
It was to answer your question on how to make an organization join , so that you don't have to bring the whole network down, but rather just bring those orgs back online and make them join the appropriate channels. But check out @tongli 's post two posts down. There is a new way of doing it joining than the one I posted. Should be under explandNetwork in under docs in the minifabric repo.

pkirkinezis (Wed, 14 Oct 2020 07:19:28 GMT):
I was refering to the existing channels and the block data

pkirkinezis (Wed, 14 Oct 2020 07:21:00 GMT):
I think you can't do what i was refering to . In what described we will have to join the org like it was new org

pkirkinezis (Wed, 14 Oct 2020 07:22:11 GMT):
Also FIY @skulos i woudl recoment to verify your profile so you don't loose your acount

pkirkinezis (Wed, 14 Oct 2020 07:22:11 GMT):
Also FYI @skulos i woudl recoment to verify your profile so you don't loose your acount

skulos (Wed, 14 Oct 2020 07:33:14 GMT):
How do i do that?

pkirkinezis (Wed, 14 Oct 2020 07:33:51 GMT):
You go up left corner click on my acount

pkirkinezis (Wed, 14 Oct 2020 07:33:55 GMT):
and you have to add your email

skulos (Wed, 14 Oct 2020 07:36:32 GMT):
I get blank pages... :eyes:

pkirkinezis (Wed, 14 Oct 2020 07:36:41 GMT):
?

pkirkinezis (Wed, 14 Oct 2020 07:37:07 GMT):

Clipboard - October 14, 2020 10:37 AM

pkirkinezis (Wed, 14 Oct 2020 07:37:50 GMT):
cd ..

pkirkinezis (Wed, 14 Oct 2020 07:39:06 GMT):
@tongli i tried ./minifab restart on my zip minifab folder . But i get ERROR! Invalid callback for stdout specified:

pkirkinezis (Wed, 14 Oct 2020 07:39:13 GMT):
I guess is not working

skulos (Wed, 14 Oct 2020 07:41:30 GMT):

Screenshot from 2020-10-14 09-40-28.png

pkirkinezis (Wed, 14 Oct 2020 07:42:31 GMT):
:woo:

pkirkinezis (Wed, 14 Oct 2020 07:43:09 GMT):
I have no clue what is happening

skulos (Wed, 14 Oct 2020 07:53:09 GMT):
Ahah, but thanks anyway. Will figure it out later.

dustinle2309 (Thu, 15 Oct 2020 11:30:51 GMT):
Has joined the channel.

dustinle2309 (Thu, 15 Oct 2020 11:30:51 GMT):
Hi everyone. I see on this repo https://github.com/hyperledger/blockchain-explorer and follow it. I don't know why the start.sh call main.js file but don't have any main.js file

tongli (Thu, 15 Oct 2020 12:00:50 GMT):
@dustinle2309 that was a change explorer made from 1.1.2 to 1.1.3, update to latest minifab, you should be ok.

skulos (Thu, 15 Oct 2020 12:07:35 GMT):
@tongli from the #general channel sounds like he's reference a standalone HL Explorer deployment. Not a instance governed by a Minifab network.

skulos (Thu, 15 Oct 2020 12:07:35 GMT):
@tongli from the #general channel sounds like he's referring to a standalone HL Explorer deployment. Not a instance governed by a Minifab network.

skulos (Thu, 15 Oct 2020 12:07:35 GMT):
@tongli from the #general channel sounds like @dustinle2309 is referring to a standalone HL Explorer deployment. Not a instance governed by a Minifab network.

tongli (Thu, 15 Oct 2020 12:11:30 GMT):
@skulos @dustinle2309 right, in root cause is that the explorer latest image now switched to 1.1.3, it was based on 1.1.2 whose docker cmd was calling main.js, the latest 1.1.3 won’t, I guess explorer made quite some changes from 1.1.2 to 1.1.3 how to start the server.

tongli (Thu, 15 Oct 2020 12:11:30 GMT):
@skulos @dustinle2309 right, i guess that the root cause is that the explorer latest image now switched to 1.1.3, it was based on 1.1.2 whose docker cmd was calling main.js, the latest 1.1.3 won’t, I guess explorer made quite some changes from 1.1.2 to 1.1.3 how to start the server.

tongli (Thu, 15 Oct 2020 12:14:42 GMT):
@dustinle2309 if you use minifabric to stand up your network, you won’t need to worry about these@kind of errors, minifabric would take care of these tedious problem for you.

tongli (Thu, 15 Oct 2020 12:14:42 GMT):
@dustinle2309 if you use minifabric to stand up your network, you won’t need to worry about these@kind of errors, minifabric would take care of these tedious tasks for you.

skulos (Thu, 15 Oct 2020 12:15:42 GMT):
I did mention in that @dustinle2309 should try and take out the starting command that wants to run main.js, and check if that solves it.

skulos (Thu, 15 Oct 2020 12:15:42 GMT):
I did mention in #general that @dustinle2309 should try and take out the starting command that wants to run main.js, and check if that solves it.

skulos (Thu, 15 Oct 2020 12:16:21 GMT):
Maybe just post it to the #hyperledger-explorer channel too?

dustinle2309 (Thu, 15 Oct 2020 12:22:14 GMT):
@skulos So now, What should I do to run explorer? try to run ./start.sh without "node main.js" line code?

skulos (Thu, 15 Oct 2020 12:29:51 GMT):
Yes,

skulos (Thu, 15 Oct 2020 12:29:51 GMT):
Yes, it without the node main.js

skulos (Thu, 15 Oct 2020 12:29:51 GMT):
Yes, try it without the node main.js

dustinle2309 (Thu, 15 Oct 2020 12:35:51 GMT):

Clipboard - October 15, 2020 7:35 PM

dustinle2309 (Thu, 15 Oct 2020 12:36:34 GMT):
This is start.sh file

dustinle2309 (Thu, 15 Oct 2020 12:38:09 GMT):
if I run without node main.js, So what is file to run now, Skulos?

skulos (Thu, 15 Oct 2020 12:54:50 GMT):
From this repo (https://github.com/hyperledger/blockchain-explorer), if you configured the config files correctly, simple ``` $ docker-compose up ```

skulos (Thu, 15 Oct 2020 12:54:50 GMT):
From this repo (https://github.com/hyperledger/blockchain-explorer), if you configured the config files correctly, simply ``` $ docker-compose up ```

skulos (Thu, 15 Oct 2020 12:55:18 GMT):
Not sure if the ./start.sh is suppose to start Explorer.

skulos (Thu, 15 Oct 2020 13:00:21 GMT):
That's how I did it last time

skulos (Thu, 15 Oct 2020 13:41:59 GMT):
@dustinle2309 anything? Did you succeed?

dustinle2309 (Thu, 15 Oct 2020 14:42:07 GMT):
Yup. It run. But, I got a new error. I am trying to fix it.

skulos (Thu, 15 Oct 2020 15:31:13 GMT):
Great news.

robmurgai (Thu, 15 Oct 2020 15:57:32 GMT):
Has joined the channel.

davidkhala (Thu, 15 Oct 2020 16:25:32 GMT):
Has joined the channel.

davidkhala (Thu, 15 Oct 2020 16:28:29 GMT):
@tongli Hi Tong, I feel some issue are taken as stale in a too short waiting time. Would you consider applying an stale-bot powered by Github workflow? I can help to raise a simple PR for it.

tongli (Thu, 15 Oct 2020 16:37:49 GMT):
@davidkhala sure.

rjones (Fri, 16 Oct 2020 16:48:44 GMT):
I put another mention of minifab in `/dev/weekly`

tongli (Fri, 16 Oct 2020 18:09:14 GMT):
Thanks very much! Hope these really want to get things going can take a look at.

davidkhala (Sat, 17 Oct 2020 13:54:51 GMT):
Done, BTW, can you count me as committer?

tongli (Sat, 17 Oct 2020 17:56:50 GMT):
@davidkhala sure. I will ask Ry for that.

zilich (Sat, 17 Oct 2020 18:42:45 GMT):
with -е true, java chaincode cant install... ... # Preparing for the following operations: ********************* verify options, cc approve, cc commit, cc initialize, cc invoke ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** cc approve ...... # Running operation: ****************************************** cc commit ............. # Running operation: ****************************************** cc initialize ...... # Running operation: ****************************************** cc invoke ............. # Run the chaincode invoke script on cli container ************ non-zero return code Error: endorsement failure during invoke. response: status:500 message:"error in simulation: failed to execute transaction b030bfe795d92170d3838a5511f5bdc1f6e2951bf656e68d4e89bc6077bee5df: error sending: txid: b030bfe795d92170d3838a5511f5bdc1f6e2951bf656e68d4e89bc6077bee5df(mychannel) exists" # STATS ******************************************************* minifab: ok=59 failed=1 real 0m21.393s user 0m10.168s sys 0m2.133s Sat 17 Oct 2020 06:37:59 PM UTC Same code, worked with older version... And work whithout -e true...

zilich (Sat, 17 Oct 2020 18:44:52 GMT):
between test, I do cleanup...

zilich (Sat, 17 Oct 2020 19:19:01 GMT):
ok... work....possible is that parameter "-e true" isnt valid :)... When I put -e 7000 everything work as expected ...

zilich (Sun, 18 Oct 2020 08:48:04 GMT):
same code, which work on real linux(ubuntu), on virtual ubuntu report following error:

zilich (Sun, 18 Oct 2020 08:48:20 GMT):

image_2020_10_18T08_35_21_657Z.png

zilich (Sun, 18 Oct 2020 08:50:47 GMT):
How to change timeout values in miniFabric?

mvkillu (Mon, 19 Oct 2020 23:46:56 GMT):
https://github.com/hyperledger-labs/minifabric/blob/master/docs/README.md#update-the-channel-configuration

ashlinSajan (Wed, 21 Oct 2020 05:20:56 GMT):
Has joined the channel.

ashlinSajan (Wed, 21 Oct 2020 06:20:31 GMT):
Hi @SpecialAgentCooper trying to do minifab up.But getting the error # Run the chaincode install script on cli container *********** non-zero return code go: github.com/golang/protobuf@v1.3.1: Get "https://proxy.golang.org/github.com/golang/protobuf/@v/v1.3.1.mod": dial tcp: lookup proxy.golang.org on 127.0.0.11:53: read udp 127.0.0.1:59110->127.0.0.11:53: i/o timeout Error: failed to normalize chaincode path: 'go list' failed with: go: github.com/golang/protobuf@v1.3.1: Get "https://proxy.golang.org/github.com/golang/protobuf/@v/v1.3.1.mod": dial tcp: lookup proxy.golang.org on 127.0.0.11:53: read udp 127.0.0.1:50782->127.0.0.11:53: i/o timeout: exit status 1 Error: failed to read chaincode package at 'simple_go_1.0.tar.gz': open simple_go_1.0.tar.gz: no such file or directory # STATS ******************************************************* minifab: ok=345 failed=1 Could you please help me on this

dustinle2309 (Wed, 21 Oct 2020 08:47:19 GMT):
Thank you.

dustinle2309 (Wed, 21 Oct 2020 08:48:38 GMT):
Is there any document for me to connect SDK node with minifabric network? I really wanna.

pkirkinezis (Wed, 21 Oct 2020 08:49:26 GMT):
?

dustinle2309 (Wed, 21 Oct 2020 08:50:36 GMT):
Because I want to write API for minifabric.

pkirkinezis (Wed, 21 Oct 2020 08:51:20 GMT):
API dev is not minifabric specific.

dustinle2309 (Wed, 21 Oct 2020 08:53:46 GMT):
Ok. Thank you, P.

pkirkinezis (Wed, 21 Oct 2020 08:54:00 GMT):
read the manual for node sdk from hyperledger

pkirkinezis (Wed, 21 Oct 2020 08:54:08 GMT):
read the docs

dustinle2309 (Wed, 21 Oct 2020 08:54:37 GMT):
Yup. I think I should follow HL docs.

pkirkinezis (Wed, 21 Oct 2020 10:49:22 GMT):
This is for java **

pkirkinezis (Wed, 21 Oct 2020 10:49:24 GMT):
https://github.com/hyperledger/fabric-gateway-java

pkirkinezis (Wed, 21 Oct 2020 10:50:32 GMT):
in the newtwork config path there you enter the _go json or yaml file generated from minifabric

tongli (Wed, 21 Oct 2020 11:37:24 GMT):
@dustinle2309 please take a look at app/go directory, there is a go app, which uses minifabric generated connection profile, Java app should follow similar pattern. To run the app/go app, you just need to do minifab apprun command

tongli (Wed, 21 Oct 2020 11:37:44 GMT):
Please also see some of the docs in docs directory

tongli (Wed, 21 Oct 2020 11:40:16 GMT):
Minifabric creates connection profiles, you need to simply use the connection profile in your app, but your app should be able to connect to any fabric network, minifabric simply makes that process a bit easier by creating necessary connection files. If you use other means creating fabric network, you may have to manually create these connection files.

pkirkinezis (Wed, 21 Oct 2020 11:45:45 GMT):
Yeah as tongli said . I was reffering to java because i have prior knownledge

tongli (Wed, 21 Oct 2020 12:00:21 GMT):
Minifabric created fabric network should have no differences than other tools created fabric network, an app written using any sdk should be able to connect to any such network. Your app should not be developed in a way which depends on some things special about minifabric which has none since minifabric created fabric network is truly a functional production grade fabric network.

pkirkinezis (Wed, 21 Oct 2020 12:02:17 GMT):
@tongli would apprun work with java ?

pkirkinezis (Wed, 21 Oct 2020 12:02:29 GMT):
I think it's not supported

pkirkinezis (Wed, 21 Oct 2020 12:02:40 GMT):
you state node / go the docs

pkirkinezis (Wed, 21 Oct 2020 12:03:35 GMT):
* Sorry fot he off topic question *

pkirkinezis (Wed, 21 Oct 2020 12:03:35 GMT):
* Sorry for he off topic question *

SpecialAgentCooper (Wed, 21 Oct 2020 14:12:03 GMT):
I'm not certain but it looks like you either can't access the golang urls listed above (which is used by chaincode builders) or your 'vars' directory is not set up correctly. Try looking through the container logs. Are you on a restricted network?

claudiocebpaz (Wed, 21 Oct 2020 20:45:09 GMT):
Has joined the channel.

claudiocebpaz (Wed, 21 Oct 2020 20:45:30 GMT):
Hello. This is Claudio from Hyperledger LatinAmerican Chapter.

rjones (Wed, 21 Oct 2020 20:46:11 GMT):
howdy!

claudiocebpaz (Wed, 21 Oct 2020 20:47:04 GMT):
Hello, @rjones . This is a very cool tool. I'm creating new projects using minifabric. It really helps!!

claudiocebpaz (Wed, 21 Oct 2020 20:47:37 GMT):
Congratulations, @everybody.

rjones (Wed, 21 Oct 2020 20:48:00 GMT):
@tongli has built a great tool for us all :)

claudiocebpaz (Wed, 21 Oct 2020 21:21:52 GMT):
Is there a way to manage docker volumes and docker networks directly from mini fab? Every time I do a cleanup and a new up, a new docker network is created with a random name. Can I specify the name?

claudiocebpaz (Wed, 21 Oct 2020 21:22:36 GMT):
Something like a "docker-compose-override.yml"

claudiocebpaz (Wed, 21 Oct 2020 21:22:40 GMT):
?

tongli (Wed, 21 Oct 2020 23:13:56 GMT):
No, only support node and Java

tongli (Wed, 21 Oct 2020 23:13:56 GMT):
No, only support node and go

tongli (Wed, 21 Oct 2020 23:14:19 GMT):
You can add Java support

tongli (Wed, 21 Oct 2020 23:17:32 GMT):
@claudiocebpaz minifab purposely not allow user to mess with its created volumes. If you want to keep the volume, you do minifab down not minifab cleanup, that way only docker containers will be removed, all data remains. If you do minifab cleanup, then everything will be removed.

claudiocebpaz (Wed, 21 Oct 2020 23:18:59 GMT):
ok. Thanks.

claudiocebpaz (Wed, 21 Oct 2020 23:19:32 GMT):
What about network? Is there a way to have a specific named network?

claudiocebpaz (Wed, 21 Oct 2020 23:20:33 GMT):
It could be usefull to add another container with an API to access the peers

tongli (Thu, 22 Oct 2020 01:03:07 GMT):
No, there is really no such thing as network name. Minifabric uses a hash code of the current working directory to name the docker network, as long as the current working directory stays the same, that name will stay the same.

tongli (Thu, 22 Oct 2020 01:03:44 GMT):
Not really sure why you mean by with an API access, can you elaborate a bit more on this?

tongli (Thu, 22 Oct 2020 01:03:44 GMT):
Not really sure what you mean by with an API access, can you elaborate a bit more on this?

sichen (Thu, 22 Oct 2020 01:42:55 GMT):
Has joined the channel.

dustinle2309 (Thu, 22 Oct 2020 02:15:46 GMT):
Hi everybody, May I custom minifabric and how to do that? help me. Because I just wanna use 01 orderer.

ashlinSajan (Thu, 22 Oct 2020 05:37:56 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=ea6s6tjt6yTXiYxdW) Yes I work in a restricted network.How to set the 'vars' directory?Thanks for your help

pkirkinezis (Thu, 22 Oct 2020 06:09:12 GMT):
I will try to find time and do a PR .

pkirkinezis (Thu, 22 Oct 2020 06:11:19 GMT):
If you want to use only 1 orderer change spec.yaml and only have 1 orderer inside and not three . It applies the same principle as organization nodes in spec.yaml

pkirkinezis (Thu, 22 Oct 2020 06:13:11 GMT):
I am not 100% but you can pre build custom docker containers with go lang libraries pre downloaded .I never done it but we had a github issue i long time ago with the same thing.

pkirkinezis (Thu, 22 Oct 2020 06:13:55 GMT):
If you read the docs in minifabric it states how to build custom docker containers

dustinle2309 (Thu, 22 Oct 2020 07:17:01 GMT):
How to change post for each peer in minifabric? Pls, help me.

dustinle2309 (Thu, 22 Oct 2020 07:17:01 GMT):
How to change port for each peer in minifabric? Pls, help me.

pkirkinezis (Thu, 22 Oct 2020 09:40:17 GMT):
@tongli orgjoin will read multiple join files at once ?

SpecialAgentCooper (Thu, 22 Oct 2020 10:45:51 GMT):
You can also extend the dockerfile with your network certificate bundle, which is what I do for the fabric-nodeenv container. You'll have to figure out what you need to do to the Dockerfile yourself (it's different depending on your network setup, I got help from our DevOps guys) but once you have it see this section of the docks to use it with minifab https://github.com/hyperledger-labs/minifabric/tree/master/docs#working-with-customised-chaincode-builders

SpecialAgentCooper (Thu, 22 Oct 2020 10:45:51 GMT):
You can also extend the dockerfile with your network certificate bundle, which is what I do for the fabric-nodeenv container. You'll have to figure out what you need to do to the Dockerfile yourself (it's different depending on your network setup, I got help from our DevOps guys) but once you have it see this section of the docs to use it with minifab https://github.com/hyperledger-labs/minifabric/tree/master/docs#working-with-customised-chaincode-builders

tongli (Thu, 22 Oct 2020 11:17:55 GMT):
@dustinle2309 you only need ports when you want to expose these port outside of the docker network, in that case use -e startportno , for example -e 7300, this way, minifabric will use port 7300 as a starting port to allocate ports to ca, peer, orderer nodes. You need to make sure you have a block of ports not being used by any app, otherwise your setup will fail obviously.

tongli (Thu, 22 Oct 2020 11:19:09 GMT):
In terms of the vars directory, it gets created under your working directory which can be any directory you like, normally the working directory is ~/mywork, but that can be any directory.

tongli (Thu, 22 Oct 2020 11:20:43 GMT):
Directory vars is just a directory Minifabric creates, that can not be changed and there is no reason why you need to customize it. Like under Linux, you should not use /etc or under windows you should not use /system32

tongli (Thu, 22 Oct 2020 11:24:08 GMT):
Orgjoin only uses one org request a time.@pkirkinezis

dustinle2309 (Thu, 22 Oct 2020 15:10:39 GMT):

Clipboard - October 22, 2020 10:10 PM

dustinle2309 (Thu, 22 Oct 2020 15:11:05 GMT):
Hi everybody, I got this error. :( how to resolve that?

tongli (Thu, 22 Oct 2020 15:16:07 GMT):
@dustinle2309 open an issue against minifabric with detailed steps how this error was found, then someone can take a look at it. please provide as much information as you can especially the env. firewall, etc

tongli (Thu, 22 Oct 2020 15:17:20 GMT):
typiecally this kind of error may indicate that you may not have necessary port open, but I am really just guessing not knowing what env you are using and firewall settings, docker versions, etc

dustinle2309 (Thu, 22 Oct 2020 15:19:00 GMT):
Oh, Oke. I will try it again.

sichen (Thu, 22 Oct 2020 17:07:03 GMT):
Hello! Thanks @tongli again for getting us up and running with minifabric a little while ago. Now I have another question: Can minifabric be used to deploy a production set up? I saw it in your readme but was wondering how you would do it?

tongli (Thu, 22 Oct 2020 17:09:37 GMT):
@sichen if you want to deploy fabric into production, you can certainly use minifabric, what is important is that you probably want to use your own certificates. in that sense, you will need to organize your certs in a structure just like how currently minifabric layout these certificates.

tongli (Thu, 22 Oct 2020 17:10:18 GMT):
as long as there is a set of cert files in the vars/keyfiles directory, then minifabric wont generate a set for you.

tongli (Thu, 22 Oct 2020 17:10:35 GMT):
so the nodes will be all start up using the provided certificates.

tongli (Thu, 22 Oct 2020 17:10:52 GMT):
other than that, I do not see any other things that you will have to do

tongli (Thu, 22 Oct 2020 17:11:28 GMT):
minifabric uses docker volumes , you just need to configure your docker to make sure that you have plenty of spaces.

sichen (Thu, 22 Oct 2020 17:13:46 GMT):
OK thanks! I'll spend some more time looking at it.

said_shah (Fri, 23 Oct 2020 13:20:06 GMT):
Has joined the channel.

said_shah (Fri, 23 Oct 2020 13:20:07 GMT):
@tongli Hi, I do not see any documentation in minifab explaining how we can create a wallet and add identities to the wallet or how we can generate wallet files. Can you please explain the commands we need for this process?

tongli (Fri, 23 Oct 2020 13:21:12 GMT):
command is `minifab profilegen`, results will be in vars/profiles I think.

tongli (Fri, 23 Oct 2020 13:22:13 GMT):
@said_shah command help is part of the code , run `minifab` to see all available commands.

tongli (Fri, 23 Oct 2020 13:22:28 GMT):
which is part of the readme doc

said_shah (Fri, 23 Oct 2020 13:23:34 GMT):
ok thank you

said_shah (Fri, 23 Oct 2020 14:46:43 GMT):

Clipboard - October 23, 2020 10:46 AM

said_shah (Fri, 23 Oct 2020 14:47:06 GMT):
Does anyone know why I am getting this error, I'm trying to connect and make transactions

said_shah (Fri, 23 Oct 2020 14:48:50 GMT):
here is the file

said_shah (Fri, 23 Oct 2020 14:48:53 GMT):

Clipboard - October 23, 2020 10:48 AM

said_shah (Fri, 23 Oct 2020 14:49:51 GMT):
everything else is working fine and I am able to invoke transactions from the terminal, but I'm getting that error when I run the file to invoke transactions

aguel (Fri, 23 Oct 2020 15:19:41 GMT):
I supposed this is an issue of your API rather than minifabric, you might want to post your question in #fabric-sdk-node

said_shah (Fri, 23 Oct 2020 15:26:34 GMT):
ok thank you

zilich (Fri, 23 Oct 2020 17:56:47 GMT):
Next zoom meeting? https://www.youtube.com/watch?v=KM-HQvtd0E0

pkirkinezis (Mon, 26 Oct 2020 15:36:37 GMT):
@tongli

pkirkinezis (Mon, 26 Oct 2020 15:37:23 GMT):
Is there any way to add simutanlusly more than 1 organization ?

pkirkinezis (Mon, 26 Oct 2020 15:37:59 GMT):
Is this a good practive .. Maybe you have to add 3 sties on your network channel with chaincode .

pkirkinezis (Mon, 26 Oct 2020 16:31:21 GMT):
Something else how long ago did you fixed the commit command i was talking to the issue i had open . Now you looking the endorsers.json to commit including all the endorsing peers

tongli (Mon, 26 Oct 2020 16:33:57 GMT):
What is the point to add more than 1 org at the same time? Why can’t it be done one by one?

pkirkinezis (Mon, 26 Oct 2020 16:36:36 GMT):
For production porpose there is no point

pkirkinezis (Mon, 26 Oct 2020 16:37:29 GMT):
But when i am ttesting with to many sites on my machines and trying to experiment it takes times to add one by one every time you reset your network

pkirkinezis (Mon, 26 Oct 2020 16:39:46 GMT):
every time i reset the network .Also updating to latest minifabric i was mannualy fixing the ccommit.sh to add all the endorsers :P

ericmvaughn (Mon, 26 Oct 2020 18:34:31 GMT):
Is there a way to set the HOST_ADDRESS when setting EXPOSE_ENDPOINTS to true?

tongli (Mon, 26 Oct 2020 21:14:42 GMT):
@ericmvaughn currently the host address was automatically detected, you can see it can be wrong when a machine has so many nics, I am thinking that we can probably pass that in the spec file as an option. It will be super nice someone put up a PR.

ayeshperera (Tue, 27 Oct 2020 10:46:34 GMT):
Has joined the channel.

ayeshperera (Tue, 27 Oct 2020 10:46:34 GMT):
Hi All Am trying to start minifabric with a custom spec file. But am getting below error. Is this a known issue ? `./minifab -o nimble.efpf.com Using spec file: /home/ayesh/Pictures/blockchian/logistic-network/spec.yaml nimble.efpf.com is a not supported option `

ayeshperera (Tue, 27 Oct 2020 10:59:37 GMT):

Screenshot from 2020-10-27 11-59-24.png

skulos (Tue, 27 Oct 2020 12:05:23 GMT):
uhm, @ayeshperera the orgs name need to be the same.

skulos (Tue, 27 Oct 2020 12:06:36 GMT):
In the spec file you have ` nimble.example.com ` as the DNS, but in the command-line you give ` nimble.efpf.com `

skulos (Tue, 27 Oct 2020 12:06:55 GMT):
Since these 2 don't match, you should get an error.

skulos (Tue, 27 Oct 2020 12:08:38 GMT):
Either change the `spec.yaml` to use *efpf.com* instead of *example.com*, or change the command in the terminal : *./minifab -o nimble.example.com*

ayeshperera (Tue, 27 Oct 2020 12:34:16 GMT):
Oh am sorry for the confusion here am using ./minifab --organization nimble.example.com for sure

ayeshperera (Tue, 27 Oct 2020 12:34:16 GMT):
Oh am sorry for the confusion here am using ./minifab --organization nimble.example.com

skulos (Tue, 27 Oct 2020 12:37:03 GMT):
Do you still get an error when starting up? What happens if you run : ``` $ ./minifab -o nimble.example.com up ```

ayeshperera (Tue, 27 Oct 2020 12:37:22 GMT):
same error

ayeshperera (Tue, 27 Oct 2020 12:37:23 GMT):

nimble.example.com is a not supported option

ayeshperera (Tue, 27 Oct 2020 12:37:35 GMT):
this seems like an issue in the cli

ayeshperera (Tue, 27 Oct 2020 12:37:49 GMT):
https://github.com/hyperledger-labs/minifabric/blob/78d44facc6268cb9586d5cfdc7f5fd60ec088749/main.sh#L63

ayeshperera (Tue, 27 Oct 2020 12:40:17 GMT):
am not sure why it's taking value `nimble.example.com`

ayeshperera (Tue, 27 Oct 2020 12:40:22 GMT):
as an option

skulos (Tue, 27 Oct 2020 12:40:28 GMT):
Did you add `up` in the command when you ran the minifab script?

ayeshperera (Tue, 27 Oct 2020 12:41:19 GMT):
yes

skulos (Tue, 27 Oct 2020 12:44:54 GMT):
@ayeshperera I'll try and recreate the network now. But try and update the *minifab* script so long if you have not already done it. Run : ``` $ ./minifab update ``` And replace the ./minifab with ./vars/minifab , i.e. ``` $ mv ./vars/minifab . ```

skulos (Tue, 27 Oct 2020 12:44:54 GMT):
@ayeshperera I'll try and recreate the network now. But try and update the *minifab* script so long if you have not already done it. Run : ``` $ ./minifab update ``` And replace the ./minifab with ./vars/minifab , i.e. ``` $ rm minifab $ mv ./vars/minifab . $ chmod +x minfab ```

ayeshperera (Tue, 27 Oct 2020 12:46:30 GMT):
@skulos thanks alot

ayeshperera (Tue, 27 Oct 2020 12:46:32 GMT):
sure will do

skulos (Tue, 27 Oct 2020 12:51:43 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=JTNkHgMMrjrm7TmN4) I'm retyping your `spec.yaml` from the picture above, and can already say that it's wrong. Org *nimble* has 2 peers named peer1 and *efactory* has 2 peers named peer2. Try swapping those digit around to give nimble a peer1 and peer2, and efactory a peer1 and peer2. (FYI I totally missed it the first time, sorry about that)

skulos (Tue, 27 Oct 2020 12:59:17 GMT):
Okay, and the order of the command was the problem

skulos (Tue, 27 Oct 2020 12:59:17 GMT):
Okay @ayeshperera , so the order of the command was the problem

skulos (Tue, 27 Oct 2020 12:59:55 GMT):
The order should be : ``` $ ./minifab up -o nimble.example.com ```

skulos (Tue, 27 Oct 2020 13:00:21 GMT):
Not `-o nimble.example.com up`

skulos (Tue, 27 Oct 2020 13:00:21 GMT):
Not `-o nimble.example.com up` , that is, *up* first, then the org.

skulos (Tue, 27 Oct 2020 13:10:44 GMT):
@ayeshperera did you manage to get the network up?

ayeshperera (Tue, 27 Oct 2020 13:35:52 GMT):
Hi @skulos thanks alot for getting back soon give me a minute

ayeshperera (Tue, 27 Oct 2020 13:38:01 GMT):
exactly it works thanks alot for youre time to help

skulos (Tue, 27 Oct 2020 13:47:48 GMT):
Great stuff. Glad to hear you got the network up. If you run into any more problems or have anymore questions, just post them.

skulos (Tue, 27 Oct 2020 13:47:55 GMT):
:wink:

ayeshperera (Tue, 27 Oct 2020 13:48:44 GMT):
:thumbsup:

ericmvaughn (Tue, 27 Oct 2020 13:53:05 GMT):
@tongli The spec file does seem like a good place to put. I'll give it a try and see if I can figure out how to do it.

tongli (Tue, 27 Oct 2020 15:08:42 GMT):
@ericmvaughn that will be great. Minifabric has used a global variable ADDRS to hold the automatically detected ip addresses, and use the first one in the list for exposing the port. You can probably find all the places where that variable was used, then you have user specified from spec.yaml, you can probably define another variable to replace the ADDRS use when spec.yaml has the entry.

tongli (Tue, 27 Oct 2020 15:09:08 GMT):
Should not be too big A deal

rjones (Tue, 27 Oct 2020 15:09:34 GMT):
for some reason after the latest docker update on windows minifab no longer works.

rjones (Tue, 27 Oct 2020 15:12:05 GMT):
```# Running operation: ****************************************** generate certificates .......................................................................................................................................... # Use fabric tools container to create channel artifacts ****** non-zero return code docker: Error response from daemon: mkdir C:Userss390xmywork: Access is denied. See 'docker run --help'. # STATS ******************************************************* minifab: ok=201 failed=1```

rjones (Tue, 27 Oct 2020 15:12:24 GMT):
that is after `minifab cleanup` and `rd /s/q vars`

tongli (Tue, 27 Oct 2020 15:12:50 GMT):
Hmm, what version of docker?

tongli (Tue, 27 Oct 2020 15:13:03 GMT):
I think I have been using the latest docker.

tongli (Tue, 27 Oct 2020 15:13:17 GMT):
Is this on windows 10 with wsl 2?

rjones (Tue, 27 Oct 2020 15:13:24 GMT):
`v20.10.0-beta1`

rjones (Tue, 27 Oct 2020 15:13:36 GMT):
yes, same machine I've been using for a while

tongli (Tue, 27 Oct 2020 15:14:32 GMT):
Oh, the beta, I think there have been some issues regarding this version. I do not remember what needs to be done. I think there is some kind of flag that you have to turn off

tongli (Tue, 27 Oct 2020 15:14:41 GMT):
FUSE?

rjones (Tue, 27 Oct 2020 15:15:40 GMT):
OK. I have a linux machine to work on anyway.

tongli (Tue, 27 Oct 2020 15:16:01 GMT):
Let me dig the flag

tongli (Tue, 27 Oct 2020 15:19:28 GMT):
@rjones please take a look at this. https://lists.hyperledger.org/g/fabric/message/9108

tongli (Tue, 27 Oct 2020 15:20:12 GMT):
not completely sure if this is the root of the issue.

tongli (Tue, 27 Oct 2020 15:20:22 GMT):
but you can probably try that and see.

rjones (Tue, 27 Oct 2020 15:21:46 GMT):
will do

tongli (Tue, 27 Oct 2020 15:22:24 GMT):
thanks @rjones

zilich (Tue, 27 Oct 2020 15:28:41 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=oADpfpueqh7JB5d8t) last weekend, I see this, too... try it on two different WSL installation... have screenshots, if needed...

rjones (Tue, 27 Oct 2020 15:32:27 GMT):
OK, rolling back to the non-edge version fixed it, thanks

tongli (Tue, 27 Oct 2020 15:33:47 GMT):
@rjones great.

tongli (Tue, 27 Oct 2020 15:34:08 GMT):
Arnaud suggested not to use the beta version.

rjones (Tue, 27 Oct 2020 15:34:26 GMT):
I didn't realize I was until you asked

tongli (Tue, 27 Oct 2020 15:35:31 GMT):
sure, not a problem.

zilich (Tue, 27 Oct 2020 17:59:49 GMT):

anydesk00036.png

zilich (Tue, 27 Oct 2020 18:01:19 GMT):
If letters was to small: # Running operation: ****************************************** generate certificates .......................................................................................................................................... # Use fabric tools container to create channel artifacts ****** non-zero return code docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"/etc/hyperledger/fabric/run/certtxgen.sh\": stat /etc/hyperledger/fabric/run/certtxgen.sh: no such file or directory": unknown. # STATS ******************************************************* minifab: ok=211 failed=1

zilich (Tue, 27 Oct 2020 18:14:04 GMT):
I get only spec.yml from github... wget https://raw.githubusercontent.com/hyperledger-labs/minifabric/master/spec.yaml You can test such installation, too.

zilich (Tue, 27 Oct 2020 18:14:36 GMT):
after cleanup, I test and without -e ...

zilich (Tue, 27 Oct 2020 18:15:39 GMT):

Screenshot_354.jpg

tongli (Tue, 27 Oct 2020 18:57:17 GMT):
@zilich if you are using latest docker(beta), there is an issue with docker, you probably can tell the channel, what docker version you are using.

zilich (Tue, 27 Oct 2020 19:15:15 GMT):

Screenshot_356.jpg

zilich (Tue, 27 Oct 2020 19:15:15 GMT):

Screenshot_356.jpg

zilich (Tue, 27 Oct 2020 19:15:38 GMT):

Screenshot_357.jpg

zilich (Tue, 27 Oct 2020 19:15:38 GMT):

Screenshot_357.jpg

zilich (Tue, 27 Oct 2020 19:27:58 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=ByrNdu0wLbC3wdffH) Docker updated today :(

zilich (Tue, 27 Oct 2020 19:28:09 GMT):
maybe isnt beta?

rjones (Tue, 27 Oct 2020 19:33:43 GMT):
19.03.13 is the version I'm using

rjones (Tue, 27 Oct 2020 19:34:14 GMT):
but I'm also not using it within WSL2, I'm using it at the command prompt. I don't think running it within WSL2 is supported

zilich (Tue, 27 Oct 2020 19:34:53 GMT):

Screenshot_358.jpg

rjones (Tue, 27 Oct 2020 19:35:23 GMT):
yes, that is the exact version I'm running right now

zilich (Tue, 27 Oct 2020 19:35:23 GMT):

Screenshot_359.jpg

rjones (Tue, 27 Oct 2020 19:36:24 GMT):
```C:\Users\s390x\mywork>minifab stats Using default spec file Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=192.168.4.5,192.168.7.243 WORKING_DIRECTORY: /run/desktop/mnt/host/c/Users/s390x/mywork ... # Preparing for the following operations: ********************* verify options, network status ................. # Running operation: ****************************************** verify options . # Running operation: ****************************************** network status ...... # Docker node status ****************************************** portainer.2e8bf3da79_net : Exited (1) 4 hours ago explorer.2e8bf3da79_net : Up 4 hours explorerdb.2e8bf3da79_net : Up 4 hours (healthy) dev-peer2.org1.example.com-simple_1.0-87b0fa55d9dd : Up 4 hours dev-peer1.org0.example.com-simple_1.0-87b0fa55d9dd : Up 4 hours dev-peer2.org0.example.com-simple_1.0-87b0fa55d9dd : Up 4 hours dev-peer1.org1.example.com-simple_1.0-87b0fa55d9dd : Up 4 hours 2e8bf3da79_cli : Up 4 hours ca1.org1.example.com : Up 4 hours ca1.org0.example.com : Up 4 hours orderer3.example.com : Up 4 hours orderer2.example.com : Up 4 hours orderer1.example.com : Up 4 hours peer2.org1.example.com : Up 4 hours peer1.org1.example.com : Up 4 hours peer2.org0.example.com : Up 4 hours peer1.org0.example.com : Up 4 hours # Fabric network peer and orderer node health status ********** peer1.org0.example.com "OK" peer2.org0.example.com "OK" peer1.org1.example.com "OK" peer2.org1.example.com "OK" orderer1.example.com "OK" orderer2.example.com "OK" orderer3.example.com "OK" # STATS ******************************************************* minifab: ok=33 failed=0 real 0m3.921s user 0m3.300s sys 0m0.625s C:\Users\s390x\mywork>```

rjones (Tue, 27 Oct 2020 19:36:24 GMT):
```C:\Users\s390x\mywork>minifab stats Using default spec file Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=192.168.4.5,192.168.7.243 WORKING_DIRECTORY: /run/desktop/mnt/host/c/Users/s390x/mywork ... # Preparing for the following operations: ********************* verify options, network status ................. # STATS ******************************************************* minifab: ok=33 failed=0 real 0m3.921s user 0m3.300s sys 0m0.625s C:\Users\s390x\mywork>```

zilich (Tue, 27 Oct 2020 19:37:20 GMT):

Screenshot_360.jpg

zilich (Tue, 27 Oct 2020 19:38:37 GMT):
today installation...

rjones (Tue, 27 Oct 2020 19:38:48 GMT):
sure, I'm not sure what you're asking me.

rjones (Tue, 27 Oct 2020 19:38:55 GMT):
try it from the command prompt

zilich (Tue, 27 Oct 2020 19:39:55 GMT):
I will delete spec.yaml and make same test as you...

zilich (Tue, 27 Oct 2020 19:40:05 GMT):
maybe this is problem...

rjones (Tue, 27 Oct 2020 19:40:25 GMT):
well, you don't have to delete, just make a new directory

rjones (Tue, 27 Oct 2020 19:40:36 GMT):
grab the current minifab.cmd and run it in a new place

zilich (Tue, 27 Oct 2020 19:44:20 GMT):

Screenshot_361.jpg

rjones (Tue, 27 Oct 2020 19:44:55 GMT):
it looks like you're running it from within WSL2, which IIRC, isn't supported

zilich (Tue, 27 Oct 2020 19:45:22 GMT):
from power shell???

rjones (Tue, 27 Oct 2020 19:45:43 GMT):
https://chat.hyperledger.org/channel/fabric-mini?msg=gSayDR28rXBkJNJJB

rjones (Tue, 27 Oct 2020 19:45:47 GMT):
cmd.exe

zilich (Tue, 27 Oct 2020 19:46:36 GMT):
ok... last time I install it ... same procedures work...

zilich (Tue, 27 Oct 2020 19:46:45 GMT):
i will try as you say...

zilich (Tue, 27 Oct 2020 19:58:09 GMT):

anydesk00037.png

zilich (Tue, 27 Oct 2020 20:00:33 GMT):
Maybe this is solution, why i have problem with client java program :( ... different logic... :)

ericmvaughn (Wed, 28 Oct 2020 16:23:44 GMT):
@tongli I just submitted a PR to add endpoint configuration to the spec.yaml file. I'm new to ansible so take a close look at fabops.yaml to see if it's ok. Thanks

zhenbing (Wed, 28 Oct 2020 16:24:23 GMT):
Has joined the channel.

zhenbing (Wed, 28 Oct 2020 16:24:23 GMT):
@ericmvaughn :thumbsup:

rjones (Wed, 28 Oct 2020 18:10:41 GMT):
cool, I'm taking a look. Not sure how to get it consumed correctly yet :)

rjones (Wed, 28 Oct 2020 18:10:56 GMT):
ah, there it is.

tongli (Wed, 28 Oct 2020 18:12:27 GMT):
@rjones @ericmvaughn I've reviewed it but there is an issue with fabric 1.4.1 to 1.4.6 failing. I am not really sure it is due to this PR though. I think something else has changed.

tongli (Wed, 28 Oct 2020 18:12:43 GMT):
the Azure pipeline for 1.4.1 and 1.4.6 are failing. others tests are fine.

tongli (Wed, 28 Oct 2020 18:13:04 GMT):
that is the reason why I have not approved the PR. but I think this is due to other issues.

rjones (Wed, 28 Oct 2020 18:20:36 GMT):
I clobbered the PR by accident

rjones (Wed, 28 Oct 2020 18:20:41 GMT):
so I had to open https://github.com/hyperledger-labs/minifabric/pull/108

rjones (Wed, 28 Oct 2020 18:20:43 GMT):
sorry, I suck

rjones (Wed, 28 Oct 2020 18:21:48 GMT):
the change I wanted to propose was line 27 of spec.yaml: https://github.com/hyperledger-labs/minifabric/pull/108/files

rjones (Wed, 28 Oct 2020 18:22:20 GMT):
changing the formatting to make it clear the correct indent for `endpoint_address`

pkirkinezis (Wed, 28 Oct 2020 18:23:03 GMT):
@rjones is this affects and existing up and running network?

tongli (Wed, 28 Oct 2020 18:23:06 GMT):
@rjones the endpoint_address setting should be similar to goproxy

rjones (Wed, 28 Oct 2020 18:23:06 GMT):
But I did test the change, and it worked.

tongli (Wed, 28 Oct 2020 18:24:05 GMT):
yeah, I think that the PR is fine. can be merged.

rjones (Wed, 28 Oct 2020 18:24:08 GMT):
the indent didn't make it clear to me what the correct indent level was. I was going to ask a question, not try to delete the other PR

pkirkinezis (Wed, 28 Oct 2020 18:24:12 GMT):
I am thinking of a scenario you update your existing up and runnig network to latest minifab and then run ./minifab restart

tongli (Wed, 28 Oct 2020 18:24:17 GMT):
there should be another issue opened though.

tongli (Wed, 28 Oct 2020 18:24:53 GMT):
something has been happening breaking go chaincode instantiate on 1.4.1 to 1.4.6

rjones (Wed, 28 Oct 2020 18:25:11 GMT):
@ericmvaughn if you want to re-open another PR with your old content, please do. I'm really sorry I clobbered your other one

tongli (Wed, 28 Oct 2020 18:37:15 GMT):
@rjones I think that the PR is fine, I approved it.

tongli (Wed, 28 Oct 2020 18:37:25 GMT):
but can not merge, do not know why.

tongli (Wed, 28 Oct 2020 18:38:22 GMT):
two checks failed due to a different problem. I found the cause of the problem. that was due to the ccenv changes. sigh!

ericmvaughn (Wed, 28 Oct 2020 18:41:42 GMT):
I'm looking at the PR now and it appears open. Is there something I should do at this point?

tongli (Wed, 28 Oct 2020 18:42:08 GMT):
@ericmvaughn not really. it looks fine.

tongli (Wed, 28 Oct 2020 18:42:14 GMT):
but I can not merge for some reason.

tongli (Wed, 28 Oct 2020 18:42:59 GMT):
two checks failed, one for 1.4.1 and one for 1.4.6 both due to ccenv changes.

tongli (Wed, 28 Oct 2020 18:43:31 GMT):
which is not related to your PR. but it just happened that your PR triggered the tests and we found these issues.

ericmvaughn (Wed, 28 Oct 2020 18:43:44 GMT):
I tested with 1.4.4 and 2.2 before submitting it and didn't see the error

tongli (Wed, 28 Oct 2020 18:44:13 GMT):
yeah, it is possible that your 1.4.4 ccenv container image was a good one.

tongli (Wed, 28 Oct 2020 18:44:28 GMT):
if you have a clean system, without any ccenv image, you probably will hit the issue.

tongli (Wed, 28 Oct 2020 18:45:02 GMT):
I only tested 1.4.1 and 1.4.6, both broken. but it will be good if you remove your image ccenv and test 1.4.4

ericmvaughn (Wed, 28 Oct 2020 18:45:35 GMT):
I'll give it a try

tongli (Wed, 28 Oct 2020 18:46:43 GMT):
@rjones can not merge eric's PR, can you help?

tongli (Wed, 28 Oct 2020 18:47:09 GMT):
actually both you and eric.

rjones (Wed, 28 Oct 2020 18:48:16 GMT):
@tongli done

tongli (Wed, 28 Oct 2020 18:49:01 GMT):
thanks Ry. was it due to these two failed checks?

rjones (Wed, 28 Oct 2020 18:49:09 GMT):
yes

tongli (Wed, 28 Oct 2020 18:49:26 GMT):
ok, I c. let me fix these two real quick.

ericmvaughn (Wed, 28 Oct 2020 18:49:37 GMT):
Thanks Ry

tongli (Wed, 28 Oct 2020 18:49:38 GMT):
I like to support 1.4.1 and newer.

tongli (Wed, 28 Oct 2020 18:49:56 GMT):
that is the version since minifabric was started.

rjones (Wed, 28 Oct 2020 18:50:20 GMT):
I propose active LTS only

tongli (Wed, 28 Oct 2020 18:50:42 GMT):
I c.

rjones (Wed, 28 Oct 2020 18:50:48 GMT):
"we support the versions of Fabric IBM supports"

tongli (Wed, 28 Oct 2020 18:50:55 GMT):
@rjones

rjones (Wed, 28 Oct 2020 18:51:04 GMT):
1.4.whatever, 2.0.whatever, 2.2.whatever

rjones (Wed, 28 Oct 2020 18:51:19 GMT):
it is my preference, I'm not saying a requirement

tongli (Wed, 28 Oct 2020 18:51:49 GMT):
yeah. being a development tool, it is actually useful to support .x releases, so that people can get the latest as soon as it is out.

tongli (Wed, 28 Oct 2020 18:52:10 GMT):
let me get these two checks fixed.

rjones (Wed, 28 Oct 2020 18:52:36 GMT):
let me be more concrete: the latest release of 1.4 (which I think is 1.4.5), the latest of 2.0, the latest of 2.2, and whatever master is

tongli (Wed, 28 Oct 2020 18:52:58 GMT):
yeah, that is LTS, right?

rjones (Wed, 28 Oct 2020 18:53:11 GMT):
https://github.com/hyperledger/fabric/releases/tag/v2.2.1 https://github.com/hyperledger/fabric/releases/tag/v1.4.9

rjones (Wed, 28 Oct 2020 18:54:06 GMT):
https://github.com/hyperledger/fabric/releases/tag/v2.0.1

ericmvaughn (Wed, 28 Oct 2020 18:56:46 GMT):
@tongli I just got the error on 1.4.4 as you predicted

tongli (Wed, 28 Oct 2020 19:00:53 GMT):
@ericmvaughn yeah.

tongli (Wed, 28 Oct 2020 19:01:07 GMT):
that was the underly change made to ccenv, sigh!

tongli (Wed, 28 Oct 2020 19:01:17 GMT):
I am fixing it right now.

tongli (Wed, 28 Oct 2020 19:01:21 GMT):
should be done quickly

ericmvaughn (Wed, 28 Oct 2020 19:01:49 GMT):
OK great

ayeshperera (Wed, 28 Oct 2020 19:40:42 GMT):
Hi all is there a way to have the client application seprately. Outside minifabric network and connect to the nework. so from my client application am trying to invoke ca to enroll my admin user for the first use. But ca is inside the docker network seems like it's not accessible. Later on will be packaging the service as a container and will make sure to run on the same network but for the testing purposes am not sure how to test it out.

tongli (Wed, 28 Oct 2020 19:41:21 GMT):
@ayeshperera yes. when you setup your network use this flag

tongli (Wed, 28 Oct 2020 19:41:24 GMT):
-e true

ayeshperera (Wed, 28 Oct 2020 19:41:40 GMT):
Yeah I already exposed the endpoints

ayeshperera (Wed, 28 Oct 2020 19:42:13 GMT):
Using spec file: /home/ayesh/Pictures/blockchian/logistic-network/spec.yaml Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=node CHAINCODE_NAME=logistic-contract CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="getOrder","some id" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=true CURRENT_ORG=nimble.efpf.com HOST_ADDRESSES=172.16.18.166 WORKING_DIRECTORY: /home/ayesh/Pictures/blockchian/logistic-network

tongli (Wed, 28 Oct 2020 19:42:48 GMT):
ok. in your case, it used your private IP address.

tongli (Wed, 28 Oct 2020 19:42:57 GMT):
which is 172.16.18.166

tongli (Wed, 28 Oct 2020 19:43:11 GMT):
this IP address probably can not be access outside of your server.

ayeshperera (Wed, 28 Oct 2020 19:43:16 GMT):
ok so is it possible to change the host address

tongli (Wed, 28 Oct 2020 19:43:22 GMT):
right.

rjones (Wed, 28 Oct 2020 19:43:39 GMT):
that is the change that was merged today

tongli (Wed, 28 Oct 2020 19:43:47 GMT):
that is exactly what the PR does (what we have been talked about)

rjones (Wed, 28 Oct 2020 19:43:48 GMT):
like... 20 minutes ago

tongli (Wed, 28 Oct 2020 19:44:12 GMT):
you need to run `minifab update` command to get it

tongli (Wed, 28 Oct 2020 19:45:05 GMT):
@rjones got the PR up , it is to fix the issue for 1.4.1 to 1.4.6

tongli (Wed, 28 Oct 2020 19:45:11 GMT):
oneline code change basically.

tongli (Wed, 28 Oct 2020 19:45:17 GMT):
please take a look.

tongli (Wed, 28 Oct 2020 19:45:27 GMT):
I think that the test shall pass

ayeshperera (Wed, 28 Oct 2020 19:45:45 GMT):
:woo: awesome I will give it a try thanks alot @tongli and @rjones

tongli (Wed, 28 Oct 2020 19:45:58 GMT):
or not.

tongli (Wed, 28 Oct 2020 19:46:56 GMT):
crap. my PR broke 2.x

tongli (Wed, 28 Oct 2020 19:46:59 GMT):
sigh!

tongli (Wed, 28 Oct 2020 19:48:39 GMT):
@ayeshperera you need to make sure that the IP you specify in the spec.yaml file indeed used by the machine that you install fabric network on.

tongli (Wed, 28 Oct 2020 19:48:55 GMT):
you can not use an IP address which is foreign to the machine running fabric.

ayeshperera (Wed, 28 Oct 2020 19:51:56 GMT):
so am still testing it out locally where I have my chain-code working perfectly with minifabric and my application is also am still testing locally so I hope I can specify 127.0.0.1 in spec file. Sure when going for the vm will make sure to use the ip of the machine

tongli (Wed, 28 Oct 2020 20:13:30 GMT):
@rjones now this one should work, https://github.com/hyperledger-labs/minifabric/pull/110

tongli (Wed, 28 Oct 2020 20:13:42 GMT):
I've tested against 1.4.1, 1.4.6 and 2.2.0

tongli (Wed, 28 Oct 2020 20:23:50 GMT):
Thanks a lot @rjones

tongli (Wed, 28 Oct 2020 20:23:57 GMT):
we are back to green.

tongli (Wed, 28 Oct 2020 20:24:06 GMT):
for all the releases.

ayeshperera (Wed, 28 Oct 2020 20:51:41 GMT):
@tongli thanks for the fix btw still it takes the private address when setting up the network here is my spec file. `fabric: cas: - "ca1.nimble.efpf.com" - "ca1.efactory.efpf.com" peers: - "peer1.nimble.efpf.com" - "peer1.efactory.efpf.com" - "peer2.nimble.efpf.com" - "peer2.efactory.efpf.com" orderers: - "orderer1.efpf.com" - "orderer2.efpf.com" - "orderer3.efpf.com" settings: ca: FABRIC_LOGGING_SPEC: DEBUG peer: FABRIC_LOGGING_SPEC: DEBUG orderer: FABRIC_LOGGING_SPEC: DEBUG endpoint_address: "127.0.0.1" ` and the output ` Using spec file: /home/ayesh/Pictures/blockchian/logistic-network/spec.yaml Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=true CURRENT_ORG=nimble.efpf.com HOST_ADDRESSES=172.16.18.166 WORKING_DIRECTORY: /home/ayesh/Pictures/blockchian/logistic-network ` but something is going on in the end there is a dial up error `on channel creation phase non-zero return code 2020-10-28 20:47:53.868 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2020-10-28 20:47:53.894 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /vars/configtx.yaml 2020-10-28 20:47:53.894 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2020-10-28 20:47:53.896 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 004 Writing new channel tx Error: failed to create deliver client for orderer: orderer client failed to connect to 127.0.0.1:7006: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7006: connect: connection refused"`

ayeshperera (Wed, 28 Oct 2020 20:51:41 GMT):
@tongli thanks for the fix btw still it takes the private address when setting up the network here is my spec file. `fabric: endpoint_address: "127.0.0.1" ` and the output ` Using spec file: /home/ayesh/Pictures/blockchian/logistic-network/spec.yaml Minifab Execution Context: FABRIC_RELEASE=2.2.0 CHANNEL_NAME=mychannel PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="init","a","200","b","300" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=true CURRENT_ORG=nimble.efpf.com HOST_ADDRESSES=172.16.18.166 WORKING_DIRECTORY: /home/ayesh/Pictures/blockchian/logistic-network ` *but something is going on in the end there is a dial up error * `"transport: error while dialing: dial tcp 127.0.0.1:7006: connect: connection refused"`

tongli (Wed, 28 Oct 2020 21:28:49 GMT):
Is your app running on the machine or on other machine?

tongli (Wed, 28 Oct 2020 21:29:23 GMT):
The loop back address may not be used

ayeshperera (Wed, 28 Oct 2020 21:29:49 GMT):
same machine

ayeshperera (Wed, 28 Oct 2020 21:30:24 GMT):
so localhost basically wanted to test things out before moving o the cloud

ayeshperera (Wed, 28 Oct 2020 21:33:48 GMT):
I tried with my current ip for the machine it was the same :no_mouth:

ayeshperera (Wed, 28 Oct 2020 21:33:48 GMT):
I tried with my current public ip for the machine it was the same :no_mouth:

tongli (Wed, 28 Oct 2020 21:38:19 GMT):
Hmm, I am not sure then. You may check the certs and see if the IP address is an entry in the cert

ayeshperera (Wed, 28 Oct 2020 21:41:30 GMT):
sure will do

tongli (Wed, 28 Oct 2020 23:22:35 GMT):
@ayeshperera not really sure about your env. it could be that your system has a firewall. or some of the ports may have not been opened up.

ayeshperera (Wed, 28 Oct 2020 23:27:32 GMT):
hmm @tongli actually there is not any firewall installed in my workstation :pensive:

tongli (Wed, 28 Oct 2020 23:27:45 GMT):
ok.

ayeshperera (Wed, 28 Oct 2020 23:28:01 GMT):
I am only getting an error in the orderer client

ayeshperera (Wed, 28 Oct 2020 23:28:03 GMT):
Error: failed to create deliver client for orderer: orderer client failed to connect to 127.0.0.1:7008: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 127.0.0.1:7008: connect: connection refused"

ayeshperera (Wed, 28 Oct 2020 23:28:03 GMT):
Error: failed to create deliver client for orderer: orderer client failed to connect to 192.168.1.27:7008: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 192.168.1.27:7008: connect: connection refused"

tongli (Wed, 28 Oct 2020 23:28:49 GMT):
I think that the loopback ip should never be used.

ayeshperera (Wed, 28 Oct 2020 23:30:38 GMT):
yeah I tested with 192.168.240.1 this ip as well

tongli (Wed, 28 Oct 2020 23:30:42 GMT):
do an ifconfig and paste it here.

tongli (Wed, 28 Oct 2020 23:30:48 GMT):
let me take a look at the output

tongli (Wed, 28 Oct 2020 23:31:05 GMT):
also do this

tongli (Wed, 28 Oct 2020 23:31:10 GMT):
`docker network ls`

ayeshperera (Wed, 28 Oct 2020 23:32:00 GMT):
sure

ayeshperera (Wed, 28 Oct 2020 23:32:00 GMT):
sure here it is

ayeshperera (Wed, 28 Oct 2020 23:32:01 GMT):
https://pastebin.com/ANaGLPgt

ayeshperera (Wed, 28 Oct 2020 23:32:37 GMT):
NETWORK ID NAME DRIVER SCOPE f6117dbf9e54 a674c12505_net bridge local dee29641bc08 bridge bridge local 5e203a011aa7 host host local 28855907c014 none null local sh: 0: getcwd() failed: No such file or directory

tongli (Wed, 28 Oct 2020 23:33:58 GMT):
that all looks good.

tongli (Wed, 28 Oct 2020 23:34:24 GMT):
I think in your spec.yaml file, you can use this ip `172.16.123.157`

tongli (Wed, 28 Oct 2020 23:35:12 GMT):
that is your real IP

tongli (Wed, 28 Oct 2020 23:35:36 GMT):
the nic `enp0s31f6` you do not have it configured.

tongli (Wed, 28 Oct 2020 23:36:57 GMT):
another thing that you can try is this

tongli (Wed, 28 Oct 2020 23:37:08 GMT):
`minifab cleanup`

tongli (Wed, 28 Oct 2020 23:37:24 GMT):
`minifab up -e true`

tongli (Wed, 28 Oct 2020 23:37:24 GMT):
`minifab up -e true -n samplecc`

tongli (Wed, 28 Oct 2020 23:37:49 GMT):
`minifab apprun`

tongli (Wed, 28 Oct 2020 23:38:45 GMT):
the last command actually run a go written app which comes with minifabric, it can be used to test if one can run a go app against the network.

tongli (Wed, 28 Oct 2020 23:39:02 GMT):
here is the app

tongli (Wed, 28 Oct 2020 23:39:03 GMT):
https://github.com/hyperledger-labs/minifabric/blob/master/app/go/main.go

tongli (Wed, 28 Oct 2020 23:40:00 GMT):
another thing you can try is this

tongli (Wed, 28 Oct 2020 23:40:10 GMT):
if you are using go connection profile,

tongli (Wed, 28 Oct 2020 23:40:23 GMT):
the profile uses an env variable.

tongli (Wed, 28 Oct 2020 23:40:42 GMT):
like this

tongli (Wed, 28 Oct 2020 23:40:46 GMT):
```{ "name": "7839ced3e6_net", "x-comment-0": "ROOTPATH should be set to the absolute path of crypto material starting directory", "x-comment-1": "for example: export ROOTPATH=/home/ubuntu/mywork/vars/keyfiles", "x-type": "hlfv-2.2.0", "version": "1.0.0", "client": { "organization": "org1.example.com", "cryptoconfig": { "path": "${ROOTPATH}" },```

tongli (Wed, 28 Oct 2020 23:41:01 GMT):
notice that ROOTPATH needs to be set for your environment.

tongli (Wed, 28 Oct 2020 23:41:13 GMT):
otherwise, your app wont be able to find the tls certs.

tongli (Wed, 28 Oct 2020 23:41:23 GMT):
that can often cause connection rejection.

tongli (Wed, 28 Oct 2020 23:41:31 GMT):
@ayeshperera ^^^

ayeshperera (Wed, 28 Oct 2020 23:41:59 GMT):
awesome thanks alot for these I will try all options and will let you know

tongli (Wed, 28 Oct 2020 23:47:48 GMT):
@ayeshperera ok.

ayeshperera (Thu, 29 Oct 2020 00:01:25 GMT):
it works

ayeshperera (Thu, 29 Oct 2020 00:01:40 GMT):
:partying_face: :partying_face: :partying_face: :partying_face:

ayeshperera (Thu, 29 Oct 2020 00:02:12 GMT):
thanks alot again @tongli

ayeshperera (Thu, 29 Oct 2020 00:02:27 GMT):
it worked with 172.16.123.157 ip

tongli (Thu, 29 Oct 2020 00:05:56 GMT):
@ayeshperera great. Glad to hear it.

zilich (Thu, 29 Oct 2020 16:32:08 GMT):

anydesk00063.png

zilich (Thu, 29 Oct 2020 16:41:03 GMT):
# Run the chaincode instantiate script on cli container ******* non-zero return code Error: chaincode argument error: invalid character 'i' looking for beginning of value Usage: peer chaincode invoke [flags] Flags: -C, --channelID string The channel on which this command should be executed --connectionProfile string Connection profile that provides the necessary connection information for the network. Note: currently only supported for providing peer connection information -c, --ctor string Constructor message for the chaincode in JSON format (default "{}") -h, --help help for invoke -I, --isInit Is this invocation for init (useful for supporting legacy chaincodes in the new lifecycle) -n, --name string Name of the chaincode --peerAddresses stringArray The addresses of the peers to connect to --tlsRootCertFiles stringArray If TLS is enabled, the paths to the TLS root cert files of the peers to connect to. The order and number of certs specified should match the --peerAddresses flag --waitForEvent Whether to wait for the event from each peer's deliver filtered service signifying that the 'invoke' transaction has been committed successfully --waitForEventTimeout duration Time to wait for the event from each peer's deliver filtered service signifying that the 'invoke' transaction has been committed successfully (default 30s) Global Flags: --cafile string Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint --certfile string Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint --clientauth Use mutual TLS when communicating with the orderer endpoint --connTimeout duration Timeout for client to connect (default 3s) --keyfile string Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint -o, --orderer string Ordering service endpoint --ordererTLSHostnameOverride string The hostname override to use when validating the TLS connection to the orderer. --tls Use TLS when communicating with the orderer endpoint --transient string Transient map of arguments in JSON encoding # STATS ******************************************************* minifab: ok=21 failed=1

tongli (Thu, 29 Oct 2020 19:11:30 GMT):
@rjones Ry, got this msg, not sure why ```The "Mark stale issues and pull requests" workflow in litong01/minifabric has been disabled ```

tongli (Thu, 29 Oct 2020 19:11:56 GMT):
oh, this is in my own repo.

tongli (Thu, 29 Oct 2020 19:12:22 GMT):
@rjones I guess this is fine.

rjones (Thu, 29 Oct 2020 20:00:44 GMT):
I think you have to enable actions on your forks

pkirkinezis (Fri, 30 Oct 2020 07:16:20 GMT):
Propably 2 reasong you get this error .

pkirkinezis (Fri, 30 Oct 2020 07:17:25 GMT):
1. Your query to couchdb has syntax error 2. when you run invoke -p '"function","args"' the args are not on the correct format to be desirialized

pkirkinezis (Fri, 30 Oct 2020 07:17:25 GMT):
1. Your query to couchdb has syntax error (inside your chaincode implementation) 2. when you run invoke -p '"function","args"' the args are not on the correct format to be desirialized

pkirkinezis (Fri, 30 Oct 2020 07:19:21 GMT):
If you have the init function i would sugest to trye bellow

pkirkinezis (Fri, 30 Oct 2020 07:20:45 GMT):
minifabric initialize -l cclang-n ccname -p '"init"'

pkirkinezis (Fri, 30 Oct 2020 07:21:21 GMT):
It will only work if the init function of your chaincode is not requiring any arguments

zilich (Fri, 30 Oct 2020 07:30:25 GMT):
It is possible to start init minifab with language java? i.e. minifab -l java? or under windows minifab.cmd -l java?

zilich (Fri, 30 Oct 2020 07:32:06 GMT):
after cleanup... or as first install command... I misstype up command above... i.e. ./minifab up -l java or minifab.cmd up -l java?

pkirkinezis (Fri, 30 Oct 2020 08:06:10 GMT):
Of course . Just run ./minifabric -l java

pkirkinezis (Fri, 30 Oct 2020 08:07:05 GMT):
Make sure you have the correct version on your gradlew . If not fix it and run it again . Because the default gradle version hyperledger will use in version 5.3

pkirkinezis (Fri, 30 Oct 2020 08:09:49 GMT):
For fixing it you have to install gradle localy and then run "gradle wrapper --gradle-version 6.5.1 --distribution-type allgradle wrapper --gradle-version 6.5.1 --distribution-type all" on your chaincode path this will create a gradlew with gradle version 6.5.1

pkirkinezis (Fri, 30 Oct 2020 08:11:20 GMT):
then if you have a function init implemented on your java chaincode . After install,approve commit run ./minifab initialize -l java -n ccname -p '"init"'

zilich (Fri, 30 Oct 2020 09:34:11 GMT):
As first command, this not work... Just checked... ./minifab up -l java!!!

pkirkinezis (Fri, 30 Oct 2020 09:35:06 GMT):
what chaincode ?

pkirkinezis (Fri, 30 Oct 2020 09:35:59 GMT):
the example chaincode "SIMPLE" i installed it without any issue .

pkirkinezis (Fri, 30 Oct 2020 09:36:27 GMT):
also make sure to have the correct gradle version

zilich (Fri, 30 Oct 2020 09:39:11 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=dpzG8SzAdEvh7zJ39) maybe after „./minifab up“ but on clean system which have java, maven, gradel,... and not installed minifab, dont work...

zilich (Fri, 30 Oct 2020 09:39:33 GMT):
./minifab up -l java

pkirkinezis (Fri, 30 Oct 2020 09:40:43 GMT):
I never tried ./minifab up -l java just give a moment to try it

pkirkinezis (Fri, 30 Oct 2020 09:42:02 GMT):
./minifab up -l java this only without any other parameters?

zilich (Fri, 30 Oct 2020 09:42:25 GMT):
even I test and adding same as for go...

zilich (Fri, 30 Oct 2020 09:43:23 GMT):

Screenshot_378.jpg

zilich (Fri, 30 Oct 2020 09:43:27 GMT):

Screenshot_379.jpg

pkirkinezis (Fri, 30 Oct 2020 09:44:01 GMT):
this is an erro while hyperledger is compiling your chaincode

zilich (Fri, 30 Oct 2020 09:45:00 GMT):
„./minifab up -l java“ default?

zilich (Fri, 30 Oct 2020 09:45:18 GMT):
„this is an erro while hyperledger is compiling your chaincode“

pkirkinezis (Fri, 30 Oct 2020 09:45:47 GMT):
* What went wrong: Receiver class com.github.jengelman.gradle.plugins.shadow.internal.DependencyFileCollection does not define or inherit an implementation of the resolved method 'abstract org.gradle.api.tasks.TaskDependency getBuildDependencies()' of interface org.gradle.api.Buildable.

pkirkinezis (Fri, 30 Oct 2020 09:45:57 GMT):
by default yes

zilich (Fri, 30 Oct 2020 09:47:24 GMT):
maybe this can be corrected in ansible init with java :)

zilich (Fri, 30 Oct 2020 09:48:04 GMT):
That we havent go chaincode image :)

zilich (Fri, 30 Oct 2020 09:49:01 GMT):
or to init with some path to java chanicode...

pkirkinezis (Fri, 30 Oct 2020 09:51:39 GMT):
please inside simple chaincode folder

pkirkinezis (Fri, 30 Oct 2020 09:51:44 GMT):
in java folder run

pkirkinezis (Fri, 30 Oct 2020 09:51:54 GMT):
gradle wrapper --gradle-version 6.5.1 --distribution-type allgradle wrapper --gradle-version 6.5.1 --distribution-type all

pkirkinezis (Fri, 30 Oct 2020 09:51:57 GMT):
and then try again

pkirkinezis (Fri, 30 Oct 2020 09:53:32 GMT):
ot simple "gradle wrapper --gradle-version 6.5.1"

pkirkinezis (Fri, 30 Oct 2020 09:55:14 GMT):
simple running ./minifab up -l java is not working mainly i thing because gradlew version is missing on simple chaincode java

pkirkinezis (Fri, 30 Oct 2020 11:22:43 GMT):
Do manage to get it working

pkirkinezis (Fri, 30 Oct 2020 11:22:44 GMT):
?

zilich (Fri, 30 Oct 2020 11:25:32 GMT):
under linux work... I will try with minifab.cmd later... Thanks...

pkirkinezis (Fri, 30 Oct 2020 11:26:26 GMT):
did what i described worked ?

pkirkinezis (Fri, 30 Oct 2020 11:27:11 GMT):
under linux i mean the gradle command

zilich (Fri, 30 Oct 2020 11:38:35 GMT):
no :(

zilich (Fri, 30 Oct 2020 11:52:05 GMT):
[root@pc86 java]# gradle --version ------------------------------------------------------------ Gradle 6.6 ------------------------------------------------------------ Build time: 2020-08-10 22:06:19 UTC Revision: d119144684a0c301aea027b79857815659e431b9 Kotlin: 1.3.72 Groovy: 2.5.12 Ant: Apache Ant(TM) version 1.10.8 compiled on May 10 2020 JVM: 1.8.0_265 (Oracle Corporation 25.265-b01) OS: Linux 4.18.0-240.el8.x86_64 amd64 [root@pc86 java]#

pkirkinezis (Fri, 30 Oct 2020 11:56:50 GMT):
try this chaincode

pkirkinezis (Fri, 30 Oct 2020 11:57:06 GMT):
compy paste is my simple chaincode but with string not intiger

pkirkinezis (Fri, 30 Oct 2020 11:57:26 GMT):
copy paste to java sub direcotry on simple chaincode

pkirkinezis (Fri, 30 Oct 2020 11:57:26 GMT):
https://we.tl/t-5X1bhnO8KG

pkirkinezis (Fri, 30 Oct 2020 11:57:30 GMT):
and let me know

zilich (Fri, 30 Oct 2020 12:01:29 GMT):
Ok... I will test... miniFabric worked and in WSL, but when WSL was install in WSL linux prompt... But now use different Working folder, which is to long... but this is another story...

pkirkinezis (Fri, 30 Oct 2020 12:01:38 GMT):
I realized something on ./minifab up vars directory is empty .

zilich (Fri, 30 Oct 2020 12:01:57 GMT):
clenup delete everything...

zilich (Fri, 30 Oct 2020 12:02:11 GMT):
under vars

pkirkinezis (Fri, 30 Oct 2020 12:02:16 GMT):
So whatever you do on chaincode sud directory will be be ovewritten with ./minifub up

zilich (Fri, 30 Oct 2020 12:02:49 GMT):
only cleanup delete...

zilich (Fri, 30 Oct 2020 12:02:59 GMT):
up/down/restart no!

pkirkinezis (Fri, 30 Oct 2020 12:03:25 GMT):
Yes i mean if you run cleanup and then up

pkirkinezis (Fri, 30 Oct 2020 12:03:58 GMT):
Also keep in mind everytime to run ./minifab install a tgz file is produced even if installation failes

pkirkinezis (Fri, 30 Oct 2020 12:05:18 GMT):
so if you in case the chaincode fail to install you have to manually delete the tgz file and run again . Because if it find tgz file it will use it , but it will be the old one

pkirkinezis (Fri, 30 Oct 2020 12:05:49 GMT):
if you mauyally install the chaincode you can use minifab -v to create a new tgz

zilich (Fri, 30 Oct 2020 12:08:20 GMT):
I know that... :) And use it last 3 months ...

zilich (Fri, 30 Oct 2020 12:08:56 GMT):
strart with 0.051,0.52, ... 0.91 ...

pkirkinezis (Fri, 30 Oct 2020 16:04:40 GMT):
Yeah i saw it didn't work . It is 100% realted to gradle . I would suggest running netup and install chaincode afterwords

zilich (Fri, 30 Oct 2020 16:06:43 GMT):
ok... I find what is problem...

zilich (Fri, 30 Oct 2020 16:07:00 GMT):
Its not problem to gradle >(

pkirkinezis (Fri, 30 Oct 2020 16:07:04 GMT):
XM

pkirkinezis (Fri, 30 Oct 2020 16:07:11 GMT):
elaborate

zilich (Fri, 30 Oct 2020 16:07:23 GMT):
Centos was problem...

zilich (Fri, 30 Oct 2020 16:07:41 GMT):
When I test same code on ubuntu, everytning work...

zilich (Fri, 30 Oct 2020 16:07:55 GMT):
I few days ago, we have problem with power...

pkirkinezis (Fri, 30 Oct 2020 16:07:59 GMT):
I never thouth of that i was testing on ubuntu the whole time i left centos behind from the beggining of minifabric

zilich (Fri, 30 Oct 2020 16:08:11 GMT):
and maybe was firewall comant after restart missing...

pkirkinezis (Fri, 30 Oct 2020 16:08:37 GMT):
maybe it would be great to chekc the documentation of centos installtion for linux Tongli made

zilich (Fri, 30 Oct 2020 16:08:45 GMT):

Screenshot_383.jpg

pkirkinezis (Fri, 30 Oct 2020 16:09:21 GMT):
I glad that you've made it .

zilich (Fri, 30 Oct 2020 16:09:32 GMT):
yess... this worked, and I just check how long computer worked...

zilich (Fri, 30 Oct 2020 16:09:45 GMT):
above is ubuntu...

pkirkinezis (Fri, 30 Oct 2020 16:09:56 GMT):
Nice

zilich (Fri, 30 Oct 2020 16:10:03 GMT):
I will later and Centos to work...

pkirkinezis (Fri, 30 Oct 2020 16:10:51 GMT):
keep me posted

zilich (Fri, 30 Oct 2020 16:12:03 GMT):
ann time I tested my code on 3 different computers... with different configurations :)

zilich (Fri, 30 Oct 2020 16:12:34 GMT):

Screenshot_384.jpg

zilich (Fri, 30 Oct 2020 16:13:06 GMT):
I will fix it later...

zilich (Fri, 30 Oct 2020 16:13:14 GMT):
Must go outside...

pkirkinezis (Fri, 30 Oct 2020 16:14:26 GMT):
pff

zilich (Fri, 30 Oct 2020 21:24:19 GMT):
I replace gradle (simpe under Centos), but install java chain code dont work...

zilich (Fri, 30 Oct 2020 21:24:53 GMT):

Screenshot_389.jpg

zilich (Fri, 30 Oct 2020 21:25:17 GMT):

Screenshot_388.jpg

zilich (Fri, 30 Oct 2020 21:26:48 GMT):

Screenshot_390.jpg

pkirkinezis (Fri, 30 Oct 2020 21:55:08 GMT):
this is centos?

pkirkinezis (Fri, 30 Oct 2020 21:56:09 GMT):
some line of the error is missing on your screen shot

pkirkinezis (Fri, 30 Oct 2020 21:56:12 GMT):
also

zilich (Fri, 30 Oct 2020 23:25:57 GMT):

Screenshot_17.png

zilich (Fri, 30 Oct 2020 23:26:29 GMT):
Or Linux isnt Linux under WSL???

zilich (Fri, 30 Oct 2020 23:27:52 GMT):
Today, this is not possible?

zilich (Fri, 30 Oct 2020 23:33:38 GMT):

Screenshot_17.jpg

zilich (Fri, 30 Oct 2020 23:33:38 GMT):

Screenshot_17.jpg

zilich (Fri, 30 Oct 2020 23:33:38 GMT):

Screenshot_17.jpg

zilich (Fri, 30 Oct 2020 23:35:01 GMT):
In that time, worked without problems!!! Today - cant! Is any logical answer? Or Microsoft logic made big influence to IBM team, too?

zilich (Fri, 30 Oct 2020 23:36:49 GMT):

Screenshot_384.jpg

zilich (Sat, 31 Oct 2020 00:00:13 GMT):
# Running operation: ****************************************** cc install ....... # Run the chaincode install script on cli container *********** non-zero return code Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "+ INPUT_DIR=/chaincode/input + OUTPUT_DIR=/chaincode/output ++ mktemp -d + TMP_DIR=/tmp/tmp.FBGbJc ++ find /chaincode/input -name .jar ++ paste -s -d : - + JARS= ++ find /chaincode/input -name '*.jar' ++ wc -l + NUM_JARS=1 + for DIR in ${INPUT_DIR} ${INPUT_DIR}/src + '[' -f /chaincode/input/build.gradle -o -f /chaincode/input/build.gradle.kts ']' + '[' -f /chaincode/input/pom.xml ']' + for DIR in ${INPUT_DIR} ${INPUT_DIR}/src + '[' -f /chaincode/input/src/build.gradle -o -f /chaincode/input/src/build.gradle.kts ']' + buildGradle /chaincode/input/src /chaincode/output + echo 'Copying from /chaincode/input/src to /tmp/tmp.FBGbJc' Copying from /chaincode/input/src to /tmp/tmp.FBGbJc + cd /chaincode/input/src + tar cf - . + cd /tmp/tmp.FBGbJc + tar xf - + cd /tmp/tmp.FBGbJc + echo 'Gradle build' + '[' -f ./gradlew ']' + chmod +x ./gradlew Gradle build + ./gradlew build shadowJar -x test Downloading https://services.gradle.org/distributions/gradle-6.5.1-bin.zip .........10%..........20%..........30%..........40%.........50%..........60%..........70%..........80%.........90%..........100% Welcome to Gradle 6.5.1! Here are the highlights of this release: - Experimental file-system watching - Improved version ordering - New samples For more details see https://docs.gradle.org/6.5.1/release-notes.html Starting a Gradle Daemon (subsequent builds will be faster) > Task :compileJava Note: /tmp/tmp.FBGbJc/src/main/java/org/hyperledger/fabric/example/SimpleChaincode.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. > Task :processResources NO-SOURCE > Task :classes > Task :jar > Task :assemble > Task :check > Task :build > Task :shadowJar FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':shadowJar'. > Could not resolve all files for configuration ':runtimeClasspath'. > Could not find com.github.everit-org.json-schema:org.everit.json.schema:1.11.1. Searched in the following locations: - file:/root/.m2/repository/com/github/everit-org/json-schema/org.everit.json.schema/1.11.1/org.everit.json.schema-1.11.1.pom - https://repo.maven.apache.org/maven2/com/github/everit-org/json-schema/org.everit.json.schema/1.11.1/org.everit.json.schema-1.11.1.pom Required by: project : > org.hyperledger.fabric-chaincode-java:fabric-chaincode-shim:1.4.7 * 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 Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.5.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 27s 3 actionable tasks: 3 executed " # STATS ******************************************************* minifab: ok=25 failed=1

zilich (Sat, 31 Oct 2020 00:00:26 GMT):
compete log...

zilich (Sat, 31 Oct 2020 00:00:33 GMT):
GN

gabrielodi (Sat, 31 Oct 2020 06:56:49 GMT):
Has joined the channel.

gabrielodi (Sat, 31 Oct 2020 06:56:50 GMT):
hello there! I am new to hyper ledger and minifabric, trying to setup the basic ledger with minifab up, but I am gettin an error... could anyone support me on this, please?

gabrielodi (Sat, 31 Oct 2020 06:57:05 GMT):
Running operation: ****************************************** generate certificates .. # Running operation: ****************************************** start network ...... # Create env file for all nodes ******************************* All items completed [WARNING]: Failure using method (v2_runner_on_failed) in callback plugin (): unsupported operand type(s) for +: 'dict_keys' and 'dict_keys' # STATS ******************************************************* minifab: ok=54 failed=1

gabrielodi (Sat, 31 Oct 2020 06:57:48 GMT):
searched in google, github and here also, found no answers...

gabrielodi (Sat, 31 Oct 2020 07:05:21 GMT):
same issue trying to run minifab netup

gabrielodi (Sat, 31 Oct 2020 07:19:19 GMT):
solved... deleted Vars folder and tried again, wored

gabrielodi (Sat, 31 Oct 2020 07:19:27 GMT):
worked.... thanks

aim8526 (Sat, 31 Oct 2020 15:57:08 GMT):
Has joined the channel.

tongli (Sun, 01 Nov 2020 00:14:28 GMT):
@gabrielodi, you can always run command ‘minifab cleanup’ to clean up every thing

rjones (Sun, 01 Nov 2020 01:57:00 GMT):
maybe :)

rjones (Sun, 01 Nov 2020 01:57:11 GMT):
depends if you run it from the same directory or not... :)

gabrielodi (Sun, 01 Nov 2020 14:24:54 GMT):
Thank you

gabrielodi (Sun, 01 Nov 2020 14:25:02 GMT):
I have another question:

gabrielodi (Sun, 01 Nov 2020 14:27:38 GMT):
I see that minifab support the standard methods from shim (fabric-chaincode-go). I have seen no examples on chaincodes written on the high-level fabric-contract-api-go. Does minifab have support for fabric-contract-api-go? how should I invoke the functions? I suppose I cant use the original invoke method? thanks

tongli (Sun, 01 Nov 2020 17:07:30 GMT):
@gabrielodi what you talked about is the way developing chaincode. Minifabric does not care how your chaincode was developed, you can install any type of chaincode to minifabric created network just like any other fabric network.

tongli (Sun, 01 Nov 2020 17:07:53 GMT):
You invoke the functions same way you invoke other chaincode. No difference.

tongli (Mon, 02 Nov 2020 18:27:59 GMT):
https://github.com/hyperledger-labs/minifabric/pull/113

tongli (Mon, 02 Nov 2020 18:29:05 GMT):
This is the PR to upgrade caliper to the latest. from 0.3.2 to 0.4.1, caliper contains breaking changes. To take advantages of the latest caliper and fabric sdk, we need to upgrade the caliper.

tongli (Mon, 02 Nov 2020 18:30:45 GMT):
@rjones can you please take a look at it?

rjones (Mon, 02 Nov 2020 22:52:15 GMT):
@tongli done

tongli (Mon, 02 Nov 2020 23:16:17 GMT):
@rjones thanks

pkirkinezis (Wed, 04 Nov 2020 06:30:27 GMT):
fabric sdk 2.1.0 changelog is anywhere online i can't find it

pkirkinezis (Wed, 04 Nov 2020 06:32:55 GMT):
?

ericmvaughn (Wed, 04 Nov 2020 15:56:29 GMT):
@tongli I'd like to make another change if you are in agreement. I'd like to be able to put a collection configuration file into the vars directory before bringing up minifab and have minifab use it without overwriting it with the default collection file. This will enable me to bring up minifab with my custom chaincode with a single command. It looks like it can be done by adding the 'force: on' option to where the collection file gets created.

zilich (Wed, 04 Nov 2020 16:10:27 GMT):

Screenshot_458.jpg

zilich (Wed, 04 Nov 2020 16:12:04 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=55xX65vRqJipyJZZk)
Screenshot_458.jpg

tongli (Wed, 04 Nov 2020 17:32:25 GMT):
@ericmvaughn yes, put up an PR, I will be very happy to review it. Thanks.

ericmvaughn (Wed, 04 Nov 2020 17:35:36 GMT):
:thumbsup:

tongli (Wed, 04 Nov 2020 18:19:09 GMT):
@ericmvaughn very nice PR, I love it how small it is. Added a comment for changing in the doc. Can you take a look at it?

ericmvaughn (Wed, 04 Nov 2020 18:19:50 GMT):
Thanks, I'll take a look

tongli (Wed, 04 Nov 2020 18:21:53 GMT):
in the doc, simply state that the chaincode private data collection configuration file is produced automatically, but if one wants to provide their own private data collection, they can simply add the file as such such file named this this etc, so other people can take full advantages of your contribution.

tongli (Wed, 04 Nov 2020 18:21:59 GMT):
@ericmvaughn ^^^

tongli (Wed, 04 Nov 2020 18:22:34 GMT):
I suspect this in the future can be very helpful.

tongli (Wed, 04 Nov 2020 18:22:52 GMT):
as minifabric can not really predict how the private data collection should be created.

ericmvaughn (Wed, 04 Nov 2020 18:23:19 GMT):
should it go into the docs/README.md file?

tongli (Wed, 04 Nov 2020 18:23:26 GMT):
right.

tongli (Wed, 04 Nov 2020 18:24:48 GMT):
you probably can add new content here in this section

tongli (Wed, 04 Nov 2020 18:24:49 GMT):
app.get('/burbidge.js', (req, res) => { res.setHeader('content-type', 'text/javascript'); res.write('var offerOrigin = "' + req.protocol + '://' + req.get('host') + '";'); res.write(burbidgejs); res.end(); });

tongli (Wed, 04 Nov 2020 18:25:15 GMT):
https://github.com/hyperledger-labs/minifabric/tree/master/docs#install-your-own-chaincode

tongli (Wed, 04 Nov 2020 18:25:26 GMT):
at the end of this section.

ericmvaughn (Wed, 04 Nov 2020 18:25:28 GMT):
There's a "Install your own chaincode" section that looks like a good place

tongli (Wed, 04 Nov 2020 18:25:48 GMT):
haha, I beat you on that one :-)

ericmvaughn (Wed, 04 Nov 2020 18:26:19 GMT):
OK good I'll work on it

tongli (Wed, 04 Nov 2020 18:27:09 GMT):
yeah. just a paragraph, at the end of the section,

tongli (Wed, 04 Nov 2020 18:27:37 GMT):
talking about private data collection and its behavior.

tongli (Wed, 04 Nov 2020 18:27:59 GMT):
Thanks very much for doing this.

ericmvaughn (Wed, 04 Nov 2020 18:28:47 GMT):
You're welcome, I'll give it a go.

ericmvaughn (Wed, 04 Nov 2020 19:43:26 GMT):
@tongli Take look at what I added and let me know if you'd like something else. I'll be happy to change it.

tongli (Wed, 04 Nov 2020 19:43:59 GMT):
I've approved it, waiting for other checks to go through before I can merge into the master branch.

tongli (Wed, 04 Nov 2020 19:44:03 GMT):
thanks for your contribution.

tongli (Wed, 04 Nov 2020 19:44:18 GMT):
and you can simply run `minifab update` to get the latest.

ericmvaughn (Wed, 04 Nov 2020 19:46:45 GMT):
great, thanks for your help and guidance

tongli (Wed, 04 Nov 2020 19:50:23 GMT):
@ericmvaughn thanks, I've merged it. thanks a lot for your 2nd merged PRs. great work.

pkirkinezis (Thu, 05 Nov 2020 08:24:54 GMT):
they where talking for caliper fabric sdk . Not java

claudiocebpaz (Thu, 05 Nov 2020 18:43:09 GMT):
Hello. Is there any docs on how to use MiniFabric with docker swarm? Thanks!

tongli (Thu, 05 Nov 2020 19:45:35 GMT):
@claudiocebpaz minifabric does not use docker swarm. And there is no reason to, if you are thinking about having multiple nodes running fabric, you can set up fabric on each nodes then join them together to make a bigger fabric network.

claudiocebpaz (Thu, 05 Nov 2020 19:52:01 GMT):
Ok, Thanks!

zilich (Sat, 07 Nov 2020 15:59:51 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=pqsWrXKS3Pej4W5HX) I made it to work again and under WSL 2... Not only from cmd... Images was in windows docker...

zilich (Sat, 07 Nov 2020 16:01:11 GMT):

Screenshot_489.jpg

tongli (Mon, 09 Nov 2020 21:27:38 GMT):
please review this PR which fixed a bug for some edge chaincode invocation/query cases. https://github.com/hyperledger-labs/minifabric/pull/117

tongli (Mon, 09 Nov 2020 21:28:01 GMT):
@pkirkinezis @rjones ^^^ thanks.

tongli (Tue, 10 Nov 2020 04:00:00 GMT):
@rjones Thanks very much for getting it merged.

zhenbing (Tue, 10 Nov 2020 05:07:40 GMT):

Clipboard - November 10, 2020 12:22 PM

zhenbing (Tue, 10 Nov 2020 05:08:29 GMT):
@tongli When I run the up command and GOPROXY can't work in cc install step, where can I modify the script? Thanks.

zhenbing (Tue, 10 Nov 2020 05:11:42 GMT):
I saw a script vars/run/ccinstall.peer1.org0.example.com.sh, how does this file generated? I only define GO111MODULE, but no GOPROXY define nor use the environment defined.

pkirkinezis (Tue, 10 Nov 2020 07:28:40 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=2bL2r7QPi9eYon2ro) I lost that one . I was in the middle of deployiment yesterday of a faeture so iwas busy

pkirkinezis (Tue, 10 Nov 2020 07:30:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=8uRE2ZYhuHDJMqwtg) Probably someone is forbit you from accesing to download protobuf . Check internet access and try again . Also contact system admin to see wether the network is blocks you from download

tongli (Tue, 10 Nov 2020 11:55:23 GMT):
@zhenbing please take a look spec.yaml file at the repo and make a copy of that file, uncomment the proxy line to use a proxy in China as the sample says, then you can try install command.

tongli (Tue, 10 Nov 2020 11:55:23 GMT):
@zhenbing please take a look at spec.yaml file in the repo and make a copy of that file, uncomment the proxy line to use a proxy in China as the sample says, then you can try install command.

tongli (Tue, 10 Nov 2020 11:56:20 GMT):
This problem is due to firewall in China blocking google sites.

tongli (Tue, 10 Nov 2020 12:31:13 GMT):
Place the new spec.yaml file in your working directory where you run minifab command, remember to do a minifab cleanup first to make sure your env is clean.

zhenbing (Tue, 10 Nov 2020 13:58:33 GMT):
@tongli Thanks. It's works but new barriers occurs. Start with "non-zero return code" and start downloading and finally...

zhenbing (Tue, 10 Nov 2020 13:58:40 GMT):

Clipboard - November 10, 2020 9:58 PM

tongli (Tue, 10 Nov 2020 14:00:02 GMT):
what is your env? windows , linux?

zhenbing (Tue, 10 Nov 2020 14:00:17 GMT):
macOS

zhenbing (Tue, 10 Nov 2020 14:01:04 GMT):
Docker desktop 2.5.0.1

tongli (Tue, 10 Nov 2020 14:01:28 GMT):
I wonder if docker was not able to access your working directory.

tongli (Tue, 10 Nov 2020 14:01:46 GMT):
mac os x has some rather restrictive security rules.

tongli (Tue, 10 Nov 2020 14:02:32 GMT):
can you see if your vars/chaincode/simple directory has a tar.gz file?

zhenbing (Tue, 10 Nov 2020 14:03:16 GMT):
Okay, let me try on Ubuntu 18... Yes, it has a simple_go_1.0.tar.gz.

tongli (Tue, 10 Nov 2020 14:03:40 GMT):
hmmm. if that file is there and that means the package was built.

tongli (Tue, 10 Nov 2020 14:05:32 GMT):
it seems to me that the file somehow was not being found by container. I wonder if this is a latest docker issue https://lists.hyperledger.org/g/fabric/message/9108

tongli (Tue, 10 Nov 2020 14:06:58 GMT):
not really sure, have not tested against 2.5 on mac, yeah. try it on ubuntu and please continue try on mac os x as well so that we figure out what is wrong.

zhenbing (Tue, 10 Nov 2020 14:08:00 GMT):
Okay.

tongli (Tue, 10 Nov 2020 14:18:59 GMT):
@zhenbing is this the place where you download docker desktop for mac? https://hub.docker.com/editions/community/docker-ce-desktop-mac

zhenbing (Tue, 10 Nov 2020 14:25:34 GMT):
Yes, I downloaded from officer site base 2.4 and updated to 2.5 online. It's on stable channel.

tongli (Tue, 10 Nov 2020 14:28:30 GMT):
@zhenbing I tested with this gRPC turned off, it worked fine, before I turned that off, I got the same error as you did.

tongli (Tue, 10 Nov 2020 14:28:35 GMT):

Screen Shot 2020-11-10 at 9.26.33 AM.png

tongli (Tue, 10 Nov 2020 14:39:17 GMT):
@zhenbing I am using 2.5.0.1 which is the latest.

tongli (Tue, 10 Nov 2020 14:39:33 GMT):
turning on gRPC will have issues.

tongli (Tue, 10 Nov 2020 14:39:48 GMT):
turning it off will work fine.

zhenbing (Tue, 10 Nov 2020 14:48:20 GMT):
:thumbsup: yeah, it works now! It's a macOS related issue... but the previous 10 containers all finished create and leave cc container alone...

tongli (Tue, 10 Nov 2020 14:48:51 GMT):
do `minifab cleanup` to cleanup everything.

tongli (Tue, 10 Nov 2020 14:49:43 GMT):
some of the posts said that that issue has been fixed in 2.4.2.0, but we are using 2.5.0.1 still same problem. but I think we should turn off this experimental features for now.

zhenbing (Tue, 10 Nov 2020 14:50:36 GMT):
that's not so bad:grinning:

pkirkinezis (Wed, 11 Nov 2020 10:56:28 GMT):
@tongli @rjones to add a already isntalled chaincode to a new Channel i will have to follow the saem process ?

pkirkinezis (Wed, 11 Nov 2020 10:57:16 GMT):
only i have to overtake install command?>

pkirkinezis (Wed, 11 Nov 2020 11:15:26 GMT):
something else why chaincode endorsers json file after discover is empty ?

tongli (Wed, 11 Nov 2020 15:39:45 GMT):
@rjones docker desktop 2.4.x.x to 2.5.0.1 changed a lot things for volume , had to fix one small thing for it to work. can you please look at this PR https://github.com/hyperledger-labs/minifabric/pull/119

pkirkinezis (Thu, 12 Nov 2020 15:03:49 GMT):
@tongli is it necessery from your expirience to initialize a chaincode again when you bump it version

pkirkinezis (Thu, 12 Nov 2020 15:04:12 GMT):
lest say we are on -v 1.0 of chaincode and want to update it to -v 2.0 .

pkirkinezis (Thu, 12 Nov 2020 15:04:36 GMT):
Is it necessery to run initialize again after after commit ?

tongli (Thu, 12 Nov 2020 16:40:24 GMT):
@pkirkinezis no, you should not do that, but this is normally depends on your business logic. I normally do not use init method at all.

tongli (Thu, 12 Nov 2020 16:40:24 GMT):
@pkirkinezis no, you should not need to do that, but this is normally depends on your business logic. I normally do not use init method at all.

pkirkinezis (Fri, 13 Nov 2020 07:11:19 GMT):
Xm there is a reason to reinitialize if your couchdb document structs that you have in your chaincode have changed . But in this situation initializaton command has to use all the chaincode_endorsers to reinitialize the chaincode

ericmvaughn (Fri, 13 Nov 2020 19:01:41 GMT):
@tongli I just submitted an issue and a PR to fix it. Let me know if you'd liked to see changes to it.

tongli (Fri, 13 Nov 2020 19:02:37 GMT):
looking

tongli (Fri, 13 Nov 2020 19:02:45 GMT):
@ericmvaughn ^^^

tongli (Fri, 13 Nov 2020 19:04:21 GMT):
@ericmvaughn so the original will skip the peer element when no peers, the changes will provide an empty list, is that the intent of the PR?

ericmvaughn (Fri, 13 Nov 2020 19:06:02 GMT):
The original would put in a single line with just '"peer":' which I think equates to peer = null which the SDK chokes on

ericmvaughn (Fri, 13 Nov 2020 19:06:50 GMT):
The change will be to create an empty array instead of null

tongli (Fri, 13 Nov 2020 19:06:57 GMT):
oh. ok. I see.

tongli (Fri, 13 Nov 2020 19:07:09 GMT):
@ericmvaughn thanks for your contribution, I have approved it.

tongli (Fri, 13 Nov 2020 19:07:26 GMT):
once it pass all the tests which I do not see reason why it would not, I will merge it.

ericmvaughn (Fri, 13 Nov 2020 19:07:52 GMT):
OK great, thanks for taking a look at it right away

tongli (Fri, 13 Nov 2020 19:07:56 GMT):
actually it just passed all the test, merged.

tongli (Fri, 13 Nov 2020 19:08:16 GMT):
the latest image should become available in about 20 minutes.

ericmvaughn (Fri, 13 Nov 2020 19:08:39 GMT):
alright thanks

tongli (Fri, 13 Nov 2020 19:09:12 GMT):
@ericmvaughn sure thing.

rjones (Fri, 13 Nov 2020 20:46:32 GMT):
@tongli if you add a merge label, once tests pass, mergify bot will merge for you (so you don't have to wait)

ericmvaughn (Fri, 13 Nov 2020 22:01:07 GMT):
@tongli The change I just made doesn't appear to be in the latest minifab on dockerhub.

rjones (Fri, 13 Nov 2020 23:40:08 GMT):
@ericmvaughn https://hub.docker.com/repository/docker/hyperledgerlabs/minifab shows the last publication was 4 hours ago

rjones (Fri, 13 Nov 2020 23:40:47 GMT):
[at this commit](https://github.com/hyperledger-labs/minifabric/tree/cf1d63cf051ca4bd6d525b3250b5ebc34b5e17da)

rjones (Fri, 13 Nov 2020 23:41:50 GMT):
https://hub.docker.com/repository/registry-1.docker.io/hyperledgerlabs/minifab/builds/df4e98b2-e0b2-4c3f-977a-18f9b66ebfa8 logs here

ericmvaughn (Fri, 13 Nov 2020 23:42:53 GMT):
That's the commit but when I went into a container build with the new image I didn's see the changes

ericmvaughn (Sat, 14 Nov 2020 00:03:24 GMT):
@rjones I deleted the image and pulled it again but I still don't see the changes

tongli (Sat, 14 Nov 2020 00:13:31 GMT):
The latest build should include it.

ericmvaughn (Sat, 14 Nov 2020 00:14:26 GMT):
I agree but unless I'm looking at it wrong I don't think it's there

tongli (Sat, 14 Nov 2020 00:14:50 GMT):
Do you have latest script as well?

tongli (Sat, 14 Nov 2020 00:15:04 GMT):
I mean minifab script?

ericmvaughn (Sat, 14 Nov 2020 00:15:11 GMT):
yes

tongli (Sat, 14 Nov 2020 00:15:43 GMT):
Hmmm. That is really weird. Probably build it locally first

tongli (Sat, 14 Nov 2020 00:16:11 GMT):
I will take a look later. Not in front of a computer

ericmvaughn (Sat, 14 Nov 2020 00:16:21 GMT):
I did a `docker run -it hyperledgerlabs/minifab sh` to look at the file directly

ericmvaughn (Sat, 14 Nov 2020 00:16:53 GMT):
There's no rush for this on my end and it can wait until next week

tongli (Sat, 14 Nov 2020 00:17:12 GMT):
Hmm, unless docker hub has some issues

tongli (Sat, 14 Nov 2020 00:17:36 GMT):
Your pr has been merged

ericmvaughn (Sat, 14 Nov 2020 00:17:59 GMT):
I don't have authorization to look at the log file Ry pointed me to

ericmvaughn (Sat, 14 Nov 2020 00:18:20 GMT):
Docker Hub calls out the correct commit

tongli (Sat, 14 Nov 2020 00:18:59 GMT):
Can you do a minifab update ?

tongli (Sat, 14 Nov 2020 00:19:13 GMT):
I mean just run that command

ericmvaughn (Sat, 14 Nov 2020 00:19:19 GMT):
I did that first

tongli (Sat, 14 Nov 2020 00:19:32 GMT):
Hmmm. Interesting

ericmvaughn (Sat, 14 Nov 2020 00:19:52 GMT):
Then after seeing the problem I deleted the minifab image and did a fresh pull

ericmvaughn (Sat, 14 Nov 2020 00:20:03 GMT):
same results

rjones (Sat, 14 Nov 2020 00:55:09 GMT):
@ericmvaughn here is the log: https://gist.github.com/ryjones/700780bb7ea47f9cbf43b55aa0e575a7

ericmvaughn (Sat, 14 Nov 2020 00:57:41 GMT):
It looks like step 2 might be still pointing to the previos repo `Step 2/11 : RUN cd /tmp && git init minifabric && cd minifabric && git remote add origin https://github.com/litong01/minifabric`

tongli (Sat, 14 Nov 2020 00:58:01 GMT):
wow.

tongli (Sat, 14 Nov 2020 00:58:03 GMT):
holy cow

rjones (Sat, 14 Nov 2020 00:58:08 GMT):
yikes

tongli (Sat, 14 Nov 2020 00:58:31 GMT):
yes. you are absolutely right.

tongli (Sat, 14 Nov 2020 00:58:44 GMT):
can you fix that?

tongli (Sat, 14 Nov 2020 00:58:58 GMT):
I will merge it, if I do a PR, it wont allow me to merge.

rjones (Sat, 14 Nov 2020 00:59:02 GMT):
how has anything every worked

rjones (Sat, 14 Nov 2020 00:59:02 GMT):
how has anything ever worked

rjones (Sat, 14 Nov 2020 00:59:17 GMT):
I'm doing it right now

tongli (Sat, 14 Nov 2020 00:59:19 GMT):
since I probably kept my repo in sync

rjones (Sat, 14 Nov 2020 01:02:03 GMT):
https://github.com/hyperledger-labs/minifabric/pull/122

tongli (Sat, 14 Nov 2020 01:14:01 GMT):
@rjones can not access github right now.

tongli (Sat, 14 Nov 2020 01:14:06 GMT):
can you get it merged?

rjones (Sat, 14 Nov 2020 01:14:33 GMT):
done

tongli (Sat, 14 Nov 2020 01:14:58 GMT):
thx @rjones

ericmvaughn (Sat, 14 Nov 2020 01:29:12 GMT):
@tongli @rjones The new build worked and has the latest change. Thanks much

tongli (Sat, 14 Nov 2020 01:44:13 GMT):
@ericmvaughn @rjones awesome. thanks.

rjones (Sat, 14 Nov 2020 15:37:03 GMT):
@ericmvaughn thank you for pushing me, I looked at that log a dozen times and never noticed :)

tongli (Sat, 14 Nov 2020 17:47:22 GMT):
@rjones @ericmvaughn thanks, this is what the community all about, we contribute and we help each other to get better.

ericmvaughn (Sat, 14 Nov 2020 18:12:58 GMT):
I'm happy I was able to contribute and help out.

tongli (Sun, 15 Nov 2020 18:50:53 GMT):
@rjones when you have a minute please review this https://github.com/hyperledger-labs/minifabric/pull/123

tongli (Sun, 15 Nov 2020 18:51:17 GMT):
which is to improve the stats function a bit so that the command will always work regardless the network is up running or not.

pkirkinezis (Sun, 15 Nov 2020 21:29:24 GMT):
@tongli https://github.com/hyperledger-labs/minifabric/pull/123 this works across server ?

pkirkinezis (Sun, 15 Nov 2020 21:30:55 GMT):
It works allogn side the discover command to check which nodes from other machines also are up and running ?

pkirkinezis (Sun, 15 Nov 2020 21:33:06 GMT):
As i review the code it seems to work sepcifically on the machine is rubnning to .

tongli (Sun, 15 Nov 2020 22:24:27 GMT):
It should work for the node which has access to any node. It is done based on the nodes which the running machine can see.

tongli (Sun, 15 Nov 2020 22:25:42 GMT):
Hmmm, I am not actually sure. It should only check for the nodes running on the machine which is doing the checking

tongli (Sun, 15 Nov 2020 22:26:12 GMT):
Because it checks nodes in the docker network.

tongli (Sun, 15 Nov 2020 22:26:12 GMT):
Because it checks nodes on the docker network.

tongli (Sun, 15 Nov 2020 22:26:35 GMT):
Which is local.

tongli (Sun, 15 Nov 2020 22:27:27 GMT):
So I think it only checks the nodes local.

tongli (Mon, 16 Nov 2020 03:21:26 GMT):
@rjones thanks so much for review and merge the pr.

pkirkinezis (Mon, 16 Nov 2020 06:53:57 GMT):
Yeah it was clear the minute i saw the code .

gabrielodi (Mon, 16 Nov 2020 15:38:18 GMT):
I just wanted to congratulate and thank you all for the amazing work you do. I understand half of the things said here, I am from another field (mechanical engineering) and I am using hyperledger fabric in my PhD. I appreciate all your work here and I am always tuned reading what is happening here and on the github. I am not able to commit anything and help with the development (at least not yet), but I would like to thank you all, specially tongli. Great work, guys!

tongli (Tue, 17 Nov 2020 00:50:16 GMT):
@gabrielodi thank you. Happy to produce things that is useful to others.

tongli (Tue, 17 Nov 2020 13:03:19 GMT):
@mvkillu thanks for your PR, but I think you missed your PR signoff

tongli (Tue, 17 Nov 2020 13:03:43 GMT):
to get it going again, please do the following against your own forked repo.

tongli (Tue, 17 Nov 2020 13:03:58 GMT):
```git commit --amend --signoff```

tongli (Tue, 17 Nov 2020 13:04:12 GMT):
```git push --force-with-lease origin master```

tongli (Tue, 17 Nov 2020 13:04:32 GMT):
please do the above two steps, then the PR can be merged.

rjones (Tue, 17 Nov 2020 15:04:54 GMT):
yeah I messed that up, please approve 125 @tongli

tongli (Tue, 17 Nov 2020 15:06:31 GMT):
@rjones approved. thanks.

tongli (Wed, 18 Nov 2020 21:14:05 GMT):
@rjones added release 2.3 to the pipeline for testing. please see this PR. https://github.com/hyperledger-labs/minifabric/pull/126

tongli (Wed, 18 Nov 2020 21:15:36 GMT):
this will be in addition to the tests that we have already run. So now we run against 1.4.1, 1.4.6, 1.4.8, 2.0.0, 2.1.0, 2.2.0 and 2.3

tongli (Wed, 18 Nov 2020 21:15:52 GMT):
2.3 being the latest.

pkirkinezis (Thu, 19 Nov 2020 09:28:25 GMT):
I would love to know how asuze pipelines work ? And what practically means updating to 2.3 ?

tongli (Thu, 19 Nov 2020 12:16:47 GMT):
Added to azure pipeline so that each of our build will run against many different fabric releases. We have been testing against fabric releases listed above for every PR.

tongli (Thu, 19 Nov 2020 12:17:25 GMT):
So that we confident that mini fabric continues to support fabric releases since 1.4.1

tongli (Thu, 19 Nov 2020 12:19:02 GMT):
Take a look at changes made in the last PR and where the changes happened. Then you can start looking up on internet how azure pipeline works.

tongli (Thu, 19 Nov 2020 16:24:32 GMT):
@rjones Continued to improve minifabric and making use of it easy. I added this PR , please review . https://github.com/hyperledger-labs/minifabric/pull/127

tongli (Thu, 19 Nov 2020 16:24:47 GMT):
```connection files have been using referenced certs in the past for golang connection profile, it is not very convinient since there will be many files to be moved with connection files. This PR fixed that issue so that all certs will come with the connection file. Also added example using wallet.```

tongli (Thu, 19 Nov 2020 17:51:03 GMT):
@rjones Thanks a lot for approving the PR.

tongli (Thu, 19 Nov 2020 18:30:18 GMT):
@rjones @gabrielodi @ericmvaughn another PR to make the default fabric release to be 2.3.0, here it is https://github.com/hyperledger-labs/minifabric/pull/128

tongli (Thu, 19 Nov 2020 18:30:21 GMT):
Thanks

tongli (Thu, 19 Nov 2020 18:30:49 GMT):
grand total of one character change in the PR.

tongli (Thu, 19 Nov 2020 19:44:13 GMT):
Thanks @rjones

ericmvaughn (Thu, 19 Nov 2020 20:32:18 GMT):
@tongli I just gave the new build a try and it used Fabric 2.3.0 without any issue. Which brought up a thought, should we add the 2.3.0 release to the azure test list?

pkirkinezis (Fri, 20 Nov 2020 07:52:55 GMT):
One big change for me in the new 2.3.0 is the deprecation of System Channel

pkirkinezis (Fri, 20 Nov 2020 07:53:59 GMT):
I have to familirize my self with the changelog . Its not time to break the functionality of my concept in the middle of the demo period .

tongli (Fri, 20 Nov 2020 11:35:30 GMT):
@ericmvaughn already added 2.3.0 as part of the pipeline test. Please see the latest build.

ericmvaughn (Fri, 20 Nov 2020 13:55:43 GMT):
I see it now, sorry I missed it.

tongli (Sat, 21 Nov 2020 00:32:52 GMT):
@ericmvaughn not a problem at all.

tongli (Sun, 22 Nov 2020 14:10:05 GMT):
@rjones new PR to improve the update command to show extra information such as minifabric image id and created at date and time so that when we do update we know where we are at. https://github.com/hyperledger-labs/minifabric/pull/130

tongli (Sun, 22 Nov 2020 14:10:13 GMT):
Thanks.

pkirkinezis (Sun, 22 Nov 2020 14:43:52 GMT):
For the leatest pr . Do you think is a good idea to somehow give the user the option to choose what version of minifabric docker want to use ?

tongli (Sun, 22 Nov 2020 14:44:19 GMT):
actually I already took that back.

tongli (Sun, 22 Nov 2020 14:44:23 GMT):
working on this new one.

tongli (Sun, 22 Nov 2020 14:44:36 GMT):
I wanted to add to the stats command instead of the update command.

tongli (Sun, 22 Nov 2020 14:44:49 GMT):
sometimes, the user may not want to update.

tongli (Sun, 22 Nov 2020 14:45:09 GMT):
so stats command is no harm.

tongli (Sun, 22 Nov 2020 14:45:19 GMT):
you can do `minifab stats` first,

pkirkinezis (Sun, 22 Nov 2020 14:45:39 GMT):
Yeah . Yeah this will give us the flexibility to do major changes without affecting someone who already deployed a project

tongli (Sun, 22 Nov 2020 14:46:23 GMT):
right.

tongli (Sun, 22 Nov 2020 14:46:45 GMT):
https://github.com/hyperledger-labs/minifabric/pull/131

tongli (Sun, 22 Nov 2020 14:46:56 GMT):
this is the new one, you can take a look.

tongli (Sun, 22 Nov 2020 14:48:47 GMT):
@rjones I submitted a PR but then later changed my mind on which command this should go with, I decided that `minifab stats` is a better home than `minifab update` since user may not want to update minifabric in some cases. `minifab stats` is a no harm command and can be run any time.

tongli (Sun, 22 Nov 2020 14:49:13 GMT):
so I've put up a new PR. https://github.com/hyperledger-labs/minifabric/pull/131, please take a look when you have time.

tongli (Sun, 22 Nov 2020 14:49:41 GMT):
@pkirkinezis if you are good with this PR, approve, so that we can merge it.

tongli (Sun, 22 Nov 2020 14:49:59 GMT):
I believe that you have permission to approve a PR.

pkirkinezis (Sun, 22 Nov 2020 14:50:17 GMT):
i think yes

tongli (Sun, 22 Nov 2020 14:50:40 GMT):
right, please approve if you think this is a good one after all checks are done.

pkirkinezis (Sun, 22 Nov 2020 14:51:15 GMT):
yeah i think it's ok . I approved it but it says owner review required

pkirkinezis (Sun, 22 Nov 2020 14:51:17 GMT):
xm

tongli (Sun, 22 Nov 2020 14:52:42 GMT):
need all the tests to go through.

tongli (Sun, 22 Nov 2020 14:53:14 GMT):
we run azure pipeline tests whenever there is a PR to ensure everything works against all selected fabric releases. so it will take awhile.

tongli (Sun, 22 Nov 2020 14:53:29 GMT):
but I think all tests will pass.

pkirkinezis (Sun, 22 Nov 2020 15:18:44 GMT):
yeah . Another topic is the Anchor peers . Many people seem to miss the anchor peer importance while running their projects . Anchor peers are very important especialy when dealing with SDK . If the anchor peers are not setup and you try to invoke the chaincode throuth SDK it will return endorsement failure.

tongli (Sun, 22 Nov 2020 15:51:59 GMT):
@pkirkinezis that is not true. That only happens when you use some connection options which requires anchor nodes. Not all options require that.

tongli (Sun, 22 Nov 2020 15:52:11 GMT):
there are so many different ways making a connection.

pkirkinezis (Sun, 22 Nov 2020 16:25:49 GMT):
Sorry my bad explanation . In multi server configuration how to you get endorsement for a invoke ? You have run invoke including all of th endorsing peers

pkirkinezis (Sun, 22 Nov 2020 16:28:19 GMT):
If your nodes are not discoverable , then you have to manually set them in the config file you use for the SDK.

tongli (Sun, 22 Nov 2020 16:43:32 GMT):
Right. You can always specify which node you want to send your endorsement request too. This is a must have function as for private data collection, you never want to send endorsement to a peer which you do not trust.

tongli (Sun, 22 Nov 2020 16:44:00 GMT):
Or that peer is not part of the private data collection.

tongli (Sun, 22 Nov 2020 16:44:28 GMT):
As I said that you will need to figure out how to do that in each ask.

tongli (Sun, 22 Nov 2020 16:44:34 GMT):
Each sdk

pkirkinezis (Sun, 22 Nov 2020 18:03:21 GMT):
Yeah that why i am telling that this is not clear to everyone using minifabriv

pkirkinezis (Sun, 22 Nov 2020 18:03:25 GMT):
minifabric

tongli (Sun, 22 Nov 2020 22:41:31 GMT):
This has nothing to do with mini fabric

tongli (Mon, 23 Nov 2020 16:10:39 GMT):
@rjones can you take a look at this pr https://github.com/hyperledger-labs/minifabric/pull/131

tongli (Mon, 23 Nov 2020 16:10:41 GMT):
Thanks

tongli (Mon, 23 Nov 2020 19:32:04 GMT):
@rjones thanks for merging the PR.

tongli (Mon, 23 Nov 2020 21:26:53 GMT):
we've added quite few features last couple of weeks, all these changes are to make things easier for users, For example, you can run `minifab stats` any time to see the current network status including your Minifabric image created at date and time, also percentage of your network running. if all your nodes are running healthy, then your status will be 100%, if no node is running healthy, then your status will be 0%. etc.

tongli (Mon, 23 Nov 2020 21:29:00 GMT):
we've also improved the go connection json and yaml files so that certificates are now all embedded in the connection file, this is to easy the reference path issues when one only copy connection profile but did not point the application to the right path to reference certificates, including all the certificates in the connection file will basically remove that issue. All you need to do is to get the connection profile.

tongli (Mon, 23 Nov 2020 21:30:33 GMT):
I've also added new go sample code in app/go/main.go file so that you can see how the connection profile gets used using user id and wallets. I have no added event listener sample there yet, but if someone would like to contribute, you can certainly submit a PR to include golang samples doing event listening.

tongli (Mon, 23 Nov 2020 21:33:17 GMT):
Thanks for using and contributing to Minifabric, and also thanks for encouraging others to try Minifabric. If this has been a tool helped you learning, developing and deploying Fabric, please spread the words to others, so more people can benefit from it. Thanks and have a happy Thanksgiving.

mvkillu (Tue, 24 Nov 2020 03:08:50 GMT):
Happy Thanksgiving @tongli @rjones and all other Minifab users here...

ayeshperera (Tue, 24 Nov 2020 23:34:21 GMT):
Hi All I am facing problem when I have more than one contract in the chain code when invoking the contract methods. Is there specific way in minifab to invoke methods when there are more than one contract in the chaincode In fabric it says you have to get the contract from the network like below and then you can invoke the 2nd contract methods. network.getContract('fabcar', 'NewContract1'); I am not sure how to invoke like this in minifabric any idea ?

ayeshperera (Tue, 24 Nov 2020 23:34:21 GMT):
Hi All I am facing problem when I have more than one contract in the chain code when invoking the contract methods. Is there specific way in minifab to invoke methods when there are more than one contract in the chaincode? In fabric it says you have to get the contract from the network like below and then you can invoke the 2nd contract methods. network.getContract('fabcar', 'NewContract1'); I am not sure how to invoke like this in minifabric any idea ?

ayeshperera (Tue, 24 Nov 2020 23:36:21 GMT):
In the logs I can see the 2nd contract getting deployed but am note sure how to invoke through minifabric cli

tongli (Wed, 25 Nov 2020 00:57:07 GMT):
@ayeshperera hmmm, I think that you may have confused by contract and methods.

tongli (Wed, 25 Nov 2020 00:58:03 GMT):
It seems to me in your example, your chain code is “fabcar”, method is “NewContract1”,

tongli (Wed, 25 Nov 2020 00:58:55 GMT):
What seems to be confusing is that the method name is called “NewContract1”, though it is not really a contract(chaincode).

tongli (Wed, 25 Nov 2020 00:59:59 GMT):
You can use any method name in place of “NewContract1” to invoke that method , of course parameters will be different as well.

ayeshperera (Wed, 25 Nov 2020 01:03:56 GMT):
Hi @tongli hm nope I just pointed out just an example so fabcar is the chaincode name and the newcontract1 is the contract name not a method inovication

ayeshperera (Wed, 25 Nov 2020 01:04:52 GMT):
and below are my 2 contracts which I try to deploy and invoke

ayeshperera (Wed, 25 Nov 2020 01:05:08 GMT):
https://github.com/nimble-platform/logistic-contract/blob/master/src/lib/contracts/identity.ts https://github.com/nimble-platform/logistic-contract/blob/master/src/lib/contracts/logistic.ts

ayeshperera (Wed, 25 Nov 2020 01:07:30 GMT):
I was trying to find out and got to know from fabric-client I can perform like in the answer below https://stackoverflow.com/questions/48334334/multiple-smart-contracts-in-hyperledger-fabric

ayeshperera (Wed, 25 Nov 2020 01:07:50 GMT):
so I was checking is it possible from minifabric

tongli (Wed, 25 Nov 2020 01:16:33 GMT):
You have two contracts, you should install them as such.

ayeshperera (Wed, 25 Nov 2020 01:17:24 GMT):
hm in fabric chaincode we can include more than one contract ?

tongli (Wed, 25 Nov 2020 01:17:33 GMT):
In theory, they have nothing to do with each other

ayeshperera (Wed, 25 Nov 2020 01:17:50 GMT):
yeah later on I will cross talk from one to another

tongli (Wed, 25 Nov 2020 01:17:52 GMT):
Not that I know of

tongli (Wed, 25 Nov 2020 01:18:07 GMT):
That is their logic relationship

tongli (Wed, 25 Nov 2020 01:18:28 GMT):
As fas as fabric is concerned, they are two separate contracts

ayeshperera (Wed, 25 Nov 2020 01:20:31 GMT):
oh ok

ayeshperera (Wed, 25 Nov 2020 18:07:41 GMT):
Hi tongli I actually went further more and tried out deploying both contracts in the same chaincode from fabric client I was been able to access both const contract = await network.getContract(chaincodeName, "org.nimble.supplychain_network.identity"); this is one contract in my chancode const contract = await network.getContract(chaincodeName,"org.nimble.supplychain_network.logistic"); this is the other contract I have a function in both smart contract to test the endpoints I was been able to invoke the endpoints and get results wdyt ?

zhenbing (Thu, 26 Nov 2020 09:44:11 GMT):
@tongli It seem I fell into a trap like something caching... Yesterday I git pull 2.3 and cleanup and I always fall into 2.2 even I remove minifab docker image. Today I try to submit a PR to fix apprun GOPROXY, but... whenever I add line to apprun_go.j2 or add a -e directly in apply.yaml, nothing happening...

zhenbing (Thu, 26 Nov 2020 09:51:19 GMT):

Clipboard - November 26, 2020 5:50 PM

zhenbing (Thu, 26 Nov 2020 09:52:48 GMT):

Clipboard - November 26, 2020 5:52 PM

tongli (Thu, 26 Nov 2020 13:08:42 GMT):
@zhenbing you probably did not build local mini fabric image?

tongli (Thu, 26 Nov 2020 13:10:08 GMT):
Also, do minifab cleanup should clean up everything

zhenbing (Thu, 26 Nov 2020 13:10:50 GMT):
Yes:innocent:

zhenbing (Thu, 26 Nov 2020 16:33:02 GMT):
@tongli azp test have passed. pls review and merge, thanks.

tongli (Thu, 26 Nov 2020 16:40:33 GMT):
@zhenbing thanks for your contribution, I have done that, there is a small issue , please amend your PR according to the comment

zhenbing (Thu, 26 Nov 2020 16:41:00 GMT):
okay

tongli (Thu, 26 Nov 2020 23:57:55 GMT):
@zhenbing merged and thanks for your contribution

pkirkinezis (Mon, 30 Nov 2020 07:22:55 GMT):
Hi i was unable to connect ot the chat for the past few days . I was trying to log in but was getting and error . Then i reseted the password of my linux foundation acount with no luck . Today without changing anything I finaly managed to log in to the chat . Maybe was a fault with linux foundation update iI don'y know.

tongli (Wed, 09 Dec 2020 16:50:20 GMT):
@rjones Ry, can you please take a look at this PR https://github.com/hyperledger-labs/minifabric/pull/137

tongli (Wed, 09 Dec 2020 16:52:42 GMT):
this is to allow couchdb ports to be exposed. This has been asked few times before, I did not have time to add the feature, now one can simply connect to a couchdb instance using Fauxton UI to inspect the database.

tongli (Wed, 09 Dec 2020 16:53:01 GMT):
Thanks @rjones

tongli (Wed, 09 Dec 2020 19:40:46 GMT):
Thanks @rjones

gabrielodi (Thu, 10 Dec 2020 12:46:06 GMT):
"this is to allow couchdb ports to be exposed" the ports from the docker where we have the couchdb installed? Oh, this is amazing! I was indeed looking for something like that!! this is great

gabrielodi (Thu, 10 Dec 2020 12:47:06 GMT):
so I can run fabric in a machine, with all dockers set, and access it through from outside my network?

gabrielodi (Thu, 10 Dec 2020 12:52:19 GMT):
then one question, it exposes couchdb port for queries... ok... noob question, but -> is there an easy way to expose docker ports for ordering nodes? Is it already implemented?

gabrielodi (Thu, 10 Dec 2020 12:54:16 GMT):
just to explain why I ask: I am developing a conceptual solution for my PhD and I plan to keep it simple at fabric level. By that I mean: I want to deploy the ledger in an easy way (minifab is amazing) and don't want to think about networks, nodes connections, etc. Everything working in dockers is fine for me. BUT I would like to send invokes and queries from outside my network. I understand that exposing docker port for couchdb solves part of my issue, but am I able to invoke from outside? thank you very much in advance

pkirkinezis (Thu, 10 Dec 2020 17:57:58 GMT):
@gabrielodi the orderer ports are exposes because vuia which way the peers would comunicate with orderers in a multi server project

pkirkinezis (Thu, 10 Dec 2020 17:59:27 GMT):
For queries and invokes i would suggest implementing and API to a language of your preference . I personally worked with JAVA hyperledger gateway API

pkirkinezis (Thu, 10 Dec 2020 18:02:10 GMT):
You simple get the keys produced by minifabric + connection profile produced .

pkirkinezis (Thu, 10 Dec 2020 18:02:43 GMT):
Minifabric is just hyperledger fabric . So any SDK would do from hyperledger documentation . Please have a look https://github.com/hyperledger/fabric-gateway-java

tongli (Thu, 10 Dec 2020 18:40:03 GMT):
@gabrielodi please take a look at documents in the repo docs directory. To do what you asked is very simple in minifabric, even if you want to see how to develop an app, there are examples packaged in minifabric, you can look at apps/go directory and get a feel about writing an app using golang, if you prefer other languages, then use other sdks but the concept/logic stays the same. Then you can try to run minifab apprun command to see things actually working.

tongli (Thu, 10 Dec 2020 18:40:41 GMT):
Expose ports to the outside of your machine simply use -e true flag.

gabrielodi (Thu, 10 Dec 2020 23:14:42 GMT):
possibly I have missed about it then thank you for the answers and patience! (y)

gabrielodi (Mon, 14 Dec 2020 05:36:53 GMT):
Hello guys... I have performed some test in the past days and I have some questions, if I may

gabrielodi (Mon, 14 Dec 2020 05:42:44 GMT):
1) Once I ran 'minifab apprun -l go' and "minifab apprun", I see no output or return in terminal. I see the standard output from minifab and in the end " Application in go completed successfully". But there was nothing from the chaincode on the output. Other than that, the go-app seems only to run the "useWalletGateway()" function, but no interaction with the chaincode itself. There are other functions in the app, but how to use them? I couldn't "minifab apprun doEnroll" for instance. Sorry, but this is really not clear for me how to work with apprun. If you could explain better to me, I can even commit my time to try to enhance the minifab docs in a more clear way for incoming new people.

gabrielodi (Mon, 14 Dec 2020 05:46:07 GMT):
2) even opening the ports (minifab up -e) I can't see them when I run 'docker port '. Is "-e" really working? Should I specify which port (ex 7051) I would like to open? But ok, this is exposing the port, is it also published? And how could I check it? I tried to access http://:7051/healthz or 8051/healthz, but I have no success.

gabrielodi (Mon, 14 Dec 2020 05:52:22 GMT):
3) how is "-f" supposed to work? Haven't found it in documentation. If you explain to me, I also compromise to include it in docs

gabrielodi (Mon, 14 Dec 2020 05:57:55 GMT):
4) following your recommendation, I studied fabric-sdk-go and also the example on apps/go. Other than that, the fabric documentation also includes a lot of material on that - quite heavy in fact, I couldn't understand everything yet. Anyway, will I be able to have an app running outside (for instance, in my case, in Heroku) talking to the deployed fabric in AWS, for instance? If I understood well, exposing (-e) will allow me to send the invokes through the app running in heroku, for instance? And the IP/ports my app will access will be defined in connection.json for instance? In minifab, the best way to do it is running the apprun -l go once and then I have the .json generated, just for me to replace the ip and port, then?

gabrielodi (Mon, 14 Dec 2020 05:58:45 GMT):
thank you very much and sorry for the pack of questions... I am really pushing myself here, but it is starting to get more complex than I thought and I think I could use some help from experts...

gabrielodi (Mon, 14 Dec 2020 05:58:52 GMT):
thank you very much in advance

tongli (Mon, 14 Dec 2020 17:19:33 GMT):
@gabrielodi if the IP address of your machine on aws is accessible outside, you can certainly do that. If you think minifabric is complex, wait until you see fabric without minifabric.

tongli (Mon, 14 Dec 2020 17:20:48 GMT):
Connection files get created regardless you use them or not. Command to generate connection files is profilegen

tongli (Mon, 14 Dec 2020 17:21:03 GMT):
Please also read the docs in docs directory

tongli (Mon, 14 Dec 2020 17:21:39 GMT):
And run minifab command without any parameter to see all available commands

gabrielodi (Mon, 14 Dec 2020 17:35:11 GMT):
" If you think minifabric is complex, wait until you see fabric without minifabric." Ah yes, I know that. I tried to use plain fabric before knowing minifabric. It is awesome. Complex for me now is the process of app integration, which I know is not a minifabric issue!

gabrielodi (Mon, 14 Dec 2020 17:36:27 GMT):
yes, I am reading the documentation, thank you

gabrielodi (Tue, 15 Dec 2020 05:28:21 GMT):
I am trying to migrate to AWS (I was running locally), but for some reason I get this error: # Run the channel join script on cli container **************** non-zero return code 2020-12-15 05:19:39.078 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2020-12-15 05:19:39.089 UTC [cli.common] readBlock -> INFO 002 Received block: 0 Error: error getting endorser client for channel: endorser client failed to connect to 10.0.0.96:7002: failed to cr eate new connection: connection error: desc = "transport: error while dialing: dial tcp 10.0.0.96:7002: connect: conn ection refused" I am running "minifab up -s couchdb -e 7000" And yes, I have tcp ports open for 7000-7020 and 8000-8020 for all ips... really dont understand what is going on. What could it be?

tongli (Tue, 15 Dec 2020 12:31:09 GMT):
@gabrielodi you probably want to check if aws vm has firewall enabled, if so, you probably want to see the docs in docs directory about centos and fedora as reference on how to open up the ports

gabrielodi (Tue, 15 Dec 2020 14:18:24 GMT):
I opened the ports, let me see the firewalls... I will check the docs on centos/fedora Thank you

tongli (Tue, 15 Dec 2020 14:19:29 GMT):
@gabrielodi not a problem. happy to help out

said_shah (Tue, 15 Dec 2020 20:44:14 GMT):

Clipboard - December 15, 2020 3:44 PM

said_shah (Tue, 15 Dec 2020 20:44:19 GMT):
Does anybody know why I would be getting this error, I have added the ip to my etc/hosts file, but I still keep getting this error, it's kind of driving me crazy :angry:

said_shah (Tue, 15 Dec 2020 20:44:25 GMT):

Clipboard - December 15, 2020 3:44 PM

said_shah (Tue, 15 Dec 2020 20:45:10 GMT):
I'm running minifab, VMWare, Ubuntu 20.04

tongli (Tue, 15 Dec 2020 22:26:30 GMT):
What command are you using?

tongli (Tue, 15 Dec 2020 22:26:52 GMT):
@said_shah ^^^

tongli (Tue, 15 Dec 2020 22:27:29 GMT):
It is kind hard to help you with very little information.

zhenbing (Wed, 16 Dec 2020 04:38:21 GMT):

Clipboard - December 16, 2020 11:13 AM

zhenbing (Wed, 16 Dec 2020 04:47:01 GMT):
@tongli I encounter an error with -o and -s option when create channel, I modified spec.ymal and pass a specified organization -o xxx.com, anything was wrong with me?

tongli (Wed, 16 Dec 2020 11:10:54 GMT):
Check your org names, peer org and orderer org cannot be the same

tongli (Wed, 16 Dec 2020 11:39:31 GMT):
@zhenbing ^^^

gabrielodi (Wed, 16 Dec 2020 12:29:43 GMT):
@said_shah I am facing the same with latest fabric version... older versions no issues... but it happens only at "-s couchdb" from what I saw.

tongli (Wed, 16 Dec 2020 12:59:36 GMT):
@gabrielodi @said_shah can you both detail what exactly the issue is and how to recreate it and what system you were using? Without detailed info, it is extremely hard to help you. Only here or there pieces of information does not really help others trying to help you.

tongli (Wed, 16 Dec 2020 13:01:33 GMT):
Also knowing that people out there trying to help you are completely out of kindness. If you provide more information, others may spend less time to give you a good solution.

tongli (Wed, 16 Dec 2020 13:04:21 GMT):
And can provide you solution also faster.

gabrielodi (Wed, 16 Dec 2020 14:39:49 GMT):
sorry tonli, was just saying I got the exactly same thing... I couldn't access my other computer at that time I have all info now:

gabrielodi (Wed, 16 Dec 2020 14:40:14 GMT):

Clipboard - 16 de Dezembro de 2020 às 11:40

gabrielodi (Wed, 16 Dec 2020 14:41:40 GMT):
after cleaning all my dockers and 'minifab cleanup': minifab up -e 7000 -n samplecc -s couchdb

gabrielodi (Wed, 16 Dec 2020 14:42:02 GMT):
then exactly same issue than @said_shah

gabrielodi (Wed, 16 Dec 2020 14:42:15 GMT):
since I think it is due to -s couchdb, I will run without it and report back

gabrielodi (Wed, 16 Dec 2020 14:44:43 GMT):
as we can see, both him and my issue occours just after channel join operation

gabrielodi (Wed, 16 Dec 2020 14:45:00 GMT):
I am running in an AWS Linux 2, ports open, no firewall running

gabrielodi (Wed, 16 Dec 2020 14:45:22 GMT):
AWS Linux 2 EC2*

gabrielodi (Wed, 16 Dec 2020 14:47:05 GMT):
Confirmation: No issue when running without "-s couchdb"... I kept the other parameters ( minifab up -e 7000 -n samplecc )

gabrielodi (Wed, 16 Dec 2020 14:48:02 GMT):
I will now run with "-s couchdb" and without "-e 7000" and report back...

tongli (Wed, 16 Dec 2020 14:55:14 GMT):
@gabrielodi ok

gabrielodi (Wed, 16 Dec 2020 15:10:02 GMT):
here it is

gabrielodi (Wed, 16 Dec 2020 15:10:05 GMT):

Clipboard - 16 de Dezembro de 2020 às 12:10

gabrielodi (Wed, 16 Dec 2020 15:10:30 GMT):
all ports open, asking for -s couchdb, not asking -e ####

gabrielodi (Wed, 16 Dec 2020 15:10:46 GMT):
not the same error as before

gabrielodi (Wed, 16 Dec 2020 15:11:17 GMT):
but still ...

gabrielodi (Wed, 16 Dec 2020 15:21:24 GMT):
not in the screenshot above, just realized now, and the following picture is just an example, but I could see that network status is not 100% when we got those errors... its ~37%

gabrielodi (Wed, 16 Dec 2020 15:21:26 GMT):

Clipboard - 16 de Dezembro de 2020 às 12:21

gabrielodi (Wed, 16 Dec 2020 15:21:45 GMT):
once I run again I will take a better look into the whole log

zhenbing (Thu, 17 Dec 2020 08:34:49 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=TKI4LIfudoYUOFI8F) Thanks. Where can I define peer org and orderer org? give me some clue pls:)

zhenbing (Thu, 17 Dec 2020 08:42:52 GMT):

Clipboard - December 17, 2020 4:42 PM

zhenbing (Thu, 17 Dec 2020 08:42:58 GMT):
Here is my spec.yaml.

tongli (Thu, 17 Dec 2020 12:22:53 GMT):
@zhenbing, make sure that your orderer org name is not the same as any of the peer org name. Looks like your spec is ok.

tongli (Thu, 17 Dec 2020 12:26:14 GMT):
What env were you using ?

tongli (Thu, 17 Dec 2020 12:38:32 GMT):
@gabrielodi the error of 127.0.0.11:53 not found is interesting. That is default docker dns. I wonder if your docker was configured differently. The problem seems that cli node cannot find the peer node by its name. You probably can look at how your docker dns was setup.

tongli (Thu, 17 Dec 2020 12:46:05 GMT):
If you are on Linux system, check your /etc/docker/daemon.json file to see if you have dns defined there which points to other entries other than 127.0.0.11 which is where default docker dns runs on. There has to be some issues with your docker because container is trying to reach the dns server for resolving the peer names but it cannot reach the dns services. Therefore it can find the peer to do the work.

tongli (Thu, 17 Dec 2020 12:46:23 GMT):
I have not seen this kind of error before.

gabrielodi (Thu, 17 Dec 2020 14:49:12 GMT):
this is weird, since it was a brand new VM with docker installed directly from source... but I will try again

zhenbing (Thu, 17 Dec 2020 15:44:48 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=xCToatwiWv5QgZ7tv) I test on ubuntu 16(docker version 19) and macOS(docker 20) with go 1.15, try -i 1.4.4 and 2.3, all lost... I notice that Minifab Execution Context with default is prompt CURRENT_ORG=org0.example.com but with -o it will be xxx.com, no leading org, maybe there missing add org to -o parameter somewhere? Only my guess:grinning:

tongli (Thu, 17 Dec 2020 16:44:13 GMT):
I am not really if your docker version is newer enough. There is a requirement for docker to be 18.xx ore newer

tongli (Thu, 17 Dec 2020 16:44:42 GMT):
Not sure if Ubuntu 16.04 has newer docker and also 16.04 is pretty old.

tongli (Fri, 18 Dec 2020 03:33:09 GMT):
@gabrielodi @said_shah the cause of the error with couchdb was found. I am fixing it now. Should have a PR up soon.

tongli (Fri, 18 Dec 2020 03:33:48 GMT):
The problem was that the couchdb is now secured. But the credential was not set correctly. That causes the peer won’t be able to talk to couchdb

tongli (Fri, 18 Dec 2020 03:56:00 GMT):
@zhenbing @gabrielodi @said_shah had this PR to fix the couchdb related issue. https://github.com/hyperledger-labs/minifabric/pull/138

tongli (Fri, 18 Dec 2020 03:56:15 GMT):
you can build it yourself to test or wait until it gets merged.

tongli (Fri, 18 Dec 2020 03:56:57 GMT):
@rjones Ry, can you please take a look at this PR? this is to fix a bug recently introduced. https://github.com/hyperledger-labs/minifabric/pull/138

tongli (Fri, 18 Dec 2020 03:57:26 GMT):
@zhenbing not really sure if this fixed your issue though, your issue looks a bit differently.

zhenbing (Fri, 18 Dec 2020 04:03:46 GMT):
yes, it's working in ur environment? I'm wondering for I meet in two situations:blush: I'll investigating my channel create issue with a fresh install.

tongli (Fri, 18 Dec 2020 04:04:42 GMT):
if you are not using the latest (without my PR 138), but without using couchdb, you should be fine.

tongli (Fri, 18 Dec 2020 04:04:54 GMT):
the fix is really just a bug when using couchdb.

tongli (Fri, 18 Dec 2020 04:04:54 GMT):
the fix is really just for fixing a bug when using couchdb.

zhenbing (Fri, 18 Dec 2020 04:05:20 GMT):
Okay, thanks, let me try~

tongli (Fri, 18 Dec 2020 04:05:42 GMT):
you will have to get the PR and build the minifab image yourself.

tongli (Fri, 18 Dec 2020 04:05:52 GMT):
the PR has not been merged to the master yet.

zhenbing (Fri, 18 Dec 2020 04:06:29 GMT):
ok~

rjones (Fri, 18 Dec 2020 04:20:50 GMT):
@tongli all of the builds at AZP are dying at the generate cert step

tongli (Fri, 18 Dec 2020 04:21:14 GMT):
oh.

rjones (Fri, 18 Dec 2020 04:21:51 GMT):
https://github.com/hyperledger-labs/minifabric/pull/138/checks

tongli (Fri, 18 Dec 2020 04:23:36 GMT):
ah, I know what happened.

tongli (Fri, 18 Dec 2020 04:24:02 GMT):
I think azure devops switched to 20.04 now.

tongli (Fri, 18 Dec 2020 04:24:10 GMT):
which does not have ifconfig

rjones (Fri, 18 Dec 2020 04:24:12 GMT):
yes

tongli (Fri, 18 Dec 2020 04:24:18 GMT):
it is failing to get IP address.

tongli (Fri, 18 Dec 2020 04:24:37 GMT):
therefore creating cert (SAN) failed.

tongli (Fri, 18 Dec 2020 04:24:49 GMT):
need to install iptools.

tongli (Fri, 18 Dec 2020 04:24:57 GMT):
was it iptools?

tongli (Fri, 18 Dec 2020 04:25:46 GMT):
net-tools

rjones (Fri, 18 Dec 2020 04:27:17 GMT):
`ip` is probably a better tool to use, no?

tongli (Fri, 18 Dec 2020 04:27:39 GMT):
right, but the problem is that it does not exist on mac.

tongli (Fri, 18 Dec 2020 04:28:06 GMT):
we are using same thing for linux and mac. I really wanted to use ip command. but mac does not have one.

tongli (Fri, 18 Dec 2020 04:34:17 GMT):
it is working now @rjones

tongli (Fri, 18 Dec 2020 04:34:27 GMT):
added command to install net-tools.

tongli (Fri, 18 Dec 2020 04:35:06 GMT):
one could write a bit script to overcome this without install net-tools

tongli (Fri, 18 Dec 2020 04:35:14 GMT):
test if ip command exists or not.

rjones (Fri, 18 Dec 2020 04:36:49 GMT):
https://github.com/actions/virtual-environments/issues/1816

tongli (Fri, 18 Dec 2020 04:38:41 GMT):
right, we could switch back to 18.04 but I would like to use the newer system.

rjones (Fri, 18 Dec 2020 04:39:05 GMT):
no, I'm not suggesting moving back.

rjones (Fri, 18 Dec 2020 04:39:25 GMT):
I was just pointing out the rollout started a couple weeks ago

tongli (Fri, 18 Dec 2020 04:39:50 GMT):
right, I actually know but the issue just did not register to my brain.

tongli (Fri, 18 Dec 2020 05:29:46 GMT):
@rjones did this PR as well. https://github.com/hyperledger-labs/minifabric/pull/139 this is to check if IP command exists, if it does, it will use ip command, otherwise, it will try ifconfig

tongli (Fri, 18 Dec 2020 05:30:06 GMT):
so this will satisfy both new, old ubuntu and os x.

tongli (Fri, 18 Dec 2020 05:30:29 GMT):
I've also removed install net-tools from azure pipeline.

rjones (Fri, 18 Dec 2020 05:30:55 GMT):
I don't have a Mac to test on (I'm on an M1 Mac)

tongli (Fri, 18 Dec 2020 05:31:09 GMT):
if you like this approach, please approve, otherwise,we can leave it alone.

tongli (Fri, 18 Dec 2020 05:36:09 GMT):
I've tested on mac os x, it worked fine.

tongli (Fri, 18 Dec 2020 05:37:41 GMT):
I think we should have this PR merged so that people using 20.04 wont have to install net-tools.

tongli (Fri, 18 Dec 2020 05:38:09 GMT):
also we are not installing net-tools on azure to test things.

rjones (Fri, 18 Dec 2020 06:01:12 GMT):
I merged it a while ago?

tongli (Fri, 18 Dec 2020 12:48:12 GMT):
Thanks Ry. I saw that after.

tongli (Fri, 18 Dec 2020 12:48:18 GMT):
It is in now

said_shah (Fri, 18 Dec 2020 13:25:31 GMT):
@tongli @gabrielodi The new update fixed my issue. Thank you.

tongli (Fri, 18 Dec 2020 13:27:06 GMT):
@said_shah great. Happy to hear.

tongli (Fri, 18 Dec 2020 13:28:13 GMT):
@said_shah curious why you use couchdb?

said_shah (Fri, 18 Dec 2020 13:32:02 GMT):
Well, to be honest, I don't have much experience in Hyperledger or Blockchain but from what I have read it provides better and easier interaction with data.

gabrielodi (Fri, 18 Dec 2020 15:01:27 GMT):
very good job everyone! I will test it tonight! I am using couchdb as an easy way for me to see changes in the ledger and I plan to use queries directly in couchdb, without dealing querying directly the ledger... I found it to be quicker, other than that, I can query it directly from client without submitting a request to app for quering and returning from ledger

gabrielodi (Fri, 18 Dec 2020 15:02:48 GMT):
I see in the code change that it is installing net-tools now? It wasn't before? Because I had to install net-tools in order to run ifconfig... it will do it automatically now then?

said_shah (Fri, 18 Dec 2020 15:14:30 GMT):
yea, I had to manually install net-tools before also

tongli (Fri, 18 Dec 2020 16:36:09 GMT):
@said_shah @gabrielodi the script used to use ifconfig to obtain IP address but ifconfig has been installed in latest Linux distros, instead ip command becomes available. So the latest script did a bit extra work to check if ip command is available, if it does, then use ip command otherwise fallback to ifconfig, I would have used ip command all alone but OS X and windows do not have these available.

tongli (Fri, 18 Dec 2020 16:37:31 GMT):
Latest changes fixed all the mess and will use ip if available, otherwise use ifconfig for OS X and ipconfig for windows

tongli (Fri, 18 Dec 2020 16:38:11 GMT):
Have tested on all@platforms and worked fine. Do minifab update to get both latest script and image

tongli (Fri, 18 Dec 2020 16:38:32 GMT):
Thanks for trying and have a great holiday season!

gabrielodi (Fri, 18 Dec 2020 20:04:53 GMT):
great, good, thanks tongli

said_shah (Tue, 22 Dec 2020 16:46:55 GMT):
@tongli When I run the profilegen, discover commands it generates the profiles but it generates the wallets with .id files and does not include the public and private keys is there a reason why it does not add the public and private keys for the wallets admins. I have added an image below

said_shah (Tue, 22 Dec 2020 16:46:57 GMT):

Clipboard - December 22, 2020 11:46 AM

said_shah (Tue, 22 Dec 2020 16:49:34 GMT):
When I am watching your video on youtube it's showing a different structure for your profilegen command, I have added an image of this below

said_shah (Tue, 22 Dec 2020 16:49:38 GMT):

Clipboard - December 22, 2020 11:49 AM

said_shah (Tue, 22 Dec 2020 16:50:23 GMT):
The reason for this is when I am following your video to connect throught the IBM extension for VS Code, I cannot connect since my files do not include the public and private keys

said_shah (Tue, 22 Dec 2020 17:05:53 GMT):
When I try to use the VSCode extension on another platform and select "Specify an existing file system wallet" I get an error stating that no identities were found in wallet. I have included an image below

said_shah (Tue, 22 Dec 2020 17:05:55 GMT):

Clipboard - December 22, 2020 12:05 PM

tongli (Wed, 23 Dec 2020 01:58:19 GMT):
The video is probably a bit of outdated. Certs are all in keyfiles directory.

tongli (Wed, 23 Dec 2020 01:59:14 GMT):
Admin.Id file follows the standard which is not supposed to include certs only admin’s private key and cert

tongli (Wed, 23 Dec 2020 02:00:01 GMT):
You probably can look at the connection profiles which have all the certs embedded

tongli (Wed, 23 Dec 2020 02:00:38 GMT):
Normally you would use a connection profile and admin.id file to connect to fabric network using any of the available sdks

said_shah (Wed, 23 Dec 2020 16:27:32 GMT):
@tongli when you have time can you please make a youtube tutorial video on connecting minifab network with the IBM Blockchain VSCode extension, similar to the one you made before?

mvkillu (Thu, 31 Dec 2020 15:45:55 GMT):
A very happy new year guys !!!

mvkillu (Thu, 31 Dec 2020 15:47:18 GMT):
May this new year bring lot of achievements, joy and inspiration to Hyperledger Fabric and MiniFabric !!!!

tongli (Fri, 01 Jan 2021 00:30:32 GMT):
@mvkillu totally, very well said. Happy new year to everyone. May new year brings prosperity to both fabric and minifabric.

rjones (Fri, 01 Jan 2021 06:43:16 GMT):
https://youtu.be/U9b43PzBO7I

pkirkinezis (Tue, 05 Jan 2021 08:32:58 GMT):
Hi to everybody . Happy new year to anyone . Best wishes .

gabrielodi (Thu, 14 Jan 2021 17:46:39 GMT):
a little late, but happy new year everyone

mvkillu (Mon, 18 Jan 2021 14:36:37 GMT):
Is there some sample code online that uses minifabric, NodeJS for chaincode/app that I can refer to? Any github links other than fabric samples?

gabrielodi (Sat, 23 Jan 2021 01:00:02 GMT):
I dont know... I use only go

tongli (Mon, 25 Jan 2021 15:06:16 GMT):
@rjones good day Ry, since the branch now is called main instead of master, there will be changes required for some links for minifabric (suspect many other projects as well). But I also found that the links to master will still work at the moment. what is the right process to follow to accommendate this change? Thanks.

tongli (Mon, 25 Jan 2021 15:06:56 GMT):
for example, the two links point to the same file currently.

tongli (Mon, 25 Jan 2021 15:07:27 GMT):
```https://raw.githubusercontent.com/hyperledger-labs/minifabric/main/minifab```

tongli (Mon, 25 Jan 2021 15:07:37 GMT):
```https://raw.githubusercontent.com/hyperledger-labs/minifabric/master/minifab```

tongli (Mon, 25 Jan 2021 15:08:02 GMT):
looks like there is some kind of alias. but not sure if this will last.

rjones (Mon, 25 Jan 2021 18:06:01 GMT):
@tongli I renamed it back to master; we can fix this later

tongli (Mon, 25 Jan 2021 19:44:52 GMT):
@rjones ok. Thanks.

skulos (Tue, 26 Jan 2021 12:29:33 GMT):
Hi everyone. Quick question ... Has anyone ever deployed chaincode in Scala?

skulos (Tue, 26 Jan 2021 12:32:59 GMT):
We're build a event pipeline and would like to trigger chaincode, written in Scala, on a distributed Fabric network. I'm using Minifab to test out our chaincode, but I'm having trouble getting it deployed. Since I usually code in go, I was hoping any here might know something.

skulos (Tue, 26 Jan 2021 12:32:59 GMT):
We're building a event pipeline and would like to trigger chaincode, written in Scala, on a distributed Fabric network. I'm using Minifab to test out our chaincode, but I'm having trouble getting it deployed. Since I usually code in go, I was hoping any here might know something.

skulos (Tue, 26 Jan 2021 12:33:12 GMT):
Any help would be greatly appreciated.

tongli (Tue, 26 Jan 2021 13:14:46 GMT):
@skulos is your chaincode written in Scala or you like to invoke chaincode in scala? Even for an app trying to invoke chaincode Without a language sdk is a bit difficult. Do you have to use scala? Can Java work for you? If you plan to have a rather serious app but choose to depend on a path which has not been really tried and confirmed is a bit hard, I suspect you probably will encounter many challenges which may really impact your progress. My 2 cents.

skulos (Tue, 26 Jan 2021 13:28:31 GMT):
The chaincode is written in Scala. The Java SDK seems to be compatible with Scala. From an article I found, seems like I could do the networking of Fabric (like creating a CA and connect to channels) from the Java SDK. And I've gotten my hands on a library that wraps the Java SDK into a Scala lib. My problem is the building of Scala code. Since is is just `go build` or `go run`, I'm not sure how to get Scala (or Java for that matter) as a chaincode onto minifab. I'm also trying to use Gradle. Trying to closely follow the minifab Java example. Everything looks right, it's just the Gradle build fails. Having never worked with Gradle or Java ... Not sure what I'm in for.

skulos (Tue, 26 Jan 2021 13:28:43 GMT):
But thank you for the advice @tongli

skulos (Tue, 26 Jan 2021 13:29:29 GMT):
I just thought I'd ask.

skulos (Tue, 26 Jan 2021 14:27:34 GMT):
I can't seem to run `./minifab install -n simple -l java" either. Not sure if I'm messing up the environment, but the build fails too.

gabrielodi (Tue, 26 Jan 2021 22:42:14 GMT):
offtopic but I just wanted to share and thank some of you for all the help and work... I have just finished my solution in fabric, for sure using minifabric, for my master degree... it is working, with chaincode, app and connection to a webapp, everything working, the test phases will start now... I owe you guys, thank you very much. I will include the minifab developers and github comitters in my thesis acknowledgements

tongli (Tue, 26 Jan 2021 23:26:16 GMT):
@gabrielodi very nice. Thanks

rjones (Wed, 27 Jan 2021 00:22:04 GMT):
@tongli supposedly the grpc-fuse issue was fixed in [3.0.4](https://github.com/docker/for-mac/issues/5124)

rjones (Wed, 27 Jan 2021 00:52:22 GMT):
@tongli https://github.com/hyperledger-labs/minifabric/issues/141#issuecomment-767931311

tongli (Wed, 27 Jan 2021 12:44:32 GMT):
@rjones awesome! Thanks

tongli (Wed, 27 Jan 2021 13:27:06 GMT):
I will give it a try myself today.

tongli (Wed, 27 Jan 2021 14:57:20 GMT):
@skulos The java simple chaincode needs a bit work in the build.gradle file. here is what needs to be changed.

tongli (Wed, 27 Jan 2021 14:57:28 GMT):
```plugins { id 'com.github.johnrengelman.shadow' version '5.1.0' id 'java' } group 'org.hyperledger.fabric-chaincode-java' version '1.0-SNAPSHOT' sourceCompatibility = 1.8 repositories { mavenLocal() mavenCentral() maven { url "https://hyperledger.jfrog.io/hyperledger/fabric-maven" } maven { url 'https://jitpack.io' } } dependencies { compile group: 'org.hyperledger.fabric-chaincode-java', name: 'fabric-chaincode-shim', version: '1.+' testCompile group: 'junit', name: 'junit', version: '4.12' } shadowJar { baseName = 'chaincode' version = null classifier = null manifest { attributes 'Main-Class': 'org.hyperledger.fabric.example.SimpleChaincode' } }```

tongli (Wed, 27 Jan 2021 14:58:33 GMT):
@skulos if you change the vars/chaincode/simple/java/build.gradle file to have the content like the above, you should be able to install the chaincode.

tongli (Wed, 27 Jan 2021 14:59:10 GMT):
the gradle file is really old and worked on fabric 1.4.x release and no longer working for fabric 2.x

tongli (Wed, 27 Jan 2021 14:59:46 GMT):
@skulos if possible, please do a PR with the changes.

rjones (Wed, 27 Jan 2021 19:50:56 GMT):
@tongli sorry to hear the new version of docker doesn't fix everything - I think it's strange it works for parts of the bring-up, but not all of them

tongli (Wed, 27 Jan 2021 19:51:23 GMT):
yeah. I think it is still the issue with volume.

tongli (Thu, 28 Jan 2021 15:35:32 GMT):
@rjones it is not too bad since this only affects OS X. Other platforms do not have this problem.

rjones (Thu, 28 Jan 2021 15:39:42 GMT):
I spent a lot of time last night trying to figure out a way to detect if Docker Desktop is using FUSE. No go.

tongli (Thu, 28 Jan 2021 15:40:18 GMT):
@rjones haha, yeah, do not really understand what that feature brings though.

rjones (Thu, 28 Jan 2021 15:40:35 GMT):
better iops

tongli (Thu, 28 Jan 2021 15:40:35 GMT):
it is not available on windows.

rjones (Thu, 28 Jan 2021 15:40:44 GMT):
I think it's default on Windows?

tongli (Thu, 28 Jan 2021 15:41:01 GMT):
hmmmm. it does not appear on windows docker desktop.

rjones (Thu, 28 Jan 2021 15:41:26 GMT):
what I mean is, I think it's baked in to the Windows. it isn't behind a feature flag

tongli (Thu, 28 Jan 2021 15:41:40 GMT):
oh. ok.

tongli (Thu, 28 Jan 2021 15:42:03 GMT):
in that case, minifabric worked totally fine on windows with that feature.

tongli (Thu, 28 Jan 2021 17:49:28 GMT):
please review this PR: https://github.com/hyperledger-labs/minifabric/pull/149

tongli (Thu, 28 Jan 2021 17:49:41 GMT):
this PR is to fix java chaincode downlevel dependencies.

tongli (Thu, 28 Jan 2021 17:50:10 GMT):
with this fix, you can install the default java chaincode coming with minifabric.

tongli (Thu, 28 Jan 2021 17:54:01 GMT):
@rjones please take a look at this fix for the default java chaincode. https://github.com/hyperledger-labs/minifabric/pull/149

tongli (Thu, 28 Jan 2021 18:28:08 GMT):
@rjones Thanks very much for reviewing and merging the PR.

barankilic (Sun, 31 Jan 2021 10:00:24 GMT):
Has joined the channel.

anil_helvaci (Sun, 31 Jan 2021 18:31:21 GMT):
Has joined the channel.

cmhacker (Mon, 01 Feb 2021 03:47:06 GMT):
Has joined the channel.

skulos (Mon, 01 Feb 2021 07:44:15 GMT):
Good morning. I'm sorry. I've been on leave to write exams the since the 28th. @tongli only reading your messages now.

anil_helvaci (Mon, 01 Feb 2021 12:40:15 GMT):
Hello everyone :wave: I am having trouble with updating the system channel. My goal is to define a new consortium and new channel profiles but I can't seem to achieve this by updating a network that is already up using "netup" command. So I pulled the source and changed the configtx.j2 file that is called in the "generating certificates" process. Built the docker image again and I was good to go. I was able to deploy chaincodes using IBM VsCode extension and also monitor the network using the "explorerup" command. Do you know if it is possible to first run the network with "netup" using the image from the docker hub and then make the changes in order to achieve the requested design for my case?

rjones (Mon, 01 Feb 2021 20:57:11 GMT):
@thiagooggioni better to ask in here

thiagooggioni (Mon, 01 Feb 2021 20:57:11 GMT):
Has joined the channel.

thiagooggioni (Mon, 01 Feb 2021 22:34:48 GMT):
Dear, good afternoon, running Minfabric, when trying to create the "coolchannel" channel, the following message is shown in the image below, even though I followed the tutorial, but at the end the file "./vars/coolchannel_config,json" was not generated. Can anybody help me? ps .: I'm a beginner at Hyperlegder and I'm sorry if the question is too simple.

thiagooggioni (Mon, 01 Feb 2021 22:35:10 GMT):

Clipboard - 1 de Fevereiro de 2021 às 19:35

pkirkinezis (Tue, 02 Feb 2021 09:05:12 GMT):
@rjones Is there a way to calculate the server need on hardware level to run one node ?

BlockCrasher (Tue, 02 Feb 2021 10:35:05 GMT):
Has joined the channel.

rjones (Tue, 02 Feb 2021 15:02:25 GMT):
@pkirkinezis I would need to try to find out. I don't know - @tongli ?

pkirkinezis (Tue, 02 Feb 2021 15:22:50 GMT):
YEAH some say that arduino is capable . We carently using 4gb and 4 cores byt i would oike to know how to calculate maybe the resources

thiagooggioni (Tue, 02 Feb 2021 17:58:11 GMT):
Dear, I can not explain the reason for the problems, however I restarted my V (M Hyper-V) and went up the network again and it worked normally.

thiagooggioni (Tue, 02 Feb 2021 18:01:17 GMT):
Dear, I can not explain the reason for the problems, however I restarted my V (M Hyper-V) and went up the network again and it worked normally.

thiagooggioni (Tue, 02 Feb 2021 18:04:38 GMT):
Dear, I can not explain the reason for the problems, however I restarted my V (M Hyper-V) and went up the network again and it worked normally.

anil_helvaci (Tue, 02 Feb 2021 18:09:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=RoxKyMwtaKWHeas9X) @rjones What do you think about this? How can I manage this? Any help would appreciated :pray:

tongli (Tue, 02 Feb 2021 19:07:22 GMT):
@anil_helvaci what can not be done with the existing consortium? Can’t you set up another one which is totally new? Why the new one has to be together with the default one?

tongli (Tue, 02 Feb 2021 19:07:53 GMT):
I do not think I follow what you are trying to do.

tongli (Tue, 02 Feb 2021 19:10:33 GMT):
In 2.3 system channel is no longer required. I think that fabric is now trying to get rid of the system channel. Consortium will be playing very weak role if there is still any.

tongli (Tue, 02 Feb 2021 19:11:38 GMT):
Try to use channels to archive what you were trying to do.

anil_helvaci (Tue, 02 Feb 2021 19:40:20 GMT):
In the docs it is stated that only the members of a consortium have rights over the channel configuration. Therefore, only the members of a consortium can add new organizations to a channel. In default consortium, every organization in the network is included so an organization which isn't in a channel A can add new organizations to channel A. I want only the certain organizations have rights over certain channels so I should be able to update configtx.yaml in order to define such consortia. @tongli

tongli (Tue, 02 Feb 2021 21:14:27 GMT):
@anil_helvaci you should be able to do that use channels.

tongli (Tue, 02 Feb 2021 21:15:23 GMT):
Use channel update to specify policies.

tongli (Tue, 02 Feb 2021 21:15:44 GMT):
It is very flexible.

tongli (Tue, 02 Feb 2021 21:16:03 GMT):
Please look into channel policies and related docs.

tongli (Tue, 02 Feb 2021 21:17:22 GMT):
Think fabric like a club, anyone wants to join, the existing members have a say about new membership.

tongli (Tue, 02 Feb 2021 21:17:37 GMT):
That is endorsement policy.

tongli (Tue, 02 Feb 2021 21:18:49 GMT):
If someone does not like the club, then a new club can be created which could be completely separate from the old club. That is new cluster and new channel.

anil_helvaci (Tue, 02 Feb 2021 21:20:53 GMT):
Okay I will look into the docs you say. Thank you. But is it possible to define a new consortium after the network is already up?

thiagooggioni (Tue, 02 Feb 2021 22:13:47 GMT):
Hello everyone, another difficulty that I am not able to overcome. In the mini fabric when executing the minifab invoke -p '"query", "a"' ', I'm getting the error below. I did a lot of research and did several tests and couldn't find a solution. Error presented: "# Run the chaincode invoke script on cli container ************ non-zero return code Error: endorsement failure during invoke. response: status: 500 message: "error in simulation: failed to execute transaction 06b180072bf999d57c61d6962b353a786c7532c112351cfa9f83b8e8d9789e39: invalid invocation: chaincode 'cmcc' has not been initialized for this version, must call as init first" " I watched the envsettings file with the parameter declare XX_CC_INIT_REQUIRED = 'true'. Is it related to the problem found? I am running the CMCC chaincoda in the GO language and following the minifabric tutorial. I appreciate anyone who can help me. Below the print if more information is needed. thank you

thiagooggioni (Tue, 02 Feb 2021 22:13:57 GMT):

Clipboard - 2 de Fevereiro de 2021 às 19:13

tongli (Tue, 02 Feb 2021 23:26:05 GMT):
@thiagooggioni not sure what you did before that command. If you minifab up, you should be able to run that command. Also, that command only works for chaincode simple which comes with minifab. If you have been trying with other chaincode, the method will be different

tongli (Tue, 02 Feb 2021 23:26:51 GMT):
No. You cannot.

CaptainIRS (Wed, 03 Feb 2021 06:39:18 GMT):
Has joined the channel.

pkirkinezis (Wed, 03 Feb 2021 09:48:17 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=qgzi4LpzmhknKJEsv) You have to initialize your chaincode . If you are using cmcc chaicode run something like "minifab initialize -p '"init"' " or whatever function cmcc needs to be initialized

thiagooggioni (Wed, 03 Feb 2021 19:24:39 GMT):
@tongli the Mini Fabric 2.3 version does not have the "mycc" chaincode used in the tutorial, so I am trying to run the "cmcc" chaincode that comes with that version. If possible, indicate where I get the "mycc" chaincode for me to perform tests I appreciate it.

tongli (Wed, 03 Feb 2021 19:28:01 GMT):
Are you trying to use that to join new orgs?

tongli (Wed, 03 Feb 2021 19:28:19 GMT):
If so, that has not been maintained for quite some time.

tongli (Wed, 03 Feb 2021 19:28:45 GMT):
I strongly suggest use the org join command instead.

thiagooggioni (Wed, 03 Feb 2021 22:22:18 GMT):
I'm just running the tutorials to learn how MiniFabric works, I'm running step by step without any changes. I am a beginner in the subject and I am studying the tool. Therefore, it is possible that my difficulties are due to lack of knowledge. Thank you for your help

gabrielodi (Thu, 04 Feb 2021 01:36:55 GMT):
@thiagooggioni are you brazillian? PM me. I have just developed a chaincode in Go and maybe I could even support you, what do you think? This is not a minifabric issue, this is a chaincode or invocation issue.

lebdron (Fri, 05 Feb 2021 07:14:52 GMT):
Has joined the channel.

lebdron (Fri, 05 Feb 2021 07:50:13 GMT):
Hi! I would like to add a new orderer when doing "expand the network with a new org" scenario. Is there a recommended way to do this? Does it make sense to contribute a new command to minifab for this?

tongli (Fri, 05 Feb 2021 12:33:26 GMT):
@lebdron normally, you use update channel command to do that, but you are welcome to add a new command if that really makes things easy

lebdron (Fri, 05 Feb 2021 12:43:09 GMT):
@tongli Well, it seems nice to me to have all the changes regarding consenters configuration documented and automated. I also assume that if I need a single orderer to participate in two deployments, system channel names should be different?

lebdron (Fri, 05 Feb 2021 12:44:52 GMT):
https://hyperledger-fabric.readthedocs.io/en/release-2.2/raft_configuration.html#reconfiguration seems to be quite a high-level overview

tongli (Fri, 05 Feb 2021 17:43:40 GMT):
There can be only one system channel. Not really sure what you mean about system channel names @lebdron

lebdron (Fri, 05 Feb 2021 17:55:22 GMT):
Yes, I was mistaken. The problem I am facing now with a single system channel is that the node from the new organization with it's own CA cannot catch up the ledger from the organization it joins. Should I specify two root CAs in the new orderer container?

tongli (Fri, 05 Feb 2021 18:08:13 GMT):
That has nothing to do with number of ca nodes. Not being able to synchronize with existing nodes has no relation with ca nodes

thiagooggioni (Fri, 05 Feb 2021 18:09:12 GMT):
@gabrielodi , I'm Brazilian and I'm starting to study Hyperlegder, I started with Fabric and now I'm doing some tests with Minifabric. All help is important and I appreciate your availability. My biggest difficulty is in interpreting the errors that are presented when I execute some transaction (which can be an execution or configuration error). I am still very inexperienced in the tool.

lebdron (Fri, 05 Feb 2021 18:12:05 GMT):
Understood. Somehow I was getting the error with "Certificate of unidentified node expires" on the node I added, so I thought that might be relevant. Would you recommend me to ask further questions regarding this process in another chatroom?

tongli (Fri, 05 Feb 2021 19:15:51 GMT):
I am not really sure what problems you have. I would think try the fabric channel may help.

thiagooggioni (Sat, 06 Feb 2021 00:27:52 GMT):
minifab invoke

tongli (Sat, 06 Feb 2021 13:50:37 GMT):
@rjones can you please review this one https://github.com/hyperledger-labs/minifabric/pull/156?

tongli (Sat, 06 Feb 2021 13:50:44 GMT):
thanks @rjones

rjones (Sun, 07 Feb 2021 06:55:23 GMT):
@tongli I [tested this on my local repo](https://github.com/ryjones/minifabric/actions/runs/544778373), it works: https://github.com/hyperledger-labs/minifabric/pull/159

rjones (Sun, 07 Feb 2021 19:32:05 GMT):
@tongli step two: https://github.com/hyperledger-labs/minifabric/pull/160 I've enabled checks for status on GHA.

rjones (Sun, 07 Feb 2021 19:36:14 GMT):
@AzizMestiri join us over here

AzizMestiri (Sun, 07 Feb 2021 19:36:14 GMT):
Has joined the channel.

AzizMestiri (Mon, 08 Feb 2021 15:11:38 GMT):
* Anyone knows how to build minifabric on multiple hosts (e.g with docker swarm) or has a link for a tutorial ?? Thanks! *

lebdron (Mon, 08 Feb 2021 21:44:39 GMT):
Well, fabric channel did not turn out to be useful, but I joined the orderer successfully. Now I have a new issue - nodeimport does not account for peers, so chaincode commit does not work properly automatically. Any suggestions for this problem? The issue I face now is that chaincode commit does not take into account another organization and corresponding tls ca.crt files and peer addresses.

tongli (Mon, 08 Feb 2021 23:27:45 GMT):
@AzizMestiri setup fabric on different nodes using netup command then join these orgs together.

thiagooggioni (Tue, 09 Feb 2021 12:39:17 GMT):
@pkirkinezis the ohaincode was initialized and it worked. Thank you

Grant-Steinfeld001 (Fri, 12 Feb 2021 15:58:51 GMT):
Has joined the channel.

Grant-Steinfeld001 (Fri, 12 Feb 2021 15:58:52 GMT):
Hi everyone, I'm new to this channel. I've mostly stood up test networks at IBM as a dev. advocate. - now I'm trying out Minifabric, it mostly succeeds, but fails on the last step: Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker image inspection failed: Get "http://unix.sock/images/dev-peer1.org0.example.com-simple_1.0-c18bd5c8cd186be47d3b1f7350622b788e3827951f51e7470326155eca1161aa-bb845e3da1b8b00fd1b76bb4a0ad8ef6cfd5890591ceff9e285192942b6cb794/json": dial unix /host/var/run/docker.sock: connect: no such file or directory # STATS ******************************************************* minifab: ok=350 failed=1 docker ps looks OK as far as I can tell: docker ps --format "{{.Names}} \t {{.ID}} \t {{.Status}}" [10:48:17] 079039a892_cli 32d90c926357 Up 2 minutes ca1.org1.example.com 2d8945746ad4 Up 2 minutes ca1.org0.example.com 0ebe905e4d25 Up 2 minutes orderer3.example.com 32aa887ca881 Up 3 minutes orderer2.example.com ee4889d112a6 Up 3 minutes orderer1.example.com 6078f25c4761 Up 3 minutes peer2.org1.example.com 560daa3bb98d Up 3 minutes peer1.org1.example.com ad35e83cb72e Up 3 minutes peer2.org0.example.com ed9db586f779 Up 3 minutes peer1.org0.example.com f6e6ffb6c600 Up 3 minutes I'm running Docker Desktop v3.0.4 on my macbook - Big Sur 11.3b Sorry for the long post, but any help would be really appreciated, Thanks!

tongli (Fri, 12 Feb 2021 17:35:37 GMT):
@Grant-Steinfeld001 Mac docker desktop has this experimental feature which causing issue. Please disable that feature and try again. The feature is call gRPC FUSE. Turn it off you should be fine.

Grant-Steinfeld001 (Fri, 12 Feb 2021 19:00:28 GMT):
Thanks @tongli - I turned off the gRPC FUSE feature, however sadly I now get this error: # Create volumes for peer and orderer nodes ******************* 'allcouchdbs' is undefined

tongli (Sat, 13 Feb 2021 03:16:45 GMT):
Do a minifab cleanup, then try again

tongli (Sat, 13 Feb 2021 03:17:46 GMT):
@Grant-Steinfeld001 see above msg. Also it will be extremely helpful if you look at the docs.

Grant-Steinfeld001 (Wed, 17 Feb 2021 11:05:32 GMT):
thanks @tongli - will peruse docs again properly - been dragged off into prodution less interesting issues

barankilic (Thu, 18 Feb 2021 15:29:21 GMT):
Hi! When I launch a Fabric network, is it runs successfully. But when I want to relaunch the network with "minifab down" and then "minifab netup". It gives this error: 'allcouchdbs' is undefined. I disabled gRPC FUSE feature. What could be the reason?

tongli (Thu, 18 Feb 2021 17:26:24 GMT):
@barankilic you may have changed some configuration between down and netup?

tongli (Thu, 18 Feb 2021 17:27:06 GMT):
If not, please create an issue, in that issue please details the steps how to recreate this.

barankilic (Thu, 18 Feb 2021 18:01:36 GMT):
@tongli No, I have not changed the configuration. I just run the up, down, and netup consecutively.

tongli (Thu, 18 Feb 2021 23:26:34 GMT):
Before any of these operation, did you run cleanup command?

barankilic (Fri, 19 Feb 2021 09:14:42 GMT):
@tongli Yes. I run cleanup.

Grant-Steinfeld001 (Sat, 20 Feb 2021 23:25:21 GMT):
Hi @tongli - setup it up on my CentOS 7 VM works great! Thanks!!

tongli (Sun, 21 Feb 2021 03:15:52 GMT):
@Grant-Steinfeld001 great. Happy that it worked for you.

pkirkinezis (Mon, 22 Feb 2021 14:23:03 GMT):
Hi is there a way to create KPI is there any documentation or papaer on hyperledger docs . I mean KPI for failure , transactions , etc

pkirkinezis (Mon, 22 Feb 2021 14:24:07 GMT):
Its not realted 100% to Minifabric but if anyone has knowledge or did that before thanks in advance

IvanV6 (Tue, 23 Feb 2021 17:43:16 GMT):
Has joined the channel.

IvanV6 (Tue, 23 Feb 2021 17:43:16 GMT):
Hi, i'm working to add new organisation inside a Fabric network. The first org is the default, the second one has the following specs: `fabric: peers: "peer1.orgx.example.com" "peer2.orgx.example.com"` Now, i'm trying to add a new org with the following specs: `fabric: peers: "peer1.orgy.example.com" "peer2.orgy.example.com" orderers: "orderer4.example.com"` But when i run the command: `minifab.cmd nodeimport,join` on the new folder, i received the following error: `# Run the channel join script on cli container **************** non-zero return code 2021-02-15 18:07:30.155 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-02-15 18:07:30.159 UTC [cli.common] readBlock -> INFO 002 Expect block, but got status: &{NOT_FOUND} Error: can't read the block: &{NOT_FOUND} 2021-02-15 18:07:30.307 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: genesis block file not found open /vars/mychannel.genesis.block: no such file or directory # STATS ******************************************************* minifab: ok=34 failed=1` How can I handle it? There is a way to add a new org with a new orderer? Thanks in advance

tongli (Tue, 23 Feb 2021 20:18:55 GMT):
@IvanV6 did you not open an issue on this? I thought we’ve talked about this. You will need to add orderer org separately from adding peer org. Currently minifabric only has joinorg for peer orgs. For adding orderer org, you will need to use channel update to do that.

kensayers (Wed, 24 Feb 2021 03:22:00 GMT):
Has joined the channel.

IvanV6 (Wed, 24 Feb 2021 08:35:03 GMT):
Dear @tongli thanks but i'm still stuck on this. Could you please provide the steps to add an orderer org?

tongli (Wed, 24 Feb 2021 12:15:48 GMT):
Please try channelquery, channelsign, channel update command and also read fabric channel update docs. You can search how fabric channel configuration should be updated on internet. There are tons of info in the channelquery output. Every piece of the info can be updated including orderer node section.

IvanV6 (Wed, 24 Feb 2021 12:41:40 GMT):
Thanks @tongli , i will search on internet. One more question, if an org is offline without orderers (e.g. a second org on another VM), it is possible to query the chaincode and perform operations?

tongli (Wed, 24 Feb 2021 22:53:28 GMT):
Query is done against peer node. @IvanV6

pkirkinezis (Thu, 25 Feb 2021 14:09:46 GMT):
hi i am getting a weird error

pkirkinezis (Thu, 25 Feb 2021 14:10:29 GMT):
2021-02-25 13:28:45.006 UTC [common.ledger.blockledger.file] Next -> ERRO 94b3f error opening block file /var/hyperledger/production/ledgersData/chains/chains/devchannel/blockfile_000000: open /var/hyperledger/production/ledgersData/chains/chains/devchannel/blockfile_000000: too many open files 2021-02-25 13:28:45.006 UTC [common.deliver] deliverBlocks -> ERRO 94b40 [channel: devchannel] Error reading from channel, cause was: SERVICE_UNAVAILABLE

pkirkinezis (Thu, 25 Feb 2021 14:11:03 GMT):
does anyone experienced such an issue?

tongli (Thu, 25 Feb 2021 18:52:16 GMT):
@pkirkinezis have not seen anything like that. Wonder if your node actually not running?

tongli (Thu, 25 Feb 2021 18:52:36 GMT):
Do a minifab stats command and see how many are actually running

knagware9 (Fri, 26 Feb 2021 06:47:09 GMT):
Has joined the channel.

pkirkinezis (Fri, 26 Feb 2021 08:56:22 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=6wzHVQ6ktEbOZFXk4) Apparently I maxed out the allowed open files on linux server . Restarted my java gateway and docker logs on peers stopped giving me this error. I don't know how java app can make hypeledger peer nodes to give this error .

pkirkinezis (Fri, 26 Feb 2021 09:10:16 GMT):
java app is running localy. Maybe Invoking chaincode or quering leaves files opens that lead to mazin out the allowed open files from linux server

tongli (Fri, 26 Feb 2021 14:05:24 GMT):
@rjones @pkirkinezis @barankilic please see the fix the issue 163. https://github.com/hyperledger-labs/minifabric/pull/169

tongli (Fri, 26 Feb 2021 14:05:36 GMT):
please review. thanks.

rjones (Fri, 26 Feb 2021 15:19:31 GMT):
@tongli done. Please take a look at 170

tongli (Fri, 26 Feb 2021 15:19:57 GMT):
@rjones looking at it now.

rjones (Fri, 26 Feb 2021 15:20:19 GMT):
thanks. Once merged, I will make the settings change

tongli (Fri, 26 Feb 2021 15:20:53 GMT):
will the tinyurl still work? @rjones

rjones (Fri, 26 Feb 2021 15:21:27 GMT):
maybe.

tongli (Fri, 26 Feb 2021 15:21:39 GMT):
in the readme.md file, we have two urls which were generated using the raw branch.

tongli (Fri, 26 Feb 2021 15:21:48 GMT):
lasttime we changed to main branch, I tried it, it worked.

rjones (Fri, 26 Feb 2021 15:21:51 GMT):
I noticed that I changed the chat asset from master to main, but github is redirecting it

tongli (Fri, 26 Feb 2021 15:22:00 GMT):
right.

rjones (Fri, 26 Feb 2021 15:22:09 GMT):
so I think until another branch named master is created, it will work

tongli (Fri, 26 Feb 2021 15:22:27 GMT):
ok, great. that was my only concern.

rjones (Fri, 26 Feb 2021 15:22:50 GMT):
if it breaks, we can fix it :)

tongli (Fri, 26 Feb 2021 15:23:04 GMT):
right. Thanks Ry.

tongli (Fri, 26 Feb 2021 15:23:10 GMT):
approved.

rjones (Fri, 26 Feb 2021 15:23:29 GMT):
thank you

tongli (Fri, 26 Feb 2021 15:23:58 GMT):
comment from one of the recent users.

tongli (Fri, 26 Feb 2021 15:24:02 GMT):
```Thank you very much for the project, it is incredible```

rjones (Fri, 26 Feb 2021 15:25:15 GMT):
nice!

rjones (Fri, 26 Feb 2021 15:25:32 GMT):
I was talking to a team about a thing and they were very excited to find out about it

tongli (Fri, 26 Feb 2021 15:25:47 GMT):
I am in the process of adding k8s support.

tongli (Fri, 26 Feb 2021 15:25:52 GMT):
very close to get it done.

rjones (Fri, 26 Feb 2021 15:26:04 GMT):
they're wanting to move a fabric installation from one provider to another but had no way to test that the export worked

tongli (Fri, 26 Feb 2021 15:26:24 GMT):
the goal is to not add any new command, just using existing command, with a kubeconfig present, it will deploy fabric onto k8s.

rjones (Fri, 26 Feb 2021 15:26:25 GMT):
I said, look, minifab has portainer and explorer

tongli (Fri, 26 Feb 2021 15:26:45 GMT):
haha. awesome.

rjones (Fri, 26 Feb 2021 15:26:57 GMT):
nice. what is the use case? people want to move away from docker?

tongli (Fri, 26 Feb 2021 15:27:20 GMT):
some people just want to use k8s. this has been asked few times in the past.

rjones (Fri, 26 Feb 2021 15:27:27 GMT):
gotcha

tongli (Fri, 26 Feb 2021 15:27:52 GMT):
I am close to get it all done.

tongli (Fri, 26 Feb 2021 15:28:04 GMT):
it will be a quite big PR.

rjones (Fri, 26 Feb 2021 15:28:29 GMT):
I don't know if I have k8s set up anywhere to test. it will be nice to have it in CI tho

tongli (Fri, 26 Feb 2021 15:47:21 GMT):
@rjones do we have k8s env?

tongli (Fri, 26 Feb 2021 15:47:29 GMT):
if there is, I would love to try it.

rjones (Fri, 26 Feb 2021 15:51:18 GMT):
I think GHA should support it

tongli (Fri, 26 Feb 2021 15:51:38 GMT):
GHA?

rjones (Fri, 26 Feb 2021 15:52:25 GMT):
https://github.com/marketplace?type=actions&query=k8s

rjones (Fri, 26 Feb 2021 15:52:30 GMT):
github actions sorry

tongli (Fri, 26 Feb 2021 15:53:18 GMT):
right, but it still will require a running k8s cluster, right?

tongli (Fri, 26 Feb 2021 15:53:38 GMT):
I think the issue is to find a k8s env.

rjones (Fri, 26 Feb 2021 15:54:37 GMT):
ah, I was thinking you could build one using minikube or something, like docker

tongli (Fri, 26 Feb 2021 15:54:54 GMT):
microk8s, indeed,

tongli (Fri, 26 Feb 2021 15:55:36 GMT):
sure. sure, we can do that with a relative larger node.

rjones (Fri, 26 Feb 2021 19:17:41 GMT):
Need a way to pass `--platform` all the way to the bottom so I can run `minifab` on an M1 Mac

tongli (Fri, 26 Feb 2021 19:18:56 GMT):
@rjones not following. --platform needs to be fed to what command in minifabric?

rjones (Fri, 26 Feb 2021 19:19:23 GMT):
docker

rjones (Fri, 26 Feb 2021 19:19:44 GMT):
`docker run .... --platform linux/amd64 ...` or whatever

tongli (Fri, 26 Feb 2021 19:20:06 GMT):
ah, there is a recent PR which does that exactly.

tongli (Fri, 26 Feb 2021 19:20:13 GMT):
let me get the instruction on doing that.

tongli (Fri, 26 Feb 2021 19:20:49 GMT):
https://github.com/hyperledger-labs/minifabric/blob/main/spec.yaml#L30

tongli (Fri, 26 Feb 2021 19:21:00 GMT):
see that configuration parameter?

tongli (Fri, 26 Feb 2021 19:21:17 GMT):
you can pretty much add any docker parameters you like

rjones (Fri, 26 Feb 2021 19:22:49 GMT):
cool, thanks

tongli (Fri, 26 Feb 2021 19:22:59 GMT):
let me know if that worked for you.

tongli (Fri, 26 Feb 2021 19:23:18 GMT):
minifabric should work on mac without that flag I think.

rjones (Fri, 26 Feb 2021 19:23:39 GMT):
not on an M1 (arm) mac

tongli (Fri, 26 Feb 2021 19:23:51 GMT):
oh, i c.

tongli (Fri, 26 Feb 2021 19:24:20 GMT):
so you have a mac which is using ARM chip?

rjones (Fri, 26 Feb 2021 19:25:38 GMT):
yes

rjones (Fri, 26 Feb 2021 19:25:41 GMT):
```# Retrieve the image if it does not already exist ************* non-zero return code no matching manifest for linux/arm64/v8 in the manifest list entries ```

tongli (Fri, 26 Feb 2021 19:26:24 GMT):
I wonder if the hyperledgerlabs/minifab:latest has to be built based on arm.

rjones (Fri, 26 Feb 2021 19:26:35 GMT):
no, doesn't help. I already tried that. :)

rjones (Fri, 26 Feb 2021 19:26:49 GMT):
it is a dependency, but I can't tell which one b/c the logging is not verbose enough

tongli (Fri, 26 Feb 2021 19:26:52 GMT):
wonder what image it was trying to pull?

tongli (Fri, 26 Feb 2021 19:27:02 GMT):
-f default

tongli (Fri, 26 Feb 2021 19:27:17 GMT):
use -f default to see more logs entries.

rjones (Fri, 26 Feb 2021 19:27:28 GMT):
fabric-ca

rjones (Fri, 26 Feb 2021 19:28:20 GMT):
wonder what parameter I need to add to the yaml file. `--platform linux/amd64` didn't work.

rjones (Fri, 26 Feb 2021 19:28:33 GMT):
I'll keep digging.

tongli (Fri, 26 Feb 2021 19:29:11 GMT):
so that flag is supposed to change the docker to run under different arch?

tongli (Fri, 26 Feb 2021 19:31:37 GMT):
seems to me --platform is only for build command?

tongli (Fri, 26 Feb 2021 19:31:43 GMT):
not for run?

rjones (Fri, 26 Feb 2021 19:32:45 GMT):
this worked: ```% docker pull --platform linux/amd64 hyperledger/fabric-ca:1.4 1.4: Pulling from hyperledger/fabric-ca b8f262c62ec6:... Digest: sha256:28f50c6aa4f4642842e706d3ae6dcee181921d03bd30ab2a8b09b66e0349d92f Status: Downloaded newer image for hyperledger/fabric-ca:1.4 docker.io/hyperledger/fabric-ca:1.4```

rjones (Fri, 26 Feb 2021 19:33:34 GMT):
by manually pulling that image, it worked

tongli (Fri, 26 Feb 2021 19:34:05 GMT):
hmmmm.

tongli (Fri, 26 Feb 2021 19:34:07 GMT):
i c.

tongli (Fri, 26 Feb 2021 19:34:45 GMT):
I wonder if you can try to pull all necessary images, then run minifab up command.

tongli (Fri, 26 Feb 2021 19:34:57 GMT):
just to make sure that the issue is in the image pulling phase.

rjones (Fri, 26 Feb 2021 19:36:09 GMT):
well, it failed differently :)

tongli (Fri, 26 Feb 2021 19:36:33 GMT):
we will be needing hyperledger/fabric-peer, -orderer, -ccenv, -tools

rjones (Fri, 26 Feb 2021 19:37:41 GMT):
the failure was after that.

barankilic (Sat, 27 Feb 2021 10:16:13 GMT):
Thank you @tongli . Restarting the network works now.

SamYuan1990 (Mon, 01 Mar 2021 13:02:56 GMT):
Has joined the channel.

SamYuan1990 (Mon, 01 Mar 2021 13:02:56 GMT):
Hello everyone, [Probe](https://github.com/SamYuan1990/Probe) is a web based "coordinator" project, from [TWGC](https://github.com/Hyperledger-TWGC). With 0.0.3 release, Probe now supports minifab as fabric network provider. You are encouraged to play Probe with minifab and [Tape](https://github.com/Hyperledger-TWGC/tape), to investigate how block parameters(batchtimeout, max msg account, etc) impacts fabric network tps. Thanks and Regards Sam

SamYuan1990 (Mon, 01 Mar 2021 13:04:54 GMT):
Videos in Chinese, [Probe introduction](https://www.bilibili.com/video/BV13t4y1B7AE/) and [Probe with minifab demo](https://www.bilibili.com/video/BV1Kz4y1179L/)

tongli (Mon, 01 Mar 2021 15:29:31 GMT):
@SamYuan1990 great. Thanks for doing the excellent work!

tongli (Mon, 01 Mar 2021 15:30:44 GMT):
@rjones question, i've added k8s to minifab and like to create PR, there are around 20+ commits for this work.

tongli (Mon, 01 Mar 2021 15:31:11 GMT):
I wonder if you prefer I squash all the commits into one as a PR or just use all the commits in the PR.

tongli (Mon, 01 Mar 2021 15:31:19 GMT):
quite few files got changed.

tongli (Mon, 01 Mar 2021 15:31:33 GMT):
I can go either, but wonder what is your preference.

tongli (Mon, 01 Mar 2021 15:53:06 GMT):
@rjones I went ahead squashed all the commits into one so that it will be a bit easier for reviewer.

tongli (Mon, 01 Mar 2021 15:53:10 GMT):
here is the PR.

rjones (Mon, 01 Mar 2021 15:53:12 GMT):
ok thanks

tongli (Mon, 01 Mar 2021 15:53:17 GMT):
https://github.com/hyperledger-labs/minifabric/pull/171

tongli (Mon, 01 Mar 2021 15:54:38 GMT):
Minifabric Kubernetes deployment is added in this PR. Once it is merged, Minifabric can be used to deploy Fabric onto a given k8s cluster. See the doc in docs directory on how to do it.

rjones (Mon, 01 Mar 2021 17:51:30 GMT):
@tongli I don't really have a way to test this, so I'll just merge it. Are you OK with that?

tongli (Mon, 01 Mar 2021 17:52:05 GMT):
@rjones yes, have tested it against GKE.

tongli (Mon, 01 Mar 2021 17:52:08 GMT):
all is well.

tongli (Mon, 01 Mar 2021 17:52:29 GMT):
I can add minikube test in the pipeline.

tongli (Mon, 01 Mar 2021 17:52:53 GMT):
but it will take a bit time to set it up

tongli (Mon, 01 Mar 2021 17:53:07 GMT):
either minikube or microk8s

rjones (Mon, 01 Mar 2021 17:54:37 GMT):
it's OK

rjones (Mon, 01 Mar 2021 17:55:45 GMT):
(merged)

tongli (Mon, 01 Mar 2021 17:56:01 GMT):
@rjones the workflow is the azure workflow, right? we are still using Azure devops for the our testing?

tongli (Mon, 01 Mar 2021 17:56:07 GMT):
@rjones Thanks for merging it.

rjones (Mon, 01 Mar 2021 17:56:08 GMT):
No, GitHub only

tongli (Mon, 01 Mar 2021 17:57:13 GMT):
so , no more azure devop pipelines, right?

tongli (Mon, 01 Mar 2021 17:57:50 GMT):
other than `runs-on: ubuntu-latest`

tongli (Mon, 01 Mar 2021 17:58:01 GMT):
what else can be used?

rjones (Mon, 01 Mar 2021 18:03:49 GMT):
GitHub actions should have a wide selection of platforms; I can also connect a dedicated runner (buy a machine and put it in my apartment)

rjones (Mon, 01 Mar 2021 18:05:24 GMT):
[here is a list](https://docs.github.com/en/actions/reference/specifications-for-github-hosted-runners)

tongli (Mon, 01 Mar 2021 18:05:56 GMT):
ok. let me look around and see if I can find an easy way to get minikube up running then do a test

rjones (Mon, 01 Mar 2021 18:06:28 GMT):
OK. I don't want to grow anything into AZP right now. We do have an AWS account we could use, but it's a PITA to manage

tongli (Mon, 01 Mar 2021 18:08:00 GMT):
I would avoid aws if my life is not depends on it.

tongli (Mon, 01 Mar 2021 18:09:04 GMT):
I can do minikube then minifabric, the only issue is that the node may not big enough to run both k8s cluster and a fabric network.

rjones (Mon, 01 Mar 2021 18:27:34 GMT):
gotcha

tongli (Mon, 01 Mar 2021 22:43:45 GMT):
Folks, minifabric is now officially support k8s deployment.

tongli (Mon, 01 Mar 2021 22:44:22 GMT):
Please see related document in docs directory before you start running it.

tongli (Mon, 01 Mar 2021 22:44:44 GMT):
Also do an update to get this feature.

tongli (Tue, 02 Mar 2021 14:36:29 GMT):
Use either docker desktop kubernetes on Windows 10 or Mac, you can easily experiences this feature.

tongli (Tue, 02 Mar 2021 14:36:43 GMT):

Screen Shot 2021-03-02 at 9.01.38 AM.png

tongli (Tue, 02 Mar 2021 14:37:52 GMT):
That is a picture which showed the successful run of `minifab up -e true` against the one node kubernetes running on windows 10. For mac, it is exactly the same.

tongli (Tue, 02 Mar 2021 14:49:15 GMT):
@rjones good morning Ry, the docker build on docker hub is based on master branch,

tongli (Tue, 02 Mar 2021 14:50:42 GMT):
I do not have permission to change it. can you please change that to branch main instead?

rjones (Tue, 02 Mar 2021 15:22:13 GMT):
ok, fixed.

rjones (Tue, 02 Mar 2021 15:22:53 GMT):
https://hub.docker.com/repository/registry-1.docker.io/hyperledgerlabs/minifab/builds/8f75e9f0-d645-4681-a377-18fc89149d9f (it is building now)

tongli (Tue, 02 Mar 2021 15:23:16 GMT):
Thanks so much @rjones

tongli (Tue, 02 Mar 2021 15:23:42 GMT):
I can see it but can not make changes.

rjones (Tue, 02 Mar 2021 15:26:30 GMT):
when I look, your email4tong account has full access to that repo

tongli (Tue, 02 Mar 2021 15:27:05 GMT):
but I can not make changes , this is really weird, we actually talked about this last time.

rjones (Tue, 02 Mar 2021 15:27:18 GMT):
hmm take a look now

rjones (Tue, 02 Mar 2021 15:27:26 GMT):
I had to make a change to a different account

rjones (Tue, 02 Mar 2021 15:27:54 GMT):
I had to make `hyperledger-dockerhub-bot` an owner of the `Hyperledger-labs` GitHub repo just now.

rjones (Tue, 02 Mar 2021 15:27:54 GMT):
I had to make `hyperledger-dockerhub-bot` an owner of the `hyperledger-labs` GitHub org just now.

tongli (Tue, 02 Mar 2021 15:28:26 GMT):
same thing,

rjones (Tue, 02 Mar 2021 15:28:50 GMT):
so for instance, you cannot add another build?

tongli (Tue, 02 Mar 2021 15:29:31 GMT):
hmmmm. something just changed.

tongli (Tue, 02 Mar 2021 15:29:58 GMT):
ok, I added another build rule just to test. now that showed up, but can not change the rule for main branch

rjones (Tue, 02 Mar 2021 15:30:00 GMT):
I had to delete the previous build config because I could not edit it, either

tongli (Tue, 02 Mar 2021 15:30:09 GMT):
haha.

tongli (Tue, 02 Mar 2021 15:30:11 GMT):
ok.

rjones (Tue, 02 Mar 2021 15:30:13 GMT):
try deleting it and adding a new one

tongli (Tue, 02 Mar 2021 15:30:18 GMT):
can add new and delete but not to change.

rjones (Tue, 02 Mar 2021 15:30:42 GMT):
right, me either

tongli (Tue, 02 Mar 2021 15:30:43 GMT):
I tried that as well before you made changes, it did not work, but it is working now.

rjones (Tue, 02 Mar 2021 15:31:00 GMT):
before, you could not do it because the bot was not an owner of the GitHub org

tongli (Tue, 02 Mar 2021 15:31:26 GMT):
I just deleted the one I added, it is working now bro, thanks so much.

rjones (Tue, 02 Mar 2021 15:31:52 GMT):
I will send you a Neko sculpture in celebration

tongli (Tue, 02 Mar 2021 15:32:10 GMT):
haha. man,

tongli (Tue, 02 Mar 2021 15:32:21 GMT):
ok, I really appreciate that.

tongli (Tue, 02 Mar 2021 15:32:53 GMT):
just a picture will be fine if you want to save it for others.

rjones (Tue, 02 Mar 2021 15:41:38 GMT):
OK. How do you want it staged? I also got some HK masks (with the logo).

tongli (Tue, 02 Mar 2021 15:42:50 GMT):
@rjones HK masks? like for covid-19?

rjones (Tue, 02 Mar 2021 15:43:12 GMT):
well, sure. They're thin fabric, so I don't know how well they would work

tongli (Tue, 02 Mar 2021 15:43:48 GMT):
oh, i c. ok, if you have some extras, yeah, I would like to have couple.

tongli (Tue, 02 Mar 2021 15:43:54 GMT):
Thanks again.

rjones (Tue, 02 Mar 2021 16:50:38 GMT):
well, I meant to take a picture, but now I see the masks won't fit the cat :)

tongli (Tue, 02 Mar 2021 16:51:15 GMT):
haha. not a problem at all.

IvanV6 (Thu, 04 Mar 2021 08:58:07 GMT):
Hi all, there is a way to use minifabric into a Mac with M1 chip? thanks a lot!

tongli (Thu, 04 Mar 2021 12:27:34 GMT):
@IvanV6 there are some issues using the M1 chip. Ry has been trying it, not sure the results.@rjones any update on that?

IvanV6 (Thu, 04 Mar 2021 12:41:03 GMT):
ok thanks, i will wait for a response from @rjones

rjones (Thu, 04 Mar 2021 12:48:48 GMT):
No updates. The issue was the one image

rjones (Thu, 04 Mar 2021 12:49:21 GMT):
it might be possible if you force the arch to amd64

rjones (Thu, 04 Mar 2021 12:55:19 GMT):
different failure: ``` 2021-03-04 12:54:35.917 UTC [common.tools.configtxgen.localconfig] LoadTopLevel -> INFO 004 Loaded configuration: /etc/hyperledger/fabric/configtx.yaml qemu: uncaught target signal 11 (Segmentation fault) - core dumped /etc/hyperledger/fabric/run/certtxgen.sh: line 7: 28 Segmentation fault configtxgen -printOrg org1-example-com > JoinRequest_org1-example-com.json ```

rjones (Thu, 04 Mar 2021 12:55:40 GMT):
that is via `arch -x86_64 ./minifab up`

rjones (Thu, 04 Mar 2021 12:56:02 GMT):
so right now I think it is not possible unless you build M1 docker images for everything

IvanV6 (Thu, 04 Mar 2021 12:58:53 GMT):
ok thanks, in case, how can i build all docker images for M1?

rjones (Thu, 04 Mar 2021 13:00:12 GMT):
Are you running the docker beta for M1?

IvanV6 (Thu, 04 Mar 2021 13:00:54 GMT):
Yes

rjones (Thu, 04 Mar 2021 13:37:49 GMT):
it looks like the blocker is there is not yet a port of adoptjdk for arm64

rjones (Thu, 04 Mar 2021 13:38:38 GMT):
``` => ERROR [internal] load metadata for docker.io/library/adoptopenjdk:8u2 1.9s ------ > [internal] load metadata for docker.io/library/adoptopenjdk:8u222-b10-jdk-openj9-0.15.1: ------ failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:05378647791e45a696543234a8df32b353ea84e32a3c749fce0dd4697ebf3dca: not found make: *** [build/docker/baseimage/.arm64-0.4.22] Error 1```

rjones (Thu, 04 Mar 2021 13:39:16 GMT):
so I don't think it will happen anytime soon, unless someone can rebuild all of the docker images it depends on

IvanV6 (Thu, 04 Mar 2021 13:42:38 GMT):
oh ok, so it's queit complex to use minifabric on M1 if i understood correctly

tongli (Thu, 04 Mar 2021 14:08:56 GMT):
@IvanV6, not sure this is minifabric issue though.

IvanV6 (Thu, 04 Mar 2021 14:16:00 GMT):
@tongli yes, i guess it depends on other docker images. unfortunately for me :)

rjones (Thu, 04 Mar 2021 14:26:12 GMT):
I was considering publishing arm64 images of the fabric images, but those can't be built because of stuff like the one I just showed

rjones (Thu, 04 Mar 2021 14:26:35 GMT):
All of the turtles need arm64 flavors.

pkirkinezis (Fri, 05 Mar 2021 19:12:18 GMT):
Error: could not assemble transaction: proposal response was not successful, error code 500, msg error in simulation: failed to execute transaction 4e2d78ac1cd9249d56e272c2190f5b5c0d2e233a5d9ba56b8fb1e65f9de83ccb: could not launch chaincode locard_4.0:81848aa4b5973009f2c2af35fdf51ce730a1ec42f771bad745ac407a85eacd2e: chaincode registration failed: container exited with 2 - proposal response: version:1 response:

pkirkinezis (Fri, 05 Mar 2021 19:12:38 GMT):
Do anyone had the same error before ? @rjones @tongli

pkirkinezis (Tue, 09 Mar 2021 08:30:36 GMT):
Hi to everyone . I managed to slove the issue . Currently I am trying to learn about discovery service because "minifab discover " returns empty chaincode_endorsments.json

pkirkinezis (Tue, 09 Mar 2021 08:31:27 GMT):

Clipboard - March 9, 2021 10:31 AM

pkirkinezis (Tue, 09 Mar 2021 08:31:48 GMT):
Manually running the command on docker CLI returns the above error

tongli (Tue, 09 Mar 2021 13:20:50 GMT):
You probably does not have anchor node setup

tongli (Tue, 09 Mar 2021 13:20:50 GMT):
You probably do not have anchor node setup

tongli (Tue, 09 Mar 2021 13:21:34 GMT):
Discovery is per channel/chaincode.

tongli (Tue, 09 Mar 2021 13:22:26 GMT):
So basically you would need to have channel created, chaincode installed, approved, commuted , setup anchor, then run discover command

tongli (Tue, 09 Mar 2021 13:22:26 GMT):
So basically you would need to have channel created, chaincode installed, approved, committed, setup anchor, then run discover command

tongli (Tue, 09 Mar 2021 13:24:19 GMT):
Discovery is not available in fabric 1.4.3 or lower.

kensayers (Wed, 10 Mar 2021 19:55:30 GMT):
hi, i am looking for sample code to execute transactions and listen to events, i am using minifab to learn setup and admin, my job is to migrate code written by others and was hoping for a simple example of connecting and interacting from node js / react. Any direction would be helpful

tongli (Wed, 10 Mar 2021 22:06:05 GMT):
Look at apps directory. You will get both and also you can run them use apprun command and make some changes to see how each function gets run. @kensayers

davidkhala (Mon, 15 Mar 2021 08:27:44 GMT):
@tongli I see there is a `vscode.tgz` under `/vars`. What is it used for?

tongli (Mon, 15 Mar 2021 12:47:10 GMT):
Whole package that you can use to deliver it to other applications which might need credentials to make connections to the fabric network.

tongli (Mon, 15 Mar 2021 12:47:56 GMT):
@davidkhala ^^^

davidkhala (Mon, 15 Mar 2021 12:55:51 GMT):
got it, the wallet looks like the vscode software itself

tongli (Mon, 15 Mar 2021 13:14:12 GMT):
The wallets were packaged specially that way so that you can import to vscode easily without doing anything to it.

kinyeung (Wed, 17 Mar 2021 02:10:13 GMT):
Has joined the channel.

kinyeung (Wed, 17 Mar 2021 02:10:13 GMT):
Sorry to bother you. Is it right that the "setting" in spec.yaml can only set the environment of container. What should I do if I want to write the other parameters like in the docker-compose yaml file? For example I want to set different VCPU and memory limit for orderer container and peer container which are not the environment of container. Can I realize it with "setting" in spec.yaml or other method in spec.yaml?

pkirkinezis (Mon, 22 Mar 2021 07:39:12 GMT):
Hi something weird i found out today . During the weekend our server got down .So as a result minifabric was down also .I executed "minifab restart " without any issue but i noticed something weird . MInifabric had a chaincode at version 93.0 before restart . But after "minifab restart" minifabric started with an older version of the chaincode ,version 84.0 , and i had to mannualy install version 93 again . Is this an expected behavior ?

tongli (Mon, 22 Mar 2021 10:04:15 GMT):
@pkirkinezis hmmm, this is not expected behavior

tongli (Mon, 22 Mar 2021 10:05:55 GMT):
I wonder somehow you missed an chaincode update on one of your peer node? So that that node was never on 93?

tongli (Mon, 22 Mar 2021 10:06:52 GMT):
If you have 2.x running, once chaincode is updated, the old version chaincode container will be removed.

tongli (Mon, 22 Mar 2021 10:08:01 GMT):
Probably try to recreate this and see what happens. Also I assume that all data have been still intact?

pkirkinezis (Mon, 22 Mar 2021 11:09:25 GMT):
Yeah data was still intact . I am running the August version of minifabric with the 2.2 version of hyperledger . So in chaincode folder all the tar gz files are there for all the older versions . I am not sure if a specific pear was in an older version.

pkirkinezis (Mon, 22 Mar 2021 11:22:13 GMT):
Also i am not sure if i can update to latest version of minifabric without impacting existing channels and chaincodes on my servers.

tongli (Mon, 22 Mar 2021 15:26:49 GMT):
@pkirkinezis that has not been tried. I suspect it won’t be a problem if you shutdown then restart using new version flag since the volumes should not recreate but in any case do back up your stuff first.

pkirkinezis (Mon, 22 Mar 2021 15:34:59 GMT):
That is also my guess .I've spend some weekends trying to figure out if anything would go wrong and my only concern is the channel configurarions and keyfiles . If by any reason with the update the keyfiles cannot be read successfully I will have to reconfigure the whole network with the new keyfiles.

pkirkinezis (Mon, 22 Mar 2021 15:41:43 GMT):
FYI and for better undestand of the bug and recreate maybe . The server was restarted also today . I tried "minifabric restart " and everything worked as described but again i was not at the latest version of chaincode but neather version 84 or 93 (which is the latest) . I had again to install version 93 manually .

pkirkinezis (Mon, 22 Mar 2021 15:43:16 GMT):
This time "minifabric restart" has been restarted to version 89 of the chaincode .

tongli (Tue, 23 Mar 2021 12:34:49 GMT):
Curious, what is the version before 93? Is 84 the version right before 93? Or 84 is just one of the many before 93?

tongli (Tue, 23 Mar 2021 12:35:20 GMT):
@pkirkinezis ^^^

pkirkinezis (Tue, 23 Mar 2021 12:59:43 GMT):
Every time i make a refactor on the chaincode or a new function i bump up the version . So 84 -85 -85 etc etc until 93 . For your question the previous version of 93 is 92 . So 84 is 9 versions behind .

pkirkinezis (Tue, 23 Mar 2021 12:59:43 GMT):
Every time i make a refactor on the chaincode or a new function i bump up the version . So 84 -85 -86 etc etc until 93 . For your question the previous version of 93 is 92 . So 84 is 9 versions behind .

tongli (Tue, 23 Mar 2021 16:53:17 GMT):
This is really strange. What is magic about 84?

tongli (Tue, 23 Mar 2021 16:54:15 GMT):
If it goes back to previous one, then it makes some sense, if it always goes back to version 84, then there has to be something different about 84.

pkirkinezis (Tue, 23 Mar 2021 17:08:40 GMT):
No its random the first time went to version 84 . The second time went to version 89 .

pkirkinezis (Tue, 23 Mar 2021 17:11:30 GMT):
I will have to dig into that . Maybe i will have to update to latest version of minifabric or in the extreme case biuld the netwrok from scratch again deleting all the existing data and settings to see if that still happens . Who knows i will have to make a desition sooner or later

pkirkinezis (Tue, 23 Mar 2021 17:11:30 GMT):
I will have to dig into that . Maybe i will have to update to latest version of minifabric or in the extreme case biuld the netwrok from scratch again deleting all the existing data and settings to see if that still happens . Who knows i will have to make a decision sooner or later

tongli (Tue, 23 Mar 2021 18:07:43 GMT):
@pkirkinezis hmmm, do not rebuild your cluster to test this. Use another machine to test , you can have multiple sites on one machine

pkirkinezis (Wed, 24 Mar 2021 07:01:57 GMT):
You have a point . I will have to testi it this way and reproduce the steps .

pkirkinezis (Fri, 26 Mar 2021 06:17:54 GMT):
223433

pkirkinezis (Tue, 30 Mar 2021 16:35:55 GMT):
@tongli I found the problem . When i am running 'minifab restart' the minifabric algorithm tries to start all the docker containers including previous containers of older chaincodes until it gets to the latest version docker container . This proccess takes around 30 minutes until it gets to version 93 chaincode and if for some reason I interupt this process it will stop to a previous version of chaincode

pkirkinezis (Tue, 30 Mar 2021 16:40:46 GMT):
My first thought is that it tries to run all chaincodes until it gets to the latest

pkirkinezis (Tue, 30 Mar 2021 18:01:15 GMT):
and i found that out because in an isolated envirorment every time i runned docker ps

pkirkinezis (Tue, 30 Mar 2021 18:03:02 GMT):
the docker container name was changing to newer version . docker ps dev-peer2.supplier.example.com-obcs_1.0 ...................

pkirkinezis (Tue, 30 Mar 2021 18:03:14 GMT):
docker ps dev-peer2.supplier.example.com-obcs_23.0

pkirkinezis (Tue, 30 Mar 2021 18:03:37 GMT):
and i left it for about half an hour and eventually after docker ps i got dev-peer2.supplier.example.com-obcs_93.0

tongli (Tue, 30 Mar 2021 20:42:32 GMT):
@pkirkinezis good to know. I certainly did not know the process. And I do not think it is something minifabric did made it behave that way.

tongli (Tue, 30 Mar 2021 20:43:14 GMT):
When you have that many versions, it seems to me will take some time.

tongli (Tue, 30 Mar 2021 20:43:42 GMT):
I wonder if there is some kind of settings to make it not to try from the beginning.

pkirkinezis (Wed, 31 Mar 2021 05:47:19 GMT):
Xm . Settings on what ?

pkirkinezis (Wed, 31 Mar 2021 05:47:24 GMT):
@tongli

RatakondalaArun (Thu, 01 Apr 2021 06:38:32 GMT):
Has joined the channel.

RatakondalaArun (Thu, 01 Apr 2021 07:14:44 GMT):
Hello I am using minifabric it exites with error code ``` Default option org is citizen.example.com which does not exist in your spec, use -o to specify one ``` I am using this command ``` minifab.cmd up -s couchdb -c mainchannel -l node -n news_cc -v v1.0 -p '"initLedger"' -o citizen.example.com -f ```

RatakondalaArun (Thu, 01 Apr 2021 07:14:44 GMT):
Hello I am using minifabric it exites with error code ``` Default option org is citizen.example.com which does not exist in your spec, use -o to specify one ``` I am using this command ```bash minifab.cmd up -s couchdb -c mainchannel -l node -n news_cc -v v1.0 -p '"initLedger"' -o citizen.example.com -f ```

RatakondalaArun (Thu, 01 Apr 2021 07:14:44 GMT):
Hello I am using minifabric it exites with error code ``` Default option org is citizen.example.com which does not exist in your spec, use -o to specify one ``` I am using this command ```bash minifab.cmd up -s couchdb -c mainchannel -l node -n news_cc -v v1.0 -p '"initLedger"' -o citizen.example.com ```

RatakondalaArun (Thu, 01 Apr 2021 07:15:49 GMT):
This is my `spec.yaml` file ```yaml fabric: cas: - "ca.citizen.example.com" - "ca.pci.example.com" - "ca.icmr.example.com" - "ca.moh.example.com" peers: - "peer0.citizen.example.com" - "peer0.pci.example.com" - "peer0.icmr.example.com" - "peer0.moh.example.com" orderers: - "orderer1.example.com" - "orderer2.example.com" - "orderer3.example.com" settings: ca: FABRIC_LOGGING_SPEC: DEBUG peer: FABRIC_LOGGING_SPEC: DEBUG orderer: FABRIC_LOGGING_SPEC: DEBUG netname: "news-network" ```

RatakondalaArun (Thu, 01 Apr 2021 07:16:04 GMT):
can some one help me

RatakondalaArun (Thu, 01 Apr 2021 15:54:47 GMT):
How to use deploy *chaincode* written with `fabric-contract-api` on fabricmini

harshita (Thu, 01 Apr 2021 20:16:06 GMT):
Has joined the channel.

tongli (Fri, 02 Apr 2021 22:17:09 GMT):
@RatakondalaArun there is no difference in deploying a chaincode how it was created.

tongli (Fri, 02 Apr 2021 22:17:48 GMT):
Exactly same way. You just have to make sure that the chaincode built with correct dependencies.

RatakondalaArun (Sat, 03 Apr 2021 05:07:34 GMT):
@tongli Thanks for reply. Issue solved I think I did some typo and bumped my fabric-contract-api dependencies to `2.2.1`

krgko (Mon, 05 Apr 2021 06:24:35 GMT):
Has joined the channel.

aguel (Mon, 05 Apr 2021 06:45:22 GMT):

Screen Shot 2021-04-05 at 2.44.31 PM.png

aguel (Mon, 05 Apr 2021 06:45:22 GMT):

Screen Shot 2021-04-05 at 2.44.31 PM.png

aguel (Mon, 05 Apr 2021 06:45:22 GMT):

Screen Shot 2021-04-05 at 2.44.31 PM.png

dalaomai (Tue, 06 Apr 2021 10:55:45 GMT):
Has joined the channel.

GaberAl-Absi (Tue, 06 Apr 2021 15:11:36 GMT):
Has joined the channel.

rjones (Thu, 08 Apr 2021 21:45:36 GMT):
@canenas check out [the readme](https://github.com/hyperledger-labs/minifabric/blob/main/docs/README.md)

canenas (Thu, 08 Apr 2021 21:45:36 GMT):
Has joined the channel.

canenas (Thu, 08 Apr 2021 23:28:46 GMT):
can I use fabric-mini to setup a fabric network on my kubernetes deployment?

tongli (Fri, 09 Apr 2021 11:49:45 GMT):
Yes. Please follow the docs

tongli (Fri, 09 Apr 2021 11:50:36 GMT):
Make sure that you have persistent volume available in your k8s

canenas (Fri, 09 Apr 2021 12:01:24 GMT):
So looking at the docs, is the nginx ingress required? Our lab doesn't allow any incoming connections and for every remote requests I need to go through a proxy.

davidkel (Sat, 10 Apr 2021 07:24:59 GMT):
Has joined the channel.

ymo 7 (Mon, 12 Apr 2021 16:50:34 GMT):
Has joined the channel.

tongli (Tue, 13 Apr 2021 01:00:44 GMT):
@canenas if you deploy onto k8s, then yes. If you deploy onto docker, you do not need Nginx ingress.

rjones (Sat, 17 Apr 2021 12:24:44 GMT):
@tongli take a look? https://github.com/hyperledger-labs/minifabric/pull/189

pkirkinezis (Wed, 21 Apr 2021 16:31:31 GMT):
Hi to everyone . Hs anyone experienced the bellow error . I am trying to install a new version for our chaincode and we get this error . `non-zero return code Error: timed out waiting for txid on all peers`

pkirkinezis (Wed, 21 Apr 2021 16:31:31 GMT):
Hi to everyone . Hs anyone experienced the bellow error . I am trying to install a new version for our chaincode and we get this error . `non-zero return code` `Error: timed out waiting for txid on all peers`

pkirkinezis (Wed, 21 Apr 2021 16:31:31 GMT):
Hi to everyone . Hs anyone experienced the bellow error . I am trying to install a new version for our chaincode and we get this error . ```non-zero return code `Error: timed out waiting for txid on all peers```

pkirkinezis (Wed, 21 Apr 2021 16:31:31 GMT):
Hi to everyone . Hs anyone experienced the bellow error . I am trying to install a new version for our chaincode and we get this error . ```non-zero return code Error: timed out waiting for txid on all peers```

rjones (Wed, 21 Apr 2021 16:32:46 GMT):
you will need to add a lot more details

pkirkinezis (Wed, 21 Apr 2021 16:33:58 GMT):
The command we run across our peers is ```./minifab install,approve -l go -n cc_name-c channelname-v 5.4 -d true -p '"Init"'```

pkirkinezis (Wed, 21 Apr 2021 16:35:04 GMT):
In some peers install and aprrove finishes without any issue . But in 3 specific peers the 'approve' function takes ages and return the above erro i mentioned

pkirkinezis (Wed, 21 Apr 2021 16:36:00 GMT):

Clipboard - April 21, 2021 7:35 PM

pkirkinezis (Wed, 21 Apr 2021 16:37:40 GMT):

Clipboard - April 21, 2021 7:36 PM

pkirkinezis (Wed, 21 Apr 2021 16:37:50 GMT):
Any tips for debugging will be great also

pkirkinezis (Wed, 21 Apr 2021 16:54:18 GMT):
And if i try to to run "./minifab blockquery -newest " on the nodes that give me an error I get the bellow error '''2021-04-21 16:52:54.856 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-04-21 16:52:54.858 UTC [cli.common] readBlock -> INFO 002 Expect block, but got status: &{BAD_REQUEST} '''

pkirkinezis (Wed, 21 Apr 2021 16:54:18 GMT):
And if i try to to run "./minifab blockquery -newest " on the nodes that give me an error I get the bellow error ```2021-04-21 16:52:54.856 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-04-21 16:52:54.858 UTC [cli.common] readBlock -> INFO 002 Expect block, but got status: &{BAD_REQUEST} ```

nmakaris (Wed, 21 Apr 2021 17:03:49 GMT):
Has joined the channel.

pkirkinezis (Wed, 21 Apr 2021 18:56:12 GMT):
I found the Problem @rjones the Sever had 15m difference on Date . Orderer where rejecting all the requests from the peers with 15m difference on there sys date .

pkirkinezis (Wed, 21 Apr 2021 18:57:58 GMT):
I synchronized the server who had there sys dates out of sync and then everything worked like a charm

pkirkinezis (Wed, 21 Apr 2021 18:58:01 GMT):

Clipboard - April 21, 2021 9:57 PM

urkizu (Fri, 23 Apr 2021 13:29:19 GMT):
Has joined the channel.

urkizu (Fri, 23 Apr 2021 13:30:33 GMT):
Hi all.

urkizu (Fri, 23 Apr 2021 13:30:33 GMT):
Hi all. I'm trying to launch a network with a particular block BatchTimeout that is located on configtx.yaml. Folowing https://github.com/hyperledger-labs/minifabric/issues/151 I generate this spec.yaml settings: ca: FABRIC_LOGGING_SPEC: INFO peer: FABRIC_LOGGING_SPEC: INFO CORE_CHAINCODE_LOGGING_LEVEL: INFO orderer: FABRIC_LOGGING_SPEC: INFO GENERAL_ORDERER_BATCHTIMEOUT: 10s GENERAL_ORDERER_BATCHSIZE_MAXMESSAGECOUNT: 500 GENERAL_ORDERER_BATCHSIZE_ABSOLUTEMAXBYTES: 120MB GENERAL_ORDERER_BATCHSIZE_PREFERREDMAXBYTES: 2048 KB Then generate the network with: minifab up Then launch a script that generates a lot of tx. The block size is 10 and the time is around 2sg, it seems that something I'm doing wrong. Are correct the env variables? Are inside the rigth place?

tongli (Fri, 23 Apr 2021 16:32:09 GMT):
@urkizu I think these parameters should be changed using update channel configuration.

tongli (Fri, 23 Apr 2021 16:32:20 GMT):
channel update command basically.

rjones (Fri, 23 Apr 2021 21:13:04 GMT):
@tongli https://github.com/hyperledger-labs/minifabric/pull/197

rjones (Fri, 23 Apr 2021 21:13:22 GMT):
(that includes the latest releases that just happened today)

nizos (Wed, 28 Apr 2021 08:05:36 GMT):
Has joined the channel.

nizos (Wed, 28 Apr 2021 08:05:37 GMT):
Can I use affiliations with minifabric?

tongli (Wed, 28 Apr 2021 11:13:41 GMT):
CA is setup , you can use ca client to do whatever you want

nizos (Thu, 29 Apr 2021 11:49:42 GMT):
I am not sure how to add the `fabric-ca-server-config.yaml` file to the ca that I deploy using minifabric.

nizos (Thu, 29 Apr 2021 11:50:12 GMT):
When I exec into the container I see that it has the default `fabric-ca-server-config.yaml`

nizos (Thu, 29 Apr 2021 11:50:34 GMT):
Is there a way to add it through a volume mount?

nizos (Thu, 29 Apr 2021 11:50:56 GMT):
I would prefer not having to exec into the container and modify the file manualy.

tongli (Thu, 29 Apr 2021 12:08:48 GMT):
There is a fabric-ca-client program to access the ca to do things

nizos (Thu, 29 Apr 2021 12:12:54 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=86ZIuUj7sCZ78pmkk) Can you elaborate a bit more? Do you mean the fabric-ca-client binary that you can use to execute commands with?

nizos (Thu, 29 Apr 2021 12:13:21 GMT):
Can I use it to change the affiliations that are available on the channel/network?

nizos (Thu, 29 Apr 2021 12:14:02 GMT):
https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/clientcli.html

nizos (Thu, 29 Apr 2021 12:14:06 GMT):
This one right?

nizos (Thu, 29 Apr 2021 12:15:10 GMT):
Interesting, I found those commands: https://hyperledger-fabric-ca.readthedocs.io/en/release-1.4/clientcli.html#affiliation-command

nizos (Thu, 29 Apr 2021 12:15:53 GMT):
Is it enough to run those commands? Do you I need to do anything to the peers/orderes etc

tongli (Thu, 29 Apr 2021 17:24:15 GMT):
@nizos yes you can use that client to hit minifabric created ca nodes to do whatever you need to do,

bur (Mon, 10 May 2021 10:28:35 GMT):
Has joined the channel.

rjones (Wed, 12 May 2021 05:40:26 GMT):
I updated the wiki to have a GFI macro: https://wiki.hyperledger.org/display/labs/Minifab

tongli (Wed, 12 May 2021 15:26:26 GMT):
@rjones thanks a lot Ry

giorgio.nocera (Tue, 25 May 2021 14:09:17 GMT):
Has joined the channel.

giorgio.nocera (Tue, 25 May 2021 20:30:09 GMT):
Hi everyone, I'm new on mini-fabric. I found this link on google: https://www.gitmemory.com/issue/hyperledger-labs/minifabric/112/720651619 where someone asks about "deploy Fabric networks across multiple servers". Is there any guide or tutorial for this? I watched the video of Professor Li, but I was not able to understand how to distribute. Can you help me? Thank you.

tongli (Tue, 25 May 2021 20:35:54 GMT):
@giorgio.nocera basically it is to deploy onto one machine, then to another machine, then join the 2nd machine to the first machine hosted fabric network.

giorgio.nocera (Tue, 25 May 2021 20:38:56 GMT):
Thank you for the patience Professor Li. So if I'm not wrong, assuming I've 3 machines connected to the same real network, can I deploy minifabric on the three machines and the connect the peers by using the docker IPs?

tongli (Wed, 26 May 2021 00:33:45 GMT):
@giorgio.nocera yes, you can run minifab up -e true on the first node, then minifab netup using different spec.yaml on 2nd and 3nd node, then join these two orgs to the network on first node. Make sure each machine has their own org and fabric nodes.

brohamgoham (Wed, 26 May 2021 01:02:30 GMT):
Has joined the channel.

brohamgoham (Wed, 26 May 2021 01:02:30 GMT):
hello can miniFab be used for production

brohamgoham (Wed, 26 May 2021 01:03:04 GMT):
i am developing a production ready HLF , but fisrt the company wants a demo and i was thinking minifab would be perfect

tongli (Wed, 26 May 2021 02:06:11 GMT):
It is fully functional fabric network. The only thing is that it uses self generated certs

giorgio.nocera (Thu, 27 May 2021 14:15:08 GMT):
Thank you so much Professor Li!

lcvalves (Mon, 31 May 2021 18:42:37 GMT):
Has joined the channel.

tongli (Wed, 02 Jun 2021 00:56:55 GMT):
@lcvalves welcome to the channel. Hope that you’ve found minifabric to be useful.

tongli (Wed, 02 Jun 2021 00:57:14 GMT):
Ask questions here if you have any.

lcvalves (Wed, 02 Jun 2021 01:02:10 GMT):
@tongli Hi! I've been trying out minifab and it really simplifies the process of working with Fabric. Great work!

lcvalves (Wed, 02 Jun 2021 01:04:38 GMT):
The challenges I'm facing at the current time are more related with World State data modeling. I come from a Relational Database background and it's hard for me to "transalate" a ER model to a K/V model.

lcvalves (Wed, 02 Jun 2021 01:05:47 GMT):
But that's inherent to the Fabric structure so I don't think that this is the best place to chat about that topic but I'm open to hear some explanations :slight_smile:

tongli (Wed, 02 Jun 2021 04:34:26 GMT):
That is right. The best place for these questions will be fabric channel.@lcvalves

lcvalves (Tue, 08 Jun 2021 10:24:00 GMT):
I need to test/debug my chaincode but it takes too long to do the entire CC lifecycle, is there a way to run Minifab on dev mod like in the standard Fabric releases? Couldn't find this info on the provided docs on github.

lcvalves (Tue, 08 Jun 2021 10:24:00 GMT):
I need to test/debug my chaincode but it takes too long to do the entire CC lifecycle, is there a way to run Minifab on dev mode like in the standard Fabric releases? Couldn't find this info on the provided docs on github.

tongli (Tue, 08 Jun 2021 11:31:44 GMT):
If you could, that means you are somehow short cutting blockchain, then blockchain will have serious issues. The answer is no. But you can always run some unit tests using mock objects.

tusharbansal (Sun, 13 Jun 2021 18:32:42 GMT):
Has joined the channel.

giorgio.nocera (Mon, 21 Jun 2021 08:39:54 GMT):
Hi Professor @tongli , I'm trying to installa a node chaincode on a instance of minifabric, but I've some issues. In particular I'm trying to run a `minifab up` , and then `minifab install -n simple -l node` but I receive an error: `Error: chaincode install failed with status: 500 - error in simulation: failed to execute transaction e7318180a93d2aecaf99b12358ca759e468fcc39055b6f06be799080701f8111: error sending: timeout expired while executing transaction`. Is there something I'm missing? Thank you!

tongli (Mon, 21 Jun 2021 21:05:30 GMT):
It should have worked. You can try again.

tongli (Mon, 21 Jun 2021 21:11:03 GMT):
Hmmm, when you do ‘minifab up’, the chaincode should have already installed. You probably can try to install with a different version number

zhenbing (Tue, 22 Jun 2021 14:53:07 GMT):
@tongli Hi LiTong, The WALL is too high to go thru these years. I tried 2.2 version (1.4 work fine) and the cc install failed at cc build phase. Is there a way to pass GOProxy to cc builder?

zhenbing (Tue, 22 Jun 2021 14:53:21 GMT):

Clipboard - June 22, 2021 10:53 PM

tongli (Wed, 23 Jun 2021 02:30:35 GMT):
You should setup the go proxy as the docs suggested. You do not really need to go through the firewall. Look at the spec.yaml file and see goproxy and the proxy in China

zhenbing (Wed, 23 Jun 2021 02:47:27 GMT):
Yes, I already setup goproxy in spec.yaml and 1.4 work fine, even I wrapped a goprxoy ENV to fabric-ccenv. I wonder if 2.0 use default external chaincode builder and the configure of chaincode.externalBuilders: doesn't use our spec.yaml GOPROXY?:blush:

tongli (Wed, 23 Jun 2021 11:15:45 GMT):
Should work for 2.x .

tongli (Wed, 23 Jun 2021 11:16:28 GMT):
I Cannot test about it though

giorgio.nocera (Thu, 24 Jun 2021 13:51:13 GMT):
Hi, I tried with a different code, and a different version number (`minifab install -n simple -l node -v 2.0`), but I always get the same error.

giorgio.nocera (Thu, 24 Jun 2021 16:14:07 GMT):
I also tried to cleanup the environment and directly run `minifab up -l node`

zhenbing (Fri, 25 Jun 2021 01:10:26 GMT):
can u paste the error message or a screenshot?

giorgio.nocera (Fri, 25 Jun 2021 06:24:29 GMT):

Install node chaincode error

giorgio.nocera (Fri, 25 Jun 2021 06:24:33 GMT):
Sure, thank you for your time.

jimkom (Fri, 25 Jun 2021 09:48:07 GMT):
Has joined the channel.

jimkom (Fri, 25 Jun 2021 09:48:08 GMT):
hello guys! quick question: anyone knows how to solve the following error? "Cannot find module 'pkcs11js'"

davidkel (Fri, 25 Jun 2021 09:51:10 GMT):
see https://stackoverflow.com/questions/67959099/hypeledger-fabric-javascript-application-node-app-js-does-not-work

jimkom (Fri, 25 Jun 2021 10:01:38 GMT):
i will check it out thanks!

jimkom (Fri, 02 Jul 2021 14:04:00 GMT):
Hello! I'm trying to run the mywork, node.js app on mini fabric tutorial (https://github.com/hyperledger-labs/minifabric/blob/main/docs/README.md) but I'm getting a lot of errors. It does no seem to work. Is there another tutorial/documentation to use?

tongli (Fri, 02 Jul 2021 16:21:08 GMT):
@jimkom, if you detail your steps and your env, someone probably can help. Otherwise, people will not know how and where problems started.

tongli (Fri, 02 Jul 2021 16:21:46 GMT):
First, you obviously need access to internet, 2nd you need docker working correctly in your env.

tongli (Fri, 02 Jul 2021 16:22:48 GMT):
Also checking your docker version

tongli (Fri, 02 Jul 2021 16:23:06 GMT):
The error msg that you saw will be also helpful.

jimkom (Wed, 07 Jul 2021 07:28:22 GMT):
Hello again. Ok so, I'm running Debian 10 on VirtualBox, with Docker version 20.10.7, build f0df350. Controlling it via SSH on VScode. My goal is to run the sample node application that came with minifabric to work with the samplecc chaincode. So I run `minifab cleanup`, `minifab up` and finally `minifab apprun -l node`, all in the /mywork directory. Then I get the following error:

jimkom (Wed, 07 Jul 2021 07:28:47 GMT):

2nd part of the error.PNG

jimkom (Wed, 07 Jul 2021 07:28:47 GMT):

1st part of the error.PNG

jimkom (Wed, 07 Jul 2021 07:29:04 GMT):

2nd part of the error.PNG

jimkom (Wed, 07 Jul 2021 07:40:44 GMT):
@tongli

jimkom (Wed, 07 Jul 2021 10:11:02 GMT):
Nevermind, found it! The default chaincode being installed with `minifab up` was the *simple *chaincode. The sample node app uses the *samplecc *chaincode though, that needs to be _installed,approved,commited,initialized,discovered_ and then run the `minifab apprun -l node` command.

tongli (Thu, 08 Jul 2021 00:52:52 GMT):
@jimkom, happy that you solved the issues.

jimkom (Thu, 08 Jul 2021 13:04:08 GMT):
Hello Mr. @tn

jimkom (Thu, 08 Jul 2021 13:06:00 GMT):
Hello Mr @tongli . Is it possible to setup a REST service application with apprun (nodejs)?

sammi2021 (Thu, 08 Jul 2021 16:54:15 GMT):
Has joined the channel.

sammi2021 (Thu, 08 Jul 2021 16:54:15 GMT):
After I ran ".\minifab.cmd down; .\minifab.cmd up; .\minifab.cmd explorerdown ; .\minifab.cmd explorerup"

sammi2021 (Thu, 08 Jul 2021 16:54:38 GMT):

Clipboard - July 8, 2021 9:54 AM

sammi2021 (Thu, 08 Jul 2021 16:54:41 GMT):
the explorer is not up:

sammi2021 (Thu, 08 Jul 2021 16:55:09 GMT):
The console says: ```# Run the channel creation script on cli container ************ non-zero return code 2021-07-08 16:42:54.052 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration 2021-07-08 16:42:54.077 UTC [common.tools.configtxgen.localconfig] Load -> INFO 002 Loaded configuration: /vars/configtx.yaml 2021-07-08 16:42:54.077 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 003 Generating new channel configtx 2021-07-08 16:42:54.265 UTC [common.tools.configtxgen] doOutputChannelCreateTx -> INFO 004 Writing new channel tx Error: failed to create deliver client for orderer: orderer client failed to connect to orderer2.example.com:7050: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp: lookup orderer2.example.com on 127.0.0.11:53: no such host" # STATS ******************************************************* minifab: ok=89 failed=1 ```

sammi2021 (Thu, 08 Jul 2021 16:55:35 GMT):
I'm using latest docker images, and testing on windows 10

sammi2021 (Thu, 08 Jul 2021 16:56:24 GMT):
My init script is: mkdir %userprofile%\mywork & cd %userprofile%\mywork & curl -o minifab.cmd -sL https://tinyurl.com/y3gupzby

sammi2021 (Thu, 08 Jul 2021 17:06:25 GMT):
Newver mind, I figured it out. After I cleaned all my images and start it over, the explorer is up.

sammi2021 (Thu, 08 Jul 2021 17:06:41 GMT):

Clipboard - July 8, 2021 10:07 AM

sammi2021 (Thu, 08 Jul 2021 17:07:08 GMT):

Clipboard - July 8, 2021 10:07 AM

alicia.antony (Tue, 13 Jul 2021 11:52:20 GMT):
Has joined the channel.

bhavesh.c (Mon, 19 Jul 2021 10:59:23 GMT):
Has joined the channel.

septcinquante (Thu, 22 Jul 2021 15:22:25 GMT):
Has joined the channel.

septcinquante (Thu, 22 Jul 2021 15:22:25 GMT):
hello

tongli (Thu, 22 Jul 2021 15:22:45 GMT):
hi

septcinquante (Thu, 22 Jul 2021 15:23:57 GMT):
thanks for your works , great idea !!! :thumbsup:

tongli (Thu, 22 Jul 2021 15:27:33 GMT):
@septcinquante are you using minifabric?

septcinquante (Thu, 22 Jul 2021 15:36:45 GMT):
@tongli I will do that but before to play with minifabric , i have read from your response that MF can be use for production ? do you confirme ? is it a good idea to use MiniFabric to develop a Rest Full API to communicate with the ledger? I have to manage documents, certificates, notices in my project. Will I be able to do this with minifabric? i would like use a service cloud service to record documents and juste store URI. I have read a lot of blockhain on Linux Hyperledger and i have follow some course , I have understand the theorie but i need practice, and i feel good with MF

tongli (Thu, 22 Jul 2021 16:00:21 GMT):
@septcinquante sure you can.

tongli (Thu, 22 Jul 2021 16:00:38 GMT):
starts with minifabric, you will have a lot easier time.

tongli (Thu, 22 Jul 2021 16:01:00 GMT):
you probably will not be too frustrated with Fabric.

septcinquante (Thu, 22 Jul 2021 16:02:02 GMT):
thank happy to joint , What language for API development do you recommend?

rjones (Thu, 22 Jul 2021 16:10:28 GMT):
what are you most comfortable in? I would guess the golang SDK is the most rich

septcinquante (Thu, 22 Jul 2021 19:28:22 GMT):
@rjones Node, Php i don't no if there are somes particularies constraintes.

septcinquante (Thu, 22 Jul 2021 19:28:22 GMT):
@rjones Node, java, Php i don't no if there are somes particularies constraintes.

cpux07 (Thu, 22 Jul 2021 21:08:18 GMT):
Has joined the channel.

septcinquante (Fri, 23 Jul 2021 14:36:29 GMT):
hello ! is there a tuto, a webinar to show us the way to develop API for MiniFabric ? thanks

tongli (Fri, 23 Jul 2021 14:37:27 GMT):
@septcinquante develop API for Minifabric? I am not really sure what you mean by that. elaborate a bit please.

tongli (Fri, 23 Jul 2021 14:37:59 GMT):
Minifabric is a tool to stand up Fabric network, dealing with channels, chaincode, inspect ledgers,

tongli (Fri, 23 Jul 2021 14:38:19 GMT):
develop API for Minifabric? I am not really sure what you mean.

septcinquante (Fri, 23 Jul 2021 14:46:36 GMT):
Ok Sorry,I will try to be clear. Imagine that we have several organizations on our blockchain; I want to give them the possibility to add an entry (a product for example) or to consult an entry in the chain through a WEB API REST FULL. Maybe I'm wrong with mini-fabric

tongli (Fri, 23 Jul 2021 19:49:36 GMT):
you probably want to develop some chaincode (smart contract), then install them onto the network, then dev apps to deal with the smart contract, that would be the normal process of using blockchain system.

NajetBENHAMOUDA (Sun, 25 Jul 2021 11:18:02 GMT):
Has joined the channel.

septcinquante (Mon, 26 Jul 2021 09:18:53 GMT):
thanks , i will explore

septcinquante (Mon, 26 Jul 2021 09:23:14 GMT):
Hello Li Another question please, with my poor level in blockchain, do you sincerely think that it will be better for me to try minifabric or directly go to tools like hyperledger GRID. Thank you

tongli (Tue, 27 Jul 2021 15:30:20 GMT):
Do not know anything about hyperledger GRID.

cpux07 (Tue, 27 Jul 2021 16:52:54 GMT):
When setting up minifab on Ubuntu server, I am getting the following warning: Status: Downloaded newer image for hyperledgerlabs/minifab:latest WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/s390x) and no specific platform was requested ------ is there a s390x version of the update ?

cpux07 (Tue, 27 Jul 2021 16:53:35 GMT):
I also keep getting "The requested image's platform (linux/amd64) does not match the detected host platform (linux/s390x) and no specific platform was requested" for any other command that I try to run after ./minifab up

tongli (Tue, 27 Jul 2021 17:34:49 GMT):
@ cpux07 I do not think it runs on s390x. One probably has to build an image for that?

cpux07 (Tue, 27 Jul 2021 20:22:03 GMT):
@tongli thank you, is there a guide on how to build an image on s390x? if there is one I can try building one

tongli (Tue, 27 Jul 2021 21:44:40 GMT):
I wonder if you can simply clone the minifabric repo and build on s390x?

tongli (Tue, 27 Jul 2021 21:45:17 GMT):
Then you would need hyperlwdger fabric s390x images right?

tongli (Tue, 27 Jul 2021 21:45:38 GMT):
I do not really know if these images are available.

cpux07 (Tue, 27 Jul 2021 21:45:40 GMT):
Yes, I m trying to make that happen but everything seems to amd64

tongli (Tue, 27 Jul 2021 21:46:06 GMT):
Probably just check docker bun on these images.

tongli (Tue, 27 Jul 2021 21:46:27 GMT):
Docker hub

cpux07 (Tue, 27 Jul 2021 21:46:31 GMT):
I know that my predecessor has built and deployed a hyperledger fabric on s390x but even his code is not working...

cpux07 (Tue, 27 Jul 2021 21:46:44 GMT):
I will look into it thank you

tongli (Tue, 27 Jul 2021 21:46:55 GMT):
Not a problem. Thx

tongli (Tue, 27 Jul 2021 21:47:43 GMT):
I am curious why you are doing this on s390x.

tongli (Tue, 27 Jul 2021 21:48:12 GMT):
Your company has a need to run fabric on s390x?

rjones (Wed, 28 Jul 2021 00:56:11 GMT):
I don't think the Fabric project has built s390x images in years.

nikolas (Wed, 28 Jul 2021 15:30:09 GMT):
Has joined the channel.

nikolas (Wed, 28 Jul 2021 15:30:10 GMT):
Hi, quick question: how can I set the couchdb passwords? obviously exposing ports with the defaults is not a good idea...

rjones (Wed, 28 Jul 2021 15:36:10 GMT):
@cpux07 looking on dockerhub, the last `s390x` image was last pushed almost three years ago.

cpux07 (Wed, 28 Jul 2021 17:16:59 GMT):
@tongli i am a college professor and IBM provides these servers to us for free to be used with students, but I teach in college of business and the course focus is on the blockchain application not development and deployment, my goal is to have a working hyperledger so I can have students run some usecases on it without the hassle of setting up the system. To that end, i need to build a working solution and then have it imaged and cloned to student server by IBM support

rjones (Wed, 28 Jul 2021 17:18:06 GMT):
it sounds like minifabric is perfect for that

cpux07 (Wed, 28 Jul 2021 17:18:09 GMT):
@rjones thank you, yea i am running to many issues... everything that is out there seems to be designed to work with amd64

rjones (Wed, 28 Jul 2021 17:18:28 GMT):
I don't think Fabric supports s390x formally any more.

cpux07 (Wed, 28 Jul 2021 17:18:41 GMT):
yea but I cant get minifabric deployed properly on s390x

cpux07 (Wed, 28 Jul 2021 17:18:51 GMT):
neither does minifabric

rjones (Wed, 28 Jul 2021 17:19:00 GMT):
right, because the images don't exist

rjones (Wed, 28 Jul 2021 17:19:22 GMT):
I had the same problems trying to get Fabric working on Apple's M1 silicon

rjones (Wed, 28 Jul 2021 17:20:42 GMT):
There was a group that wanted to set up s390x builds some time ago, but I haven't heard from them in years

cpux07 (Wed, 28 Jul 2021 17:25:00 GMT):
well if you saw anything out there for s390x, i appreciate it if you let me know, I am teaching the course this semester and as of now due to these issues i am taking the hands-on use-cases out of course plan but they can make it back if I can deploy and run either mini-fabric or fabric smoothly on s390x

rjones (Wed, 28 Jul 2021 17:26:43 GMT):
if the students have laptops, they could use minifab on the laptops directly

cpux07 (Wed, 28 Jul 2021 17:28:57 GMT):
@rjones they are not tech savy students, they will run into endless technical issue when installing docker and other pre-reqs for hypeledger, we do not have the resources to help them out of these technical issues. Students being students in a non technical college are waiting for a technical reason in order not to complete their task!

rjones (Wed, 28 Jul 2021 17:29:28 GMT):
ah I see

rjones (Wed, 28 Jul 2021 17:30:54 GMT):
I guess the only way out is to ask IBM for x86-64 servers

cpux07 (Wed, 28 Jul 2021 17:30:55 GMT):
that's why in the past we have gone with clean and cloned and ready to use server, to not to give students any technical excuse, but IBM has changed its arch for these server from amd64 to s390x and here were are now...

rjones (Wed, 28 Jul 2021 17:31:02 GMT):
gotcha

alanveloso (Thu, 29 Jul 2021 12:47:53 GMT):
Has joined the channel.

alanveloso (Thu, 29 Jul 2021 12:47:53 GMT):
Hi, I'm starting with minifabric. I'm trying to use minimal configuration to run a network, but I can't start a network without 2 peers from 2 different organizations. Does anyone know why this is?

zhenbing (Fri, 30 Jul 2021 07:39:43 GMT):
without 2 peers from 2 different organizations? How do u config in the spec.yaml?

tongli (Tue, 10 Aug 2021 18:47:26 GMT):
All, added Fabric operation console support in Minifabric. You can now easily manage your network with the console.

tongli (Tue, 10 Aug 2021 18:47:58 GMT):
``` minifab up -e true && minifab consoleup```

tongli (Tue, 10 Aug 2021 18:48:07 GMT):
that is all it takes to get things going.

tongli (Tue, 10 Aug 2021 18:48:28 GMT):
@rjones Can you review? Thanks https://github.com/hyperledger-labs/minifabric/pull/248

rjones (Tue, 10 Aug 2021 18:50:12 GMT):
done; waiting on CI to merge

tongli (Tue, 10 Aug 2021 18:50:29 GMT):
Thanks so much @rjones

tongli (Tue, 10 Aug 2021 18:50:49 GMT):
very happy to see the console can be used with Minifabric created network.

rjones (Tue, 10 Aug 2021 18:51:00 GMT):
pretty neat

tongli (Tue, 10 Aug 2021 18:51:43 GMT):
similar to `explorerup & explorerdown`, one just needs to do `consoleup & consoledown` to get it up running or get rid of it.

tongli (Tue, 10 Aug 2021 18:52:20 GMT):
then it will display an URL so humans can access it from a browser.

tongli (Tue, 10 Aug 2021 18:52:33 GMT):
added in the doc as well.

tongli (Tue, 10 Aug 2021 18:52:55 GMT):
we probably can update the Minifabric blog to high light that?

davidkel (Tue, 10 Aug 2021 19:01:32 GMT):
@tongli just a slight problem with the new docs added ``` Start up portainer web ui <--- is a link [Use Fabric operation console](Use Fabric operation console) <-- not a link ```

tongli (Tue, 10 Aug 2021 19:02:04 GMT):
let me fix that now.

davidkel (Tue, 10 Aug 2021 19:02:35 GMT):
Great to see the console being included

tongli (Tue, 10 Aug 2021 19:06:35 GMT):
https://github.com/hyperledger-labs/minifabric/pull/249

tongli (Tue, 10 Aug 2021 19:06:40 GMT):
to fix the link issue.

tongli (Tue, 10 Aug 2021 19:06:46 GMT):
in the doc.

rjones (Thu, 12 Aug 2021 16:47:22 GMT):
hey @tongli check this out: https://github.dev/hyperledger-labs/minifabric/pull/250

rjones (Thu, 12 Aug 2021 16:47:37 GMT):
it shows you the exact diffs in an in-browser VSCode instance

razasikander (Tue, 17 Aug 2021 14:21:34 GMT):
Has joined the channel.

razasikander (Tue, 17 Aug 2021 14:24:41 GMT):
Hello i have recently started minifabric it seems good . i wanted to test the k8s deployment. I have created 1 master node and 2 workers in my setup on local PC. I have added calico cni and ngnix-ingress controller. the ip was pending so used metallb to assign external ip as local cluster cannot get ip it self. But now when i try to run "./minifab.sh up -e true" im getting this error " Failed to get client due to HTTPSConnectionPool(host='172.16.0.3', port=6443): Max retries exceeded with url: /version (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 113] Host is unreachable'))"

razasikander (Tue, 17 Aug 2021 14:25:10 GMT):
Any idea what to do ? im kinda struck over here since a day or sor.

razasikander (Tue, 17 Aug 2021 14:27:04 GMT):

Ofhsz7AILs.png

davidwboswell (Wed, 18 Aug 2021 14:45:14 GMT):
Has joined the channel.

gabrielodi (Thu, 19 Aug 2021 13:08:41 GMT):
Hey guys... My phd dissertation has been published two weeks ago, and I would like again to thank to all minifabric developers and comitters I made sure to include a "thank you note" in the pre-textual elements and, for sure, information on usage of minifabric within the dissertation itself... thank you very much

gabrielodi (Thu, 19 Aug 2021 13:09:17 GMT):
I will be writting a paper on the findings from my dissertation, and again I will include references to the minifabric

gabrielodi (Thu, 19 Aug 2021 13:09:34 GMT):
I hope someone can read it and start using this amazing tool you are developing

gabrielodi (Thu, 19 Aug 2021 13:09:47 GMT):
thank you, good job and success for you all

gabrielodi (Thu, 19 Aug 2021 13:09:48 GMT):
bye!

gabrielodi (Thu, 19 Aug 2021 13:11:18 GMT):
I am not sure, but dont you have to include a port after -e ?

rjones (Thu, 19 Aug 2021 15:16:56 GMT):
@gabrielodi links to your dissertaion and paper?

tongli (Fri, 20 Aug 2021 12:38:02 GMT):
@rjones good morning Ry! got a PR fixing an issue recently introduced by some refactoring work @itaru2622 did. Please review https://github.com/hyperledger-labs/minifabric/pull/258, basically a batch file name was renamed with .bat which was not supposed to since the tinyurl in the doc points to the one without extension name.

tongli (Fri, 20 Aug 2021 12:38:52 GMT):
I also would like to make itaru2622 a committer for the project. he has done a lot of PRs and very active in the community especially on the k8s devs.

rjones (Fri, 20 Aug 2021 15:27:03 GMT):
I'm fine with that - if they want to be one, let's make it happen

tongli (Fri, 20 Aug 2021 15:27:54 GMT):
@rjones right. I have reached out to him and he may respond next week.

tongli (Fri, 20 Aug 2021 15:28:05 GMT):
he has been doing a lot lately.

mikexiour (Fri, 27 Aug 2021 13:06:20 GMT):
Has joined the channel.

mikexiour (Fri, 27 Aug 2021 13:06:20 GMT):
Hello everyone i keep getting this error while following the invoke chaincode with a simple minifabric invoke -p '"Query","a"' from the video tutorial

mikexiour (Fri, 27 Aug 2021 13:08:34 GMT):
./minifab.cmd invoke -p '"query","a"' Using default spec file Minifab Execution Context: FABRIC_RELEASE=2.3.0 CHANNEL_NAME=onichan PEER_DATABASE_TYPE=golevel CHAINCODE_LANGUAGE=go CHAINCODE_NAME=simple CHAINCODE_VERSION=1.0 CHAINCODE_INIT_REQUIRED=true CHAINCODE_PARAMETERS="query","a" CHAINCODE_PRIVATE=false CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER=newest EXPOSE_ENDPOINTS=false CURRENT_ORG=org0.example.com HOST_ADDRESSES=192.168.1.163 WORKING_DIRECTORY: C:/Users/MichalisX/mywork ....... # Preparing for the following operations: ********************* verify options, cc invoke ....... # Running operation: ****************************************** verify options . # Running operation: ****************************************** cc invoke ........... # Select a random endorser group ****************************** The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'Layouts' The error appears to be in '/home/playbooks/common/peerselection.yaml': line 25, column 5, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Select a random endorser group ^ here # STATS ******************************************************* minifab: ok=30 failed=1

alanveloso (Tue, 14 Sep 2021 16:40:01 GMT):
Sorry for the delay. This is the minimal spec to start the net without problems. `fabric: cas: - "ca1.org1.com.br" peers: - "peer1.org1.com.br" - "peer1.org2.com.br" orderers: - "orderer1.org0.com.br" settings: ca: FABRIC_LOGGING_SPEC: DEBUG peer: FABRIC_LOGGING_SPEC: DEBUG orderer: FABRIC_LOGGING_SPEC: DEBUG `

alanveloso (Tue, 14 Sep 2021 16:41:34 GMT):
I can't run with only 1 peer on org1

tongli (Wed, 15 Sep 2021 17:19:00 GMT):
@mikexiour not sure how you set things up, if you are adding new orgs or creating new channels, most likely you need to run `minifab discover` before you actually invoke a chaincode.

tongli (Wed, 15 Sep 2021 17:19:18 GMT):
this is important , otherwise, it does not know where to send the proposals to.

tongli (Wed, 15 Sep 2021 17:19:37 GMT):
try that and see if the problem still exists.

razasikander (Fri, 17 Sep 2021 05:19:29 GMT):
@tongli Hello i have a question. i have setup minifab with k8s in localcluster. Everything is working fine i have installed cc and able to invoke,query but im unable to find the chaincode container, to check the logs. please guide me regarding this

sidnaik1989 (Tue, 21 Sep 2021 17:33:08 GMT):
Has joined the channel.

sidnaik1989 (Tue, 21 Sep 2021 17:33:09 GMT):
hi all, how do I give a custom endorsement policy when deploying chaincode through minifab? Would be great if some one could share an example I tried with -y "OR('org.peer','org2.peer')" with minifab up. However this failed with ``` ```

sidnaik1989 (Tue, 21 Sep 2021 17:33:09 GMT):
hi all, how do I give a custom endorsement policy when deploying chaincode through minifab? Would be great if some one could share an example I tried with -y "OR('org.peer','org2.peer')" with minifab up. However this failed with ```Error: invalid signature policy: OR(org1.peer, org2.peer) Usage: peer lifecycle chaincode approveformyorg [flags] ```

sidnaik1989 (Tue, 21 Sep 2021 17:33:09 GMT):
hi all, how do I give a custom endorsement policy when deploying chaincode through minifab? Would be great if some one could share an example I tried with -y "OR('org.peer','org2.peer')" with minifab up. However this failed with ```Error: invalid signature policy: OR(org1.peer, org2.peer) Usage: peer lifecycle chaincode approveformyorg [flags] ``` Been stuck on this for a while, would be great if someone could help

sidnaik1989 (Tue, 21 Sep 2021 17:33:09 GMT):
hi all, how do I give a custom endorsement policy when deploying chaincode through minifab? Could you please share an example I tried with -y "OR('org.peer','org2.peer')" with minifab up. However this failed with ```Error: invalid signature policy: OR(org1.peer, org2.peer) Usage: peer lifecycle chaincode approveformyorg [flags] ``` Been stuck on this for a while, would be great if someone could help

Rafailk (Thu, 23 Sep 2021 08:01:34 GMT):
Has joined the channel.

Rafailk (Thu, 23 Sep 2021 08:01:35 GMT):
Hello everybody. My simple question is, can I use Fabric-CA in order to create users in mini fabric and then use them with a node sdk to invoke the chaincode?

mikexiour (Thu, 23 Sep 2021 09:22:41 GMT):
@tongli i would like to ask you a few questions if possible.

mikexiour (Thu, 23 Sep 2021 09:25:48 GMT):
I have a project of creating a blockchain platform using smart contracts that will be used through apis to be integrated into another system. As i am new to Fabric and Mini Fabric will i need to set up a production network for this project or if i use the mini fabric i could bypass that entire step. Also i dont need to create a blockchain platform as Fabric is used i just need to create the chaincode and its functions to do everything needed which is mostly invoking transactions between peers using a bidding auction method

mikexiour (Thu, 23 Sep 2021 09:27:45 GMT):
Could you tell me if my thinking is correct or wrong. If you could give me some pointers that would be swell as i have not been getting a lot of answers from the community.

tongli (Thu, 14 Oct 2021 16:07:40 GMT):
yes.

tongli (Thu, 14 Oct 2021 16:08:20 GMT):
use minifabric, your fabric network is up running, you just need to develop your chaincode and deploy onto the fabric network and develop your own client app which should work with your chaincode.

tongli (Thu, 14 Oct 2021 16:08:35 GMT):
not exactly sure how familiar you are with fabric.

tongli (Thu, 14 Oct 2021 16:08:57 GMT):
mostly, when you develop with fabric, you have 3 major tasks,

tongli (Thu, 14 Oct 2021 16:09:04 GMT):
1. stand up a fabric network

tongli (Thu, 14 Oct 2021 16:09:19 GMT):
2. develop and deploy chaincode onto the network

tongli (Thu, 14 Oct 2021 16:10:01 GMT):
3. develop apps (such as payment client app on mobile devices) which work with chaincode

tongli (Thu, 14 Oct 2021 16:12:46 GMT):
Minifabric helps with #1 tasks and 2nd part of #2 (deployment)

tongli (Thu, 14 Oct 2021 16:14:05 GMT):
@mikexiour also copy here to benefit others.

tongli (Thu, 14 Oct 2021 16:14:07 GMT):
use minifabric, your fabric network is up running, you just need to develop your chaincode and deploy onto the fabric network and develop your own client app which should work with your chaincode. not exactly sure how familiar you are with fabric. mostly, when you develop with fabric, you have 3 major tasks, 1. stand up a fabric network 2. develop and deploy chaincode onto the network 3. develop apps (such as payment client app on mobile devices) which work with chaincode Minifabric helps with #1 tasks and 2nd part of #2 (deployment)

mikexiour (Fri, 15 Oct 2021 05:28:01 GMT):
use minifabric, your fabric network is up running, you just need to develop your chaincode and deploy onto the fabric network and develop your own client app which should work with your chaincode. not exactly sure how familiar you are with fabric. mostly, when you develop with fabric, you have 3 major tasks, 1. stand up a fabric network 2. develop and deploy chaincode onto the network 3. develop apps (such as payment client app on mobile devices) which work with chaincode Minifabric helps with #1 tasks and 2nd part of #2 (deployment)

mikexiour (Fri, 15 Oct 2021 05:29:26 GMT):
Thank you for the help i copied it as well for others if i need any pointers could i ask here or is there a better/faster way to communicate with you sir ?

jkneubuhl (Tue, 19 Oct 2021 11:55:46 GMT):
Has joined the channel.

Luis_Manuel_Cortes_Tirado (Tue, 19 Oct 2021 12:00:41 GMT):
Has joined the channel.

Luis_Manuel_Cortes_Tirado (Tue, 19 Oct 2021 12:00:41 GMT):
I am using minifabric to deploy the following network in two different computers: Computer 1: ca01.org1.domain1.net peer01.org1.domain1.net peer02.org1.domain1.net orderer01.domain1.net Computer 2: ca01.org2.domain2.es peer01.org2.domain2.es peer02.org2.domain2.es orderer01.domain2.es My question is How can I join both organizations? If I try to join with both orderers I get error. I've used the following docs: https://github.com/hyperledger-labs/minifabric/blob/main/docs/AddNewOrganization.md Thanks for any help

Gavimat (Tue, 19 Oct 2021 18:28:07 GMT):
Has joined the channel.

tongli (Wed, 20 Oct 2021 21:27:47 GMT):
@rjones Please review https://github.com/hyperledger-labs/minifabric/pull/296 when you get a chance, it is to allow fqdn to be used as endpoint_address when set things up.

razasikander (Thu, 21 Oct 2021 08:55:38 GMT):
tried installing a javascript based chaincode on k8s cluster with minifab getting this error # Run the chaincode install script on cli container *********** non-zero return code Error: chaincode install failed with status: 500 - error in simulation: failed to execute transaction c132039f9cb856a7575ddd8c9b4122f226f474beab9a26ce6a597e0ba5b47486: error sending: timeout expired while executing transaction any idea what might be the reason? im able to install go chaincodes

Luis_Manuel_Cortes_Tirado (Mon, 25 Oct 2021 15:24:27 GMT):
Hi, is there any tutorial to install the FabCar chaincode from fabric-samples with the Minifabric tool in Java? Thanks

nikolas (Tue, 26 Oct 2021 12:11:08 GMT):
Hi,I bring up a network with the default spec.yaml . After that I enroll a registrar and try to register a new user via the CA, but this doesn't work. For example, trying to register "user", returns `Registration of 'user' failed in affiliation validation: Failed getting affiliation 'org0.example.com': : scode: 404, code: 63, msg: Failed to get Affiliation: sql: no rows in result set` - I would appreciate some feedback.

efrain (Sat, 30 Oct 2021 10:00:41 GMT):
Has joined the channel.

Luis_Manuel_Cortes_Tirado (Thu, 04 Nov 2021 07:16:59 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=hoti3BvKkHqdAJ3pm) ??

Luis_Manuel_Cortes_Tirado (Fri, 05 Nov 2021 08:21:18 GMT):
[ ](https://chat.hyperledger.org/channel/fabric-mini?msg=nTcP2gw3cCzf6c8he) ??

zhenbing (Tue, 09 Nov 2021 16:31:06 GMT):
@tongli I have simple chaincode install failed issue, there maybe cause by use go-dockerclient when package, so I wanner have a test but the nain.sh alway copy the origin chaincode folder even I do modify or add new file, is there a cache or something...? I'm so confuse..."_"

zhenbing (Tue, 09 Nov 2021 16:32:07 GMT):

Clipboard - November 10, 2021 12:32 AM

zhenbing (Tue, 09 Nov 2021 16:33:12 GMT):
It should do a fresh copy and I run cleanup. But every time it stay unchanged...-_-

zhenbing (Thu, 18 Nov 2021 11:08:40 GMT):
It's my fault"_" chaincode folder is build into the images, not copied to var directly~

jdroberts94 (Wed, 01 Dec 2021 13:48:41 GMT):
Has joined the channel.

jdroberts94 (Wed, 01 Dec 2021 13:48:41 GMT):
I am getting the following error message when trying to invoke the simple chaincode on a 1.4.2 network: ``` # Running operation: ****************************************** cc invoke ........... # Select a random endorser group ****************************** The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'Layouts' The error appears to be in '/home/playbooks/common/peerselection.yaml': line 25, column 5, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Select a random endorser group ^ here ``` It appears my simple_endorsers.json file is empty which is causing this error to occur. I've tried running `minifab discovery` which succeeds in executing but simple_endorsers.json remains empty. I've also read that I may need to call `minifab anchorupdate`, however I get this error message: ``` # Running operation: ****************************************** anchor update ...... # Run the anchor update script on cli container *************** non-zero return code 2021-12-01 02:45:15.482 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2021-12-01 02:45:15.485 UTC [cli.common] readBlock -> INFO 002 Received block: 4 2021-12-01 02:45:15.488 UTC [cli.common] readBlock -> INFO 003 Received block: 2 configtxlator: error: Error computing update: error computing config update: no differences detected between original and updated config 2021-12-01 02:45:15.909 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: ConfigUpdate for channel '' but envelope for channel 'mychannel' ``` Any ideas?

jdroberts94 (Wed, 01 Dec 2021 13:51:40 GMT):
I spun up the network by running `minifab up -i 1.4.2`

zhenbing (Thu, 02 Dec 2021 02:01:04 GMT):
try to cleanup and run again~

jdroberts94 (Fri, 03 Dec 2021 21:52:05 GMT):
Hi @zhenbing thanks for your response. I tried cleaning up and running again but got the same error. When I run a 2.3.0 network, everything works fine and simple_endorsers.json is populated after running `minifab discover`. It's only with a 1.4.2 network that the simple_endorsers.json file is empty after running `minifab discover`.

atsveloso (Thu, 09 Dec 2021 13:21:05 GMT):
Has joined the channel.

atsveloso (Thu, 09 Dec 2021 13:21:06 GMT):
Hi, I'm using minifabric and I created a net with 3 nodes between differents host, but when I added the 4th it occured a error. I used the documentation on repository (https://github.com/hyperledger-labs/minifabric/tree/main/docs). Is this documentation still actualized?

murilo_silva (Thu, 09 Dec 2021 15:38:46 GMT):
Has joined the channel.

murilo_silva (Thu, 09 Dec 2021 15:38:48 GMT):
Hi, I am following the Minifabric documentation for add new organizations to the application channel, but when I tried to add the 4th organization, I got the following error: ``` `# Running operation: ****************************************** channel update ..... # Run the channel update script on cli container ************** non-zero return code 2021-12-09 15:34:04.343 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 2 sub-policies were satisfied, but this policy requires 3 of the 'Admins' sub-policies to be satisfied ` ``` ``` This happens even though I transfer the file between different organizations and run the 'channelsign' command. The documentation I'm following is available at https://github.com/hyperledger-labs/minifabric/blob/main/docs/AddNewOrganization.md ```

murilo_silva (Thu, 09 Dec 2021 15:38:48 GMT):
Hi, I am following the Minifabric documentation for add new organizations to the application channel, but when I tried to add the 4th organization, I got the following error: ``` `# Running operation: ****************************************** channel update ..... # Run the channel update script on cli container ************** non-zero return code 2021-12-09 15:34:04.343 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 2 sub-policies were satisfied, but this policy requires 3 of the 'Admins' sub-policies to be satisfied ` ``` This happens even though I transfer the file between different organizations and run the 'channelsign' command. The documentation I'm following is available at https://github.com/hyperledger-labs/minifabric/blob/main/docs/AddNewOrganization.md

murilo_silva (Thu, 09 Dec 2021 15:38:48 GMT):
Hi, I am following the Minifabric documentation for add new organizations to the application channel, but when I tried to add the 4th organization, I got the following error: ``` `# Running operation: ****************************************** channel update ..... # Run the channel update script on cli container ************** non-zero return code 2021-12-09 15:34:04.343 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'mychannel': error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 2 sub-policies were satisfied, but this policy requires 3 of the 'Admins' sub-policies to be satisfied ` ``` This happens even though I transfer the file between different organizations and run the 'channelsign' command. The documentation I'm following is available at https://github.com/hyperledger-labs/minifabric/blob/main/docs/AddNewOrganization.md . Any idea what might be causing the error?

anil8753 (Sat, 25 Dec 2021 05:45:43 GMT):
Has joined the channel.

nikolas (Thu, 06 Jan 2022 09:02:16 GMT):
Hi, is it possible to set the password for couchdb in spec or some other parameter?

sumiteshnaithani (Mon, 24 Jan 2022 05:10:18 GMT):
Has joined the channel.

sumiteshnaithani (Mon, 24 Jan 2022 05:10:19 GMT):
Hi ! I have minifabric network running on EC2 instance and i am trying to connect to that network using local client app(Java SDK). Client app is able to connect to CA and successfully enroll admin and appuser but while invoking transaction it gives a error => ''Channel Channel{id: 1, name: mychannel} Sending proposal with transaction: 6729d6ac528da6695808607886f380032c85aa33dbd4f270f2f4bec65365c4ec to Peer{ id: 3, name: peer2.org0.example.com, channelName: mychannel, url: grpcs://xx.xx.xx.xx:7003, mspid: org0-example-com} failed because of: gRPC failure=Status{code=UNAVAILABLE, description=io exception, cause=io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection timed out: /xx.xx.xx.xx:7003". I have exposed endpoints using -e flag as well while launching minifab network. Any help is appreciated. Thanks

sichen (Tue, 25 Jan 2022 00:04:02 GMT):
Hello. Is it possible to use Minifabric to deploy a Fabric network to production? We would probably need to update chain codes and add or remove peers and nodes as time goes on.

sichen (Tue, 25 Jan 2022 00:04:02 GMT):
Hello. Is it possible to use Minifabric to deploy a Fabric network to production? We would like to be able to bring nodes in different cloud networks to work together and update chain codes and add or remove peers and nodes as time goes on.

sumiteshnaithani (Tue, 25 Jan 2022 04:57:07 GMT):
According to minifabric's official github repository - If you would like to learn Hyperledger Fabric or develop your smart contract, or just want to get a feel of Hyperledger Fabric, Minifabric is the tool to get you started. Minifabric can stand up a Fabric network on a small machine like a VirtualBox VM *but can also deploy Fabric networks across multiple production grade servers*. Minifabric has been tested on Linux, OS X, Windows 10 and supports Fabric releases 1.4.4 or newer. So i think it can be used.

sichen (Tue, 25 Jan 2022 15:58:35 GMT):
Are there any instructions on how to use minifabric to deploy a production network?

sumiteshnaithani (Tue, 25 Jan 2022 17:09:15 GMT):
Not that i know of for minifabric explicitly but you can always follow this -> https://hyperledger-fabric.readthedocs.io/en/release-2.2/deployment_guide_overview.html

nikolas (Tue, 25 Jan 2022 22:37:38 GMT):
Hi, is it possible to set the password for couchdb in spec or some other parameter?

knagware9 (Wed, 26 Jan 2022 08:02:26 GMT):
@sichen we can follow this guide https://www.hyperledger.org/blog/2020/04/29/minifabric-a-hyperledger-fabric-quick-start-tool-with-video-guides

knagware9 (Wed, 26 Jan 2022 08:03:47 GMT):
https://github.com/litong01/minifabric/blob/main/docs/README.md

sichen (Wed, 26 Jan 2022 16:41:26 GMT):
@sumiteshnaithani Those are the general Fabric deployment instructions. We have followed those as well but they were very time consuming. We were hoping for an easier way to do it.

sichen (Wed, 26 Jan 2022 16:43:08 GMT):
@knagware9 I think I've followed those when I first started working with Fabric using minifabric. They were very helpful, but could they be used for production deployments?

knagware9 (Fri, 28 Jan 2022 05:56:44 GMT):
@sichen yes, what they mentioned on repo. @tongli Can you please help us to deploy miinifabric in prod deployment. Do you have any refrence document other than this

lebdron (Wed, 09 Feb 2022 17:40:56 GMT):
Hello! Are there plans to support Fabric Private Chaincode? https://github.com/hyperledger/fabric-private-chaincode

tongli (Fri, 11 Feb 2022 20:25:31 GMT):
@lebdron it is supported already

tongli (Fri, 11 Feb 2022 20:26:29 GMT):
yes, you certainly can.

lebdron (Sat, 12 Feb 2022 12:10:08 GMT):
@tongli Could you tell how to use it? Because it's different from private data collections

lebdron (Sat, 12 Feb 2022 12:10:50 GMT):
By the way, it would be nice to move to Discord

rjones (Sat, 12 Feb 2022 20:56:24 GMT):
@tongli may I archive this channel and export it? [I have a new place for it](https://discord.com/channels/905194001349627914/942161888022790204)

nikolas (Wed, 23 Feb 2022 09:44:08 GMT):
Hi, can we somehow configure the CAs that get created with minifab? I mean things like Locality etc for the certificates, but also the password of the ca admin. Thank you!

pkirkinezis (Mon, 28 Feb 2022 14:03:45 GMT):
Hi to all how are you? I would like to ask what is docker overlay2 in linux that takes up a lot of space ? Has anyone have experienced that ?

rjones (Wed, 02 Mar 2022 22:59:57 GMT):
hi @pkirkinezis - please join us on discord. https://discord.gg/hyperledger

davidkel (Wed, 02 Mar 2022 23:03:06 GMT):
Has left the channel.

rjones (Wed, 23 Mar 2022 17:35:22 GMT):

rjones (Wed, 23 Mar 2022 17:35:22 GMT):

rjones (Wed, 23 Mar 2022 17:35:22 GMT):