<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">It might well contribute to the fix actually Dave.<div><br></div><div>This is just a hunch, but&nbsp;<a href="http://docs.ansible.com/get_url_module.html">http://docs.ansible.com/get_url_module.html</a>&nbsp;seems to suggest that Ansible enforces a 10 minute timeout, and from private Skype chat, Santiago suggests it fails after 10 minutes.</div><div><br></div><div>When I get a chance I’ll bump my ansible version to 1.8+ and try and see if increasing the timeout works, artificially slowing down my network, to see if that is the cause.</div><div><br></div><div>Cheers,</div><div>Tim</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div><div>On 23 Sep 2014, at 12:14, &lt;<a href="mailto:David.Martin@csiro.au">David.Martin@csiro.au</a>&gt; &lt;<a href="mailto:David.Martin@csiro.au">David.Martin@csiro.au</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Santiago,<br><br>This isn't a fix for your problem, but might speed up testing.<br>In your local version of the ala-install project, open the file /ansible/roles/common/tasks/setfacts.yml [1] and uncomment &nbsp;the section that starts with:<br><br>- name: set remote repositories (Amazon CDN)<br><br>and then comment out the section that starts with:<br><br>- name: set remote repositories (ALA)<br><br>like so [2] then this should use Amazon CDN for the artefacts which will hopefully be quicker from Europe. This should then (hopefully) speed up running of the ansible scripts. Note: we havent fully tested this yet with the CDN.<br><br>Cheers<br><br>Dave<br><br>[1] <a href="https://github.com/AtlasOfLivingAustralia/ala-install/blob/master/ansible/roles/common/tasks/setfacts.yml">https://github.com/AtlasOfLivingAustralia/ala-install/blob/master/ansible/roles/common/tasks/setfacts.yml</a><br>[2] <a href="https://gist.github.com/djtfmartin/1badaafd263fa517273c">https://gist.github.com/djtfmartin/1badaafd263fa517273c</a><br><br>________________________________________<br>From: <a href="mailto:ala-portal-bounces@lists.gbif.org">ala-portal-bounces@lists.gbif.org</a> [<a href="mailto:ala-portal-bounces@lists.gbif.org">ala-portal-bounces@lists.gbif.org</a>] on behalf of Santiago Martinez de la Riva [<a href="mailto:sama@gbif.es">sama@gbif.es</a>]<br>Sent: 23 September 2014 19:24<br>To: Tim Robertson<br>Cc: <a href="mailto:ala-portal@lists.gbif.org">ala-portal@lists.gbif.org</a><br>Subject: Re: [Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??<br><br>I've checked it in my server, and I can download the war file with both users. Obviously if I try to download the war file only like ubuntu user the system tells me that I dont have permissions. But always I execute the ansible-playbook with sudo and with the root user of my server, but it is strange because when i execute the ansible script, the script is able to download in my webapp directory the solr application. I don't understand what is the difference between solr and ala apps.<br><br>Thanks Tim.<br>Cheers,<br>Santi<br>---------------------------------------------------------------------------------------<br>Santiago Martínez de la Riva<br>GBIF.ES, Unidad de Coordinación &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel. +34 91 4203017 x 273<br>Real Jardín Botánico - CSIC &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fax +34 91 429 2405<br>Plaza de Murillo, 2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:sama@gbif.es">sama@gbif.es</a><br>28014 Madrid, Spain &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.gbif.es">www.gbif.es</a><br><br>________________________________________<br>De: Tim Robertson [<a href="mailto:trobertson@gbif.org">trobertson@gbif.org</a>]<br>Enviado el: martes, 23 de septiembre de 2014 11:05<br>Para: Santiago Martinez de la Riva<br>CC: <a href="mailto:ala-portal@lists.gbif.org">ala-portal@lists.gbif.org</a><br>Asunto: Re: [Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??<br><br>Hi Santiago<br><br>This is worth getting to the bottom of… what happens if you SSH on to your machine and issue wget <a href="http://maven.ala.org.au/repository/au/org/ala/biocache-service/1.2/biocache-service-1.2.war">http://maven.ala.org.au/repository/au/org/ala/biocache-service/1.2/biocache-service-1.2.war</a> in /tmp please?<br><br>Can you try that both as the root user and the sama user please?<br><br><br>Thanks,<br>Tim<br><br><br>On 23 Sep 2014, at 10:55, Santiago Martinez de la Riva &lt;<a href="mailto:sama@gbif.es">sama@gbif.es</a>&gt; wrote:<br><br><blockquote type="cite">I'm commenting all line in the ansible script that specify the downloaded of .war files. I don´t know what happens in my server, but I can't download anything through the ansible script when these files are hosted on the ala maven repository. Then I'm loading manually all war files and commenting this lines in the main.yml files. I hope this works. Thanks for the advice, Tim.<br><br>Cheers,<br>Santi<br>---------------------------------------------------------------------------------------<br>Santiago Martínez de la Riva<br>GBIF.ES, Unidad de Coordinación &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel. +34 91 4203017 x 273<br>Real Jardín Botánico - CSIC &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fax +34 91 429 2405<br>Plaza de Murillo, 2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:sama@gbif.es">sama@gbif.es</a><br>28014 Madrid, Spain &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.gbif.es">www.gbif.es</a><br><br>________________________________________<br>De: Tim Robertson [<a href="mailto:trobertson@gbif.org">trobertson@gbif.org</a>]<br>Enviado el: lunes, 22 de septiembre de 2014 15:23<br>Para: Santiago Martinez de la Riva<br>CC: <a href="mailto:ala-portal@lists.gbif.org">ala-portal@lists.gbif.org</a><br>Asunto: Re: [Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??<br><br>If it is already downloaded, what happens if you simply comment out that step?<br><br>Cheers,<br>Tim<br><br><br>On 22 Sep 2014, at 15:16, Santiago Martinez de la Riva &lt;<a href="mailto:sama@gbif.es">sama@gbif.es</a>&gt; wrote:<br><br><blockquote type="cite">Yeah of course, but the problem is that this war file already has been downloaded in my webapp directory, but the ansible script does not continue with the installation process. I'm going to continue waiting.<br><br>Thanks.<br>Santi<br>---------------------------------------------------------------------------------------<br>Santiago Martínez de la Riva<br>GBIF.ES, Unidad de Coordinación &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel. +34 91 4203017 x 273<br>Real Jardín Botánico - CSIC &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fax +34 91 429 2405<br>Plaza de Murillo, 2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:sama@gbif.es">sama@gbif.es</a><br>28014 Madrid, Spain &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.gbif.es">www.gbif.es</a><br><br>________________________________________<br>De: Tim Robertson [<a href="mailto:trobertson@gbif.org">trobertson@gbif.org</a>]<br>Enviado el: lunes, 22 de septiembre de 2014 14:27<br>Para: Santiago Martinez de la Riva<br>CC: <a href="mailto:ala-portal@lists.gbif.org">ala-portal@lists.gbif.org</a><br>Asunto: Re: [Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??<br><br>Hi Santi<br><br>There is no error on there… it is saying that it is downloading the war file [1] which will take many minutes as it is 110MB.<br>Can you please let it run until there is an actual error reported and paste that?<br><br>Thanks,<br>Tim<br><br>[1] <a href="http://maven.ala.org.au/repository/au/org/ala/biocache-service/1.2/biocache-service-1.2.war">http://maven.ala.org.au/repository/au/org/ala/biocache-service/1.2/biocache-service-1.2.war</a><br><br><br>On 22 Sep 2014, at 14:11, Santiago Martinez de la Riva &lt;<a href="mailto:sama@gbif.es">sama@gbif.es</a>&gt; wrote:<br><br><blockquote type="cite">Hi Tim,<br><br>The last message that I see It's this:<br><br>TASK: [biocache-service | copy biocache webapps] ******************************<br>&lt;193.146.75.166&gt; ESTABLISH CONNECTION FOR USER: root<br>&lt;193.146.75.166&gt; REMOTE_MODULE get_url url=<a href="http://maven.ala.org.au/repository/au/org/ala/biocache-service/1.2/biocache-service-1.2.war">http://maven.ala.org.au/repository/au/org/ala/biocache-service/1.2/biocache-service-1.2.war</a> dest=/var/lib/tomcat7/webapps/biocache-service.war force=yes<br>&lt;193.146.75.166&gt; EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/sama/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'IdentityFile=/home/sama/Downloads/accessALA.pem', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', '193.146.75.166', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1411388014.15-195338030013948 &amp;&amp; echo $HOME/.ansible/tmp/ansible-tmp-1411388014.15-195338030013948'"]<br>&lt;193.146.75.166&gt; PUT /tmp/tmpn4DELS TO /root/.ansible/tmp/ansible-tmp-1411388014.15-195338030013948/get_url<br>&lt;193.146.75.166&gt; EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/sama/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'IdentityFile=/home/sama/Downloads/accessALA.pem', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', '193.146.75.166', "/bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1411388014.15-195338030013948/get_url; rm -rf /root/.ansible/tmp/ansible-tmp-1411388014.15-195338030013948/ &gt;/dev/null 2&gt;&amp;1'"]<br><br>Cheers,<br>Santi.<br><br>---------------------------------------------------------------------------------------<br>Santiago Martínez de la Riva<br>GBIF.ES, Unidad de Coordinación &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel. +34 91 4203017 x 273<br>Real Jardín Botánico - CSIC &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fax +34 91 429 2405<br>Plaza de Murillo, 2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:sama@gbif.es">sama@gbif.es</a><br>28014 Madrid, Spain &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.gbif.es">www.gbif.es</a><br><br>________________________________________<br>De: Tim Robertson [<a href="mailto:trobertson@gbif.org">trobertson@gbif.org</a>]<br>Enviado el: lunes, 22 de septiembre de 2014 13:57<br>Para: Santiago Martinez de la Riva<br>CC: <a href="mailto:ala-portal@lists.gbif.org">ala-portal@lists.gbif.org</a><br>Asunto: Re: [Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??<br><br>Hola Santiago,<br><br>Can you please give us some more information?<br>If you run it in very verbose mode (-vvvv) and put the output terminal somewhere we can see it, it should be easier to diagnose the problem.<br><br>Thanks,<br>Tim<br><br><br>On 22 Sep 2014, at 13:36, Santiago Martinez de la Riva &lt;<a href="mailto:sama@gbif.es">sama@gbif.es</a>&gt; wrote:<br><br><blockquote type="cite">Dear all,<br><br>I'm trying again to install the data portal through the ansible script, but all time the script stops in this part: TASK: [biocache-service | copy biocache webapss]. Does someone have the same problem??<br><br>Thanks in advance.<br>Cheers, Santi.<br><br>---------------------------------------------------------------------------------------<br>Santiago Martínez de la Riva<br>GBIF.ES, Unidad de Coordinación &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel. +34 91 4203017 x 273<br>Real Jardín Botánico - CSIC &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fax +34 91 429 2405<br>Plaza de Murillo, 2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:sama@gbif.es">sama@gbif.es</a><br>28014 Madrid, Spain &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.gbif.es">www.gbif.es</a><br>_______________________________________________<br>Ala-portal mailing list<br><a href="mailto:Ala-portal@lists.gbif.org">Ala-portal@lists.gbif.org</a><br>http://lists.gbif.org/mailman/listinfo/ala-portal<br><br></blockquote><br><br></blockquote><br></blockquote><br><br></blockquote><br>_______________________________________________<br>Ala-portal mailing list<br><a href="mailto:Ala-portal@lists.gbif.org">Ala-portal@lists.gbif.org</a><br>http://lists.gbif.org/mailman/listinfo/ala-portal<br><br></blockquote></div><br></div></body></html>