# Log shows some errors.

**URL:** <https://forums.balena.io/t/log-shows-some-errors/103790>\
**Category:** Product support\
**Created:** [May 1, 2020, 2:27pm UTC](https://forums.balena.io/t/log-shows-some-errors/103790 "2020-05-01T14:27:45Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![AlexJeli](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@AlexJeli](https://forums.balena.io/u/AlexJeli)\
**Post date:** [May 21, 2020, 1:55pm UTC](https://forums.balena.io/t/log-shows-some-errors/103790/41 "2020-05-21T13:55:04Z")

</div>

Re: [balenaForums] [balenaCloud] Log shows some errors.  
Hello Carlo,

Many thanx for your help.

Yes, it was the issue regarding same ClientID as I copied most of 2nd script

contain from the 1st script.

Actually both issues were connected!

It would be good if somewhere at your manual example you may point it as a friendly advice.

I gave it a go for over 3 hours now and it works.

Well done.

May I asked once the topic closes - will the all data gets deleted?

I’m going to look AWS SDK for .Net now.

Alex

[cmfcruz](https://forums.balena.io/u/cmfcruz) balena team  
May 21Hi Alex,  
I haven’t seen your scripts as it was not attached to the forums but it seems to me that your problem is related to this Stackoverflow thread I found where a user was having problems publishing using the AWS IoT SDK MQTT client to an existing topic using a different client. Please click the link below to follow the discussion thread there:  
[stackoverflow.com](https://stackoverflow.com/questions/53249801/python-aws-iot-sdk-subscription)  
[Python AWS iot SDK subscription](https://stackoverflow.com/questions/53249801/python-aws-iot-sdk-subscription)\*\*  
python-3.x, aws-sdk\*\*

asked by [Pruthvi Raj](https://stackoverflow.com/users/4652254/pruthvi-raj)on [02:42PM - 11 Nov 18 UTC](https://stackoverflow.com/questions/53249801/python-aws-iot-sdk-subscription)

I hope this helps you with your problem in publishing from your PC.

All the best,

Carlo

---

<div class="post-metadata">

**Author:** ![majorz](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/majorz/32/639_2.png) [@majorz](https://forums.balena.io/u/majorz)\
**Post date:** [May 21, 2020, 2:24pm UTC](https://forums.balena.io/t/log-shows-some-errors/103790/42 "2020-05-21T14:24:07Z")

</div>

Hi, I am not sure about your last question - “will the all data gets deleted”. Can you please explain more?  
Thanks,  
Zahari

---

<div class="post-metadata">

**Author:** ![AlexJeli](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@AlexJeli](https://forums.balena.io/u/AlexJeli)\
**Post date:** [May 21, 2020, 3:34pm UTC](https://forums.balena.io/t/log-shows-some-errors/103790/44 "2020-05-21T15:34:09Z")

</div>

Re: [balenaForums] [balenaCloud] Log shows some errors.  
Hello Zahari,

thank you for your reply.

Sure, I need to understand how long the data

The only options as I see could be:

- stays forever at AWS,

- not stored at AWS all using such demo mode,

- stored until topic is published,

- some other option.

May I somehow get access and read old values say from yesterday or week ago

been published under certain topic ?

If not, what I do need to do to be able to save every transaction an IoT device sent

to AWS ?

Will it be sort of AWS MYSQL with possibility to query any day and time to get a stored

transaction.

Alex

[majorz](https://forums.balena.io/u/majorz) balena team

May 21Hi, I am not sure about your last question - “will the all data gets deleted”. Can you please explain more?

Thanks,

Zahari

---

<div class="post-metadata">

**Author:** ![odyslam](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/odyslam/32/1684_2.png) [@odyslam](https://forums.balena.io/u/odyslam)\
**Post date:** [May 21, 2020, 5:01pm UTC](https://forums.balena.io/t/log-shows-some-errors/103790/45 "2020-05-21T17:01:34Z")

</div>

Hey Alex,

I would advise to look into the documentation of AWS IoT regarding the data retention policy of their MQTT broker. A good starting poing would be this [page](https://docs.aws.amazon.com/iot/latest/developerguide/iot-message-broker.html). Hope you sort everything out!

---

<div class="post-metadata">

**Author:** ![AlexJeli](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@AlexJeli](https://forums.balena.io/u/AlexJeli)\
**Post date:** [July 24, 2020, 4:11pm UTC](https://forums.balena.io/t/log-shows-some-errors/103790/47 "2020-07-24T16:11:03Z")

</div>

Hello,

I do apologies for some delay.  
I want to thank you all, and your support team for patience with me.  
I managed all working with your help!

I do use Raspberry PI with AWS SDK running python scrip.  
It reads data from Raspberry serial port and sends that to AWS IoT Cloud.

I also explored and wrote software at PC under Win10, which acts as a client  
and is able to read data previously posted by RPI via AWS IoT. Fantastic!  
World has no limits now.  
The distance no matter (the size still does… 😉 )

I do need some your help and advices regarding AWS IoT Analytic now.

**I need to ask you 2 things:**

1. If the network/internet connection between Raspberry PI and AWS IoT Cloud  
drops off I do need to understand how and how long I may keep data coming to Raspberry PI  
via serial port in and how later to resend that. Any link will be helpful.  
Could it be all automatic controlled by AWS SDK or I need to write my own  
additional code in python script ?

2. The data from Raspberry PI normally may come once per several minutes.  
Every packet data is important to save.  
What I need to do is to store every packet, as it is a human print operation,  
firmly somewhere at AWS IoT Cloud.

I also need to retry that information back later, more likely at PC, Windows 10 based.

What are the options for my N1 and N2, please ?

Do you have any working examples for that?

Thank you very much in advance.

Alex

Thursday, May 21, 2020, 8:11:37 PM, you wrote:

> |   
> |
> 
> - | - |

> | [odyslam](https://forums.balena.io/u/odyslam) balena team  
> May 21 |
> 
> - | - |

Hey Alex,  
I would advise to look into the documentation of AWS IoT regarding the data retention policy of their MQTT broker. A good starting poing would be this [page](https://docs.aws.amazon.com/iot/latest/developerguide/iot-message-broker.html). Hope you sort everything out!

[Previous page](https://forums.balena.io/t/log-shows-some-errors/103790.md?page=1)
