Hi,
I’m trying to follow the (EC2 Wowza guide) on page 23. I want to try and automate my install with startup packages. However, I get the following in the wowzastreamingengine_startup.log. I’m just using the regular unmodified startup packages at the moment. I’ve tried default_3.6.0 and vods3 packages.
0 [main] INFO com.wowza.amazon.ec2.install.InstallCommands - Installer.doAmazonInstall
4 [main] INFO com.wowza.amazon.ec2.install.InstallCommands - userdata-url: http://169.254.169.254/2007-08-29/user-data
8 [main] INFO com.wowza.amazon.ec2.install.InstallCommands - userdata-destination: /opt/working/userdata.zip
156 [main] INFO com.wowza.amazon.ec2.install.InstallCommands - userdata-isbase64: false
158 [main] INFO com.wowza.amazon.ec2.install.InstallCommands - unzip: /opt/working/userdata.zip
161 [main] ERROR com.wowza.util.ZipUtils - ZipUtils.unzipFile: java.util.zip.ZipException: error in opening zip file
163 [main] INFO com.wowza.amazon.ec2.install.InstallCommands - result: /opt/working
223 [main] ERROR com.wowza.amazon.ec2.install.Installer - Installer.install: startup.xml file cannot be found at root of startup package. Check to be sure your startup package is properly zipped. It could contain too deep a directory structure.
So I tried to unzip the file myself at /opt/working and get the error below. Any idea what is going wrong? The package zip file is 4.4kb in size so should be within limits.
[ec2-user@ip-172-31-16-124 working]$ unzip userdata.zip
Archive: userdata.zip
error [userdata.zip]: missing 227764324 bytes in zipfile
(attempting to process anyway)
error [userdata.zip]: attempt to seek before beginning of zipfile
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)