# DVR existing chunk returns 404 response

**URL:** <https://community.wowza.com/t/dvr-existing-chunk-returns-404-response/40673>\
**Category:** Wowza Streaming Engine\
**Created:** [June 28, 2013, 12:22pm UTC](https://community.wowza.com/t/dvr-existing-chunk-returns-404-response/40673 "2013-06-28T12:22:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Vtorov](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Alexander\_Vtorov](https://community.wowza.com/u/Alexander_Vtorov)\
**Post date:** [June 28, 2013, 12:22pm UTC](https://community.wowza.com/t/dvr-existing-chunk-returns-404-response/40673/1 "2013-06-28T12:22:42Z")

</div>

(sorry for my bad english)

Hello

We’ve started using wowza not so long ago and now we have one trouble

(i use trial wowza account and 3.6.2 version if it is important)

im’ streaming rtmp stream to application with trascoder (with transrate template) and nDVR enabled in it

when streming is on and i’m watchin’ from …/ngrp:stream\_all/manifest.f4m?DVR all is ok, but

when streaming is done and this url is no longer avaible i create smil file with all streams. for some time all is ok, but then i periodically recieve 404 response on flash player chunck request (watching in fiddler).

there is this record in wowza log:

> 2013-06-28 08:09:01 UTC play stream INFO 200 test\_8\_ac1.smil - _defaultVHost_ out _definst_ 1.04 XXX 80 [http://XXX:80/out/smil:test\_8\_ac1.smil/manifest.f4m?DVR](http://XXX:80/out/smil:test_8_ac1.smil/manifest.f4m?DVR) 89.249.161.75 http (sanjose) [http://XXX/Content/plugins/player.swf](http://XXX/Content/plugins/player.swf) Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.52 Safari/537.36 OPR/15.0.1147.100 (Edition Next) 392042129 0 6501 3 0 0 0 test\_8\_ac1.smil DVR - - - - [http://XXX:80/out/smil:test\_8\_ac1.smil/manifest.f4m?DVR](http://XXX:80/out/smil:test_8_ac1.smil/manifest.f4m?DVR) [http://XXX:80/out/smil:test\_8\_ac1.smil/manifest.f4m](http://XXX:80/out/smil:test_8_ac1.smil/manifest.f4m) DVR [http://XXX:80/out/smil:test\_8\_ac1.smil/manifest.f4m](http://XXX:80/out/smil:test_8_ac1.smil/manifest.f4m) DVR
> 
> 2013-06-28 08:17:11 UTC comment server INFO 200 - DvrStreamManagerBase [out/_definst_/test\_8\_ac1\_90p] : Timeout occurred. Destroying DVR recorder. - - - 2682.086 - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> 2013-06-28 08:17:11 UTC comment server INFO 200 - DvrStreamManagerBase [out/_definst_/test\_8\_ac1\_90p] : Timeout occurred. Destroying DVR packetizer. - - - 2682.088 - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> 2013-06-28 08:17:11 UTC comment server INFO 200 - DvrStreamManagerBase.removeStreamStore[out/_definst_/test\_8\_ac1\_90p] : stream:{DvrStreamStoreBase streamName:test\_8\_ac1\_90p.0 isLoaded:true canPlay:true canRecord:true hasEncryption:false isRecording:false isRecordingPaused:false props:{Properties: dvrSanJosePlaylistVersion: “1.0”, isDvrPacketizer: true}]. - - - 2682.09 - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> 2013-06-28 08:17:11 UTC comment server INFO 200 - MediaStreamMap.removeLiveStreamPacketizer[out/_definst_/test\_8\_ac1\_90p]: Destroy live stream packetizer: dvrstreamingpacketizer - - - 2682.092 - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> 2013-06-28 08:17:12 UTC comment server WARN 200 - HTTPStreamerAdapterBase.getDvrStores: DVR Stream not found test\_8\_ac1\_90p - - - 823.534 - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> 2013-06-28 08:17:12 UTC comment server ERROR 500 - HTTPStreamerAdapterSanJoseStreamer.onMediaFile: java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 - - - 823.537 - - - - - - - - - - - - - - - - - - - - - - - - -

i’ve checked ndvr storage for this chunk’s fragment - it was there and when i replay original 404 chunk request in fiddler after 30 minutes it succeeds.

please give me any advice to resolve this problem, because my flash player resets playback after this 404 error(

---

<div class="post-metadata">

**Author:** ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)\
**Post date:** [June 28, 2013, 1:38am UTC](https://community.wowza.com/t/dvr-existing-chunk-returns-404-response/40673/2 "2013-06-28T01:38:21Z")

</div>

Hi,

From the log you have posted it shows the nDVR store for the stream being removed

> 2013-06-28 08:17:11 UTC comment server INFO 200 - DvrStreamManagerBase.removeStreamStore[out/_definst_/test\_8\_ac1\_90p] : stream:{DvrStreamStoreBase streamName:test\_8\_ac1\_90p.0 isLoaded:true canPlay:true canRecord:true hasEncryption:false isRecording:false isRecordingPaused:false props:{Properties: dvrSanJosePlaylistVersion: “1.0”, isDvrPacketizer: true}]. - - - 2682.09 - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> So when attempting to playback the content will not be there. It suggests that when the live stream drops the Store is removed
> 
> > 2013-06-28 08:17:11 UTC comment server INFO 200 - MediaStreamMap.removeLiveStreamPacketizer[out/_definst_/test\_8\_ac1\_90p]: Destroy live stream packetizer: dvrstreamingpacketizer - - - 2682.092 - - - - - - - - - - - - - - - - - - - - - - - - -
> > 
> > It may be that you have the archive strategy set to delete ?
> > 
> > Andrew.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [June 28, 2013, 8:23pm UTC](https://community.wowza.com/t/dvr-existing-chunk-returns-404-response/40673/3 "2013-06-28T20:23:37Z")

</div>

I tested this and did not have any problem,

- I configured an application for nDVR and Transcoder.

- 
- I started a stream with FMLE on that application.

- 
- I tested in the Wowza DVR example FlashHTTPPlayer to playback the ngrp url while the stream was running

- 
- I created a smil file from the ngrp while the stream was live following [this guide](https://www.wowza.com/docs/how-to-create-and-play-smil-files-with-streams-created-by-wowza-transcoder)

- 
- I copied the generated smil to the /content folder.

- 
- I stopped the live encoder.

- 
- Using the same player, I changed the url to use the new smil, and it played back as expected

- See if those steps work for you, otherwise tell me what is different about what you are doing.

---

<div class="post-metadata">

**Author:** ![Alexander\_Vtorov](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Alexander\_Vtorov](https://community.wowza.com/u/Alexander_Vtorov)\
**Post date:** [June 28, 2013, 12:50pm UTC](https://community.wowza.com/t/dvr-existing-chunk-returns-404-response/40673/4 "2013-06-28T12:50:48Z")

</div>

Hello, thx for your reply

> From the log you have posted it shows the nDVR store for the stream being removed
> 
> So when attempting to playback the content will not be there. It suggests that when the live stream drops the Store is removed
> 
> i’ve finished live streaming about 12h ago, so there was no live streaming at moment of this problem occured
> 
> and if i wait for some time problem with THIS chunk goes away, but there always is another chunk, with same problem
> 
> > It may be that you have the archive strategy set to delete ?
> > 
> > i am sure it’s append - append - is in config
> > 
> > i have an idea that it’s my network drive problem, is there any way to add andvanced logging to wowza?
> > 
> > Alex

---

<div class="post-metadata">

**Author:** ![Alexander\_Vtorov](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Alexander\_Vtorov](https://community.wowza.com/u/Alexander_Vtorov)\
**Post date:** [June 28, 2013, 6:59pm UTC](https://community.wowza.com/t/dvr-existing-chunk-returns-404-response/40673/5 "2013-06-28T18:59:44Z")

</div>

> i have an idea that it’s my network drive problem

it seems strange to me that i have no problems with ngrp:…?DVR (when live streaming is on and i’m watching dvr) but always have some with smil:…?DVR with same streams (only checked with live steaming off)

---

<div class="post-metadata">

**Author:** ![Alexander\_Vtorov](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Alexander\_Vtorov](https://community.wowza.com/u/Alexander_Vtorov)\
**Post date:** [July 4, 2013, 6:20am UTC](https://community.wowza.com/t/dvr-existing-chunk-returns-404-response/40673/6 "2013-07-04T06:20:33Z")

</div>

> I tested this and did not have any problem,

- I configured an application for nDVR and Transcoder.

- 
- I started a stream with FMLE on that application.

- 
- I tested in the Wowza DVR example FlashHTTPPlayer to playback the ngrp url while the stream was running

- 
- I created a smil file from the ngrp while the stream was live following [this guide](https://www.wowza.com/docs/how-to-create-and-play-smil-files-with-streams-created-by-wowza-transcoder)

- 
- I copied the generated smil to the /content folder.

- 
- I stopped the live encoder.

- 
- Using the same player, I changed the url to use the new smil, and it played back as expected

- See if those steps work for you, otherwise tell me what is different about what you are doing.

---

<div class="post-metadata">

**Author:** ![Alexander\_Vtorov](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Alexander\_Vtorov](https://community.wowza.com/u/Alexander_Vtorov)\
**Post date:** [July 6, 2013, 11:25pm UTC](https://community.wowza.com/t/dvr-existing-chunk-returns-404-response/40673/7 "2013-07-06T23:25:26Z")

</div>

i’ve done that:

- created new Windows Azure VM with Windows Server 2012 Datacenter installed

- installed .NET Framework 3.5

- installed jdk-7u25-windows-x64

- installed WowzaMediaServer-3.6.2

- configured nDVR + transcoder app

- streamed for some time (2h actually) (with not FMLE but XSplit, but in previous tests I’v used FMLE, so it seems to me it doesn’t matter)

- created smil from ngrp with guide you gave in prev post while it was live

- start playing HDS smil stream with player based on OSMF from the beginning and on Seg1Frag118 got 404 (saw in fiddler) and following error in wowza console.

- restarted wowza, replay request with fiddler - got chunk with 200 status, not 404 😕
