Hello
Murali,
Yes that works! My problem came from the appliance.xml file setupscript made. In the setupscript it reads:
FQ_HOSTNAME=`hostname -f`
# Create an appliances.xml file and set up this appliance's identity.
cat > ${DEPLOY_DIR}/appliances.xml <<EOF
<appliances>
<appliance>
<identity>appliance0</identity>
<cluster_inetport>${FQ_HOSTNAME}:16670</cluster_inetport>
<mgmt_url>http://${FQ_HOSTNAME}:17665/mgmt/bpl</mgmt_url>
<engine_url>http://${FQ_HOSTNAME}:17666/engine/bpl</engine_url>
<etl_url>http://${FQ_HOSTNAME}:17667/etl/bpl</etl_url>
<retrieval_url>http://localhost:17668/retrieval/bpl</retrieval_url>
<data_retrieval_url>http://${FQ_HOSTNAME}:17668/retrieval</data_retrieval_url>
</appliance>
</appliances>
EOF
In the quickstart script it reads:
cat > "${ARCHAPPL_APPLIANCES}" <<EOF
<appliances>
<appliance>
<identity>appliance0</identity>
<cluster_inetport>localhost:16670</cluster_inetport>
<mgmt_url>http://localhost:17665/mgmt/bpl</mgmt_url>
<engine_url>http://localhost:17665/engine/bpl</engine_url>
<etl_url>http://localhost:17665/etl/bpl</etl_url>
<retrieval_url>http://localhost:17665/retrieval/bpl</retrieval_url>
<data_retrieval_url>http://${FQ_HOSTNAME}:17665/retrieval</data_retrieval_url>
</appliance>
</appliances>
EOF
On the bold line in the setupscript is gives localhost and on the other lines it uses the hostname (which didn’t work on this default linux setup). I put everything
to “localhost” by copying the Quickstart “appliance.xml” and then I broke the port numbers. After putting the portnumbers back and changing everything to localhost, it started
to archive. I guess that I should sort out the hostname on this VM but I believe that caused this issue.
Best regards,
Rory
Rory Clarke
Electrical and Controls Systems Group
Daresbury Laboratory
Keckwick Lane
Warrington
Cheshire
WA4 4AD
E:
[email protected]
T:
01925 60 Ext. 3172
From: Shankar, Murali [mailto:[email protected]]
Sent: 21 June 2016 19:45
To: Clarke, Rory (STFC,DL,TECH)
Subject: Fw: Archiver Appliance stuck in "Initail sampling" state
Apologies; forgot to cc you.
Regards,
Murali
From: Shankar, Murali
Sent: Tuesday, June 21, 2016 11:39 AM
To: [email protected]
Subject: Re: Archiver Appliance stuck in "Initail sampling" state
>> I also changed the “appliance.xml” file to match the quickstart demo version
The quickstart.sh and single_machine_install.sh are fundamentally two different deployment models. The "quickstart.sh" runs all the
WAR files in a single Tomcat instance; thus all the ports in your appliance.xml will be 17665.
The "single_machine_install.sh" uses four separate tomcat instances; one each for each of the components. Your "sampleStartup.sh"
will start up four different tomcat's; each of which listen on different ports. This is probably the reason why you are getting this exception
java.io.IOException: Invalid status calling
http://localhost:17665/engine/bpl/getVersion. Got 404Not Found
I would first try to reuse you original appliances.xml. Make sure the four component start up correctly without exceptions first.
If you need more help, ping feel free to ping me offline.
Regards,
Murali