apostoldevel / ocpp-cs

OCPP Central System and Charge Point emulator.
https://ocpp-css.com
MIT License
52 stars 15 forks source link

Why does this command reset hard say permission denied? #13

Closed not1951aw closed 1 month ago

not1951aw commented 8 months ago

{ "error": { "code": 400, "message": "InternalError: (13: Permission denied)" } }

ufocomp commented 8 months ago

Hello! Because the application is running as a user with insufficient permissions to execute this command. The reset hard command restarts the operating system.

Change the settings in the /etc/cs/cs.conf file

## OCPP Service config file

[main]
user=root
group=root

Instead of root, you can specify any user who has permission to restart the operating system.

P.S. This user must also have write access to the /etc/cs/cp/* folder. In this case, the error occurs for this reason.