@@ -1913,13 +1913,11 @@ Likewise, when I run the oldb-gui database browser, it does not show this data p
...
@@ -1913,13 +1913,11 @@ Likewise, when I run the oldb-gui database browser, it does not show this data p
I try to access an OLDB datapoint, and I see two errors like this:
I try to access an OLDB datapoint, and I see two errors like this:
```plaintext
```plaintext
Target configuration does not exist: Failed to retrieve configuration from elastic search: Configuration
Target configuration does not exist: Failed to retrieve configuration from config storage: Configuration
[…]
[…]
elt.oldb.exceptions.CiiOldbDpExistsException: Data point cii.oldb:/alarm/alarm/device/motor/input_int_dp_alarm already exisits.
elt.oldb.exceptions.CiiOldbDpExistsException: Data point cii.oldb:/alarm/alarm/device/motor/input_int_dp_alarm already exisits.
```
```
Go directly to Solution 2 below.
**Variant 3 of the Problem**
**Variant 3 of the Problem**
I try to delete an OLDB datapoint and I see an error like this:
I try to delete an OLDB datapoint and I see an error like this:
...
@@ -1928,99 +1926,26 @@ I try to delete an OLDB datapoint and I see an error like this:
...
@@ -1928,99 +1926,26 @@ I try to delete an OLDB datapoint and I see an error like this:
CiiOldbPyB.CiiOldbException: De-serialization error:sizeof(T)\*count is greater then remaining
CiiOldbPyB.CiiOldbException: De-serialization error:sizeof(T)\*count is greater then remaining
```
```
Go directly to Solution 2 below.
**Background**
**Background**
The two errors are contradicting.
The two errors are contradicting.
Datapoints are stored in two databases: a document-database (permanent store) for its metadata, and a key-value-database (volatile store) for its current value. The above symptoms indicate that the two databases are out-of-sync, meaning the datapoint exists only "half".
Datapoints are stored in two databases: the config-storage (aka. permanent store) for its metadata, and a key-value-database (aka. volatile store) for its current value. The above symptoms indicate that the two databases are out-of-sync, meaning the datapoint exists only "half".
**Solution 1**
**Solution 1**
With DevEnv 4, which contains [ECII-500](https://jira.eso.org/browse/ECII-500), you can probably delete the datapoint to clean up the situation:
You may be able to delete the offending datapoint ([ECII-500](https://jira.eso.org/browse/ECII-500)):
If none of the above helped, another possibility is to clean up the metadata.
WARNING: This is an invasive operation. It deletes all datapoints in the OLDB.
```plaintext
# Clean up the OLDB databases
config-initEs.sh
oldb-initEs
redis-cli flushall
sudo cii-services stop config
sudo cii-services start config
```
If you are dealing with a multi-user oldb ("role_groupserver", meaning it serves an OLDB to a team of developers), after executing the above commands you need to additionally execute (with privileges):