# live hls stream shows as Active, but after a while goes into Waiting for stream state

**URL:** <https://community.wowza.com/t/live-hls-stream-shows-as-active-but-after-a-while-goes-into-waiting-for-stream-state/50043>\
**Category:** Wowza Streaming Engine\
**Created:** [November 3, 2017, 6:43am UTC](https://community.wowza.com/t/live-hls-stream-shows-as-active-but-after-a-while-goes-into-waiting-for-stream-state/50043 "2017-11-03T06:43:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florin\_Stana](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@Florin\_Stana](https://community.wowza.com/u/Florin_Stana)\
**Post date:** [November 3, 2017, 6:43am UTC](https://community.wowza.com/t/live-hls-stream-shows-as-active-but-after-a-while-goes-into-waiting-for-stream-state/50043/1 "2017-11-03T06:43:09Z")

</div>

Hello.

I have a problem running a live stream. We are using a stream.file to ingest the incoming rtmp live stream and also using trancoder and smil for abr.

When starting the streameverything is ok, we can see Active state, but after some time (1-2 hours) the incoming .stream goes into “Waiting for stream” even if the encoder is connected.

Looking in the error logs i can see many of these:

```auto
RRORservercomment2017-11-0306:06:41-----35908.881--------HTTPUtils.HTTPRequestToByteArray : java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:1935/avra/avra/playlist.m3u8|at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)|at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)|at com.wowza.util.HTTPUtils.HTTPRequestToByteArray(HTTPUtils.java:182)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:423)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:205)|
WARNservercomment2017-11-0306:06:41-----35908.881--------RTPSessionDescriptionDataProviderBasic.getStreamInfo: HTTPRequest: return: null
WARNservercomment2017-11-0306:06:44-----35907.44--------HTTPStreamerAdapterCupertinoStreamer.onPlaylist[avra/avra/playlist.m3u8]: Session not accepted[1678903278]
ERRORservercomment2017-11-0306:06:44-----35911.881--------HTTPUtils.HTTPRequestToByteArray : java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:1935/avra/avra/playlist.m3u8|at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)|at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)|at com.wowza.util.HTTPUtils.HTTPRequestToByteArray(HTTPUtils.java:182)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:423)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:205)|
WARNservercomment2017-11-0306:06:44-----35911.881--------RTPSessionDescriptionDataProviderBasic.getStreamInfo: HTTPRequest: return: null
WARNservercomment2017-11-0306:07:10-----35933.379--------HTTPStreamerAdapterCupertinoStreamer.onPlaylist[avra/avra/playlist.m3u8]: Session not accepted[462742909]
ERRORservercomment2017-11-0306:07:10-----35937.82--------HTTPUtils.HTTPRequestToByteArray : java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:1935/avra/avra/playlist.m3u8|at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)|at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)|at com.wowza.util.HTTPUtils.HTTPRequestToByteArray(HTTPUtils.java:182)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:423)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:205)|
WARNservercomment2017-11-0306:07:10-----35937.821--------RTPSessionDescriptionDataProviderBasic.getStreamInfo: HTTPRequest: return: null
WARNservercomment2017-11-0306:07:13-----35936.355--------HTTPStreamerAdapterCupertinoStreamer.onPlaylist[avra/avra/playlist.m3u8]: Session not accepted[311851946]
ERRORservercomment2017-11-0306:07:13-----35940.796--------HTTPUtils.HTTPRequestToByteArray : java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:1935/avra/avra/playlist.m3u8|at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)|at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)|at com.wowza.util.HTTPUtils.HTTPRequestToByteArray(HTTPUtils.java:182)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:423)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:205)|
WARNservercomment2017-11-0306:07:13-----35940.796--------RTPSessionDescriptionDataProviderBasic.getStreamInfo: HTTPRequest: return: null

```

Wowza version is 4.7.1 (build 20635) running on a xeon e7-4839 (4 processors), 128 GB ddram, ssd storage with windows server 2016.

Any ideea what the problem could be?

Thanks!

---

<div class="post-metadata">

**Author:** ![Jermaine\_Hemby](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jermaine\_Hemby](https://community.wowza.com/u/Jermaine_Hemby)\
**Post date:** [November 4, 2017, 4:27pm UTC](https://community.wowza.com/t/live-hls-stream-shows-as-active-but-after-a-while-goes-into-waiting-for-stream-state/50043/2 "2017-11-04T16:27:52Z")

</div>

Hello,

Thanks for contacting the Wowza Community

We would need to see a log file with the incoming stream during this time and see what is going on. Can you open a ticket [HERE](https://www.wowza.com/support/open-ticket) and include the following:

Your logs in a .zip file, located here: [install-dir]/logs Your conf folder in a .zip file, located here: [install-dir]/conf Helpful Article on creating a .zip file: [https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux](https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux)

regards,  
Jermaine

---

<div class="post-metadata">

**Author:** ![Billakanti\_Avinash](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@Billakanti\_Avinash](https://community.wowza.com/u/Billakanti_Avinash)\
**Post date:** [November 5, 2019, 3:48pm UTC](https://community.wowza.com/t/live-hls-stream-shows-as-active-but-after-a-while-goes-into-waiting-for-stream-state/50043/3 "2019-11-05T15:48:14Z")

</div>

waiting for stream state|

tired to restrart and created new but still the same issue

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 5, 2019, 4:20pm UTC](https://community.wowza.com/t/live-hls-stream-shows-as-active-but-after-a-while-goes-into-waiting-for-stream-state/50043/4 "2019-11-05T16:20:37Z")

</div>

Could be an encoding issue or the packets are not being configured and sent correctly. It is too hard to tell without viewing your files and logs so can you submit a support ticket @Billakanti Avinash? We’ll take a look and see what the problem is for you.

[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)
