Event ID 354 — Cache/Proxy Directory Availability
Applies To: Windows Server 2008
When a client requests on-demand content, a cache/proxy server can stream the requested content to the client on behalf of the origin server. Offsetting the load on the origin server from which the content is published conserves bandwidth and decreases network-imposed latency, reducing costs and providing a better viewing experience for clients. The WMS Cache/Proxy plug-in in Windows Media Services 2008 is used to configure a Windows Media server as a cache/proxy server. This plug-in downloads content requested by clients from an origin server to cache storage on the cache/proxy server (the cache directory) for subsequent delivery to clients.
Event Details
Product: | Windows Media Services |
ID: | 354 |
Source: | WMServer |
Version: | 9.5 |
Symbolic Name: | WMS_EVMSG_CACHE_REMOVE_FAILED |
Message: | The WMS Cache Proxy plug-in could not remove %1 from the cache directory. %2 |
Resolve
Specify Network Service account permissions for caching
Windows Media Services uses the Network Service account to manage the content files that are cached in %systemdrive%\WMSCache and its subdirectories on the cache/proxy server. By default, the Network Service account has Read, Write, and Modify permissions to the WMSCache directory and its subdirectories.
If the specified cache folder does not reside in %systemdrive%\WMSCache, you must specify permissions on the alternate cache folder for the Network Service account on the cache/proxy server.
To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.
To specify Network Service account permissions for caching:
- On the Windows Media cache/proxy server, open Windows Media Services. To open Windows Media Services, click Start, point to Administrative Tools, and then click Windows Media Services.
- In the console tree, click the Windows Media server for which you want to cache content.
- In the details pane, click the Properties tab.
- In Category, click Cache/Proxy Management.
- In Plug-in, right-click WMS Cache Proxy, and then click Properties.
- In the WMS Cache Proxy Properties dialog box, on the Cache tab, note the cache directory path value in Cache Directory Path. The default value is %systemdrive%\WMSCache.
- In Windows Explorer, right-click the cache folder, and then click Properties.
- On the Security tab, click Edit.
- In the Permissions for <Object name> dialog box, click Add.
- In the Select Users, Computers, or Groups dialog box, in Enter the object names to select, type Network Service, and then click OK.
- In the Permissions for <Object name> dialog box, in the Group or user names area, click NETWORK SERVICE.
- In the Permissions for NETWORK SERVICE area, click the Allow check box for the following permissions: Read, Write, Modify.
- Click OK to save the changes.
Verify
To verify that cache/proxy servers on your network can cache content files from the origin server, prestuff the cache directory on the cache/proxy servers with one or more content files from the origin server. Prestuffing content means that you are caching the content on the cache/proxy servers before it is requested by clients. It is a good way to confirm that cache/proxy servers on your network can communicate with the origin server.
To prestuff the cache directory:
- On the Windows Media server, open Windows Media Services. To open Windows Media Services, click Start, point to Administrative Tools, and then click Windows Media Services.
- In the console tree, click the Windows Media server for which you are caching content files.
- In the details pane, click the Properties tab.
- In Category, click Cache/Proxy Management.
- In Plug-in, right-click WMS Cache Proxy, and then click Properties.
- In the WMS Cache Proxy Properties dialog box, on the Prestuff tab, use one of the following procedures:
- Prestuff from Stream. Select this option to enable the cache/proxy server to cache the content by streaming it from the origin server. Type the URL of the file on the origin server in the URL box and select one of the Prestuff Rate options to specify the speed at which the cache/proxy server streams the content from the origin server.
- Prestuff from File. Select this option to enable the cache proxy server to cache the content from a file on an available file storage system, such as a local file system, storage area network (SAN), or network-attached storage (NAS). Type the UNC path of the file in the Content Path box, the URL that clients must use to stream the file in the Stream URL box, and then select the Copy content to local cache directory check box.
- Click Prestuff to start caching the specified content from the origin server. If caching is configured correctly on the cache/proxy server, the content file will appear in the cache directory after a short delay.