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

Hyperledger Fabric 1.0 on CentOS Error endorsing chaincode?

我是 运行 CentOS Linux 发行版 7.2.1511(核心)。

运行 全新的 Hyperledger Fabric 1.0 的 "first network" 示例昨天发布了,我收到错误消息:

Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error starting container: API error (500): {"message":"oci runtime error: container_linux.go:262: starting container process caused \"process_linux.go:339: container init caused \"read init-p: connection reset by 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
# Whosebug 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(node)版本是v6.11.1

我的 npm 版本是 5.2.0

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

提前感谢您的任何启发!

已解决!

受参考资料 https://github.com/moby/moby/issues/34046 的启发,我使用以下说明升级了 Linux 内核:

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

重新启动并在启动菜单中选择新内核后工作完美。

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