MattL320 Posted July 21, 2019 Posted July 21, 2019 I am trying to install the mirror sync application on an ec2 linux instance and I am having trouble. I copy the war file into the /var/lib/tomcat8/webapps directory. Nothing happens after that except that I get a new folder in the /etc/tomcat8/Catalina/localhost directory called MirrorSync.xml, which I edited as I needed with username/password/hash. But, the MirrorSync folder that is supposed to populate in the webapps folder does not populate. So I basically end up with nothing and can't obviously run the set up. Any thoughts? Also, my linux is a little rusty (been a few years). But, I installed java, tomcat8, removed tomcat7 (which comes on an ec2 instance standard), set up tomcat without an issue. I configured the tomcat installation and can access it with my w3m editor at http://localhost:8080. Can't access the .../mirrorsync address though obviously as the war file doesn't seem to explode or create the mirrorsync directory with all of the classes.
Jesse Barnum Posted July 22, 2019 Posted July 22, 2019 What happens if you try the URL http://localhost:8080/MirrorSync (Capital M and S are important)? Also, make sure that Tomcat has write permissions to that webapps directory. Do some google for 'unpackWAR', that's the setting that controls whether or not to expand the .war file into a directory. We have that set to true in the MirrorSync.war file, but it's possible that some setting in Tomcat is overriding it.
MattL320 Posted July 22, 2019 Author Posted July 22, 2019 Hi Jesse— Thank you for the reply. Crazy but when I go to that web address today, it works. Didn't yesterday. Still, I don't see the WAR unpacked anywhere in the /var/lib/tomcat8/webapps folder. Did it possibly unpack in another location?
Jesse Barnum Posted July 22, 2019 Posted July 22, 2019 Not sure if it might have unpacked to another location - it's also possible for Tomcat to run the webapp directly from the compressed .war file without unpacking it at all (that's what the unpackWAR setting is for).
MattL320 Posted July 22, 2019 Author Posted July 22, 2019 So I ran the command unzip -qq /var/lib/tomcat8/webapps/MirrorSync.war -d /var/lib/tomcat8/webapps and as you can see it created those new files in that webapps directory. Still don't see the MirrorSync directory. I assumed it would be created automatically by the war file. Do I need to run one of these files? Thank you for the help! So if I can access the http://localhost:8080/MirrorSync then I'm good?
MattL320 Posted July 22, 2019 Author Posted July 22, 2019 Hey Jesse! That worked out for me but when I try to connect, I have an issue. I will post the screenshot with the error message I get. Mirror sync is set up to log in with an account I created for mirror sync. I wonder if there is anything I need to do for this account to make it work.
MattL320 Posted July 22, 2019 Author Posted July 22, 2019 Even with my EC2-User account, it will not let me. Seems like it should be a port issue.
MattL320 Posted July 25, 2019 Author Posted July 25, 2019 Jesse, Thank you for your help. As soon as I opened up the security group, I was able to finish the set up process and run a sync. Excellent product and superb support. I really appreciate your help! M.
Jesse Barnum Posted July 25, 2019 Posted July 25, 2019 That's great Matt, sometimes a screen share is worth a thousand posts 🙂
Recommended Posts
This topic is 2038 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now