Results 1 to 3 of 3

Thread: Netstream init failed when running as a service on Mac

  1. #1
    Join Date
    Jan 2010
    Posts
    12

    Default Netstream init failed when running as a service on Mac

    My apologies if this is a stupid question, but I can't find the solution in the docs or forum. I have been building and testing a Flash recording app by starting Wowza using the Wowza Startup.app that gets put into the Applications folder on the Mac. Everything is fine that way, but now I want to run Wowza as a service. I used the sudo command from the documentation to start it as a service and it starts with no errors, but I'm getting an error in Flash when it tries to initialize the stream connection. Any ideas why?

  2. #2
    Join Date
    Dec 2007
    Posts
    25,881

    Default

    Make sure it is really shutdown before you start the service. You might want to stop the service, and run /bin/shutdown.sh, then start the service again.

    And check the logs to see that it really started up correctly, look for errors binding to 1935, which means another instance is running.

    Richard

  3. #3

    Default

    There is an error in the service file. Change the contents of the following file:

    /Library/LaunchDaemons/com.wowza.WowzaMediaServer.plist

    to:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
            <key>Disabled</key>
            <true/>
            <key>Label</key>
            <string>com.wowza.WowzaMediaServer</string>
            <key>OnDemand</key>
            <false/>
            <key>ProgramArguments</key>
            <array>
                    <string>/Library/WowzaMediaServer/bin/WowzaMediaServerOSX</string>
            </array>
            <key>RunAtLoad</key>
            <true/>
            <key>ServiceDescription</key>
            <string>Wowza Media Server</string>
            <key>StandardErrorPath</key>
            <string>/Library/WowzaMediaServer/logs/launchd.stderr</string>
            <key>StandardOutPath</key>
            <string>/Library/WowzaMediaServer/logs/launchd.stdout</string>
            <key>UserName</key>
            <string>root</string>
            <key>WorkingDirectory</key>
            <string>/Library/WowzaMediaServer/bin/</string>
    </dict>
    </plist>
    Charlie

Posting Permissions

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