# Error occurs when i tried to offload data using DATAHUB service in Cumulocity IoT

**URL:** https://community.cumulocity.com/t/error-occurs-when-i-tried-to-offload-data-using-datahub-service-in-cumulocity-iot/7255
**Category:** Forum
**Tags:** cumulocity, analytics, device-connectivity
**Created:** [August 21, 2023, 1:09pm UTC](https://community.cumulocity.com/t/error-occurs-when-i-tried-to-offload-data-using-datahub-service-in-cumulocity-iot/7255 "2023-08-21T13:09:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![EMMA1](https://avatars.discourse-cdn.com/v4/letter/e/74df32/32.png) [@EMMA1](https://community.cumulocity.com/u/EMMA1)
#### Post date: [August 21, 2023, 1:09pm UTC](https://community.cumulocity.com/t/error-occurs-when-i-tried-to-offload-data-using-datahub-service-in-cumulocity-iot/7255/1 "2023-08-21T13:09:40Z")

</div>

#### \*\*\*Product/components:

DATAHUB  
data offloading

#### _Detailed explanation of the problem:_

error occurs when i tried to offload data using DATAHUB service in cumulosity  
Query processing error

Invalid Query Exception. MongoQueryException: Query failed with error code 13436 and error message ‘node is not in primary or recovering state’ on server cumulocity-azure-fra-prod-mongo-2:27011

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/6/a/6abaf38931bc88f7dcc36275cd2c7fcbead6db2a.png)

#### production

---

<div class="post-metadata">

### Author: ![anon53547040](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@anon53547040](https://community.cumulocity.com/u/anon53547040)
#### Post date: [August 21, 2023, 1:30pm UTC](https://community.cumulocity.com/t/error-occurs-when-i-tried-to-offload-data-using-datahub-service-in-cumulocity-iot/7255/2 "2023-08-21T13:30:21Z")

</div>

Hello,  
could you please provide a bit more detail?  
Which environment is it? [Cumulocity.com](http://Cumulocity.com)? Tenant name?

The error message points towards an infrastructure topic, so it might be better to create a support ticket.

Thanks, Tim

---

<div class="post-metadata">

### Author: ![EMMA1](https://avatars.discourse-cdn.com/v4/letter/e/74df32/32.png) [@EMMA1](https://community.cumulocity.com/u/EMMA1)
#### Post date: [August 21, 2023, 1:33pm UTC](https://community.cumulocity.com/t/error-occurs-when-i-tried-to-offload-data-using-datahub-service-in-cumulocity-iot/7255/3 "2023-08-21T13:33:04Z")

</div>

EMEA environment ;  
datahub service ;  
Management tenant ( not subtenant it is direct tenant )

 ![Screenshot 2023-08-21 150235](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/e/3/e315768525922b0ea6140cec2625f1661ac8439e.png)

---

<div class="post-metadata">

### Author: ![anon53547040](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@anon53547040](https://community.cumulocity.com/u/anon53547040)
#### Post date: [August 21, 2023, 1:56pm UTC](https://community.cumulocity.com/t/error-occurs-when-i-tried-to-offload-data-using-datahub-service-in-cumulocity-iot/7255/4 "2023-08-21T13:56:11Z")

</div>

The issue seems to be an effect of a DB issue posted on [status.cumulocity.com](http://status.cumulocity.com):

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/1/2/12e439e35dd217516dfb48ad328739d6ce9ba5d2.png)

Please keep us informed if the problem persists.

Thanks, Tim

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)
#### Post date: [February 17, 2024, 1:56pm UTC](https://community.cumulocity.com/t/error-occurs-when-i-tried-to-offload-data-using-datahub-service-in-cumulocity-iot/7255/5 "2024-02-17T13:56:57Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
