# Thread: Stand alone works, as service not working

1. Junior Member
Join Date
Dec 2011
Posts
6

## Stand alone works, as service not working

Hi

I'm having trouble to get VOD working while Wowza is running as a service.
From log file
WARN server comment myStream MediaReaderH264.open[1]: java.io.FileNotFoundException: /path/to/content/myStream (The system cannot find the path specified)
But when I run Wowza as a stand alone application everything works fine and Wowza finds the path to the file.
What could be wrong?

2. Wowza Support
Join Date
Dec 2007
Posts
22,013
Seems more like you are mixing up live and vod configuration.

Richard

3. Wowza Support
Join Date
Dec 2007
Posts
22,013

I've not heard of such an issue before. It should the same in stand-alone or running as a service.

Do you have an older version of Wowza installed that you are running in stand-alone mode, while the service is starting the more recent version?

Richard

4. Junior Member
Join Date
Dec 2011
Posts
6
Hello Richard

I copied the text in quotes to my first post from web so it may have been misleading but the mediareader portion was correct. Below is the real log from our server.

2011-12-19 15:22:49 EET app-start application INFO 200 _definst_ vod/_definst_ - - - 52.786 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-12-19 15:22:49 EET connect cupertino INFO 200 46857469 - _defaultVHost_ vod _definst_ 0.25 xxx.xxx.xxx.xxx 1935 http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo xxx.xxx.xxx.xxx http (cupertino) - Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; fi-fi) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148a Safari/6533.18.5 46857469 0 0 - 0 - - filename.mp4 u=extrainfo - - - - http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo

2011-12-19 15:22:49 EET create stream INFO 200 filename.mp4 - _defaultVHost_ vod _definst_ 0.016 xxx.xxx.xxx.xxx 1935 http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo xxx.xxx.xxx.xxx http (cupertino) - Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; fi-fi) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148a Safari/6533.18.5 46857469 0 0 1 0 0 0 filename.mp4 u=extrainfo - - - - http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo

2011-12-19 15:22:49 EET comment server WARN 404 filename.mp4 MediaReaderH264.open[1]: java.io.FileNotFoundException: X:\pathtofile\filename.mp4 (The system cannot find the path specified) - - - 0.328 - - - - - - - - - - - - - - - - - - - - - - - - -
2011-12-19 15:22:49 EET comment server ERROR 500 - MediaReaderH264Cupertino.indexFile:java.lang.NullPointerException - - - 0.343 - - - - - - - - - - - - - - - - - - - - - - - - -
2011-12-19 15:22:49 EET comment server WARN 404 filename.mp4 MediaReaderH264.open[1]: java.io.FileNotFoundException: X:\pathtofile\filename.mp4 (The system cannot find the path specified) - - - 0.656 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-12-19 15:22:51 EET connect cupertino INFO 200 125803265 - _defaultVHost_ vod _definst_ 1.906 xxx.xxx.xxx.xxx 1935 http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo xxx.xxx.xxx.xxx http (cupertino) - AppleCoreMedia/1.0.0.8C148a (iPhone; U; CPU OS 4_2_1 like Mac OS X; fi_fi) 125803265 0 0 - 0 - - filename.mp4 u=extrainfo - - - - http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo

2011-12-19 15:22:51 EET create stream INFO 200 filename.mp4 - _defaultVHost_ vod _definst_ 0.0 xxx.xxx.xxx.xxx 1935 http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo xxx.xxx.xxx.xxx http (cupertino) - AppleCoreMedia/1.0.0.8C148a (iPhone; U; CPU OS 4_2_1 like Mac OS X; fi_fi) 125803265 0 0 2 0 0 0 filename.mp4 u=extrainfo - - - - http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo

2011-12-19 15:22:51 EET comment server WARN 404 filename.mp4 MediaReaderH264.open[1]: java.io.FileNotFoundException: X:\pathtofile\filename.mp4 (The system cannot find the path specified) - - - 1.906 - - - - - - - - - - - - - - - - - - - - - - - - -
2011-12-19 15:22:51 EET comment server ERROR 500 - MediaReaderH264Cupertino.indexFile:java.lang.NullPointerException - - - 1.906 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-12-19 15:23:17 EET destroy stream INFO 200 filename.mp4 - _defaultVHost_ vod _definst_ 27.599 xxx.xxx.xxx.xxx 1935 http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo xxx.xxx.xxx.xxx http (cupertino) - Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; fi-fi) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148a Safari/6533.18.5 46857469 0 288 1 0 0 0 filename.mp4 u=extrainfo - - - - http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo

2011-12-19 15:23:17 EET disconnect cupertino INFO 200 46857469 - _defaultVHost_ vod _definst_ 27.864 xxx.xxx.xxx.xxx 1935 http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo xxx.xxx.xxx.xxx http (cupertino) - Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; fi-fi) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148a Safari/6533.18.5 46857469 0 288 - 0 - - filename.mp4 u=extrainfo - - - - http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo

2011-12-19 15:23:25 EET destroy stream INFO 200 filename.mp4 - _defaultVHost_ vod _definst_ 34.054 xxx.xxx.xxx.xxx 1935 http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo xxx.xxx.xxx.xxx http (cupertino) - AppleCoreMedia/1.0.0.8C148a (iPhone; U; CPU OS 4_2_1 like Mac OS X; fi_fi) 125803265 0 533 2 0 0 0 filename.mp4 u=extrainfo - - - - http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo

2011-12-19 15:23:25 EET disconnect cupertino INFO 200 125803265 - _defaultVHost_ vod _definst_ 35.96 xxx.xxx.xxx.xxx 1935 http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo xxx.xxx.xxx.xxx http (cupertino) - AppleCoreMedia/1.0.0.8C148a (iPhone; U; CPU OS 4_2_1 like Mac OS X; fi_fi) 125803265 0 533 - 0 - - filename.mp4 u=extrainfo - - - - http://xxx.xxx.xxx.xxx:1935/vod/mp4:...u8?u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo http://xxx.xxx.xxx.xxx:1935/vod/mp4:.../playlist.m3u8 u=extrainfo

2011-12-19 15:24:25 EET app-stop application INFO 200 _definst_ vod/_definst_ - - - 149.027 - - - - - - - - - - - - - - - - - - - - - - - - -

Both stand alone and as service are running on Wowza 3.0.3

What comes to my knowledge I'm not mixing up VOD and live. Though, I have configured ModuleRequireSecureConnection, Hotlink denial and domain lock to application.xml file. Could these have something to do with the issue?
I have tried with http (iOS) and rtsp (Android) with same result.

I think this has nothing to do with user priviledges because I have tried to run Wowza as a service with same account what is running the stand alone OK.

My application.xml file in conf/vod folder
<Root>
<Application>
<!-- Uncomment to set application level timeout values
<ApplicationTimeout>60000</ApplicationTimeout>
<PingTimeout>12000</PingTimeout>
<ValidationFrequency>8000</ValidationFrequency>
<MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
<MaximumSetBufferTime>60000</MaximumSetBufferTime>
<MaximumStorageDirDepth>25</MaximumStorageDirDepth>
-->
<Connections>
<AutoAccept>true</AutoAccept>
<AllowDomains></AllowDomains>
</Connections>
<!--
StorageDir path variables

${com.wowza.wms.AppHome} - Application home directory${com.wowza.wms.ConfigHome} - Configuration home directory
${com.wowza.wms.context.VHost} - Virtual host name${com.wowza.wms.context.VHostConfigHome} - Virtual host config directory
${com.wowza.wms.context.Application} - Application name${com.wowza.wms.context.ApplicationInstance} - Application instance name

-->
<Streams>
<StreamType>default</StreamType>
<!--<StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>--> <StorageDir>X:\path\to\folder\</StorageDir> <KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
<!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater, sanjosestreamingrepeater, dvrstreamingpacketizer, dvrstreamingrepeater -->
<LiveStreamPacketizers></LiveStreamPacketizers>
<!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
<Properties>
</Properties>
</Streams>
<Transcoder>
<!-- To turn on transcoder set to: transcoder -->
<LiveStreamTranscoder></LiveStreamTranscoder>
<!-- [templatename].xml or ${SourceStreamName}.xml --> <Templates>${SourceStreamName}.xml,transrate.xml</Templates>
<ProfileDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles</ProfileDir> <TemplateDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/templates</TemplateDir>
<Properties>
</Properties>
</Transcoder>

<DVR>
<!-- As a single server or as an origin, use dvrstreamingpacketizer in LiveStreamPacketizers above -->
<!-- Or, in an origin-edge configuration, edges use dvrstreamingrepeater in LiveStreamPacketizers above -->
<!-- As an origin, also add dvrchunkstreaming to HTTPStreamers below -->

<!-- To turn on DVR recording set Recorders to dvrrecorder. This works with dvrstreamingpacketizer -->
<Recorders></Recorders>

<!-- As a single server or as an origin, set the Store to dvrfilestorage-->
<!-- edges should have this empty --> -->
<Store></Store>

<!-- Window Duration is length of live DVR window in seconds. 0 means the window is never trimmed. -->
<WindowDuration>0</WindowDuration>

<!-- Storage Directory is top level location where dvr is stored. e.g. c:/temp/dvr -->
<StorageDir>\${com.wowza.wms.context.VHostConfigHome}/dvr</StorageDir>

<!-- valid ArchiveStrategy values are append, version, delete -->
<ArchiveStrategy>append</ArchiveStrategy>

<!-- If this is a dvrstreamingrepeater, define ChunkOriginURL to point back to origin -->
<!-- And define Application/Repeater/OriginURL to point back to the origin -->
<Repeater>
<ChunkOriginURL></ChunkOriginURL>
</Repeater>

<!-- Properties for DVR -->
<Properties>
</Properties>
</DVR>

<!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming, sanjosestreaming, dvrchunkstreaming -->
<HTTPStreamers>cupertinostreaming,smoothstreaming,sanjosestreaming</HTTPStreamers>
<SharedObjects>
<StorageDir></StorageDir>
</SharedObjects>
<Client>
<IdleFrequency>-1</IdleFrequency>
<Access>
<StreamWriteAccess>*</StreamWriteAccess>
<StreamAudioSampleAccess></StreamAudioSampleAccess>
<StreamVideoSampleAccess></StreamVideoSampleAccess>
<SharedObjectWriteAccess>*</SharedObjectWriteAccess>
</Access>
</Client>
<RTP>
<!-- RTP/Authentication/[type]Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
<Authentication>
<PublishMethod>digest</PublishMethod>
<PlayMethod>none</PlayMethod>
</Authentication>
<!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->
<AVSyncMethod>senderreport</AVSyncMethod>
<MaxRTCPWaitTime>12000</MaxRTCPWaitTime>
<IdleFrequency>75</IdleFrequency>
<RTSPSessionTimeout>90000</RTSPSessionTimeout>
<RTSPMaximumPendingWriteBytes>0</RTSPMaximumPendingWriteBytes>
<IncomingDatagramPortRanges>*</IncomingDatagramPortRanges>
<!-- Properties defined here will override any properties defined in conf/RTP.xml for any depacketizers loaded by this application -->
<Properties>
</Properties>
</RTP>
<MediaCaster>
<!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
<Properties>
</Properties>
</MediaCaster>
<!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications -->
<Properties>
</Properties>
<MediaWriter>
<!-- Properties defined here will override any properties defined in conf/MediaWriter.xml for any MediaWriter loaded by this applications -->
<Properties>
</Properties>
</MediaWriter>
<LiveStreamPacketizer>
<!-- Properties defined here will override any properties defined in conf/LiveStreamPacketizers.xml for any LiveStreamPacketizers loaded by this applications -->
<Properties>
</Properties>
</LiveStreamPacketizer>
<HTTPStreamer>
<!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
<Properties>
</Properties>
</HTTPStreamer>
<Repeater>
<OriginURL></OriginURL>
<QueryString><![CDATA[]]></QueryString>
</Repeater>
<Modules>
<Module>
<Name>base</Name>
<Description>Base</Description>
<Class>com.wowza.wms.module.ModuleCore</Class>
</Module>
<Module>
<Name>properties</Name>
<Description>Properties</Description>
<Class>com.wowza.wms.module.ModuleProperties</Class>
</Module>
<Module>
<Name>logging</Name>
<Description>Client Logging</Description>
<Class>com.wowza.wms.module.ModuleClientLogging</Class>
</Module>
<Module>
<Name>flvplayback</Name>
<Description>FLVPlayback</Description>
<Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
</Module>
<Module>
<Name>ModuleRequireSecureConnection</Name>
<Description>ModuleRequireSecureConnection</Description>
<Class>com.wowza.wms.plugin.security.ModuleRequireSecureConnection</Class>
</Module>
<Module>
</Module>
</Modules>
<!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->
<Properties>
<Property>
<Name>domainLock</Name>
<Value>my.domain.com</Value>
</Property>
</Properties>
</Application>
</Root>

5. Wowza Support
Join Date
Dec 2007
Posts
22,013
Is there anything unusual about the StorageDir location? Is it a mapped drive, or somesuch? If so, can you try with local drive, use the default content location.

If that does not provide a clue/solution, then can you shutdown Wowza, clean out the access log (or just delete it), then do these tests:

Start Wowza in stand alone mode, test vod, and shutdown.
Start the Wowza service, test vod, and shutdown.

Then zip up conf and logs folders and send to support@wowza.com

Richard

6. Junior Member
Join Date
Dec 2011
Posts
6
I've tried both locations (mapped and default). There's no difference.
Shall I run the tests with default storage location or mapped location? Or both?

7. Wowza Support
Join Date
Dec 2007
Posts
22,013
If you have same with default location, test with that.

Richard

8. Senior Member
Join Date
Mar 2011
Posts
1,763
Hi jarrype,

There is no difference between the service and standalone methods. The service just places a script in your startup scripts dir to start the standalone Wowza on bootup.

It must be a permissions issue.

1. What OS?
2. What user are you running the standalone version as?
3. What are the permissions of your Wowza dir, and your content dir?

In Linux: ls -la
In Windows: cacls *

9. Junior Member
Join Date
Dec 2011
Posts
6
Changed
<StorageDir>X:\path\to\folder\</StorageDir>
to
<StorageDir>\\sharename\path\to\folder\</StorageDir>

Now it works. Stand alone mode works because it can use the mapped location X: but wowza running as service cannot use mapped location X:. So StorageDir must be sharename NOT mapped location.

#### Posting Permissions

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