I am using InfluxDB 3 Serverless.
These days I am setting up the write operation to my InfluxDB cloud instance using the newer python client for influxdb 3 InfluxDB3-python-client.
Through the web portal I have set the option “Delete data” to Never to the bucket I am attempting to write in, in order to not have any retention policy restriction.
Despite this, I keep getting the error below if I try to write data having timestamp values older than one year from now.
Error exception: (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Date': 'Thu, 01 Feb 2024 11:05:48 GMT', 'Content-Type': 'application/json', 'Content-Length': '239', 'Connection': 'keep-alive', 'trace-id': '92d9f2d97d2ea1fb', 'trace-sampled': 'false', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-Influxdb-Request-ID': '60b399b4b7d33412a6a141ecec08d27f', 'X-Influxdb-Build': 'Cloud'})
HTTP response body: {"code":"forbidden","message":"dml handler error: data in table Test is outside of the retention period: minimum acceptable timestamp is 2023-07-30T11:05:48.178479165+00:00, but observed timestamp 2022-04-04T05:40:41.079+00:00 is older."}
It seems like the minium timestamp accepted corresponds to the initial retention period I have set when the bucket was created for the first time which indeed was 6 months period.
Another detail: the bucket was initially created with HTTP API (Influx OSS API).
Do you guys have any suggestion where to look?
Do you think it is a default limitation? In this case, I couldn’t find where it is specified.
Hello @nicfio,
Hmmm yes you won’t be able to write data older than your retention policy.
If you create a new bucket with infinite retention policy then you should be able to write to that.
That’s very strange. Can you verify the retention that you have on that bucket with the api or cli and share the result?
How did you attempt to change the bucket retention policy from 6 mo to indefinite?