CentOS上的Hyperledger Fabric 1.0错误支持链代码?

时间:2017-07-12 11:52:18

标签: node.js hyperledger-fabric

我正在运行CentOS Linux版本7.2.1511(核心版)。

运行"第一个网络"昨天全新的Hyperledger Fabric 1.0的样本我收到了错误:

  

错误:错误支持链代码:rpc错误:代码=未知desc =启动容器时出错:API错误(500):{"消息":" oci运行时错误:container_linux.go:262 :启动容器进程导致\" process_linux.go:339:容器初始化导致\\"读取init-p:连接重置由peer \\" \" \ n" }

如何进一步调试?

我对prereqs的完整安装程序如下:

sudo yum install -y yum-utils device-mapper-persistent-data lvm2 policycoreutils-python git dos2unux unzip gcc-c++ make
sudo yum-config-manager --enable rhel-7-server-extras-rpms
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum makecache fast
wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.9-4.el7.noarch.rpm
yum -y install docker-ce
sudo yum -y install docker-ce
sudo systemctl start docker
sudo docker run hello-world
sudo usermod -aG docker root
sudo usermod -aG docker vagrant
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y ./epel-release-latest-7.noarch.rpm
sudo yum install -y python-pip
sudo pip install docker-compose
sudo yum upgrade python*
cd
mkdir docker-compose-hello-world
cd docker-compose-hello-world
echo 'my-test:' > ./docker-compose.yml
echo '  image: hello-world' >> ./docker-compose.yml
docker-compose up
sudo docker-compose up
cd
mkdir golang
cd golang
echo downloading go1.8.3.linux-amd64.tar.gz
wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz
sudo cp ./go1.8.3.linux-amd64.tar.gz /usr/local
cd /usr/local
sudo tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz
sudo vi /etc/profile
cd
sudo curl -sL https://rpm.nodesource.com/setup_6.x | sudo bash -
sudo yum install -y nodejs
sudo npm install npm@latest -g
cd
git clone https://github.com/hyperledger/fabric-samples.git
sudo docker run hello-world
sudo systemctl start docker
sudo docker run hello-world
cd fabric-samples
# Stackoverflow validation asked me to replace short URL
# goo.gl/iX9dek with long one below:
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap-1.0.0.sh | sudo bash
cd first-network
yes | sudo ./byfn.sh -m generate
yes | sudo ./byfn.sh -m up

我的NodeJs(节点)版本是v6.11.1

我的npm版本是5.2.0

我的Golang版本是go1.8.3 linux / amd64

提前感谢任何启蒙!

1 个答案:

答案 0 :(得分:0)

解决!

受引用https://github.com/moby/moby/issues/34046的启发,我使用以下指令升级了Linux内核:

https://www.tecmint.com/install-upgrade-kernel-version-in-centos-7/

重新启动并在启动菜单中选择新内核后,可以正常工作。

下行:Windows 7主机操作系统和CentOS虚拟机之间的Vagrant共享文件夹不再有效,但这应该由下一个Oracle Virtualbox客户端工具更新修复。