Results 1 to 3 of 3

Thread: MediaCacheStore.getNextItem : java.io.IOException: Permission denied

  1. #1
    Join Date
    May 2014
    Posts
    4

    Default MediaCacheStore.getNextItem : java.io.IOException: Permission denied

    ERROR server comment - MediaCacheStore.getNextItem : java.io.IOException: Permission denied|at java.io.UnixFileSystem.createFileExclusively(Native Method)|at java.io.File.createNewFile(File.java:1006)|at com.wowza.wms.mediacache.model.MediaCacheStore.getNextItem(MediaCacheStore.java:176)|at com.wowza.wms.mediacache.model.MediaCache.getNextStoreItem(MediaCache.java:490)|at com.wowza.wms.mediacache.model.MediaCacheItemBase.getStoreItem(MediaCacheItemBase.java:529)|


    This happens when I accessed a video file stored in AmazonS3 bucket using the Test players come with Wowza.
    - RTMP and HLS were tested. Both exhibits same results.
    - video doesn't come and the errors are printed out rapidly.
    - This does not happen if I debug normal (origin/vod) applications that don't use MediaCache (edge/vod).
    - This does happen only when I'm running the service from Eclispe IDE (I followed IDE2 guide. and set debug flag according to this (changing platform to "mac"): http://www.wowza.com/forums/showthre...r-not-working! )
    - I setup MediaCache - S3 by following this: http://www.wowza.com/forums/content....conf_storesadd
    - My development system is Wowza + Eclispe on Mac OS Maverick.
    - But if I'm running this by starting Wowza services with the startup script in Application folder, everything runs stable.

    Therefore, something is wrong with my development environment. But I do not know where to start.
    Please advise.

  2. #2

    Default

    Hi,

    The most likely reason that you are getting this error is because the user that is running eclipse doesn't have write permission to the folder that is being used for the local media cache store.

    If Wowza Streaming Engine then this will be /Library/WowzaStreamingEngine/mediacache. By default, the permissions for the /Library/WowzaStreamingEngine folder are read only for the regular users. You will need to reset these to allow write access.

    If using the scripts to start Wowza normally then it runs as root user so you do see this problem.

    Roger.

  3. #3
    Join Date
    May 2014
    Posts
    4

    Default

    You are on the spot. I allow write permission to mediacache, then it works.

    Quote Originally Posted by roger_l View Post
    Hi,

    The most likely reason that you are getting this error is because the user that is running eclipse doesn't have write permission to the folder that is being used for the local media cache store.

    If Wowza Streaming Engine then this will be /Library/WowzaStreamingEngine/mediacache. By default, the permissions for the /Library/WowzaStreamingEngine folder are read only for the regular users. You will need to reset these to allow write access.

    If using the scripts to start Wowza normally then it runs as root user so you do see this problem.

    Roger.

Similar Threads

  1. Permission denied on load test tool
    By dbc1717 in forum Performance Tuning Discussion
    Replies: 8
    Last Post: 08-27-2013, 05:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •