composer - No business network has been specified for this connection 解决方案
I have installed hyperledger composer locally. But on localhost it gives error :
Error : Error trying to ping.
Error: No business network has been specified for this connection.
I am not able to add model and script file as well.
This is the errors showing in terminal
error: [Hyperledger-Composer] undefined:HLFConnection :ping() Error: Error trying to ping. Error: No business network has been specified for this connection
at _checkRuntimeVersions.then.catch (/usr/local/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:787:34)
at <anonymous>
at runMicrotasksCallback (internal/process/next_tick.js:121:5)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9) error: [Hyperledger-Composer] undefined:ConnectorServer :Error: Error trying to pi
- There is not enough information here to be able to help you. Please can you provide details of what you are trying to do and how you are doing it, for example the commands you have entered. Otherwise it is impossible to provide answers
- Did you ever find out what the problem was and if so what did you do to resolve it? I'm running into this and I'm not sure why it's wrong. Steps followed as given here hyperledger.github.io/composer/installing/…
I think I solved this problem.
About the error
The error reason is No business network has been specified for this connection.
, this does not happen when you first time to run composer-playground
, because that time, you truly do not have a network and you either do not have card too, so there is a modal pop up Let's blockchain
.
This only happened when you stop/delete your business network net, or there is no business network running but you also have the business card linked to the network.
Solution
- Follow the tutorial to create a new
business network
locally - restart your farbric tool by
stopFabric.sh
andstartFabric.sh
, (* this is not to start your business network but your fabric) - run your playground again
composer-playground
- probably you will also see the error again (
error trying to ping
), but no worry - find a button at top right corner which is folded
My Business Networks
delete the card without connection
ordeploy a new network
This worked for me, hope it will work for you too. This kind of process design limitation, the card is still there even you delete your network or your are trying to start your playground even you did not start your network. This is why this error happened I think.
Addition, More about playground
Hyperledger Composer Playground (Playground from now on) uses your browser's local storage to simulate the blockchain network's state storage, which means you don't need to run a real validating peer network to use Playground.
Using browser-only mode, you can model and test the business network using a mock blockchain ledger that resides in your browser's local storage.
How to delete cache in browser Chrome
This probably can solve many errors.
In Chrome, for example, under Settings > Advanced > Content Settings > Cookies > All cookies and site data > localhost, click the trashcan icon to remove local storage. If you're using a different browser, follow the instructions specific to that browser, and delete all local storage.
References
- A very good IBM blockchain/ composer tutorial, just old, need to be pay attention to that some commands not working in the same way on new version of composer
- https://stackoverflow.com/questions/47599375/hyperledger-composer-no-business-network-has-been-specified-for-this-connectio/49641462#49641462
composer - No business network has been specified for this connection 解决方案的更多相关文章
- Io 异常: The Network Adapter could not establish the connection解决方案
Io 异常: The Network Adapter could not establish the connection解决方案 2016年06月04日 13:30:21 阅读数:46589 Io ...
- 数据库 The Network Adapter could not establish the connection解决方案
连接数据库 注意 url ip地址换的时候 oracle 里的listener.ora thnsnames.ora也要随之变化 重启数据库 不然可能会报出 java.sql.SQLException: ...
- [Oracle] Io Error: The Network Adapter could not establish the connection 解决方案
Io 异常: The Network Adapter could not establish the connection这个异常的出现一般与数据库和你的PC的设置有关 这种异常的出现大致上有下面几种 ...
- Io 异常: The Network Adapter could not establish the connection 解决方法
1.IP错误: 在设置URL时错误,例如:jdbc:oracle:thin:@192.168.1.80:1521:orcl 数据库服务器是否正确:ping 服务器IP是否通畅.ping不通则将URL更 ...
- The Network Adapter could not establish the connection问题研究
最近一个项目会报上述错误,但也不是经常发生,所以很难跟踪,影响不是很大,但每次看到日志中这个错误就会不舒服,还是要想办法解决才是. 错误提示信息很明确是网络适配器不能创建连接. 查了很多资料,并且Or ...
- 数据库连接报错之IO异常(The Network Adapter could not establish the connection)
Io 异常: The Network Adapter could not establish the connection 有以下四个原因: 1.oracle配置 listener.ora 和tnsn ...
- Io 异常: The Network Adapter could not establish the connection
新接触一个项目,导入源码,在本地启动的时候后台报了一个错误: Could not discover the dialect to use. java.sql.SQLException: Io 异常: ...
- IO 异常:The Network Adapter could not establish the connection 怎么解决
IO 异常:The Network Adapter could not establish the connection 怎么解决
- weblogic报错----Received exception while creating connection for pool "TDMSKD": The Network Adapter could not establish the connection
<2017-8-16 上午08时58分37秒 CST> <Info> <WebLogicServer> <BEA-000377> <Startin ...
随机推荐
- 【SPOJ】QTREE6-Query on a tree VI
题解 老年选手的代码康复计划QAQ 这题又没一遍A,难受 每个节点维护这个节点子树内联通块的大小 维护所有节点轻儿子的\(g[u][0]\)表示所有轻儿子白色的联通块总数 \(g[u][1]\)表示所 ...
- Orchard学习 01、orchard日志
一.日志模块类图 1.ILogger接口及实现 2.ILoggerFactory接口及实现 3.其他 二.NullLogger类型 NullLogger类型是实现ILogger接口的空类型.它 ...
- 2018 Arab Collegiate Programming Contest (ACPC 2018) E - Exciting Menus AC自动机
E - Exciting Menus 建个AC自动机求个fail指针就好啦. #include<bits/stdc++.h> #define LL long long #define fi ...
- docker容器重启故障
问题 强杀docker进程后,重启docker.docker中的容器无法启动并报错,报错内容如下 docker restart ae1f7b2c2f15 Error response from dae ...
- relay.index' not found
主备搭建时,备库上执行以下语句报错: (root@localhost:mysql.sock)[(none)]>change master to master_host='192.168.0.57 ...
- js数组遍历some、foreach、map、filter、every、lastIndexOf、indexOf对比
1. [...].some(ck)函数 对数组中每个元素执行一次ck函数,知道某个元素返回true,则直接返回true.如果都返回false,则返回false 检查整个数组中是否有满足ck函数的元素. ...
- Java string.valueof的用法以及与parseint的区别
一.由基本数据型态转换成String String 类别中已经提供了将基本数据型态转换成 String 的 static 方法 ,也就是 String.valueOf() 这个参数多载的方法 有以下几 ...
- Nginx 日志分析命令
查看日志存放目录 # find / -name access.log /var/log/nginx/access.log cd /var/log/nginx IP相关统计 统计IP访问量(独立ip访问 ...
- yaml.parser.ParserError
ERROR: yaml.parser.ParserError: while parsing a block mapping in "./docker-compose.yml", l ...
- C#开发Unity游戏教程之Unity中方法的参数
C#开发Unity游戏教程之Unity中方法的参数 Unity的方法的参数 出现在脚本中的方法,无论是在定义的时候,还是使用的时候,后面都跟着一对括号“( )”,有意义吗?看起来最多也就是起个快速识别 ...