WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org
View all threadsHi Stuart,
I believe it's this, although I haven't had a chance to 100% confirm it:
https://github.com/collectionspace/cspace-installer/pull/25
Basically, remove any reference to "collectionspace_browser" from your config file (probably deploy.yml). By doing so you'll get the role defaults (which is public browser enabled). If you don't want that the example shows how to disable it:
Best,
Mark
Mark Cooper
Technical Lead, Hosting and Support
LYRASIS
From: stuart.dennis@eawag.ch stuart.dennis@eawag.ch
Sent: Monday, February 21, 2022 1:25 AM
To: talk@lists.collectionspace.org talk@lists.collectionspace.org
Subject: [Talk] Re: Ansible install fails - expired certificate?
Thanks Mark, Megan, and Ray for your help.
I can now get much further through the install process, but have found another issue:
the bulma_url is not being passed correctly during single page app construction.
Any insight?
The error arises during the TASK [collectionspace : Create public browser single page app].
Here’s the verbose error output
task path: /path/to/cspace-installer/roles/collectionspace/tasks/gateway.yml:12
Monday 21 February 2022 10:10:46 +0100 (0:00:00.316) 0:00:40.645 *******
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.box> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o 'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c '"'"'echo ~vagrant && sleep 0'"'"''
<mycs.test.box> (0, b'/home/vagrant\n', b'')
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.box> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o 'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c '"'"'( umask 77 && mkdir -p "echo /home/vagrant/.ansible/tmp
"&& mkdir "echo /home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576
" && echo ansible-tmp-1645434646.3918505-232766-1344370897576="echo /home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576
" ) && sleep 0'"'"''
<mycs.test.box> (0, b'ansible-tmp-1645434646.3918505-232766-1344370897576=/home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576\n', b'')
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.box> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o 'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c '"'"'rm -f -r /home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576/ > /dev/null 2>&1 && sleep 0'"'"''
<mycs.test.box> (0, b'', b'')
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o 'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c '"'"'echo ~vagrant && sleep 0'"'"''
The full traceback is:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ansible/template/init.py", line 1139, in do_template
res = j2_concat(rf)
File "<template>", line 15, in root
File "/usr/lib/python3/dist-packages/jinja2/runtime.py", line 747, in _fail_with_undefined_error
raise self._undefined_exception(self._undefined_message)
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'bulma_url'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ansible/plugins/action/template.py", line 150, in run
resultant = templar.do_template(template_data, preserve_trailing_newlines=True, escape_backslashes=False)
File "/usr/lib/python3/dist-packages/ansible/template/init.py", line 1176, in do_template
raise AnsibleUndefinedVariable(e)
ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 'bulma_url'
failed: [mycs.test.com] (item=/opt/collectionspace/browser/index.html) => {
"ansible_loop_var": "item",
"changed": false,
"item": "/opt/collectionspace/browser/index.html",
"msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'bulma_url'"
}
Thanks Mark.
I can confirm that this solved the issue.
cheers
stuart
From: Mark Cooper mark.cooper@lyrasis.org
Date: Thursday, 24 February 2022 at 18:39
To: "Dennis, Stuart" Stuart.Dennis@eawag.ch, "talk@lists.collectionspace.org" talk@lists.collectionspace.org
Subject: Re: [Talk] Re: Ansible install fails - expired certificate?
External
Hi Stuart,
I believe it's this, although I haven't had a chance to 100% confirm it:
https://github.com/collectionspace/cspace-installer/pull/25
Basically, remove any reference to "collectionspace_browser" from your config file (probably deploy.yml). By doing so you'll get the role defaults (which is public browser enabled). If you don't want that the example shows how to disable it:
Best,
Mark
Mark Cooper
Technical Lead, Hosting and Support
LYRASIS
From: stuart.dennis@eawag.ch stuart.dennis@eawag.ch
Sent: Monday, February 21, 2022 1:25 AM
To: talk@lists.collectionspace.org talk@lists.collectionspace.org
Subject: [Talk] Re: Ansible install fails - expired certificate?
Thanks Mark, Megan, and Ray for your help.
I can now get much further through the install process, but have found another issue:
the bulma_url is not being passed correctly during single page app construction.
Any insight?
The error arises during the TASK [collectionspace : Create public browser single page app].
Here’s the verbose error output
task path: /path/to/cspace-installer/roles/collectionspace/tasks/gateway.yml:12
Monday 21 February 2022 10:10:46 +0100 (0:00:00.316) 0:00:40.645 *******
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.box> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o 'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c '"'"'echo ~vagrant && sleep 0'"'"''
<mycs.test.box> (0, b'/home/vagrant\n', b'')
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.box> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o 'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c '"'"'( umask 77 && mkdir -p "echo /home/vagrant/.ansible/tmp
"&& mkdir "echo /home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576
" && echo ansible-tmp-1645434646.3918505-232766-1344370897576="echo /home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576
" ) && sleep 0'"'"''
<mycs.test.box> (0, b'ansible-tmp-1645434646.3918505-232766-1344370897576=/home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576\n', b'')
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.box> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o 'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c '"'"'rm -f -r /home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576/ > /dev/null 2>&1 && sleep 0'"'"''
<mycs.test.box> (0, b'', b'')
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o 'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c '"'"'echo ~vagrant && sleep 0'"'"''
The full traceback is:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ansible/template/init.py", line 1139, in do_template
res = j2_concat(rf)
File "<template>", line 15, in root
File "/usr/lib/python3/dist-packages/jinja2/runtime.py", line 747, in _fail_with_undefined_error
raise self._undefined_exception(self._undefined_message)
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'bulma_url'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ansible/plugins/action/template.py", line 150, in run
resultant = templar.do_template(template_data, preserve_trailing_newlines=True, escape_backslashes=False)
File "/usr/lib/python3/dist-packages/ansible/template/init.py", line 1176, in do_template
raise AnsibleUndefinedVariable(e)
ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 'bulma_url'
failed: [mycs.test.com] (item=/opt/collectionspace/browser/index.html) => {
"ansible_loop_var": "item",
"changed": false,
"item": "/opt/collectionspace/browser/index.html",
"msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'bulma_url'"
}
Same here. Made those changes and the ansible playbook executed without
fail to the end.
Thanks so much for your input!
Ming-Yi Tsai, PhD
Conservation Director
Tsai Art and Science Foundation
565 Broadway #6E
New York, NY 10012 USA
www.tsaifoundation.org
Gärtnerstrasse 46
CH-4057 Basel
Switzerland
On Fri, Feb 25, 2022 at 4:02 PM Dennis, Stuart Stuart.Dennis@eawag.ch
wrote:
Thanks Mark.
I can confirm that this solved the issue.
cheers
stuart
--
Stuart Dennis
EAWAG
Überlandstrasse 133
P.O. Box 611
8600 Dübendorf
Switzerland
--
*From: *Mark Cooper mark.cooper@lyrasis.org
*Date: *Thursday, 24 February 2022 at 18:39
*To: *"Dennis, Stuart" Stuart.Dennis@eawag.ch, "
talk@lists.collectionspace.org" talk@lists.collectionspace.org
*Subject: *Re: [Talk] Re: Ansible install fails - expired certificate?
External
Hi Stuart,
I believe it's this, although I haven't had a chance to 100% confirm it:
https://github.com/collectionspace/cspace-installer/pull/25
Basically, remove any reference to "collectionspace_browser" from your
config file (probably deploy.yml). By doing so you'll get the role defaults
(which is public browser enabled). If you don't want that the example shows
how to disable it:
Best,
Mark
Mark Cooper
Technical Lead, Hosting and Support
From: stuart.dennis@eawag.ch stuart.dennis@eawag.ch
Sent: Monday, February 21, 2022 1:25 AM
To: talk@lists.collectionspace.org talk@lists.collectionspace.org
Subject: [Talk] Re: Ansible install fails - expired certificate?
Thanks Mark, Megan, and Ray for your help.
I can now get much further through the install process, but have found
another issue:
the bulma_url is not being passed correctly during single page app
construction.
Any insight?
The error arises during the TASK [collectionspace : Create public browser
single page app].
Here’s the verbose error output
task path:
/path/to/cspace-installer/roles/collectionspace/tasks/gateway.yml:12
Monday 21 February 2022 10:10:46 +0100 (0:00:00.316) 0:00:40.645 *******
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.box> SSH: EXEC ssh -C -o ControlMaster=auto -o
ControlPersist=60s -o StrictHostKeyChecking=no -o
KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o
'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c
'"'"'echo ~vagrant && sleep 0'"'"''
<mycs.test.box> (0, b'/home/vagrant\n', b'')
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.box> SSH: EXEC ssh -C -o ControlMaster=auto -o
ControlPersist=60s -o StrictHostKeyChecking=no -o
KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o
'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c
'"'"'( umask 77 && mkdir -p "echo /home/vagrant/.ansible/tmp
"&& mkdir
"echo /home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576
" && echo ansible-tmp-1645434646.3918505-232766-1344370897576="echo /home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576
" ) && sleep 0'"'"''
<mycs.test.box> (0,
b'ansible-tmp-1645434646.3918505-232766-1344370897576=/home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576\n',
b'')
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.box> SSH: EXEC ssh -C -o ControlMaster=auto -o
ControlPersist=60s -o StrictHostKeyChecking=no -o
KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o
'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c
'"'"'rm -f -r
/home/vagrant/.ansible/tmp/ansible-tmp-1645434646.3918505-232766-1344370897576/
/dev/null 2>&1 && sleep 0'"'"''
<mycs.test.box> (0, b'', b'')
<mycs.test.box> ESTABLISH SSH CONNECTION FOR USER: vagrant
<mycs.test.com> SSH: EXEC ssh -C -o ControlMaster=auto -o
ControlPersist=60s -o StrictHostKeyChecking=no -o
KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=10 -o
'ControlPath="/path/to/.ansible/cp/093b11d2eb"' mycs.test.box '/bin/sh -c
'"'"'echo ~vagrant && sleep 0'"'"''
The full traceback is:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ansible/template/init.py", line
1139, in do_template
res = j2_concat(rf)
File "<template>", line 15, in root
File "/usr/lib/python3/dist-packages/jinja2/runtime.py", line 747, in
_fail_with_undefined_error
raise self._undefined_exception(self._undefined_message)
jinja2.exceptions.UndefinedError: 'dict object' has no attribute
'bulma_url'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ansible/plugins/action/template.py",
line 150, in run
resultant = templar.do_template(template_data,
preserve_trailing_newlines=True, escape_backslashes=False)
File "/usr/lib/python3/dist-packages/ansible/template/init.py", line
1176, in do_template
raise AnsibleUndefinedVariable(e)
ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute
'bulma_url'
failed: [mycs.test.com] (item=/opt/collectionspace/browser/index.html) =>
{
"ansible_loop_var": "item",
"changed": false,
"item": "/opt/collectionspace/browser/index.html",
"msg": "AnsibleUndefinedVariable: 'dict object' has no attribute
'bulma_url'"
}
Talk mailing list -- talk@lists.collectionspace.org
To unsubscribe send an email to talk-leave@lists.collectionspace.org