In a follow up to our popular blog post describing the process of getting AMTU 1 set up on a Centos server, this post describes how to get the latest version 2 of AMTU running.
Things have moved on and thankfully it is a lot easier than it was.
Firstly get Sun Java installed. You will need to get the URL for downloading the RPM from here:
http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1637588.html
Accept the agreement, download the correct RPM version and then pause it. Copy the download URL and paste it into this command:
cd /tmp wget [paste-url]-here] rpm - jre [hit tab to complete]
Now check the correct java version is being used:
java -version
You should get something looking like:
[root@94 tmp]# java -version java version "1.7.0_05" Java(TM) SE Runtime Environment (build 1.7.0_05-b06) Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
Now you can install AMTU
wget https://d28hcfptedr5ia.cloudfront.net/install/AMTU_unix.sh chmod +x AMTU_unix.sh ./AMTU_unix.sh
Keep hitting enter to get to the bottom of the terms and then agree, agree to all the other options. That is AMTU installed.
The final step is to configure this using the CLI configure utitlity.
You need to create an xml file for the AMTU configuration. You can see a sample file in /opt/amtu/xml/sample.xml.
Lets copy that file and then edit it accordingly.
cd /opt/amtu/xml cp sample.xml configuration.xml vim configuration.xml
You do need to be signed up for MWS to get some of the keys etc that are required. If not already, go to this page and hit the sign up button.
https://developer.amazonservices.co.uk/index.html
Once you have updated the XML configuration you run this command to apply it:
/opt/amtu/Utilities/configure SETUP /opt/amtu/xml/configuration.xml
If you get some error messages at this point, edit the configuration and try again. Once you have the configuration set you can start the daemon.
/opt/AMTU/Utilities/amtu_daemon start

Hi, Have you had any issues with amtu service stopping. We are running centos6 with java 1.6.0_24 and are getting multiple failures a day. Wondering if we should upgrade to java 1.7. Any response would be appreciated.
Hey I specified /var/opt/amtu/documenttransport as the transport dir, and chowned it to my user, but when i run the config, none of the folder structure gets created in there (outgoing, sent, reports, etc…). Did I miss something?
Hard to say Jeff, what happens if you try chmodding the directory to 777?
777 Didn’t work either
Here’s the output from configure:
Database instance started successfully with driverorg.apache.derby.jdbc.EmbeddedDriver
Welcome to Amazon Merchant Transport Utility version 2.2.0 Configuration Utility!
Start processing Seller Account #1…
POST
mws.amazonservices.com
/
AWSAccessKeyId=XXXX&Action=GetFeedSubmissionCount&Merchant=XXXX&SignatureMethod=XXXX&SignatureVersion=2&Timestamp=2012-10-04T17%3A12%3A37.424Z&Version=2009-01-01
Successfully updated seller account alias=XXXX, accessKeyId=XXXX, secretAccessKey=XXXX, documentTransport=/var/opt/amtu2/DocumentTransport
Database instance shutdown successfully
Request completed successfully.
Also, here’s my /var/opt/amtu2/DocumentTransport dir:
drwxrwxrwx 2 syncserv syncserv 4096 2012-10-04 13:12 DocumentTransport
Well I got it working by rm -f /home//amtu2 and then doing the configure. HOWEVER, now the daemon will not run… lol this is pretty bad, especially since it’s from amazon…
I run the command:
/opt/AMTU/Utilities/amtu_service start
And it says “Starting amtu_daemon”
Then I run:
/opt/AMTU/Utilities/amtu_daemon status
And it says “The daemon is stopped.”