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

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 to set media configure media cache

strem url : http://server-ip:1935/application_name/definst/mp3:amazons3/staging/Audio_43e1703557eb62c70dc996dcca3daeea.mp3/playlist.m3u8

media cahe souce config:

Prefix - amazons3/

base_path - https://s3-server/bucket_name/

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 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 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

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.

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

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