intel / SGXDataCenterAttestationPrimitives

Other
278 stars 165 forks source link

pccs service not starting #415

Open michelangeloagorini opened 3 months ago

michelangeloagorini commented 3 months ago

when pccs service tries to start, it always fails.

output of journalctl -u pccs.service:

ago 09 19:15:31 michelangelo-HP-ProDesk-400-G5-Desktop-Mini systemd[1]: Started Provisioning Certificate Caching Service (PCCS). ago 09 19:15:31 michelangelo-HP-ProDesk-400-G5-Desktop-Mini node[648]: file:///opt/intel/sgx-dcap-pccs/dao/models/index.js:130 ago 09 19:15:31 michelangelo-HP-ProDesk-400-G5-Desktop-Mini node[648]: const sequelize = await initializeDatabase(); ago 09 19:15:31 michelangelo-HP-ProDesk-400-G5-Desktop-Mini node[648]: ^^^^^ ago 09 19:15:31 michelangelo-HP-ProDesk-400-G5-Desktop-Mini node[648]: SyntaxError: Unexpected reserved word ago 09 19:15:31 michelangelo-HP-ProDesk-400-G5-Desktop-Mini node[648]: at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18) ago 09 19:15:31 michelangelo-HP-ProDesk-400-G5-Desktop-Mini systemd[1]: pccs.service: Main process exited, code=exited, status=1/FAILURE ago 09 19:15:31 michelangelo-HP-ProDesk-400-G5-Desktop-Mini systemd[1]: pccs.service: Failed with result 'exit-code'. ago 09 19:15:46 michelangelo-HP-ProDesk-400-G5-Desktop-Mini systemd[1]: pccs.service: Scheduled restart job, restart counter is at 1. ago 09 19:15:46 michelangelo-HP-ProDesk-400-G5-Desktop-Mini systemd[1]: Stopped Provisioning Certificate Caching Service (PCCS).

the error refers to index.js

otherwise, when i run the command sqlitebrowser /opt/intel/sgx-dcap-pccs/pckcache.db the output is:

Invalid option/non-existant file: /opt/intel/sgx-dcap-pccs/pckcache.db

i'm using node version 20.0.0. Can someone help me, please?

lingyuj commented 2 months ago

Have you solved your problem? If not, please try removing pckcache.db and restarting PCCS service.