intel / SGXDataCenterAttestationPrimitives

Other
271 stars 165 forks source link

Error: network error, please check the network setting or whether the cache server is down. #215

Open ACwatermelon opened 2 years ago

ACwatermelon commented 2 years ago

Intel(R) Software Guard Extensions PCK Cert ID Retrieval Tool Version 1.12.101.1

Warning: platform manifest is not available or current platform is not multi-package platform. Error: network error, please check the network setting or whether the cache server is down. pckid_retrieval.csv has been generated successfully, however the data couldn't be sent to cache server!

When I run the local PCCS, the PCKIDRetrievalTool runs successfully, but when I run the PCCS on another machine, the PCKIDRetrievalTool executes an error.

PCKIDRetrievalTool network_setting.conf: PCCS_URL=https://localhost:8081/sgx/certification/v3/platforms USE_SECURE_CERT=FALSE proxy_type = direct

The only changes I made were to PCCS_URL: from: PCCS_URL=https://localhost:8081/sgx/certification/v3/platforms to:PCCS_URL=https://192.168.1.106:8081/sgx/certification/v3/platforms

PCCS default.json : "HTTPS_PORT" : 8081, "hosts" : "0.0.0.0", "uri": "https://api.trustedservices.intel.com/sgx/certification/v3/", "proxy" : "", "CachingFillMode" : "REQ",

lingyuj commented 2 years ago

Maybe you need to check firewall settings of both machines?

ACwatermelon commented 2 years ago

All the machine firewalls are off

jsun39 commented 2 years ago

What is your environment? Linux or Windows? Basically this problem was caused by network setting.

ACwatermelon commented 2 years ago

both machines are ubuntu 20.04 server

jsun39 commented 2 years ago

you can check your shell's proxy configuration. And check whether your two platforms are in the same network segment.

ACwatermelon commented 2 years ago

Neither machine has proxy enabled, and both machines belong to the same LAN.

jsun39 commented 2 years ago

maybe you can use command "ping" your PCCS machine: make sure the network is OK