Howdy - running Wowza on a cloud based Ubuntu instance. We take the server down when we don’t need it, but Wowza won’t start when we bring the instance back up. To start it, i can ssh in, switch to root and enter
/etc/init.d/WowzaStreamingEngine start
/etc/init.d/WowzaStreamingEngineManager start
and the server will start without any problems.
In the boot.log file, i see this:
ERROR: The Java command (java) could not be found.
Search path: /sbin:/usr/sbin:/bin:/usr/bin
In most cases this problem can be fixed by adding a symbolic
link to the Java command in the /usr/bin directory.
To do this first execute the command "which java" to identify
the full path to the Java executable. Next, create a symbolic
link to this file with the command
"ln -sf [path-to-java] /usr/bin/java" where [path-to-java] is
the path returned by the "which" command.
I have java downloaded and unpacked in
/use/jre/jdk1.8.0_05/
and i altered my /etc/enviroment file to look like this:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/jre/jdk1.8.0_05/bin"
JAVA_HOME="/usr/jre/jdk1.8.0_05/"
It’s barebones Ubuntu 13.10 and other than that, there are no issues. Not sure what i am missing to get Wowza to find java at boot time.
thx, gw