[Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??

Santiago Martinez de la Riva sama at gbif.es
Tue Sep 23 12:58:07 CEST 2014


Thanks Dave and Tim, I'll follow your advices.

Cheers,
Santi.

---------------------------------------------------------------------------------------
Santiago Martínez de la Riva
GBIF.ES, Unidad de Coordinación         Tel. +34 91 4203017 x 273
Real Jardín Botánico - CSIC                     Fax +34 91 429 2405
Plaza de Murillo, 2                                     sama at gbif.es
28014 Madrid, Spain                                 www.gbif.es

________________________________________
De: Tim Robertson [trobertson at gbif.org]
Enviado el: martes, 23 de septiembre de 2014 12:26
Para: David.Martin at csiro.au
CC: Santiago Martinez de la Riva; ala-portal at lists.gbif.org
Asunto: Re: [Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??

It might well contribute to the fix actually Dave.

This is just a hunch, but http://docs.ansible.com/get_url_module.html seems to suggest that Ansible enforces a 10 minute timeout, and from private Skype chat, Santiago suggests it fails after 10 minutes.

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.

Cheers,
Tim





On 23 Sep 2014, at 12:14, <David.Martin at csiro.au<mailto:David.Martin at csiro.au>> <David.Martin at csiro.au<mailto:David.Martin at csiro.au>> wrote:

Hi Santiago,

This isn't a fix for your problem, but might speed up testing.
In your local version of the ala-install project, open the file /ansible/roles/common/tasks/setfacts.yml [1] and uncomment  the section that starts with:

- name: set remote repositories (Amazon CDN)

and then comment out the section that starts with:

- name: set remote repositories (ALA)

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.

Cheers

Dave

[1] https://github.com/AtlasOfLivingAustralia/ala-install/blob/master/ansible/roles/common/tasks/setfacts.yml
[2] https://gist.github.com/djtfmartin/1badaafd263fa517273c

________________________________________
From: ala-portal-bounces at lists.gbif.org<mailto:ala-portal-bounces at lists.gbif.org> [ala-portal-bounces at lists.gbif.org<mailto:ala-portal-bounces at lists.gbif.org>] on behalf of Santiago Martinez de la Riva [sama at gbif.es<mailto:sama at gbif.es>]
Sent: 23 September 2014 19:24
To: Tim Robertson
Cc: ala-portal at lists.gbif.org<mailto:ala-portal at lists.gbif.org>
Subject: Re: [Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??

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.

Thanks Tim.
Cheers,
Santi
---------------------------------------------------------------------------------------
Santiago Martínez de la Riva
GBIF.ES, Unidad de Coordinación         Tel. +34 91 4203017 x 273
Real Jardín Botánico - CSIC                     Fax +34 91 429 2405
Plaza de Murillo, 2                                     sama at gbif.es<mailto:sama at gbif.es>
28014 Madrid, Spain                                 www.gbif.es<http://www.gbif.es>

________________________________________
De: Tim Robertson [trobertson at gbif.org<mailto:trobertson at gbif.org>]
Enviado el: martes, 23 de septiembre de 2014 11:05
Para: Santiago Martinez de la Riva
CC: ala-portal at lists.gbif.org<mailto:ala-portal at lists.gbif.org>
Asunto: Re: [Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??

Hi Santiago

This is worth getting to the bottom of… what happens if you SSH on to your machine and issue wget http://maven.ala.org.au/repository/au/org/ala/biocache-service/1.2/biocache-service-1.2.war in /tmp please?

Can you try that both as the root user and the sama user please?


Thanks,
Tim


On 23 Sep 2014, at 10:55, Santiago Martinez de la Riva <sama at gbif.es<mailto:sama at gbif.es>> wrote:

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.

Cheers,
Santi
---------------------------------------------------------------------------------------
Santiago Martínez de la Riva
GBIF.ES, Unidad de Coordinación         Tel. +34 91 4203017 x 273
Real Jardín Botánico - CSIC                     Fax +34 91 429 2405
Plaza de Murillo, 2                                     sama at gbif.es<mailto:sama at gbif.es>
28014 Madrid, Spain                                 www.gbif.es<http://www.gbif.es>

________________________________________
De: Tim Robertson [trobertson at gbif.org<mailto:trobertson at gbif.org>]
Enviado el: lunes, 22 de septiembre de 2014 15:23
Para: Santiago Martinez de la Riva
CC: ala-portal at lists.gbif.org<mailto:ala-portal at lists.gbif.org>
Asunto: Re: [Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??

If it is already downloaded, what happens if you simply comment out that step?

Cheers,
Tim


On 22 Sep 2014, at 15:16, Santiago Martinez de la Riva <sama at gbif.es<mailto:sama at gbif.es>> wrote:

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.

Thanks.
Santi
---------------------------------------------------------------------------------------
Santiago Martínez de la Riva
GBIF.ES, Unidad de Coordinación         Tel. +34 91 4203017 x 273
Real Jardín Botánico - CSIC                     Fax +34 91 429 2405
Plaza de Murillo, 2                                     sama at gbif.es<mailto:sama at gbif.es>
28014 Madrid, Spain                                 www.gbif.es<http://www.gbif.es>

________________________________________
De: Tim Robertson [trobertson at gbif.org<mailto:trobertson at gbif.org>]
Enviado el: lunes, 22 de septiembre de 2014 14:27
Para: Santiago Martinez de la Riva
CC: ala-portal at lists.gbif.org<mailto:ala-portal at lists.gbif.org>
Asunto: Re: [Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??

Hi Santi

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.
Can you please let it run until there is an actual error reported and paste that?

Thanks,
Tim

[1] http://maven.ala.org.au/repository/au/org/ala/biocache-service/1.2/biocache-service-1.2.war


On 22 Sep 2014, at 14:11, Santiago Martinez de la Riva <sama at gbif.es<mailto:sama at gbif.es>> wrote:

Hi Tim,

The last message that I see It's this:

TASK: [biocache-service | copy biocache webapps] ******************************
<193.146.75.166> ESTABLISH CONNECTION FOR USER: root
<193.146.75.166> REMOTE_MODULE get_url url=http://maven.ala.org.au/repository/au/org/ala/biocache-service/1.2/biocache-service-1.2.war dest=/var/lib/tomcat7/webapps/biocache-service.war force=yes
<193.146.75.166> 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 && echo $HOME/.ansible/tmp/ansible-tmp-1411388014.15-195338030013948'"]
<193.146.75.166> PUT /tmp/tmpn4DELS TO /root/.ansible/tmp/ansible-tmp-1411388014.15-195338030013948/get_url
<193.146.75.166> 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/ >/dev/null 2>&1'"]

Cheers,
Santi.

---------------------------------------------------------------------------------------
Santiago Martínez de la Riva
GBIF.ES, Unidad de Coordinación         Tel. +34 91 4203017 x 273
Real Jardín Botánico - CSIC                     Fax +34 91 429 2405
Plaza de Murillo, 2                                     sama at gbif.es<mailto:sama at gbif.es>
28014 Madrid, Spain                                 www.gbif.es<http://www.gbif.es>

________________________________________
De: Tim Robertson [trobertson at gbif.org<mailto:trobertson at gbif.org>]
Enviado el: lunes, 22 de septiembre de 2014 13:57
Para: Santiago Martinez de la Riva
CC: ala-portal at lists.gbif.org<mailto:ala-portal at lists.gbif.org>
Asunto: Re: [Ala-portal] ANSIBLE SCRIPT PROBLEM - BIOCACHE-SERVICE??

Hola Santiago,

Can you please give us some more information?
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.

Thanks,
Tim


On 22 Sep 2014, at 13:36, Santiago Martinez de la Riva <sama at gbif.es<mailto:sama at gbif.es>> wrote:

Dear all,

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??

Thanks in advance.
Cheers, Santi.

---------------------------------------------------------------------------------------
Santiago Martínez de la Riva
GBIF.ES, Unidad de Coordinación         Tel. +34 91 4203017 x 273
Real Jardín Botánico - CSIC                     Fax +34 91 429 2405
Plaza de Murillo, 2                                     sama at gbif.es<mailto:sama at gbif.es>
28014 Madrid, Spain                                 www.gbif.es<http://www.gbif.es>
_______________________________________________
Ala-portal mailing list
Ala-portal at lists.gbif.org<mailto:Ala-portal at lists.gbif.org>
http://lists.gbif.org/mailman/listinfo/ala-portal







_______________________________________________
Ala-portal mailing list
Ala-portal at lists.gbif.org<mailto:Ala-portal at lists.gbif.org>
http://lists.gbif.org/mailman/listinfo/ala-portal




More information about the Ala-portal mailing list