# while accessing mp3 media from amazon s3 media cache server - MediaCacheItemHTTPImpl.getItemInfo(s3.server.path) HTTP response: 404 occur.

**URL:** https://community.wowza.com/t/while-accessing-mp3-media-from-amazon-s3-media-cache-server-mediacacheitemhttpimpl-getiteminfo-s3-server-path-http-response-404-occur/55797
**Category:** Wowza Streaming Engine
**Created:** [August 28, 2020, 3:25pm UTC](https://community.wowza.com/t/while-accessing-mp3-media-from-amazon-s3-media-cache-server-mediacacheitemhttpimpl-getiteminfo-s3-server-path-http-response-404-occur/55797 "2020-08-28T15:25:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vinod\_jadhav](https://avatars.discourse-cdn.com/v4/letter/v/a698b9/32.png) [@vinod\_jadhav](https://community.wowza.com/u/vinod_jadhav)
#### Post date: [August 28, 2020, 3:25pm UTC](https://community.wowza.com/t/while-accessing-mp3-media-from-amazon-s3-media-cache-server-mediacacheitemhttpimpl-getiteminfo-s3-server-path-http-response-404-occur/55797/1 "2020-08-28T15:25:00Z")

</div>

Hi,

I am using media cahe amazon s3 for streaming purpose. But not i am not able to get the content from souce client (amazon s3) bucket.

refer this ariticle - [https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache](https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache) to set media configure media cache

**strem url** : [http://server-ip:1935/application\_name/_definst_/mp3:amazons3/staging/Audio\_43e1703557eb62c70dc996dcca3daeea.mp3/playlist.m3u8](http://192.168.43.137:1935/thinkright/_definst_/mp3:amazons3/staging/Audio_43e1703557eb62c70dc996dcca3daeea/playlist.m3u8)

**media cahe souce config:**

Prefix - amazons3/

base\_path - [https://s3-server/bucket\_name/](https://s3.ap-south-1.amazonaws.com/publicam/)

I use the correct credentials of s3 bucket for authorisation.

**Found below error log in** - wowzastreamingengine\_error.log file :

WARN server comment 2020-08-28 17:25:59 - - - - - 220.887 - - - - - - - - MediaCacheItemHTTPImpl.getItemInfo[[s3-server.com/bucket\_name/file\_path/Audio\_43e1703557eb62c70dc996dcca3daeea.mp3](http://s3-server.com/bucket_name/file_path/Audio_43e1703557eb62c70dc996dcca3daeea.mp3)]: **HTTP response: 404**

WARN server comment 2020-08-28 17:25:59 - - - - - 220.887 - - - - - - - - MediaCacheItemBase.init: **Item does not exist** : amazons3/file\_path/Audio\_43e1703557eb62c70dc996dcca3daeea.mp3

WARN server comment 2020-08-28 17:25:59 - - - - - 221.081 - - - - - - - - MediaCacheItemHTTPImpl.getItemInfo[[s3-server.com/bucket\_name/file\_path/Audio\_43e1703557eb62c70dc996dcca3daeea.mp3](http://s3-server.com/bucket_name/file_path/Audio_43e1703557eb62c70dc996dcca3daeea.mp3)]: HTTP response: 404

WARN server comment 2020-08-28 17:25:59 - - - - - 221.081 - - - - - - - - MediaCacheItemBase.init: Item does not exist: amazons3/file\_path/Audio\_43e1703557eb62c70dc996dcca3daeea.mp3

ERROR server comment 2020-08-28 17:25:59 - - - - - 221.082 - - - - - - - - open : java.io.IOException: MediaCacheRandomAccessReader.open: Item not in cache: amazons3/file\_path/Audio\_43e1703557eb62c70dc996dcca3daeea.mp3|at com.wowza.wms.mediacache.impl.MediaCacheRandomAccessReader.open(MediaCacheRandomAccessReader.java:75)|at com.wowza.wms.mediacache.impl.MediaCacheRandomAccessReaderFilter.open(MediaCacheRandomAccessReaderFilter.java:75)|at com.wowza.wms.mediareader.mp3.MediaReaderMP3.open(MediaReaderMP3.java:154)|at com.wowza.wms.httpstreamer.model.HTTPStreamerAdapterBase.doesFileExist(HTTPStreamerAdapterBase.java:1621)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.onPlaylist(HTTPStreamerAdapterCupertinoStreamer.java:1682)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.serviceMsg(HTTPStreamerAdapterCupertinoStreamer.java:589)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.service(HTTPStreamerAdapterCupertinoStreamer.java:535)|at com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerAdapterCupertinoStreamer.service(HTTPStreamerAdapterCupertinoStreamer.java:455)|at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:703)|at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:423)|at com.wowza.wms.server.ServerHandler.messageReceived(ServerHandler.java:552)|at com.wowza.wms.server.ServerHandlerThreaded.messageReceived(ServerHandlerThreaded.java:79)|at org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(AbstractIoFilterChain.java:181)|at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:511)|

Can any one help me to sort out this issue.

Best Regards,

Vinod jadhav

---

<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: [August 28, 2020, 3:43pm UTC](https://community.wowza.com/t/while-accessing-mp3-media-from-amazon-s3-media-cache-server-mediacacheitemhttpimpl-getiteminfo-s3-server-path-http-response-404-occur/55797/2 "2020-08-28T15:43:04Z")

</div>

I can try and guide you @vinod jadhav, but not sure I can debug without a support ticket. I’ll need to know what version of Streaming Engine you are using and also what version of Java.

---

<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: [August 28, 2020, 7:23pm UTC](https://community.wowza.com/t/while-accessing-mp3-media-from-amazon-s3-media-cache-server-mediacacheitemhttpimpl-getiteminfo-s3-server-path-http-response-404-occur/55797/3 "2020-08-28T19:23:08Z")

</div>

Pulling an mp3 from an S3 bucket does work, we tested it, but your mp3 may not be working properly in Engine first, did you test that first in Engine test players before MediaCache?

[http://localhost:1935/vodedge/_definst_/mp3:{mediaCachePrefix}/{pathToYourFile}/{fileName}.mp3/playlist.m3u8](http://localhost:1935/vodedge/_definst_/mp3:%7BmediaCachePrefix%7D/%7BpathToYourFile%7D/%7BfileName%7D.mp3/playlist.m3u8)

Some things to note:

- you need to specify the correct path
- you need to include the application instance
- you need to make sure the permissions are set accordingly on the S3 bucket/wse mediacache configuration

By “playable locally” I mean copy it to the WSE install content directory, and try playing it back with the default VOD application.

The file itself may just have a codec that is unsupported.

You can submit a support ticket if you can’t get it to work and we can take a closer look for you.

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