-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote installation is failing with task webserver-app : Set default solr server host from hostvars #1547
Comments
Hi Petr,
Are you installing Islandora to more than one server?
This error (and I'm sure I've seen it) is usually related to the hosts
file. Its trying to get the hostname for the server to install solr on.
I used this playbook (a bit ago) to install to a single remote machine
and this is my hosts file.
# Generated by Vagrant
default ansible_host=fram.ad.umanitoba.ca ansible_port=22
ansible_user=whikloj
ansible_ssh_private_key_file='/Users/whikloj/.ssh/id_fram_rsa'
ansible_become=yes
[karaf]
default
[database]
default
[webserver]
default
[tomcat]
default
[solr]
default
[crayfish]
default
So for Solr it pulls the default row at the top and then the
ansible_host variable from there. Maybe check there are no spelling
issues or extra spaces that might cause it to fail that look up.
cheers,
jared
…On 2020-06-16 6:13 a.m., Petr Kovář wrote:
Hi,
I proceed as written in
https://islandora.github.io/documentation/installation/ section
Installing a remote environment. The installation process is interrupted
with error:
|TASK [webserver-app : Set default solr server host from hostvars]
**************************************** Tuesday 16 June 2020 10:56:39
+0200 (0:00:03.749) 0:19:38.676 ********** fatal: [default]: FAILED! =>
{"msg": "The task includes an option with an undefined variable. The
error was: 'dict object' has no attribute 'ansible_host'\n\nThe error
appears to have been in
'/home/pejuko/islandora-playbook/roles/internal/webserver-app/tasks/solr.yml':
line 6, column 3, but may\nbe elsewhere in the file depending on the
exact syntax problem.\n\nThe offending line appears to be:\n\n# Solr
server configuration should go into the solr playbook:
https://github.com/Islandora-Devops/claw-playbook/blob/dev/solr.yml\n-
name: Set default solr server host from hostvars\n ^ here\n"} |
So I believe there is missing information about how to configure solr
(probably in group_vars/solr.yml)
Can you, please, provide some information how to set custom domain for solr?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1547>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVZVYNTLPZKP3EKIJ64WTTRW5HVPANCNFSM4N7QOBDQ>.
--
Jared Whiklo
Pronouns: he/him/his
jwhiklo@gmail.com
--------------------------------------------------
I've learned that you shouldn't compare yourself to others - they are
more screwed up than you think.
|
Hi Jared,
but should be
btw. I'm installing Islandora only in virtual box just as a practice before installing it on a production server. |
Ooooo right you are, I'll verify with others but I think we need to correct that. Good catch. |
Thanx for this. I had a similar issue with seadragon config using ansible to provision a centos7 server. Perhaps this page could be updated to reflect the ansible_host=example.org variable in the hosts file - https://islandora.github.io/documentation/installation/
Or update the roles |
I knew I had seen this, but then I went and made a duplicate ticket and a PR to fix this. Under #1557 |
Resolved via bbe1616 |
Hi,
I proceed as written in https://islandora.github.io/documentation/installation/ section Installing a remote environment. The installation process is interrupted with error:
So I believe there is missing information about how to configure solr (probably in group_vars/solr.yml)
Can you, please, provide some information how to set custom domain for solr?
Thanks.
The text was updated successfully, but these errors were encountered: