Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pccs service not starting #415

Open
michelangeloagorini opened this issue Aug 9, 2024 · 1 comment
Open

pccs service not starting #415

michelangeloagorini opened this issue Aug 9, 2024 · 1 comment

Comments

@michelangeloagorini
Copy link

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
Copy link
Contributor

lingyuj commented Aug 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants