url lookup fails on my Apple M1

438 views
Skip to first unread message

Julien Tognazzi

unread,
Mar 26, 2021, 7:22:17 AM3/26/21
to Ansible Project
Dear list,

The following play fails on my ansible installation:
- hosts: localhost
  gather_facts: false

  tasks:
  - set_fact:
      toto: "{{ lookup('url', 'https://google.ch') }}"

The error is
objc[57643]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[57643]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
ERROR! A worker was found in a dead state

ansible --version
ansible 2.9.18
  config file = /Users/tognazju/Documents/ansible-deployment/ansible.cfg
  configured module search path = ['/Users/tognazju/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/homebrew/lib/python3.9/site-packages/ansible
  executable location = /opt/homebrew/bin/ansible
  python version = 3.9.2 (default, Feb 24 2021, 05:06:40) [Clang 12.0.0 (clang-1200.0.32.29)]

In which direction should I look to find the problem here ?

thanks for any hint.

Abhijeet Kasurde

unread,
Mar 26, 2021, 7:27:18 AM3/26/21
to ansible...@googlegroups.com
This is a known issue with Mac OS - https://github.com/ansible/ansible/issues/65108.

You may want to try this - https://github.com/ansible/ansible/issues/65108#issuecomment-557016371. I have not tried this solution personally.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2fd757ea-d29b-4b47-9233-57aa8aad45c7n%40googlegroups.com.


--
Thanks,
Abhijeet Kasurde

Julien Tognazzi

unread,
Mar 26, 2021, 9:44:04 AM3/26/21
to Ansible Project
Thanks for the link.
Reply all
Reply to author
Forward
0 new messages