MiniShift错误virNetSocketReadWire:1806

时间:2019-07-03 16:50:05

标签: minishift

如何处理此错误?我在未启用嵌套虚拟化的VM中运行{ "query": "55.130.54.69", "status": "success", "continent": "North America", "continentCode": "NA", "country": "United States", "countryCode": "US", "region": "AZ", "regionName": "Arizona", "city": "Sierra Vista", "district": "Fort Huachuca", "zip": "85613", "lat": 31.5552, "lon": -110.35, "timezone": "America/Phoenix", "currency": "USD", "isp": "CONUS-RCAS", "org": "USAISC", "as": "AS721 DoD Network Information Center", "asname": "DNIC-ASBLK-00721-00726", "mobile": false, "proxy": false } 后得到了它?现在,我将其打开,但是继续看到看起来像文件损坏的错误。

    @POST
    @Path("/test2")
    public void test2(@Context HttpServletRequest request) {

        String ip = request.getRemoteAddr();
        System.out.println("ip: " + ip);
        //Im changing value of ip cause I have an issue with "private range" ip of my machine
        ip = "55.130.54.69";
        // This is working
        Client client = ClientBuilder.newClient();
        Response response = client.target("http://ip-api.com/json/" + ip).request(MediaType.TEXT_PLAIN_TYPE)
                .header("Accept", "application/json").get();

        System.out.println("status: " + response.getStatus()); // Printing 200 so it worked
        System.out.println("body:" + response.getEntity());
        System.out.println("metadata: " + response.getMetadata());
        System.out.println(response);
    }

我在/ var / log / messages,libvirtd状态下的sytemctl输出以及运行minishift start时看到它。

2 个答案:

答案 0 :(得分:0)

运行minishift start来清理环境,因为它只是部分设置,而运行error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error 可以重新开始。

答案 1 :(得分:0)

可能缺少qemu驱动程序。

yum -y install libvirt-daemon-driver-qemu && systemctl restart libvirtd