Uploading new WAR file in ODK Aggregate VM 1.4.0.0

Hey all,

I'm trying to switch from Aggregate VM 1.2.0.1 to 1.4.0.0. I downloaded it, along with VMware Player, and it all ran fine.

Now I also have specific instructions as to how to create the Database.sql file and a new .WAR file, by runing the Agg 1.4 installer (https://code.google.com/p/opendatakit/downloads/list?can=3&q=&colspec=Filename+Summary+Uploaded+ReleaseDate+Size+DownloadCount, using windows). That I have done as well. I AM NOT installing aggregate with the installer, I am ONLY running it to create the DB and the .WAR file.

Now my problems is that I don't know how to move my .WAR file and database.sql files into the VM, as it is on a virtual disk (using VM player). I tried to MAP the virtual disk (a few different way) but I can't map it for some reason.

At the end of the instructions, I also have this as to how to do this but I just don't understand it:

Once you have the WAR and SQL file, move it the config folder.

Move ODKAggregate.war and create_db_and_user.sql to aggregate-vm/config.

$ scp ~/Desktop/ODKAggregate/ODKAggregate.war ubuntu:~/aggre
gate-vm/config/;

$ scp ~/Desktop/ODKAggregate/create_db_and_user.sql ubuntu:~
/aggregate-vm/config/;

Any help appreciated!

Francis

Hi Francis,

Easiest thing to do is to use ODK Briefcase to download all the data
and forms from your 1.2 VM, and push them to the 1.4 VM. Try that
first.

Yaw

ยทยทยท -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Wed, Jan 8, 2014 at 5:37 AM, francisvachon.it@gmail.com wrote:

Hey all,

I'm trying to switch from Aggregate VM 1.2.0.1 to 1.4.0.0. I downloaded it, along with VMware Player, and it all ran fine.

Now I also have specific instructions as to how to create the Database.sql file and a new .WAR file, by runing the Agg 1.4 installer (https://code.google.com/p/opendatakit/downloads/list?can=3&q=&colspec=Filename+Summary+Uploaded+ReleaseDate+Size+DownloadCount, using windows). That I have done as well. I AM NOT installing aggregate with the installer, I am ONLY running it to create the DB and the .WAR file.

Now my problems is that I don't know how to move my .WAR file and database.sql files into the VM, as it is on a virtual disk (using VM player). I tried to MAP the virtual disk (a few different way) but I can't map it for some reason.

At the end of the instructions, I also have this as to how to do this but I just don't understand it:

Once you have the WAR and SQL file, move it the config folder.

Move ODKAggregate.war and create_db_and_user.sql to aggregate-vm/config.

$ scp ~/Desktop/ODKAggregate/ODKAggregate.war ubuntu:~/aggre
gate-vm/config/;

$ scp ~/Desktop/ODKAggregate/create_db_and_user.sql ubuntu:~
/aggregate-vm/config/;

Any help appreciated!

Francis

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

I wasn't able to do it with Briefcase, but I was able to upload the new WAR file on an online server and download it by logging into the VM.

I logged in the vm (user/agggregate and used aggregate as root password when needed). I placed the WAR file in the right directory and then ran config-war.sh to unpack the new WAR file. That went ok.

But now, when I try to log into Aggregate from my web browser (like I would just to load things or manage forms) the following happens:

HTTP status 404
type: status report
Description: The requested ressource() is not available.

Apache Tomcat/6.0.35

It is different from if I just enter the wrong IP address, or if I enter the address with the VM not running/or Tomcat stopped, which I tried to see how it works.

That leads me to think that there is something wrong the either the IP address that the VM is giving me (it hasn't changed since I installed the new WAR file)

I also tried to install a WAR file generated from Aggregate 1.4.0.0 installer (without changing anything to it, just unloading it straight as it came from running the installer), and the exact same thing happens.

Now I've been wandering around inside the VM directories, but I can't figure what files I need to check to fix this.

Any clues as to what files I should look into?