Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.
1485 Discussions

how to fix 'No cache data for this platform' problem?

keson
Beginner
2,836 Views

bellow error threw when I try to set up DCAP as Intel® SGX DCAP Quick Install Guide describe

https://www.intel.com/content/www/us/en/developer/articles/guide/intel-software-guard-extensions-dat

 

Error: No cache data for this platform.

 

Details:

1. Failed to retrieve PCK when I run PCKIDRetrievalTool

root@VM-179-80-ubuntu:/home/ubuntu# PCKIDRetrievalTool

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

Warning: platform manifest is not available or current platform is not multi-package platform.
Error: unexpected error happend during sending data to cache server.
pckid_retrieval.csv has been generated successfully, however the data couldn't be sent to cache server!

2. successfully get the rootcacrl:

curl -k -G "https://localhost:8081/sgx/certification/v3/rootcacrl"
...20101300a06082a8648ce3d0403023068311a301806035504030c11496e74656c205347403020348003045022100b7805acf592113584c45c8b0e11b2b8a9db462a215bbf8d4fd416539d7f5ab7502207ff56984c5199cf2b23d97d37b104ec0ebb5243674f4134........

logs:

2022-08-05 23:03:01.468 [info]: Client Request-ID : 4a7297182d8f4a6783b0caa207661a36
2022-08-05 23:03:01.476 [info]: 127.0.0.1 - - [05/Aug/2022:15:03:01 +0000] "GET /sgx/certification/v3/rootcacrl HTTP/1.1" 200 586 "-" "curl/7.68.0"

2022-08-05 23:03:14.537 [info]: Client Request-ID : f5e8261c0121421c96e464f16ce16459
2022-08-05 23:03:16.239 [info]: Request-ID is : 620a508e620240879492c8b9f8423c92
2022-08-05 23:03:16.239 [debug]: Request URL https://api.trustedservices.intel.com/sgx/certification/v3/pckcerts
2022-08-05 23:03:16.239 [error]: Intel PCS server returns error(404).
2022-08-05 23:03:16.239 [error]: Intel PCS server returns error. Error code : 404
2022-08-05 23:03:16.240 [error]: Error: No cache data for this platform.
at Proxy.getPckCertFromPCS (/opt/intel/sgx-dcap-pccs/services/logic/commonCacheLogic.js:92:11)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async ReqCachingMode.registerPlatforms (/opt/intel/sgx-dcap-pccs/services/caching_modes/cachingMode.js:205:7)
at async Proxy.registerPlatforms (/opt/intel/sgx-dcap-pccs/services/platformsRegService.js:107:3)
at async postPlatforms (/opt/intel/sgx-dcap-pccs/controllers/platformsController.js:40:5)
2022-08-05 23:03:16.241 [info]: 127.0.0.1 - - [05/Aug/2022:15:03:16 +0000] "POST /sgx/certification/v3/platforms HTTP/1.1" 404 32 "-" "-"

 

os: 

ubuntu@VM-179-80-ubuntu:~$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

 

kernel version: 

5.19.0-051900-generic

 

bios version:

BIOS Information
        Vendor: SeaBIOS
        Version: seabios-1.9.1-qemu-project.org
        Release Date: 04/01/2014
        Address: 0xE8000
        Runtime Size: 96 kB
        ROM Size: 64 kB
        Characteristics:
                BIOS characteristics not supported
                Targeted content distribution is supported
        BIOS Revision: 0.0

 

config

ubuntu@VM-179-80-ubuntu:~$ sudo cat /opt/intel/sgx-dcap-pccs/config/default.json
{
    "HTTPS_PORT" : 8081,
    "hosts" : "0.0.0.0",
    "uri": "https://api.trustedservices.intel.com/sgx/certification/v3/",
    "ApiKey" : "[my api key]",
    "proxy" : "",
    "RefreshSchedule": "0 0 1 * * *",
    "UserTokenHash" : "[the hash]",
    "AdminTokenHash" : "[the hash]",
    "CachingFillMode" : "REQ",
    "LogLevel" : "silly",
    "DB_CONFIG" : "debug",
    "sqlite" : {
        "database" : "database",
        "username" : "username",
        "password" : "password",
        "options" : {
            "host": "localhost",
            "dialect": "sqlite",
            "pool": {
                "max": 5,
                "min": 0,
                "acquire": 30000,
                "idle": 10000
            },
            "define": {
                "freezeTableName": true
            },
            "logging" : false, 
            "storage": "pckcache.db"
        }
    }, 
    "mysql" : {
        "database" : "pckcache",
        "username" : "root",
        "password" : "mypass",
        "options" : {
            "host": "localhost",
            "dialect": "mysql",
            "pool": {
                "max": 5,
                "min": 0,
                "acquire": 30000,
                "idle": 10000
            },
            "define": {
                "freezeTableName": true
            },
            "logging" : false
        }
    }
}

 

Labels (2)
0 Kudos
4 Replies
Sahira_Intel
Moderator
2,794 Views

Hi,

This error is usually caused by a BIOS issue. Please update the BIOS on the system to the most recent BIOS available from the OEM to make the trusted computing base current.


Let me know if you are still having errors.


Sincerely,

Sahira


0 Kudos
keson
Beginner
2,785 Views

Thanks, @Sahira_Intel,

 

Indeed it is a virtual machine, on my other VM (same instance, same bios version), it works.

what happens if the host machine didn't register on the intel platform? 

can it cause this problem?

0 Kudos
Scott_R_Intel
Employee
2,759 Views

Yes, you will get this 404 not found error if you have not yet registered the platform with Intel(r) Registration Service.

 

Regards.

 

Scott

0 Kudos
leila888
Beginner
2,344 Views

Did registration solve your problem? How did you register your VM on the intel platform. I have the same issue, and my machine is Azure VM.

0 Kudos
Reply