Closed lategoodbye closed 1 month ago
Hi @lategoodbye , how is your DeviceModelDatabasePath
in the OCPP201 module configured? Can you check if the database its pointing to is initialized and contains values?
As part of the logs the database is located at "/var/lib/everest/ocpp201/cp.db".
How can i check for the relevant values (in terms of which SQL statement to use)?
As part of the logs the database is located at "/var/lib/everest/ocpp201/cp.db".
How can i check for the relevant values (in terms of which SQL statement to use)?
OCPP201 uses two databases, one for the device model and one for core functional blocks (AuthorizationCache, LocalAuthorizationCache, etc). cp.db
is the core database. So please check your configuration of theDeviceModelDatabasePath
of the OCPP201 module. It looks like its not initialized.
Here are the settings:
ocpp:
module: OCPP201
config_module:
CoreDatabasePath: /var/lib/everest/ocpp201
DeviceModelDatabasePath: /var/lib/everest/ocpp201/cp.db
According to the logs both seems to use the same name. Is this problematic?
Sorry, i don't have direct access, because it's on our customers EVSE.
Here are the settings:
ocpp: module: OCPP201 config_module: CoreDatabasePath: /var/lib/everest/ocpp201 DeviceModelDatabasePath: /var/lib/everest/ocpp201/cp.db
According to the logs both seems to use the same name. Is this problematic?
Sorry, i don't have direct access, because it's on our customers EVSE.
Thanks for providing the config and sorry I missed this in the logs because of the same name. This is indeed problematic! The core database has a hardcoded name of cp.db
and for the device model database you can provide a full path. We will need to harmonize this.
For resolving the issue now you should try to use a different file name for DeviceModelDatabasePath
Thanks, i forwarded it to the customer.
Here are my suggestions to avoid this issue:
OCPP Version
OCPP2.0.1
Describe the bug
We noticed the following issue with our Tarragon platform and EVerest core 2024.05. In case we connect an EV (CP state B) and reboot the charge controller, the following error occur after reboot:
The change #675 has already applied.
To Reproduce
Anything else?
No response