Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem occurs when test probe under Centos 7.X #82

Closed
lyp830414 opened this issue Feb 9, 2021 · 3 comments · Fixed by #83
Closed

Problem occurs when test probe under Centos 7.X #82

lyp830414 opened this issue Feb 9, 2021 · 3 comments · Fixed by #83
Labels
bug Something isn't working

Comments

@lyp830414
Copy link
Contributor

lyp830414 commented Feb 9, 2021

Something wrong when I test the probe.
1. As I obey the steps from REAME, npm install and ./bootstrap.sh, then copy the configuration sh -> test-network.
2. Visit the web with myIP:3000, then I choose the 'TestNetwork Sample' , and do "Submit" at the end of web.
3. I found the chain could not bring up in backend (no docker container), and the npm report issues in my attachment.

My testbed:
- Linux CentOS7-135 3.10.0-1160.6.1.el7.x86_64

(More test notes I have remarked them at fabric-performance-wiki/issues/14)

liyiping-probe-issue-log.txt
@SamYuan1990

@lyp830414 lyp830414 added the bug Something isn't working label Feb 9, 2021
@lyp830414 lyp830414 changed the title Problem occurs as when testing probe under Centos 7.X Problem occurs when testing probe under Centos 7.X Feb 9, 2021
@lyp830414 lyp830414 changed the title Problem occurs when testing probe under Centos 7.X Problem occurs when test probe under Centos 7.X Feb 9, 2021
@SamYuan1990
Copy link
Owner

there two option to fix.
option a:
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.2 1.4.9 to download fabric sample to local.
option b:
remove -i 2.2 to use latest version.

@lyp830414
Copy link
Contributor Author

1. 问题背景

在测试Probe过程中,发现通道和链码都构建出错,后台链是fabric-2.2 release,不久后所有docker被释放。

由于Probe目前在code中设置使用的fabric网络是V2.2,但目前fabric-samples已经是V2.3版本了。

这造成了测试CASE和底层链不匹配的问题,导致测试和链异常。

2. 问题的提出

由于存在fabric-samples版本和Probe代码指定的fabric版本不匹配,我们需要找到一种不改代码让用户可以选择切换版本,同时保证两者匹配的方法。

3. 问题解决思路

  1. 设置环境变量export FABRIC_VERSION=2.2

  2. 代码相关处要增加读取环境变量,将版本号改为环境变量

    涉及改动文件:

image

  1. 改动示例

        ......
         cmdType:"Shell",args:["./network.sh","up","createChannel","-i","2.2"]},
    - >  cmdType:"Shell",args:["./network.sh","up","createChannel","-i", process.env.FABRIC_VERSION]}
         .....
    

【注】

​ 不太熟悉js/jsx和pipeline语法,待确定是否可以这么操作。
@SamYuan1990

@SamYuan1990
Copy link
Owner

三行配置的事情。。。

cd fabric-sample
git checkout ....
cd ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants