# Avpublisher session stopped after few hours

**URL:** <https://mangoh.discourse.group/t/avpublisher-session-stopped-after-few-hours/1692>\
**Category:** mangOH Red\
**Created:** [July 10, 2018, 1:43pm UTC](https://mangoh.discourse.group/t/avpublisher-session-stopped-after-few-hours/1692 "2018-07-10T13:43:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chinnaobi](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@chinnaobi](https://mangoh.discourse.group/u/chinnaobi)\
**Post date:** [July 10, 2018, 1:43pm UTC](https://mangoh.discourse.group/t/avpublisher-session-stopped-after-few-hours/1692/1 "2018-07-10T13:43:26Z")

</div>

Hi,

I have been testing mangOH red to post data of few sensors to cloud after like 12 hours then redSensorToloud stopped posting data to airvantage. After looking in the debug logs looks like the app is still running but no message being posted. Attached is the logread and picture

 ![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/c93d354ae5603c73a67ae6e7b4531811eb35af7f.png)

logread | grep redSensorToCloud output  
[avpublisher\_stopped.txt](https://mangoh.discourse.group/uploads/short-url/4MlY7bh3u7NDyCV5PsVIxn9DHqY.txt) (1.2 MB)

What might be the problem, it is happening every 10 hours or so…

Is there anywhere I have to specify the session timings or this session handling should be rewritten in code to initiate a new session when a session stops ?
