我只是Hyperledger Composer.So的初学者,我尝试使用Docker部署REST服务器,遵循本指南
Deploying the REST server for a business network
然后,当我运行docker时,它在docker logs上显示以下错误
docker logs rest
0|composer | WARNING: NODE_APP_INSTANCE value of '0' did not match any instance config file names.
0|composer | WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode
0|composer | Discovering types from business network definition ...
0|composer | D0831 07:04:36.180952003 24 env_linux.c:66] Warning: insecure environment read function 'getenv' used
0|composer | D0831 07:04:37.574385287 24 env_linux.c:66] Warning: insecure environment read function 'getenv' used
0|composer | Connection fails: Error: Error trying to ping. Error: Composer runtime (0.11.3) is not compatible with client (0.11.2)
0|composer | It will be retried for the next request.
0|composer | Exception: Error: Error trying to ping. Error: Composer runtime (0.11.3) is not compatible with client (0.11.2)
0|composer | Error: Error trying to ping. Error: Composer runtime (0.11.3) is not compatible with client (0.11.2)
0|composer | at _checkRuntimeVersions.then.catch (/usr/local/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:696:34)
PM2 | App [composer-rest-server] with id [0] and pid [24], exited with code [1] via signal [SIGINT]
PM2 | Starting execution sequence in -fork mode- for app name:composer-rest-server id:0
PM2 | App name:composer-rest-server id:0 online因此,我尝试通过遵循同一文档中的指南来更新版本
但是在我停止/重新启动fabric,重新部署链代码并运行docker之后,错误仍然存在。
有人能告诉我我错过了什么吗?
注意:我也尝试了this solution,但仍然有同样的问题。
发布于 2017-08-31 16:39:18
好了,我已经解决了这个问题。我删除了所有docker镜像并重新启动fabric以再次下载镜像,它工作了!!
docker rmi $(docker images -q)https://stackoverflow.com/questions/45975924
复制相似问题